{"id":15468270,"url":"https://github.com/winebarrel/pru","last_synced_at":"2025-04-22T11:28:29.740Z","repository":{"id":66256658,"uuid":"588805571","full_name":"winebarrel/pru","owner":"winebarrel","description":"pru is a tool that updates pull requests branch from the base branch that contains specified files.","archived":false,"fork":false,"pushed_at":"2025-04-12T08:28:47.000Z","size":145,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T09:34:09.166Z","etag":null,"topics":["github","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/winebarrel.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":"2023-01-14T04:06:55.000Z","updated_at":"2025-04-12T08:28:50.000Z","dependencies_parsed_at":"2024-02-12T08:20:28.265Z","dependency_job_id":"2de7b6cc-3d6a-474d-94d3-9c410625479e","html_url":"https://github.com/winebarrel/pru","commit_stats":{"total_commits":69,"total_committers":2,"mean_commits":34.5,"dds":0.4492753623188406,"last_synced_commit":"6a40dd34de81b3c5d2a05a86341152fb3dd3978d"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fpru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fpru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fpru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fpru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winebarrel","download_url":"https://codeload.github.com/winebarrel/pru/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250231237,"owners_count":21396430,"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":["github","golang"],"created_at":"2024-10-02T01:40:33.634Z","updated_at":"2025-04-22T11:28:29.705Z","avatar_url":"https://github.com/winebarrel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pru\n\npru is a tool that updates pull requests branch from the base branch that contains specified files.\n\ncf. https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#update-a-pull-request-branch\n\n```mermaid\ngitGraph\n  commit\n  commit\n  branch pr/foo\n  commit\n  commit\n  commit\n  checkout main\n  branch pr/bar\n  commit\n  commit\n  commit\n  checkout main\n  merge pr/foo tag:\"merge pull request\"\n  commit\n  checkout pr/bar\n  merge main tag:\"auto update by pru\"\n  checkout main\n  commit\n```\n\n## Usage\n\n```\nUsage: pru [OPTION] OWNER/REPO PATTERNS...\n  -bases value\n    \tbase branches to update (default \"main,master\")\n  -dry-run\n    \tdry run\n  -ignore-labels value\n    \tlabels for pull requests that do not update\n  -token string\n    \tGitHub access token. use $GITHUB_TOKEN env\n  -version\n    \tprint version\n```\n\n```\n$ pru my-owner/my-repo '**/*.go'\nupdate https://github.com/my-owner/my-repo/pull/123\nupdate https://github.com/my-owner/my-repo/pull/125\nupdate https://github.com/my-owner/my-repo/pull/127\n...\n```\n\n## Installation\n\n```\nbrew install winebarrel/pru/pru\n```\n\n## GitHub action\n\nsee https://github.com/winebarrel/pru-action\n\n### Example\n\nsee https://github.com/winebarrel/pru-example\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fpru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinebarrel%2Fpru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fpru/lists"}