From d12416702730fc79fa3ba4ab4a9c62c99b8ac3aa Mon Sep 17 00:00:00 2001 From: AJ Rice <53190766+ajrice6713@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:32:56 -0400 Subject: [PATCH 1/4] SWI-3711 Github Machine Broke --- .github/workflows/listener.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/listener.yml b/.github/workflows/listener.yml index a0a9f5876..04e77193a 100644 --- a/.github/workflows/listener.yml +++ b/.github/workflows/listener.yml @@ -32,7 +32,7 @@ jobs: - name: Open Pull Request if: steps.replace-specs-snippets.outputs.needs_pr run: | - hub pull-request --base Bandwidth:main $(if ${{ github.event.client_payload.draftPr }} ; then echo "-d" ; fi) -m '${{ github.event.client_payload.branchName }}' -m 'Update API specs from upstream api-specs repository. Opened By: @${{ github.event.client_payload.author }}' + gh pr create -B main -H Bandwidth:${{ steps.jira.outputs.jira-key }} -t '${{ steps.jira.outputs.jira-key }} Update SDK Based on Recent Spec Changes' -b 'Auto-generated by Update SDK Workflow' env: GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }} From fdbee69d09d224d805f7ec178d4bd7d9b6d9e353 Mon Sep 17 00:00:00 2001 From: AJ Rice <53190766+ajrice6713@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:44:42 -0400 Subject: [PATCH 2/4] dont copy paste blindly --- .github/workflows/listener.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/listener.yml b/.github/workflows/listener.yml index 04e77193a..b5429fdfb 100644 --- a/.github/workflows/listener.yml +++ b/.github/workflows/listener.yml @@ -32,7 +32,7 @@ jobs: - name: Open Pull Request if: steps.replace-specs-snippets.outputs.needs_pr run: | - gh pr create -B main -H Bandwidth:${{ steps.jira.outputs.jira-key }} -t '${{ steps.jira.outputs.jira-key }} Update SDK Based on Recent Spec Changes' -b 'Auto-generated by Update SDK Workflow' + gh pr create -B main -H Bandwidth:main $(if ${{ github.event.client_payload.draftPr }} ; then echo "-d" ; fi) -m '${{ github.event.client_payload.branchName }}' -m 'Update API specs from upstream api-specs repository. Opened By: @${{ github.event.client_payload.author }}' env: GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }} From 18c72bd879cb3be0ede65a0ef0a97a44e663f088 Mon Sep 17 00:00:00 2001 From: AJ Rice <53190766+ajrice6713@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:50:20 -0400 Subject: [PATCH 3/4] Use the right flags --- .github/workflows/listener.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/listener.yml b/.github/workflows/listener.yml index b5429fdfb..20d05e663 100644 --- a/.github/workflows/listener.yml +++ b/.github/workflows/listener.yml @@ -32,7 +32,7 @@ jobs: - name: Open Pull Request if: steps.replace-specs-snippets.outputs.needs_pr run: | - gh pr create -B main -H Bandwidth:main $(if ${{ github.event.client_payload.draftPr }} ; then echo "-d" ; fi) -m '${{ github.event.client_payload.branchName }}' -m 'Update API specs from upstream api-specs repository. Opened By: @${{ github.event.client_payload.author }}' + gh pr create -B main -H Bandwidth:main $(if ${{ github.event.client_payload.draftPr }} ; then echo "-d" ; fi) -t '${{ github.event.client_payload.branchName }}' -b 'Update API specs from upstream api-specs repository. Opened By: @${{ github.event.client_payload.author }}' env: GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }} From c1780404ce1fea150fc3c60e75d10e02da06eb0f Mon Sep 17 00:00:00 2001 From: AJ Rice <53190766+ajrice6713@users.noreply.github.com> Date: Wed, 11 Oct 2023 15:31:57 -0400 Subject: [PATCH 4/4] Update .github/workflows/listener.yml Co-authored-by: Cameron Koegel <53310569+ckoegel@users.noreply.github.com> --- .github/workflows/listener.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/listener.yml b/.github/workflows/listener.yml index 20d05e663..5339b0b15 100644 --- a/.github/workflows/listener.yml +++ b/.github/workflows/listener.yml @@ -32,7 +32,7 @@ jobs: - name: Open Pull Request if: steps.replace-specs-snippets.outputs.needs_pr run: | - gh pr create -B main -H Bandwidth:main $(if ${{ github.event.client_payload.draftPr }} ; then echo "-d" ; fi) -t '${{ github.event.client_payload.branchName }}' -b 'Update API specs from upstream api-specs repository. Opened By: @${{ github.event.client_payload.author }}' + gh pr create -B main $(if ${{ github.event.client_payload.draftPr }} ; then echo "-d" ; fi) -t '${{ github.event.client_payload.branchName }}' -b 'Update API specs from upstream api-specs repository. Opened By: @${{ github.event.client_payload.author }}' env: GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}