From 3f803212f63c242f2038d89e772d3171f5b7371c Mon Sep 17 00:00:00 2001 From: "Dr. Strangelove" Date: Mon, 25 Mar 2024 15:07:49 -0400 Subject: [PATCH] chore: Add CODEOWNERS and automatic issue labels (#11) --- .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 00000000..703c0fc3 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @looker-open-source/looker-embed-demo-team diff --git a/.github/workflows/p3-issue-label.yml b/.github/workflows/p3-issue-label.yml new file mode 100644 index 00000000..4c9f825f --- /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 00000000..a4a69088 --- /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"] + })