From 85747d436515d4b6d4fded20545a815abf861fd8 Mon Sep 17 00:00:00 2001 From: Tomas Kral Date: Thu, 11 Jan 2024 07:08:49 +0100 Subject: [PATCH] chore: add jira label to new issues (#1050) --- .../{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 c54b1b2223..872f09c208 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 }}