{"id":19164449,"url":"https://github.com/cupy/backport","last_synced_at":"2026-03-05T10:32:05.627Z","repository":{"id":41363815,"uuid":"120292334","full_name":"cupy/backport","owner":"cupy","description":"Create backport PR automatically (tool for CuPy maintainers)","archived":false,"fork":false,"pushed_at":"2025-06-25T13:02:33.000Z","size":61,"stargazers_count":9,"open_issues_count":1,"forks_count":9,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-09-20T01:01:25.639Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/cupy.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,"zenodo":null},"funding":{"github":["cupy"]}},"created_at":"2018-02-05T10:52:43.000Z","updated_at":"2025-06-14T08:34:37.000Z","dependencies_parsed_at":"2024-02-08T21:01:43.907Z","dependency_job_id":"f97ecb67-cc82-463a-8100-7cc454fd2436","html_url":"https://github.com/cupy/backport","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cupy/backport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupy%2Fbackport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupy%2Fbackport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupy%2Fbackport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupy%2Fbackport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cupy","download_url":"https://codeload.github.com/cupy/backport/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupy%2Fbackport/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30119427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T09:35:22.236Z","status":"ssl_error","status_checked_at":"2026-03-05T09:35:20.028Z","response_time":93,"last_error":"SSL_read: 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":[],"created_at":"2024-11-09T09:22:05.102Z","updated_at":"2026-03-05T10:32:05.597Z","avatar_url":"https://github.com/cupy.png","language":"Python","funding_links":["https://github.com/sponsors/cupy"],"categories":[],"sub_categories":[],"readme":"# `backport` - Tool to semi-automate backport pull requests\n\nThis tool is used to backport pull requests labeled `to-be-backported`.\n\nGenerally backport PRs are [automatically created by GitHub Actions workflow](https://github.com/cupy/cupy/blob/main/.github/workflows/backport.yml).\nHowever, in case there is a conflict during the backport process, you need to run this tool in your local environment to manually resolve the conflict.\n\n## Prerequisites\n\n1. Create a [classic GitHub token with `public_repo` scope](https://github.com/settings/tokens/new?scopes=public_repo).\n2. Install PyGitHub (`pip install pygithub`).\n\n## Usage\n\nFor example, to backport PR #9876:\n\n```shell\n$ export BACKPORT_GITHUB_TOKEN=ghp_XXXXXXXXXXXXXXXXXXXXX\n$ python backport.py --repo cupy --pr 9876\n```\n\nIf there are conflicts during backport, the tool will stop and ask you to resolve the conflict manually.\nFollow the instructions shown.\n\nRun `python backport.py --help` for additional options.\n\n## How it works\n\nBasically it follows this procedure:\n\n1. Clone the target branch (e.g. `v13`) of the target repository (e.g. `cupy/cupy`) to a temporary directory.\n2. Create a local temporary branch and cherry-pick the merge commit of the original PR.\n3. Push it to the user repository.\n4. Make a backport PR.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcupy%2Fbackport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcupy%2Fbackport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcupy%2Fbackport/lists"}