Skip to content

feat(commands): add approve command for approving PRs - #1617

Merged
dyoshikawa merged 1 commit into
mainfrom
approve
May 11, 2026
Merged

feat(commands): add approve command for approving PRs#1617
dyoshikawa merged 1 commit into
mainfrom
approve

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

  • Add new approve command under .rulesync/commands/approve.md
  • Approves a target PR (specified PR number/URL, or the PR linked to the current branch) using gh pr review --approve
  • Verifies PR state (OPEN, not draft) before approving, and supports an optional approval comment via --body
  • Modeled on the existing merge-pr command for consistency; targets: ["*"] so it is generated for all supported tools

Test plan

  • Run /approve on the current branch and confirm the linked PR is approved
  • Run /approve <pr_number> and confirm the specified PR is approved
  • Confirm draft or non-open PRs are rejected before the approve call

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit 60d6da5 into main May 11, 2026
5 checks passed
@dyoshikawa
dyoshikawa deleted the approve branch May 11, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant