jcantosz/Find Approved PR
Finds the first open pull request in a repository that has been approved and updates its branch
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GitHub token | no | — |
| github_app_id | GitHub App ID | no | — |
| github_private_key | GitHub Private Key | no | — |
| github_installation_id | GitHub Installation ID | no | — |
| api_url | GitHub API URL | no | https://api.github.com |
| repo | Target repository in format owner/repo | no | — |
| base_branch | Filter PRs by base branch name (e.g., main, master) | no | main |
Outputs
| name | description |
|---|---|
| pr_number | The number of the first approved PR found |
| pr_title | The title of the approved PR |
| pr_url | The URL to the approved PR |
| branch_name | The branch name of the approved PR |
| branch_updated | Whether the branch was updated (true) or not (false) |
| update_commit_sha | The SHA of the merge commit if branch was updated |
| has_conflicts | Whether there were merge conflicts when trying to update the branch |