From 68975042bef411e24da83861231a040d4397cb18 Mon Sep 17 00:00:00 2001 From: kylemcnair <40182913+kylemcnair@users.noreply.github.com> Date: Mon, 8 May 2023 16:12:40 -0700 Subject: [PATCH] add triage labels workflow --- .github/workflows/triage_labels.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/triage_labels.yml diff --git a/.github/workflows/triage_labels.yml b/.github/workflows/triage_labels.yml new file mode 100644 index 00000000..cfe65fe4 --- /dev/null +++ b/.github/workflows/triage_labels.yml @@ -0,0 +1,21 @@ +name: Label issues +on: + issues: + types: + - reopened + - opened +jobs: + label_issues: + 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: ["triage"] + }) \ No newline at end of file