From 2ea205bec817aba11506eea52b855bd6de31e9f2 Mon Sep 17 00:00:00 2001 From: Ilia Mogilevsky Date: Tue, 16 Dec 2025 16:16:08 +1100 Subject: [PATCH 1/2] chore: remove unused actions --- .../workflows/smartbear-branch-created.yml | 38 ----------- .github/workflows/smartbear-issue-closed.yaml | 39 ----------- .../smartbear-issue-comment-created.yml | 68 ------------------- .../workflows/smartbear-issue-label-added.yml | 59 ---------------- .github/workflows/smartbear-issue-opened.yml | 61 ----------------- .../smartbear-pull-request-assigned.yaml | 40 ----------- ...martbear-pull-request-comment-created.yaml | 43 ------------ .../smartbear-pull-request-merged.yaml | 43 ------------ .../smartbear-pull-request-review-notify.yaml | 29 -------- ...artbear-pull-request-review-submitted.yaml | 41 ----------- 10 files changed, 461 deletions(-) delete mode 100644 .github/workflows/smartbear-branch-created.yml delete mode 100644 .github/workflows/smartbear-issue-closed.yaml delete mode 100644 .github/workflows/smartbear-issue-comment-created.yml delete mode 100644 .github/workflows/smartbear-issue-label-added.yml delete mode 100644 .github/workflows/smartbear-issue-opened.yml delete mode 100644 .github/workflows/smartbear-pull-request-assigned.yaml delete mode 100644 .github/workflows/smartbear-pull-request-comment-created.yaml delete mode 100644 .github/workflows/smartbear-pull-request-merged.yaml delete mode 100644 .github/workflows/smartbear-pull-request-review-notify.yaml delete mode 100644 .github/workflows/smartbear-pull-request-review-submitted.yaml diff --git a/.github/workflows/smartbear-branch-created.yml b/.github/workflows/smartbear-branch-created.yml deleted file mode 100644 index 7a25a5a..0000000 --- a/.github/workflows/smartbear-branch-created.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: SmartBear Supported Branch Created - -# Example of trigger for this workflow: -# -# on: -# create: -# branches: -# - 'feature/**' - -on: - workflow_call: - -jobs: - build: - runs-on: ubuntu-latest - name: Transition Jira ticket to In Progress - steps: - - name: login - uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3 - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - - - name: Find Issue - id: find - uses: atlassian/gajira-find-issue-key@7d9cbdfce900a0fcf608050ce728620a928be8b6 # v3 - with: - from: branch - - - run: echo "${{ steps.find.outputs.issue }}" - - - name: Transition issue - if: steps.find.outputs.issue != '' - uses: atlassian/gajira-transition@4749176faf14633954d72af7a44d7f2af01cc92b # v3 - with: - issue: ${{ steps.find.outputs.issue }} - transition: "In Progress" diff --git a/.github/workflows/smartbear-issue-closed.yaml b/.github/workflows/smartbear-issue-closed.yaml deleted file mode 100644 index 15baab7..0000000 --- a/.github/workflows/smartbear-issue-closed.yaml +++ /dev/null @@ -1,39 +0,0 @@ -name: SmartBear Supported Issue Closed - -# Example of trigger for this workflow: -# -# on: -# issues: -# types: -# - closed - -on: - workflow_call: - -jobs: - if_closed: - runs-on: ubuntu-latest - name: Transition Jira ticket to Close - steps: - - name: login - uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3 - env: - JIRA_BASE_URL: ${{ secrets.SMARTBEAR_JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.SMARTBEAR_JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.SMARTBEAR_JIRA_API_TOKEN }} - - - name: Search - id: search - uses: tomhjp/gh-action-jira-search@04700b457f317c3e341ce90da5a3ff4ce058f2fa # v0.2.2 - with: - jql: 'summary ~ "${{ github.event.repository.name }}#${{ github.event.issue.number }}:" AND project=${{ vars.SMARTBEAR_JIRA_PROJECT }}' - - - name: Log - run: echo "Found issue ${{ steps.search.outputs.issue }}" - - - name: Transition issue - if: steps.search.outputs.issue != '' - uses: atlassian/gajira-transition@4749176faf14633954d72af7a44d7f2af01cc92b # v3 - with: - issue: ${{ steps.search.outputs.issue }} - transition: "Done" \ No newline at end of file diff --git a/.github/workflows/smartbear-issue-comment-created.yml b/.github/workflows/smartbear-issue-comment-created.yml deleted file mode 100644 index 9989483..0000000 --- a/.github/workflows/smartbear-issue-comment-created.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: SmartBear Supported Issue Comment Created - -# Example of trigger for this workflow: -# -# on: -# issue_comment: -# types: -# - created - -on: - workflow_call: - -jobs: - jira: - runs-on: ubuntu-latest - if: ${{ github.event.comment.body == '/smartbear-supported issue' }} - steps: - - run: echo ${{ github.event.comment.body }} - - - name: Login - uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3 - env: - JIRA_BASE_URL: ${{ secrets.SMARTBEAR_JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.SMARTBEAR_JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.SMARTBEAR_JIRA_API_TOKEN }} - ISSUE_TITLE: ${{ github.event.issue.title }} - - - name: Search - id: search - uses: tomhjp/gh-action-jira-search@04700b457f317c3e341ce90da5a3ff4ce058f2fa # v0.2.2 - with: - jql: 'summary ~ "${{ github.event.repository.name }}#${{ github.event.issue.number }}:" AND project=${{ vars.SMARTBEAR_JIRA_PROJECT }}' - - - name: Log - run: echo "Found issue ${{ steps.search.outputs.issue }}" - - - name: Create - id: create - if: steps.search.outputs.issue == '' - uses: atlassian/gajira-create@1ff0b6bd115a780592b47bfbb63fc4629132e6ec # v3 - with: - project: ${{ secrets.SMARTBEAR_JIRA_PROJECT }} - issuetype: Task - summary: '${{ github.event.repository.name }}#${{ github.event.issue.number }}: ${{ github.event.issue.title }}' - description: | - *Issue Link:* ${{ github.event.issue.html_url }} - - ${{ github.event.issue.body }} - fields: '{"customfield_10006": ${{ toJSON(secrets.SMARTBEAR_JIRA_EPIC_TICKET) }}, "customfield_17401":{"value":${{ toJSON( secrets.SMARTBEAR_JIRA_LAYER_CAKE )}}}}' - - - name: Add Comment - if: steps.search.outputs.issue == '' && steps.create.outputs.issue != '' - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: "👋 Hi! The 'smartbear-supported' label has just been added to this issue, which will create an internal tracking ticket in PactFlow's Jira (${{steps.create.outputs.issue}}). We will use this to prioritise and assign a team member to this task. All activity will be public on this ticket. For now, sit tight and we'll update this ticket once we have more information on the next steps.

