From b9f2f1fdbbbfc0b3dda3d974c6336015adce2c22 Mon Sep 17 00:00:00 2001 From: Josh Romero Date: Tue, 13 Dec 2022 01:58:15 +0000 Subject: [PATCH] [Infrastructure] Add `untriaged` label to issues workflow Credit to Peter Nied via https://github.com/opensearch-project/.github/pull/111 Signed-off-by: Josh Romero --- .github/workflows/add_untriaged_label.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/add_untriaged_label.yml diff --git a/.github/workflows/add_untriaged_label.yml b/.github/workflows/add_untriaged_label.yml new file mode 100644 index 00000000000..15b9a556512 --- /dev/null +++ b/.github/workflows/add_untriaged_label.yml @@ -0,0 +1,19 @@ +name: Apply 'untriaged' label during issue lifecycle + +on: + issues: + types: [opened, reopened, transferred] + +jobs: + apply-label: + runs-on: ubuntu-latest + 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: ['untriaged'] + })