ddeath/pull-request-info-action
Github Action which returns Pull Request Information based on commit_sha. This is for scenarios when you need that information on main branch after PR is merged
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | The repository token, i.e. secrets.GITHUB_TOKEN | yes | — |
| commit_sha | Commit Sha for which you want to lookup PR information. If not provided github.sha will be used | no | — |
| only_merged | If true, discards all PRs which are not merged | — | true |
| target_branch | This will keep only PRs which were / will be merged to targetBranch | — | main |
| fail_on_missing_pr | Action will fail if no associated PRs which also match filtering option is found | — | true |
| return_full_information | Action will return full rest response from Github api if this is set to true. Otherwise custom processed fields will be returned | — | false |
Outputs
| name | description |
|---|---|
| pullRequests | List of PullRequests referencing specified commit and filter. Response has format of Github Api Rest response if return_full_information is set to true: https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#list-pull-requests-associated-with-a-commit |