See our documentation for more information." - }) - - - name: Add Jira Label - uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1 - if: steps.search.outputs.issue == '' && steps.create.outputs.issue != '' - with: - labels: smartbear-supported diff --git a/.github/workflows/smartbear-issue-label-added.yml b/.github/workflows/smartbear-issue-label-added.yml deleted file mode 100644 index afabdc3..0000000 --- a/.github/workflows/smartbear-issue-label-added.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: SmartBear Supported Issue Label Added - -# Example of trigger for this workflow: -# -# on: -# issues: -# types: -# - labeled - -on: - workflow_call: - -jobs: - create-issue-in-pactflow-jira: - runs-on: ubuntu-latest - if: github.event.label.name == 'smartbear-supported' - steps: - - name: Login - uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3 - env: - JIRA_BASE_URL: ${{ secrets.SMARTBEAR_JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.SMARTBEAR_JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.SMARTBEAR_JIRA_API_TOKEN }} - - - name: Search - id: search - uses: tomhjp/gh-action-jira-search@04700b457f317c3e341ce90da5a3ff4ce058f2fa # v0.2.2 - with: - jql: 'summary ~ "${{ github.event.repository.name }}#${{ github.event.issue.number }}:" AND project=${{ vars.SMARTBEAR_JIRA_PROJECT }}' - - - name: Log - run: echo "Found issue ${{ steps.search.outputs.issue }}" - - - name: Create - id: create - uses: atlassian/gajira-create@1ff0b6bd115a780592b47bfbb63fc4629132e6ec # v3 - if: steps.search.outputs.issue == '' - with: - project: ${{ vars.SMARTBEAR_JIRA_PROJECT }} - issuetype: Task - summary: '${{ github.event.repository.name }}#${{ github.event.issue.number }}: ${{ github.event.issue.title }}' - description: | - *Issue Link:* ${{ github.event.issue.html_url }} - - ${{ github.event.issue.body }} - fields: '{"customfield_10006": ${{ toJSON(secrets.SMARTBEAR_JIRA_EPIC_TICKET) }}, "customfield_17401":{"value":${{ toJSON( secrets.SMARTBEAR_JIRA_LAYER_CAKE )}}}}' - - - name: Add Comment - if: steps.search.outputs.issue == '' && steps.create.outputs.issue != '' - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 - with: - github-token: ${{secrets.GITHUB_TOKEN }} - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: "👋 Hi! The 'smartbear-supported' label has just been added to this issue, which will create an internal tracking ticket in PactFlow's Jira (${{steps.create.outputs.issue}}). We will use this to prioritise and assign a team member to this task. All activity will be public on this ticket. For now, sit tight and we'll update this ticket once we have more information on the next steps.

