From 72841ed0e691fc53f6d4615446ae04dd79f0222a Mon Sep 17 00:00:00 2001 From: Nancy Huang <205217630+naanci@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:03:59 -0500 Subject: [PATCH 1/4] 801: 1st push --- .github/workflows/ai-review.yml | 44 ++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 935595f24..d7251ef17 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,3 +161,45 @@ jobs: github_action_config.auto_review: "true" github_action_config.auto_describe: "true" github_action_config.auto_improve: "true" + + 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 }} \ No newline at end of file From 5db1014328c4d9feb05a1fb1f144e679fcb68ea4 Mon Sep 17 00:00:00 2001 From: Nancy Huang <205217630+naanci@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:14:18 -0500 Subject: [PATCH 2/4] 801: 2nd commit push test --- .github/workflows/ai-review.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index d7251ef17..deb7ebb23 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -202,4 +202,5 @@ jobs: with: prId: ${{ github.event.number }} message: "/improve" - token: ${{ env.GH_PAT }} \ No newline at end of file + token: ${{ env.GH_PAT }} +#adding line to test for 2nd pr push From 8252102f06c6e8fae748dd5c650cf45bb1b0eb2b Mon Sep 17 00:00:00 2001 From: Nancy Huang <205217630+naanci@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:47:51 -0500 Subject: [PATCH 3/4] 801: 3rd test --- .github/workflows/ai-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index deb7ebb23..a9073e1d5 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -203,4 +203,4 @@ jobs: prId: ${{ github.event.number }} message: "/improve" token: ${{ env.GH_PAT }} -#adding line to test for 2nd pr push + \ No newline at end of file From 67ecd7a13fe7780f2f0b4dbaa91b93d8bd755e32 Mon Sep 17 00:00:00 2001 From: Nancy Huang <205217630+naanci@users.noreply.github.com> Date: Thu, 5 Mar 2026 09:27:18 -0500 Subject: [PATCH 4/4] 801: update persistent_comment --- .github/workflows/ai-review.yml | 51 +++------------------------------ 1 file changed, 4 insertions(+), 47 deletions(-) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index a9073e1d5..3591435b7 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.action != 'synchronize') || (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_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 }} @@ -106,7 +106,7 @@ jobs: The repository follows strict style guidelines, so please use the listed items below to ensure code quality & correctness. ${{ steps.styleguide.outputs.context }} - pr_reviewer.persistent_comment: "false" + pr_reviewer.persistent_comment: "true" pr_reviewer.enable_review_labels_security: "false" pr_reviewer.enable_review_labels_effort: "false" pr_reviewer.final_update_message: "false" @@ -118,7 +118,7 @@ jobs: The repository follows strict style guidelines, so please use the listed items below to ensure code quality & correctness. ${{ steps.styleguide.outputs.context }} - pr_description.publish_description_as_comment_persistent: "false" + pr_description.publish_description_as_comment_persistent: "true" pr_description.publish_labels: "false" pr_description.add_original_user_description: "false" pr_code_suggestions.commitable_code_suggestions: "true" @@ -126,7 +126,7 @@ jobs: pr_code_suggestions.focus_only_on_problems: "true" pr_code_suggestions.enable_help_text: "false" pr_code_suggestions.enable_chat_text: "false" - pr_code_suggestions.persistent_comment: "false" + pr_code_suggestions.persistent_comment: "true" pr_code_suggestions.max_history_len: "10" pr_code_suggestions.publish_output_no_suggestions: "true" pr_code_suggestions.extra_instructions: | @@ -161,46 +161,3 @@ jobs: github_action_config.auto_review: "true" github_action_config.auto_describe: "true" github_action_config.auto_improve: "true" - - 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 }} - \ No newline at end of file