Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

22 Commits

GitHub licenseGitHub release tag * GitHub repository stargazers

Get Current PR Data

Supported event triggers:

  • push
  • merge_group
  • issue_comment
  • workflow_dispatch
  • pull_request (of course!)


Usage Examples

on:
push:
merge_group:
issue_comment:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latestpermissions:
pull-requests: read # Required to get PR data.steps:
- id: pruses: op5dev/current-pr@v1
- run: | echo "PR number ${{ steps.pr.outputs.number }}" echo "PR branch ${{ steps.pr.outputs.branch }}"

Parameters

Inputs

NameDescription
tokenSpecify a GitHub token (not required).
Default: ${{ github.token }}.

Outputs

NameDescription
branchCurrent PR branch.
numberCurrent PR number.

Security

View security policy and reporting instructions.


Changelog

View all notable changes to this project in Keep a Changelog format, which adheres to Semantic Versioning.

Tip

All forms of contribution are very welcome and deeply appreciated for fostering open-source projects.


License

About

Get current PR data from any event trigger, including: issue_comment, merge_group, push, and workflow_dispatch.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors