Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/review-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions consumer-workflows/review-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
11 changes: 8 additions & 3 deletions examples/review-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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
Expand Down