From 3096a75738281fad2709efe689218b8a3cfb947f Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Mon, 9 Sep 2024 18:06:16 +0300 Subject: [PATCH] chore: add in automatic issue labeler (#639) --- .github/workflows/issue_labeling.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/issue_labeling.yaml diff --git a/.github/workflows/issue_labeling.yaml b/.github/workflows/issue_labeling.yaml new file mode 100644 index 00000000..7946544c --- /dev/null +++ b/.github/workflows/issue_labeling.yaml @@ -0,0 +1,25 @@ +name: Update new issue + +on: + issues: + types: + - opened + +jobs: + label_issues: + name: Label issues + runs-on: ubuntu-latest + permissions: + issues: write + + steps: + # Add the "t-tooling" label to all new issues + - uses: actions/github-script@v7 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ["t-tooling"] + })