See our documentation for more information." - }) \ No newline at end of file diff --git a/.github/workflows/smartbear-issue-opened.yml b/.github/workflows/smartbear-issue-opened.yml deleted file mode 100644 index e7b7b1a..0000000 --- a/.github/workflows/smartbear-issue-opened.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: SmartBear Supported Issue Opened - -# Example of trigger for this workflow: -# -# on: -# issues: -# types: -# - opened - -on: - workflow_call: - -jobs: - build: - runs-on: ubuntu-latest - name: Create Jira Ticket - steps: - - name: Login - uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3 - env: - SMARTBEAR_JIRA_BASE_URL: ${{ secrets.SMARTBEAR_JIRA_BASE_URL }} - SMARTBEAR_JIRA_USER_EMAIL: ${{ secrets.SMARTBEAR_JIRA_USER_EMAIL }} - SMARTBEAR_JIRA_API_TOKEN: ${{ secrets.SMARTBEAR_JIRA_API_TOKEN }} - - - name: Search - id: search - uses: tomhjp/gh-action-jira-search@04700b457f317c3e341ce90da5a3ff4ce058f2fa # v0.2.2 - with: - jql: 'summary ~ "${{ github.event.repository.name }}#${{ github.event.issue.number }}:" AND project=${{ vars.SMARTBEAR_JIRA_PROJECT }}' - - - name: Create - uses: atlassian/gajira-create@1ff0b6bd115a780592b47bfbb63fc4629132e6ec # v3 - id: create - with: - project: ${{ secrets.SMARTBEAR_JIRA_PROJECT }} - issuetype: Task - summary: '${{ github.event.repository.name }}#${{ github.event.issue.number }}: ${{ github.event.issue.title }}' - description: | - *Issue Link:* ${{ github.event.issue.html_url }} - - ${{ github.event.issue.body }} - fields: '{"customfield_10006": ${{ toJSON(secrets.SMARTBEAR_JIRA_EPIC_TICKET) }}, "customfield_17401":{"value":${{ toJSON( secrets.SMARTBEAR_JIRA_LAYER_CAKE )}}}}' - - - name: Add Jira Label - uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1 - if: steps.create.outputs.issue != '' - with: - labels: smartbear-supported - - - name: Add Comment - if: steps.search.outputs.issue == '' && steps.create.outputs.issue != '' - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: "👋 Hi! The 'smartbear-supported' label has just been added to this issue, which will create an internal tracking ticket in PactFlow's Jira (${{steps.create.outputs.issue}}). We will use this to prioritise and assign a team member to this task. All activity will be public on this ticket. For now, sit tight and we'll update this ticket once we have more information on the next steps.

