hirosi1900day/Fetch PR Details Between Merges
Retrieve pull requests, their SHAs, and authors between two specified merge commits.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token used for authentication with the GitHub API. | no | ${{ github.token }} |
| repo-owner | Owner of the repository (user or organization). | no | ${{ github.repository_owner }} |
| repo-name | Repository name where the action will run. | no | ${{ github.event.repository.name }} |
| from-sha | SHA of the first merge commit. | yes | — |
| to-sha | SHA of the second merge commit. | yes | — |
| include-pr-number | Include the pull request number in the output. | no | true |
| include-commit-sha | Include the commit SHA in the output. | no | true |
| include-title | Include the title of each pull request in the output. | no | true |
| include-author | Include the author of each pull request in the output. | no | true |
| include-merge-user | Include the user who merged each pull request in the output. | no | true |
| include-md-link | Include a markdown link to each pull request in the output. | no | true |
Outputs
| name | description |
|---|---|
| pr-details | JSON formatted string containing details of all pull requests between the specified commits. The format of each pull request object is as follows: - "number": The pull request number. - "title": The title of the pull request. - "sha": The commit SHA of the pull request. - "author": The GitHub username of the author. - "mergedAt": The timestamp of when the pull request was merged. Example output: values: [ { "number": 123, "title": "Fix login issue", "sha": "abcd1234efgh5678ijkl9101mnopqrstuvwx", "author": "johndoe", "merge_user": "johndoe", "pr_md_link": "<https://github.com/<organization>/<repository>/pull/123|Fix login issue>" }, { "number": 124, "title": "Add new feature for handling API requests", "sha": "wxyz5678abcd9101efgh2345ijklmnopqrst", "author": "janedoe", "merge_user": "janedoe", "pr_md_link": "<https://github.com/<organization>/<repository>/pull/124|Add new feature for handling API requests>" } ] |