From 3e56c5363f0c49212735f180d36720cdaf268a3d Mon Sep 17 00:00:00 2001 From: Nicolas Thouvenin Date: Wed, 26 Jun 2024 14:33:32 +0200 Subject: [PATCH] Adding labels to issues --- .github/workflows/labels.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/labels.yml diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 000000000..2bafed9a9 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,22 @@ +# Adding labels to issues +# https://docs.github.com/en/actions/managing-issues-and-pull-requests/adding-labels-to-issues +# +name: Label issues +on: + issues: + types: + - reopened + - opened +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: gh issue edit "$NUMBER" --add-label "$LABELS" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} + LABELS: Triage +