From 61ced7380b990ed74b2ec8634bdd67eea76f5b64 Mon Sep 17 00:00:00 2001 From: Mark Cohen Date: Tue, 11 Jul 2023 14:24:51 -0400 Subject: [PATCH] any new issues should have an 'untriaged' label added by default to call out that we need to read it to ensure it's at least not a security issue Signed-off-by: Mark Cohen --- .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 00000000..bfff875b --- /dev/null +++ b/.github/workflows/add-untriaged-label.yml @@ -0,0 +1,19 @@ +name: Apply 'untriaged' label during issue lifecycle + +on: + issues: + types: [opened, 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'] + }) \ No newline at end of file