From 155f123456b59b4c018eb051f91fa94392913554 Mon Sep 17 00:00:00 2001 From: Ben Church Date: Thu, 16 Nov 2023 18:17:47 -0800 Subject: [PATCH 1/2] Benign docstring change --- .../connectors/pipelines/pipelines/airbyte_ci/test/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/test/commands.py b/airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/test/commands.py index f6073542ca2f..205498c331da 100644 --- a/airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/test/commands.py +++ b/airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/test/commands.py @@ -18,7 +18,7 @@ @pass_pipeline_context @click_ignore_unused_kwargs async def test(pipeline_context: ClickPipelineContext): - """Runs the tests for the given airbyte-ci package + """Runs the tests for the given airbyte-ci package. Args: pipeline_context (ClickPipelineContext): The context object. From 360b35b60bad58e632a9fa770221c8221e12db85 Mon Sep 17 00:00:00 2001 From: Ben Church Date: Thu, 16 Nov 2023 18:33:44 -0800 Subject: [PATCH 2/2] Handle static args --- .github/workflows/approve-and-merge-demo-dispatch.yml | 8 ++++++-- .github/workflows/slash-commands.yml | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/approve-and-merge-demo-dispatch.yml b/.github/workflows/approve-and-merge-demo-dispatch.yml index 5458e3cee8c4..e19d16e46698 100644 --- a/.github/workflows/approve-and-merge-demo-dispatch.yml +++ b/.github/workflows/approve-and-merge-demo-dispatch.yml @@ -9,12 +9,16 @@ jobs: checkFormat: runs-on: ubuntu-latest steps: + - name: Dump the client payload context + env: + PAYLOAD_CONTEXT: ${{ toJson(github.event.client_payload) }} + run: echo "$PAYLOAD_CONTEXT" - name: Wait for formatters to succeed id: wait-for-formatters uses: lewagon/wait-on-check-action@v1.3.1 with: - ref: ${{ github.ref }} - check-name: "Apply All Formatting Rules" + ref: ${{ github.event.client_payload.slash_command.args.named.gitref }} + check-name: "Check for formatting errors on" repo-token: ${{ secrets.GH_PAT_APPROVINGTON_OCTAVIA }} wait-interval: 30 - name: Comment if formatters failed diff --git a/.github/workflows/slash-commands.yml b/.github/workflows/slash-commands.yml index 8df9fb7d3342..90106603c9af 100644 --- a/.github/workflows/slash-commands.yml +++ b/.github/workflows/slash-commands.yml @@ -43,6 +43,10 @@ jobs: permission: write commands: | approve-and-merge-demo + static-args: | + repo=${{ steps.getref.outputs.repo }} + gitref=${{ steps.getref.outputs.ref }} + comment-id=${{ github.event.comment.id }} dispatch-type: repository - name: Edit comment with error message