From a45ff26a6514a54fcde1cd5bd81851d73eb1ecbd Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 20 Jan 2025 16:20:22 -0500 Subject: [PATCH 1/6] Test bot reviewing --- .github/workflows/test-review.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/test-review.yml diff --git a/.github/workflows/test-review.yml b/.github/workflows/test-review.yml new file mode 100644 index 0000000..4a2f2e9 --- /dev/null +++ b/.github/workflows/test-review.yml @@ -0,0 +1,13 @@ +name: Test +on: + pull_request: + +jobs: + review: + name: Review + runs-on: ubuntu-latest + steps: + - name: Check auth + run: gh auth status + - name: Leave review + run: echo -e 'This is a bot review.\n\nIt has some content.' | gh pr review --request-changes --body-file - From 2017a854baa6f753ef2c52485cfd1f6bd730c93f Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 20 Jan 2025 16:21:48 -0500 Subject: [PATCH 2/6] Token --- .github/workflows/test-review.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test-review.yml b/.github/workflows/test-review.yml index 4a2f2e9..99e734a 100644 --- a/.github/workflows/test-review.yml +++ b/.github/workflows/test-review.yml @@ -8,6 +8,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Check auth + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh auth status - name: Leave review + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: echo -e 'This is a bot review.\n\nIt has some content.' | gh pr review --request-changes --body-file - From f6d965f183efdcee7ba6421cf6fcf8aa795cbbc5 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 20 Jan 2025 16:22:38 -0500 Subject: [PATCH 3/6] set issue --- .github/workflows/test-review.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-review.yml b/.github/workflows/test-review.yml index 99e734a..1d59d25 100644 --- a/.github/workflows/test-review.yml +++ b/.github/workflows/test-review.yml @@ -14,4 +14,5 @@ jobs: - name: Leave review env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: echo -e 'This is a bot review.\n\nIt has some content.' | gh pr review --request-changes --body-file - + ISSUE: ${{ github.event.issue.html_url }} + run: echo -e 'This is a bot review.\n\nIt has some content.' | gh pr review "$ISSUE" --request-changes --body-file - From 0b090ba85dde8892e43cc2a7520ac7f42cb2df93 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 20 Jan 2025 16:23:31 -0500 Subject: [PATCH 4/6] set pr url --- .github/workflows/test-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-review.yml b/.github/workflows/test-review.yml index 1d59d25..04d40c8 100644 --- a/.github/workflows/test-review.yml +++ b/.github/workflows/test-review.yml @@ -14,5 +14,5 @@ jobs: - name: Leave review env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE: ${{ github.event.issue.html_url }} + ISSUE: ${{ github.event.pull_request.html_url }} run: echo -e 'This is a bot review.\n\nIt has some content.' | gh pr review "$ISSUE" --request-changes --body-file - From b2bd4f5cb335ab99e64611337b63c065613807e0 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 20 Jan 2025 16:32:03 -0500 Subject: [PATCH 5/6] ??? --- .github/workflows/test-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-review.yml b/.github/workflows/test-review.yml index 04d40c8..977db98 100644 --- a/.github/workflows/test-review.yml +++ b/.github/workflows/test-review.yml @@ -15,4 +15,4 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ISSUE: ${{ github.event.pull_request.html_url }} - run: echo -e 'This is a bot review.\n\nIt has some content.' | gh pr review "$ISSUE" --request-changes --body-file - + run: gh pr review "$ISSUE" --request-changes From 8522c3e485fd63e3a38e2bc5396b0f0bde394b62 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 20 Jan 2025 16:33:03 -0500 Subject: [PATCH 6/6] ???2 --- .github/workflows/test-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-review.yml b/.github/workflows/test-review.yml index 977db98..12eb36d 100644 --- a/.github/workflows/test-review.yml +++ b/.github/workflows/test-review.yml @@ -15,4 +15,4 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ISSUE: ${{ github.event.pull_request.html_url }} - run: gh pr review "$ISSUE" --request-changes + run: gh pr review "$ISSUE" --request-changes --body "!"