Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dkershner6/get-pull-request-action
This action fetches a pull request based on simple inputs for use in non pull request triggers
https://github.com/dkershner6/get-pull-request-action
github-actions nodejs
Last synced: 29 days ago
JSON representation
This action fetches a pull request based on simple inputs for use in non pull request triggers
- Host: GitHub
- URL: https://github.com/dkershner6/get-pull-request-action
- Owner: dkershner6
- License: mit
- Created: 2021-08-28T16:00:48.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-17T22:40:40.000Z (about 2 years ago)
- Last Synced: 2024-09-19T13:02:10.172Z (2 months ago)
- Topics: github-actions, nodejs
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get-pull-request-action
This action fetches a pull request based on simple inputs for use in non pull request triggers
## Usage
Simplest Possible Use (This works from an issue_comment trigger for a pull request):
```yml
- uses: dkershner6/get-pull-request-action@v1
id: get-pr
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: echo ${{ fromJSON(steps.get-pr.outputs.pr).title }} # Make sure to use the fromJSON filter
```Most Complicated Possible Use:
```yml
- uses: dkershner6/get-pull-request-action@v1
id: get-pr
with:
github-token: ${{ secrets.YOUR_PAT }} # PAT or similar required for cross-repo
repo-owner: "someotherrepoowner"
repo-name: "someotherreponame"
pull-number: 7
- run: echo ${{ fromJSON(steps.get-pr.outputs.pr).title }} # Make sure to use the fromJSON filter
```