From 65c0302aa4d65ded49330956764abb7a591d0d67 Mon Sep 17 00:00:00 2001 From: Tomas Kral Date: Tue, 9 Jan 2024 14:59:21 +0100 Subject: [PATCH] chore: add jira label to new issues (#282) --- .../{add-to-project.yaml => on-new-issue.yaml} | 10 ++++++++++ 1 file changed, 10 insertions(+) rename .github/workflows/{add-to-project.yaml => on-new-issue.yaml} (51%) diff --git a/.github/workflows/add-to-project.yaml b/.github/workflows/on-new-issue.yaml similarity index 51% rename from .github/workflows/add-to-project.yaml rename to .github/workflows/on-new-issue.yaml index c54b1b22..872f09c2 100644 --- a/.github/workflows/add-to-project.yaml +++ b/.github/workflows/on-new-issue.yaml @@ -10,3 +10,13 @@ jobs: with: project_id: 2 secrets: inherit + + add-jira-label: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: | + gh issue --repo ${{github.repository}} edit ${{github.event.issue.number}} --add-label "jira" + env: + GH_TOKEN: ${{ github.token }}