From f2c4da36c83c4f3beab9ab14091c6b41c4137de6 Mon Sep 17 00:00:00 2001 From: Nancy Huang <205217630+naanci@users.noreply.github.com> Date: Wed, 4 Mar 2026 19:15:27 -0500 Subject: [PATCH 1/3] 801: pls work --- .github/workflows/ai-review.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 935595f24..b13d34e7e 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -161,3 +161,4 @@ jobs: github_action_config.auto_review: "true" github_action_config.auto_describe: "true" github_action_config.auto_improve: "true" + github_action_config.push_commands: '["/describe", "/review", "/improve"]' From fe55a806407d79b38004bf8092f3430e410f5929 Mon Sep 17 00:00:00 2001 From: Nancy Huang <205217630+naanci@users.noreply.github.com> Date: Wed, 4 Mar 2026 19:30:59 -0500 Subject: [PATCH 2/3] 801: testing 2nd commit push --- .github/workflows/ai-review.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index b13d34e7e..3737404cc 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -162,3 +162,4 @@ jobs: github_action_config.auto_describe: "true" github_action_config.auto_improve: "true" github_action_config.push_commands: '["/describe", "/review", "/improve"]' + #testing second commit push From 9c149a42d6775bfd7ec418192e8a74efaa6d6bbd Mon Sep 17 00:00:00 2001 From: Nancy Huang <205217630+naanci@users.noreply.github.com> Date: Wed, 4 Mar 2026 19:50:59 -0500 Subject: [PATCH 3/3] 801: testing for new commits incoming --- .github/workflows/ai-review.yml | 46 ++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 3737404cc..65e89a704 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -20,7 +20,7 @@ jobs: getPRHead: name: Get PR head SHA runs-on: ubuntu-latest - if: github.event_name == 'pull_request' || (github.event_name == 'issue_comment' && (github.event.comment.body == '/review' || github.event.comment.body == '/describe' || github.event.comment.body == '/improve')) + if: (github.event_name == 'pull_request' && github.event.action != 'synchronize') || (github.event_name == 'issue_comment' && (github.event.comment.body == '/review' || github.event.comment.body == '/describe' || github.event.comment.body == '/improve')) outputs: sha: ${{ steps.pr-head.outputs.result }} prId: ${{ github.event.number || github.event.issue.number }} @@ -161,5 +161,45 @@ jobs: github_action_config.auto_review: "true" github_action_config.auto_describe: "true" github_action_config.auto_improve: "true" - github_action_config.push_commands: '["/describe", "/review", "/improve"]' - #testing second commit push + + triggerAIOnSync: + name: Trigger AI review on push + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' && github.event.action == 'synchronize' + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup CI + uses: ./.github/composite/setup-ci + with: + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + + - name: Load secrets + uses: ./.github/composite/load-secrets + with: + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + UNLOAD_ENVIRONMENTS: ci + + - name: Post /review command + uses: ./.github/composite/send-message + with: + prId: ${{ github.event.number }} + message: "/review" + token: ${{ env.GH_PAT }} + + - name: Post /describe command + uses: ./.github/composite/send-message + with: + prId: ${{ github.event.number }} + message: "/describe" + token: ${{ env.GH_PAT }} + + - name: Post /improve command + uses: ./.github/composite/send-message + with: + prId: ${{ github.event.number }} + message: "/improve" + token: ${{ env.GH_PAT }}