Accept PR
Platform Note
- •macOS/Linux: run
.shscripts - •Windows: run
.ps1scripts with the same argument order
Run the accept-pr.sh script on macOS/Linux or accept-pr.ps1 on Windows to approve a pull request.
Arguments
| # | Name | Required | Description |
|---|---|---|---|
| 1 | organization | No | Azure DevOps organization (default: default_organization) |
| 2 | project | Yes | Project name or ID |
| 3 | repositoryId | Yes | Repository name or ID |
| 4 | pullRequestId | Yes | Pull request ID |
Examples
bash
# Approve PR 42 bash .github/skills/accept-pr/accept-pr.sh default_organization MyProject MyRepo 42
powershell
# Approve PR 42 (Windows) .\github\skills\accept-pr\accept-pr.ps1 default_organization MyProject MyRepo 42
Output
Returns JSON with the reviewer vote object including id, vote, and displayName.
A vote value of 10 means Approved.