From 671b486c57dc6fa69a09b9589f35ce220583cf21 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Tue, 9 Apr 2024 21:44:52 -0700 Subject: [PATCH 1/6] CLI-1314: Link GitHub PRs to Jira --- .github/workflows/jira.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/jira.yml b/.github/workflows/jira.yml index ec3261f7c..92aecf496 100644 --- a/.github/workflows/jira.yml +++ b/.github/workflows/jira.yml @@ -4,8 +4,12 @@ on: types: - opened - closed + pull_request: + types: + - opened permissions: issues: write + pull-requests: read jobs: jira: uses: acquia/.github/.github/workflows/jira.yml@main From a292c24d86cd82681925f2af71576b8d18af3402 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Wed, 10 Apr 2024 12:16:03 -0700 Subject: [PATCH 2/6] dev version --- .github/workflows/jira.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jira.yml b/.github/workflows/jira.yml index 92aecf496..ce3b0cab8 100644 --- a/.github/workflows/jira.yml +++ b/.github/workflows/jira.yml @@ -12,7 +12,7 @@ permissions: pull-requests: read jobs: jira: - uses: acquia/.github/.github/workflows/jira.yml@main + uses: acquia/.github/.github/workflows/jira.yml@CLI-1314 secrets: jira-api-token: ${{ secrets.JIRA_API_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }} From de087c9f9933924f0483d12e6282224ef295dea4 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Wed, 10 Apr 2024 12:17:25 -0700 Subject: [PATCH 3/6] debug --- .github/workflows/jira.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/jira.yml b/.github/workflows/jira.yml index ce3b0cab8..ab29682a2 100644 --- a/.github/workflows/jira.yml +++ b/.github/workflows/jira.yml @@ -7,6 +7,7 @@ on: pull_request: types: - opened + - reopened permissions: issues: write pull-requests: read From 809f4256e67ae59602bf92f0bc5ddf9ffe86faad Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Wed, 10 Apr 2024 12:27:01 -0700 Subject: [PATCH 4/6] pull_request_target --- .github/workflows/jira.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jira.yml b/.github/workflows/jira.yml index ab29682a2..f5731c0bd 100644 --- a/.github/workflows/jira.yml +++ b/.github/workflows/jira.yml @@ -4,7 +4,7 @@ on: types: - opened - closed - pull_request: + pull_request_target: types: - opened - reopened From 97c9ec2f55f1e1e615e7dd1f9bd1b531bb00ec4d Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Wed, 10 Apr 2024 12:33:25 -0700 Subject: [PATCH 5/6] only opened --- .github/workflows/jira.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/jira.yml b/.github/workflows/jira.yml index f5731c0bd..11a892b49 100644 --- a/.github/workflows/jira.yml +++ b/.github/workflows/jira.yml @@ -7,7 +7,6 @@ on: pull_request_target: types: - opened - - reopened permissions: issues: write pull-requests: read From 0fc99a03a61a68ec3c6e77a91ae80610a50a2d5f Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Wed, 10 Apr 2024 12:34:51 -0700 Subject: [PATCH 6/6] back to main --- .github/workflows/jira.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jira.yml b/.github/workflows/jira.yml index 11a892b49..37a52e08b 100644 --- a/.github/workflows/jira.yml +++ b/.github/workflows/jira.yml @@ -12,7 +12,7 @@ permissions: pull-requests: read jobs: jira: - uses: acquia/.github/.github/workflows/jira.yml@CLI-1314 + uses: acquia/.github/.github/workflows/jira.yml@main secrets: jira-api-token: ${{ secrets.JIRA_API_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}