Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamatama41/get-pr-number-action
A GitHub action to provide a consistent approach to get number of a pull request
https://github.com/kamatama41/get-pr-number-action
Last synced: 7 days ago
JSON representation
A GitHub action to provide a consistent approach to get number of a pull request
- Host: GitHub
- URL: https://github.com/kamatama41/get-pr-number-action
- Owner: kamatama41
- License: mit
- Created: 2020-01-04T07:32:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-23T04:56:08.000Z (about 1 year ago)
- Last Synced: 2023-10-23T05:29:15.821Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 295 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get-pr-number-action
A GitHub action to provide a consistent approach to get number of a pull request
## Example
```yaml
# This action works only on push and pull_request event
on: [push, pull_request]jobs:
get-pr-number:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get PR number
id: action
uses: kamatama41/get-pr-number-action@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Show the number
run: echo "PR number is ${{ steps.action.outputs.number }}"
```