From 62ef88335494ad4bc13a17e875e660ff7b33732f Mon Sep 17 00:00:00 2001 From: Mike DeAngelo Date: Thu, 28 Mar 2024 15:15:35 -0400 Subject: [PATCH] chore: Add CODEOWNERS and autolabel tasks --- .github/CODEOWNERS | 1 + .github/workflows/p3-issue-label.yml | 21 +++++++++++++++++++++ .github/workflows/triage-issue-label.yml | 20 ++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/p3-issue-label.yml create mode 100644 .github/workflows/triage-issue-label.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..4c4f7f0 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @looker-open-source/cortex-eng diff --git a/.github/workflows/p3-issue-label.yml b/.github/workflows/p3-issue-label.yml new file mode 100644 index 0000000..4c9f825 --- /dev/null +++ b/.github/workflows/p3-issue-label.yml @@ -0,0 +1,21 @@ +name: Label all new/reopened issues with P3 +on: + issues: + types: + - reopened + - opened +jobs: + label_issues_p3: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/github-script@v6 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ["p3"] + }) diff --git a/.github/workflows/triage-issue-label.yml b/.github/workflows/triage-issue-label.yml new file mode 100644 index 0000000..d378fa0 --- /dev/null +++ b/.github/workflows/triage-issue-label.yml @@ -0,0 +1,20 @@ +name: Label issues that need triage +on: + issues: + types: + - opened +jobs: + label_issues_p3: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/github-script@v6 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ["need triage"] + }) \ No newline at end of file