Supported event triggers:
issue_comment
merge_group
push
pull_request
(of course!)
View: Usage Examples · In/Output Parameters · Security · Changelog · License
on:
issue_comment:
merge_group:
push:
jobs:
test:
runs-on: ubuntu-latest
permissions:
pull-requests: read # Required to get PR data.
steps:
- id: pr
uses: op5dev/current-pr@v1
- run: |
echo "PR number ${{ steps.pr.outputs.number }}"
echo "PR branch ${{ steps.pr.outputs.branch }}"
Name | Description |
---|---|
token |
Specify a GitHub token (not required). Default: ${{ github.token }} . |
Name | Description |
---|---|
branch |
Current PR branch. |
number |
Current PR number. |
View security policy and reporting instructions.
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.
- Create a PR to contribute changes you'd like to see.
- Raise an issue to propose changes or report unexpected behavior.
- Open a discussion to discuss broader topics or questions.
- Become a stargazer if you find this project useful.
- Workflow event triggers like
workflow_dispatch
, andworkflow_run
(fork) will be added in upcoming releases.
- This project is licensed under the permissive Apache License 2.0.
- All works herein are my own, shared of my own volition, and contributors.
- Copyright 2016-2025 Rishav Dhar — All wrongs reserved.