{"id":17177864,"url":"https://github.com/sideshowbarker/gpr","last_synced_at":"2025-04-13T17:10:07.888Z","repository":{"id":76138064,"uuid":"71845386","full_name":"sideshowbarker/gpr","owner":"sideshowbarker","description":"🏁 Easily check out pull-request branches by PR number or URL","archived":false,"fork":false,"pushed_at":"2024-02-26T12:22:39.000Z","size":2,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T17:10:01.299Z","etag":null,"topics":["checkout","cli","code-review","command-line","command-line-app","commandline","dev","devtools","git","github","github-api","maintainer-tools","productivity","productivity-booster","pull-request","repository","repository-tools","repository-utilities","review-tools","utility"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sideshowbarker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-10-25T00:55:06.000Z","updated_at":"2025-02-01T18:54:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3c2270d-5a22-454e-9d83-7e7861c04420","html_url":"https://github.com/sideshowbarker/gpr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sideshowbarker%2Fgpr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sideshowbarker%2Fgpr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sideshowbarker%2Fgpr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sideshowbarker%2Fgpr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sideshowbarker","download_url":"https://codeload.github.com/sideshowbarker/gpr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750107,"owners_count":21155686,"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":["checkout","cli","code-review","command-line","command-line-app","commandline","dev","devtools","git","github","github-api","maintainer-tools","productivity","productivity-booster","pull-request","repository","repository-tools","repository-utilities","review-tools","utility"],"created_at":"2024-10-15T00:05:20.072Z","updated_at":"2025-04-13T17:10:07.860Z","avatar_url":"https://github.com/sideshowbarker.png","language":"Python","readme":"This script is intended to make it easier for project maintainers to check\nout GitHub PR branches—including ones from external contributor forks—so\nthe maintainers can push changes to the branches and thus back to the PRs.\n\nIt takes as its sole argument either a GitHub PR URL or just a PR number,\nthen into the clone where it’s run, checks out the corresponding branch\nfrom the PR contributor’s fork.\n\nFed just a PR number, it assumes you have an `upstream` or `origin` remote,\nand uses that remote's URL to infer which repo the PR was submitted to.\n\nIf the remote has a GitHub SSH URL, then it uses an SSH URL for the fork,\nwhich assumes you have write access to the contributor's branch.\n\n### Checking out a PR branch\n\nIf your current directory is in a clone of the GitHub `whatwg/html` repo,\nto check out the branch for PR #1871:\n\n#### Example using just a PR number\n```bash\ngpr 1871\n```\n\n#### Example using a PR URL\n```bash\ngpr https://github.com/whatwg/html/pull/1871\n```\n\nYou should see output similar to this:\n\n```\nGetting data for whatwg/html PR #1871...\n\nAuthor: estark37 (Emily Stark)\nTitle:  Honor srcdoc document referrer policies when set\n\nPreparing for checkout into 'estark37-srcdoc-meta-referrer-policy' local branch.\nAdding new remote 'estark37'.\nFetching 'srcdoc-meta-referrer-policy' branch from remote 'estark37'.\nChecking out into 'estark37-srcdoc-meta-referrer-policy' local branch.\nSwitched to a new branch 'estark37-srcdoc-meta-referrer-policy'\nBranch estark37-srcdoc-meta-referrer-policy set up to track remote branch srcdoc-meta-referrer-policy from estark37.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsideshowbarker%2Fgpr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsideshowbarker%2Fgpr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsideshowbarker%2Fgpr/lists"}