diff --git a/.github/workflows/review-pr.yml b/.github/workflows/review-pr.yml index 08d26b4..c136bfb 100644 --- a/.github/workflows/review-pr.yml +++ b/.github/workflows/review-pr.yml @@ -60,7 +60,10 @@ jobs: ( github.event_name == 'issue_comment' && github.event.issue.pull_request && - github.event.comment.body == '/oz-review' && + ( + github.event.comment.body == '/warp-agent-review' || + github.event.comment.body == '/oz-review' + ) && github.actor != 'github-actions[bot]' ) runs-on: ubuntu-latest diff --git a/README.md b/README.md index c43262f..e25cb52 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,7 @@ _Consumer Template_: [consumer-workflows/review-pr.yml](consumer-workflows/revie **Usage:** Runs automatically when a Pull Request first becomes reviewable: either a non-draft Pull Request is opened, or an existing draft Pull Request is marked ready for review. Comment -`/oz-review` on the Pull Request to request another review. +`/warp-agent-review` on the Pull Request to request another review. **Description:** Analyzes the PR diff and provides code review feedback. Each re-review focuses on changes since the previous review. @@ -197,8 +197,8 @@ changes since the previous review. improvements. - A general summary comment if applicable. -**When to use:** Get immediate feedback on code changes before human review, then run `/oz-review` -again after addressing feedback or adding commits. +**When to use:** Get immediate feedback on code changes before human review, then run +`/warp-agent-review` again after addressing feedback or adding commits. ### Auto Fix Issue diff --git a/consumer-workflows/review-pr.yml b/consumer-workflows/review-pr.yml index 8186eb2..a9f1f87 100644 --- a/consumer-workflows/review-pr.yml +++ b/consumer-workflows/review-pr.yml @@ -10,7 +10,7 @@ # - Runs automatically when a Pull Request first becomes reviewable: # - A non-draft Pull Request is opened. # - An existing draft Pull Request is marked ready for review. -# - Comment `/oz-review` on the Pull Request to request another review. +# - Comment `/warp-agent-review` on the Pull Request to request another review. # # Description: # - Analyzes the PR diff and provides code review feedback. @@ -25,7 +25,7 @@ # - A general summary comment if applicable. # # When to use: -# - Use this to get immediate feedback on code changes before human review, then run `/oz-review` +# - Use this to get immediate feedback on code changes before human review, then run `/warp-agent-review` # again after addressing feedback or adding commits. # ====================================================================================== name: Auto PR Review diff --git a/examples/review-pr.yml b/examples/review-pr.yml index 07a0464..2f21aac 100644 --- a/examples/review-pr.yml +++ b/examples/review-pr.yml @@ -5,7 +5,7 @@ # - Runs automatically when a Pull Request first becomes reviewable: # - A non-draft Pull Request is opened. # - An existing draft Pull Request is marked ready for review. -# - Comment `/oz-review` on the Pull Request to request another review. +# - Comment `/warp-agent-review` on the Pull Request to request another review. # # Description: # - Analyzes the PR diff and provides code review feedback. @@ -20,7 +20,7 @@ # - A general summary comment if applicable. # # When to use: -# - Use this to get immediate feedback on code changes before human review, then run `/oz-review` +# - Use this to get immediate feedback on code changes before human review, then run `/warp-agent-review` # again after addressing feedback or adding commits. # ====================================================================================== name: Auto PR Review @@ -33,12 +33,17 @@ on: jobs: review_pr: + # '/oz-review' is the old command name, kept as an unadvertised alias so existing + # muscle memory and bookmarked comments keep working. if: | (github.event_name == 'pull_request' && github.event.pull_request.draft == false) || ( github.event_name == 'issue_comment' && github.event.issue.pull_request && - github.event.comment.body == '/oz-review' && + ( + github.event.comment.body == '/warp-agent-review' || + github.event.comment.body == '/oz-review' + ) && github.actor != 'github-actions[bot]' ) runs-on: ubuntu-latest