{"id":45756666,"url":"https://github.com/bcgov/action-get-pr","last_synced_at":"2026-02-25T21:06:12.095Z","repository":{"id":211014874,"uuid":"727985254","full_name":"bcgov/action-get-pr","owner":"bcgov","description":"Get PR number for merge and queue events","archived":false,"fork":false,"pushed_at":"2025-12-02T07:05:31.000Z","size":42,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-04T21:58:07.821Z","etag":null,"topics":["actions","bcgov","bcgov-wlrs","github-actions","pull-request","pull-requests","wlrs"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/bcgov.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-06T01:35:00.000Z","updated_at":"2025-12-02T07:05:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b92b68f-a15e-4bbe-8dae-42f2dd14e34c","html_url":"https://github.com/bcgov/action-get-pr","commit_stats":null,"previous_names":["bcgov-nr/action-get-pr","bcgov/action-get-pr"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bcgov/action-get-pr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Faction-get-pr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Faction-get-pr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Faction-get-pr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Faction-get-pr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcgov","download_url":"https://codeload.github.com/bcgov/action-get-pr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Faction-get-pr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29839994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T20:42:33.054Z","status":"ssl_error","status_checked_at":"2026-02-25T20:42:21.322Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["actions","bcgov","bcgov-wlrs","github-actions","pull-request","pull-requests","wlrs"],"created_at":"2026-02-25T21:06:11.509Z","updated_at":"2026-02-25T21:06:12.087Z","avatar_url":"https://github.com/bcgov.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Badges --\u003e\n[![Issues](https://img.shields.io/github/issues/bcgov/action-get-pr)](/../../issues)\n[![Pull Requests](https://img.shields.io/github/issues-pr/bcgov/action-get-pr)](/../../pulls)\n[![MIT License](https://img.shields.io/github/license/bcgov/action-get-pr.svg)](/LICENSE)\n[![Lifecycle](https://img.shields.io/badge/Lifecycle-Experimental-339999)](https://github.com/bcgov/repomountie/blob/master/doc/lifecycle-badges.md)\n\n# Get PR Number - Merges and Queues\n\nPR numbers are easy to come by in PRs, but passing those same numbers to releases, merge queues and PR-backed merges can get tricky. This action makes that convenient in the following cases:\n* PR merge queues\n* Merged PR workflows\n* Release events (finds the most recently merged PR)\n* PRs themselves (just for consistency)\n\nThis process has been an integral part of PR-based workflows where images are promoted from development (PRs) to test/staging to production. It is also useful for release events where the most recent PR is tied to the release.\n\n# Usage\n\nThe build will return a PR number as output.\n\n```yaml\n- id: vars\n  uses: bcgov/action-get-pr@vX.Y.Z\n\n- name: Echo PR number\n  run: echo \"PR: ${{ steps.vars.outputs.pr }}\"\n```\n\n# Private Repositories\n\nPrivate repositories may need to provide a GitHub token.\n\n```yaml\n- id: vars\n  uses: bcgov/action-get-pr@vX.Y.Z\n  with:\n    token: ${{ secrets.GITHUB_TOKEN }}\n\n- name: Echo PR number\n  run: echo \"PR: ${{ steps.vars.outputs.pr }}\"\n```\n\n\u003c!-- # Acknowledgements\nThis Action is provided courtesy of Forestry Digital Services, part of the Government of British Columbia. --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcgov%2Faction-get-pr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcgov%2Faction-get-pr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcgov%2Faction-get-pr/lists"}