Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/funbeedev/automate-pr-fetch
Script to automatically fetch a PR from an upstream using the PR #ID. Then create and switch to branch containing PR code
https://github.com/funbeedev/automate-pr-fetch
Last synced: about 1 month ago
JSON representation
Script to automatically fetch a PR from an upstream using the PR #ID. Then create and switch to branch containing PR code
- Host: GitHub
- URL: https://github.com/funbeedev/automate-pr-fetch
- Owner: funbeedev
- Created: 2021-09-30T22:54:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-24T23:37:18.000Z (about 3 years ago)
- Last Synced: 2023-10-26T13:51:35.068Z (about 1 year ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About
This allows a quick way to retrieve the code submitted as a pull request in a forked repository. The local repository must be configured with the remote repository upstream.
This script takes the repository path and PR number as inputs, then creates a new branch containing the PR code then switches to the branch.## How to use
Enter the PR number and auto fetch PR branch from repo. Then switch to the branch.
Steps:
- ensure upstream is configured in local repo
- run python script
- enter directory where repo is located
- enter PR numberResult:
- The script will create and switch to a new branch containing PR code
- Example: if the PR number is `123` a branch will be created called `pr-123` containing the code submitted for PR 123