See our documentation for more information." - }) \ No newline at end of file diff --git a/.github/workflows/smartbear-pull-request-assigned.yaml b/.github/workflows/smartbear-pull-request-assigned.yaml deleted file mode 100644 index 6f41aca..0000000 --- a/.github/workflows/smartbear-pull-request-assigned.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: SmartBear Supported Pull Request Assigned - -# Example of trigger for this workflow: -# -# on: -# pull_request: -# types: -# - assigned - -on: - workflow_call: - -jobs: - build: - runs-on: ubuntu-latest - name: Jira ticket transitioned to In Review - steps: - - name: login - uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3 - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - - - run: echo ${{ github.event.pull_request.title }} - - - name: Find Issue - id: find - uses: atlassian/gajira-find-issue-key@7d9cbdfce900a0fcf608050ce728620a928be8b6 # v3 - with: - string: ${{ github.event.pull_request.title }} - - - run: echo "${{ steps.find.outputs.issue }}" - - - name: Transition issue - if: steps.find.outputs.issue != '' - uses: atlassian/gajira-transition@4749176faf14633954d72af7a44d7f2af01cc92b # v3 - with: - issue: ${{ steps.find.outputs.issue }} - transition: "In Progress" \ No newline at end of file diff --git a/.github/workflows/smartbear-pull-request-comment-created.yaml b/.github/workflows/smartbear-pull-request-comment-created.yaml deleted file mode 100644 index e892839..0000000 --- a/.github/workflows/smartbear-pull-request-comment-created.yaml +++ /dev/null @@ -1,43 +0,0 @@ -name: SmartBear Supported Pull Request Comment Created - -# Scenario: Once the code author commits all changes to branch, and PR updated, -# they can comment with "/done" - -# Example of trigger for this workflow: -# -# on: -# issue_comment: -# types: [created] - -on: - workflow_call: - -jobs: - build: - runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/done') }} - name: Transition Jira Ticket to In Review - steps: - - name: login - uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3 - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - - - run: echo ${{ github.event.issue.title }} - - - name: Find Issue - id: find - uses: atlassian/gajira-find-issue-key@7d9cbdfce900a0fcf608050ce728620a928be8b6 # v3 - with: - string: ${{ github.event.issue.title }} - - - run: echo "${{ steps.find.outputs.issue }}" - - - name: Transition issue - if: steps.find.outputs.issue != '' - uses: atlassian/gajira-transition@4749176faf14633954d72af7a44d7f2af01cc92b # v3 - with: - issue: ${{ steps.find.outputs.issue }} - transition: "In Progress" \ No newline at end of file diff --git a/.github/workflows/smartbear-pull-request-merged.yaml b/.github/workflows/smartbear-pull-request-merged.yaml deleted file mode 100644 index 568a1c4..0000000 --- a/.github/workflows/smartbear-pull-request-merged.yaml +++ /dev/null @@ -1,43 +0,0 @@ -name: SmartBear Supported Pull Request Merged - -# Example of trigger for this workflow: -# -# on: -# pull_request: -# types: -# - closed - -on: - workflow_call: - -jobs: - if_merged: - runs-on: ubuntu-latest - if: github.event.pull_request.merged == true - name: Transition Jira ticket to Close - steps: - - name: login - uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3 - JIRA_BASE_URL: ${{ secrets.SMARTBEAR_JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.SMARTBEAR_JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.SMARTBEAR_JIRA_API_TOKEN }} - ISSUE_TITLE: ${{ github.event.issue.title }} - - - run: echo ${{ github.event.pull_request.title }} - - - name: Search - id: search - uses: tomhjp/gh-action-jira-search@04700b457f317c3e341ce90da5a3ff4ce058f2fa # v0.2.2 - with: - jql: 'summary ~ "${{ github.event.repository.name }}#${{ github.event.issue.number }}:" AND project=${{ vars.SMARTBEAR_JIRA_PROJECT }}' - - - name: Log - run: echo "Found issue ${{ steps.search.outputs.issue }}" - - - - name: Transition issue - if: steps.search.outputs.issue != '' - uses: atlassian/gajira-transition@4749176faf14633954d72af7a44d7f2af01cc92b # v3 - with: - issue: ${{ steps.search.outputs.issue }} - transition: "Done" diff --git a/.github/workflows/smartbear-pull-request-review-notify.yaml b/.github/workflows/smartbear-pull-request-review-notify.yaml deleted file mode 100644 index c0618e7..0000000 --- a/.github/workflows/smartbear-pull-request-review-notify.yaml +++ /dev/null @@ -1,29 +0,0 @@ -name: SmartBear Pull Request Notify - -# -# Requirements: -# ${{ secrets.SMARTBEAR_SLACK_WEBHOOK_URL }} -# -# Example of trigger for this workflow: -# -#on: -# pull_request: -# types: -# - opened - -on: - workflow_call: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Notify slack when PR is ready for review - uses: ilia/request-review-action@95a3ab96ec207b3590095632df8e72016d81cffb # v0.0.4 - env: - SLACK_WEBHOOK_URL: ${{ secrets.SMARTBEAR_SLACK_WEBHOOK_URL }} - PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }} - PULL_REQUEST_TITLE: ${{ github.event.pull_request.title }} - PULL_REQUEST_AUTHOR_NAME: ${{ github.event.pull_request.user.login }} - PULL_REQUEST_URL: ${{ github.event.pull_request.html_url }} - REPO_NAME: ${{ github.event.repository.name }} diff --git a/.github/workflows/smartbear-pull-request-review-submitted.yaml b/.github/workflows/smartbear-pull-request-review-submitted.yaml deleted file mode 100644 index a2799cb..0000000 --- a/.github/workflows/smartbear-pull-request-review-submitted.yaml +++ /dev/null @@ -1,41 +0,0 @@ -name: SmartBear Supported Pull Request Review Submitted - -# Example of trigger for this workflow - -# on: -# pull_request_review: -# types: -# - submitted - -on: - workflow_call: - -jobs: - change_requested: - if: github.event.review.state == 'changes_requested' - runs-on: ubuntu-latest - name: Jira ticket transitioned back to in progress - steps: - - name: login - uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3 - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - - - run: echo ${{ github.event.pull_request.title }} - - - name: Find Issue - id: find - uses: atlassian/gajira-find-issue-key@7d9cbdfce900a0fcf608050ce728620a928be8b6 # v3 - with: - string: ${{ github.event.pull_request.title }} - - - run: echo "${{ steps.find.outputs.issue }}" - - - name: Transition issue - if: steps.find.outputs.issue != '' - uses: atlassian/gajira-transition@4749176faf14633954d72af7a44d7f2af01cc92b # v3 - with: - issue: ${{ steps.find.outputs.issue }} - transition: "In Progress" From 9d1dbca37e7e06b85c7400e8a287b9ad5edc8eff Mon Sep 17 00:00:00 2001 From: Ilia Mogilevsky Date: Wed, 17 Dec 2025 14:26:45 +1100 Subject: [PATCH 2/2] chore: keep the action we use for code review notifications --- .../smartbear-pull-request-review-notify.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/smartbear-pull-request-review-notify.yaml diff --git a/.github/workflows/smartbear-pull-request-review-notify.yaml b/.github/workflows/smartbear-pull-request-review-notify.yaml new file mode 100644 index 0000000..c0618e7 --- /dev/null +++ b/.github/workflows/smartbear-pull-request-review-notify.yaml @@ -0,0 +1,29 @@ +name: SmartBear Pull Request Notify + +# +# Requirements: +# ${{ secrets.SMARTBEAR_SLACK_WEBHOOK_URL }} +# +# Example of trigger for this workflow: +# +#on: +# pull_request: +# types: +# - opened + +on: + workflow_call: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Notify slack when PR is ready for review + uses: ilia/request-review-action@95a3ab96ec207b3590095632df8e72016d81cffb # v0.0.4 + env: + SLACK_WEBHOOK_URL: ${{ secrets.SMARTBEAR_SLACK_WEBHOOK_URL }} + PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }} + PULL_REQUEST_TITLE: ${{ github.event.pull_request.title }} + PULL_REQUEST_AUTHOR_NAME: ${{ github.event.pull_request.user.login }} + PULL_REQUEST_URL: ${{ github.event.pull_request.html_url }} + REPO_NAME: ${{ github.event.repository.name }}