{"id":18343595,"url":"https://github.com/uasi/gh-blame-pr","last_synced_at":"2026-04-29T15:32:33.997Z","repository":{"id":251637339,"uuid":"837989782","full_name":"uasi/gh-blame-pr","owner":"uasi","description":"GitHub CLI extension to browse the PR that last modified a file","archived":false,"fork":false,"pushed_at":"2024-08-08T02:19:01.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T13:51:06.431Z","etag":null,"topics":["cli","gh-extension","github"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uasi.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-04T16:19:37.000Z","updated_at":"2025-02-01T19:02:21.000Z","dependencies_parsed_at":"2024-08-07T12:45:58.298Z","dependency_job_id":"a19e9eb3-ff45-42fc-b9f8-588c77a86580","html_url":"https://github.com/uasi/gh-blame-pr","commit_stats":null,"previous_names":["uasi/gh-blame-pr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uasi%2Fgh-blame-pr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uasi%2Fgh-blame-pr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uasi%2Fgh-blame-pr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uasi%2Fgh-blame-pr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uasi","download_url":"https://codeload.github.com/uasi/gh-blame-pr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119403,"owners_count":21050754,"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":["cli","gh-extension","github"],"created_at":"2024-11-05T20:36:34.936Z","updated_at":"2026-04-29T15:32:33.968Z","avatar_url":"https://github.com/uasi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `gh-blame-pr`\n\nA [GitHub CLI](https://github.com/cli/cli) extension to open the most recent pull request that modified the specified file.\n\n`gh-blame-pr` uses `git blame` under the hood and extract the pull request numbers included in the commit messages.\n\n## Dependencies\n\n- Ruby \\\u003e= 2.7\n- [`git when-merged`](https://github.com/mhagger/git-when-merged)\n\n## Installation\n\n```\ngh extension install uasi/gh-blame-pr\n```\n\n## Usage\n\n```\ngh blame-pr [\u003coptions\u003e] [--] \u003cpath\u003e\n```\n\n## Options\n\n- `--ignore-squash`: Disable heuristics for detecting squash merge\n- `-L \u003crange\u003e`: Blame only the line range (can be specified multiple times; see [`git help blame`](https://git-scm.com/docs/git-blame#Documentation/git-blame.txt--Lltstartgtltendgt) for details)\n- `-l`, `--log`: Print the log of the merge commit and the commit that actually modified the file\n- `-n \u003cnumber\u003e`, `--max-count=\u003cnumber\u003e`: Open the `\u003cnumber\u003e` most recent pull requests (defaults to 1)\n- `-m \u003cbranch\u003e`, `--merged-to=\u003cbranch\u003e`: The branch name into which the pull request might have merged to (defaults to HEAD; can be specified multiple times)\n- `-p`, `--print`, `--no-browser`: Print pull request URL instead of opening the browser\n\n## Examples\n\n```\n% git clone --branch=v2.54.0 https://github.com/cli/cli.git\n% cd cli\n\n% gh blame-pr cmd/gh/main.go\nOpening github.com/cli/cli/issues/8449 in your browser.\n\n% gh blame-pr --max-count=2 --no-browser --log cmd/gh/main.go\nhttps://github.com/cli/cli/issues/8449\n\ncommit 0f39935cc17c687232776ad4a4db2172559f2a86\n(snip)\n\n    Merge pull request #8449 from cli/wm/remove-redundant-err\n    \n    Remove redundant error on migration failure\n\ncommit cceec8e0d015648c3930f309759216ea5351e1d1\n(snip)\n\n    Remove redundant error on migration failure\n\nhttps://github.com/cli/cli/issues/8425\n\ncommit 54d56cab3a0882b43ac794df59924dc3f93bb75c\n(snip)\n\n    Merge pull request #8425 from cli/wm/multi-account-ux-rebase\n    \n    Support multiple accounts on a single host\n\ncommit eb771aecc9eaf88e0dfdc302b516a7801714f6f8\n(snip)\n\n    Address PR comments\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuasi%2Fgh-blame-pr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuasi%2Fgh-blame-pr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuasi%2Fgh-blame-pr/lists"}