{"id":24537436,"url":"https://github.com/op5dev/current-pr","last_synced_at":"2025-04-15T01:31:21.723Z","repository":{"id":270473819,"uuid":"910099170","full_name":"OP5dev/Current-PR","owner":"OP5dev","description":"Get current PR data from any event trigger, including: issue_comment, merge_group, push, and workflow_dispatch.","archived":false,"fork":false,"pushed_at":"2025-03-30T20:47:14.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-06T07:39:57.088Z","etag":null,"topics":["automation","cicd-pipeline","devops","github-actions"],"latest_commit_sha":null,"homepage":"https://OP5.dev/s/current-pr","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OP5dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["rdhar","op5dev"]}},"created_at":"2024-12-30T13:45:46.000Z","updated_at":"2025-03-30T20:47:16.000Z","dependencies_parsed_at":"2024-12-31T13:22:34.159Z","dependency_job_id":"b2a611e9-fcc9-4e66-9825-ea037809c69b","html_url":"https://github.com/OP5dev/Current-PR","commit_stats":null,"previous_names":["op5dev/current-pr"],"tags_count":4,"template":false,"template_full_name":"OP5dev/Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OP5dev%2FCurrent-PR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OP5dev%2FCurrent-PR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OP5dev%2FCurrent-PR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OP5dev%2FCurrent-PR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OP5dev","download_url":"https://codeload.github.com/OP5dev/Current-PR/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248989164,"owners_count":21194544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cicd-pipeline","devops","github-actions"],"created_at":"2025-01-22T14:12:39.505Z","updated_at":"2025-04-15T01:31:21.717Z","avatar_url":"https://github.com/OP5dev.png","language":null,"readme":"[![GitHub license](https://img.shields.io/github/license/op5dev/current-pr?logo=apache\u0026label=License)](LICENSE \"Apache License 2.0.\")\n[![GitHub release tag](https://img.shields.io/github/v/release/op5dev/current-pr?logo=semanticrelease\u0026label=Release)](https://github.com/op5dev/current-pr/releases \"View all releases.\")\n*\n[![GitHub repository stargazers](https://img.shields.io/github/stars/op5dev/current-pr)](https://github.com/op5dev/current-pr \"Become a stargazer.\")\n\n# Get Current PR Data\n\nSupported event triggers:\n\n- `push`\n- `merge_group`\n- `issue_comment`\n- `workflow_dispatch`\n- `pull_request` (of course!)\n\n\u003c/br\u003e\n\n### View: [Usage Examples](#usage-examples) · [In/Output Parameters](#parameters) · [Security](#security) · [Changelog](#changelog) · [License](#license)\n\n\u003c/br\u003e\n\n## Usage Examples\n\n```yaml\non:\n  push:\n  merge_group:\n  issue_comment:\n  workflow_dispatch:\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n\n    permissions:\n      pull-requests: read # Required to get PR data.\n\n    steps:\n      - id: pr\n        uses: op5dev/current-pr@v1\n      - run: |\n          echo \"PR number ${{ steps.pr.outputs.number }}\"\n          echo \"PR branch ${{ steps.pr.outputs.branch }}\"\n```\n\n\u003c/br\u003e\n\n## Parameters\n\n### Inputs\n\n| Name    | Description                                                                |\n| ------- | -------------------------------------------------------------------------- |\n| `token` | Specify a GitHub token (not required).\u003c/br\u003eDefault: `${{ github.token }}`. |\n\n\u003c/br\u003e\n\n### Outputs\n\n| Name     | Description        |\n| -------- | ------------------ |\n| `branch` | Current PR branch. |\n| `number` | Current PR number. |\n\n\u003c/br\u003e\n\n## Security\n\nView [security policy and reporting instructions](SECURITY.md).\n\n\u003c/br\u003e\n\n## Changelog\n\nView [all notable changes](https://github.com/op5dev/current-pr/releases \"Releases.\") to this project in [Keep a Changelog](https://keepachangelog.com \"Keep a Changelog.\") format, which adheres to [Semantic Versioning](https://semver.org \"Semantic Versioning.\").\n\n\u003e [!TIP]\n\u003e\n\u003e All forms of **contribution are very welcome** and deeply appreciated for fostering open-source projects.\n\u003e\n\u003e - [Create a PR](https://github.com/op5dev/current-pr/pulls \"Create a pull request.\") to contribute changes you'd like to see.\n\u003e - [Raise an issue](https://github.com/op5dev/current-pr/issues \"Raise an issue.\") to propose changes or report unexpected behavior.\n\u003e - [Open a discussion](https://github.com/op5dev/current-pr/discussions \"Open a discussion.\") to discuss broader topics or questions.\n\u003e - [Become a stargazer](https://github.com/op5dev/current-pr/stargazers \"Become a stargazer.\") if you find this project useful.\n\n\u003c/br\u003e\n\n## License\n\n- This project is licensed under the permissive [Apache License 2.0](LICENSE \"Apache License 2.0.\").\n- All works herein are my own, shared of my own volition, and [contributors](https://github.com/op5dev/current-pr/graphs/contributors \"Contributors.\").\n- Copyright 2016-present [Rishav Dhar](https://github.com/rdhar \"Rishav Dhar's GitHub profile.\") — All wrongs reserved.\n","funding_links":["https://github.com/sponsors/rdhar","https://github.com/sponsors/op5dev"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fop5dev%2Fcurrent-pr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fop5dev%2Fcurrent-pr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fop5dev%2Fcurrent-pr/lists"}