https://github.com/nealwp/prx.sh
Apply changes across multiple GitHub repos
https://github.com/nealwp/prx.sh
automation github
Last synced: 3 months ago
JSON representation
Apply changes across multiple GitHub repos
- Host: GitHub
- URL: https://github.com/nealwp/prx.sh
- Owner: nealwp
- Created: 2023-10-21T17:00:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-21T18:24:46.000Z (over 2 years ago)
- Last Synced: 2025-03-23T02:43:21.457Z (over 1 year ago)
- Topics: automation, github
- Language: Shell
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prx.sh
Apply changes across multiple GitHub repositories
## About
Ever needed the same change in a bunch of repos? Look no further. Save yourself some time with prx.sh. For every repo in a list, this will:
* Clone the repo into a temp folder
* Checkout to a new branch
* Make the desired change
* Commit and push the changes
* Open a PR to merge to a target branch
* Clean up the temp folder
## Prereqs
* Ensure `gh` CLI is installed
* Run `gh auth login` and authenticate with your GitHub account
## How to Use
1. Clone this repo
```bash
git clone git@github.com:nealwp/prx.sh.git
```
2. Update the repo list with the repos you want to affect. This list should be newline-delimited, not comma-delimited.
```bash
REPOS=(
"owner/repo1"
"owner/repo2"
"owner/repo3"
)
```
3. Update the branch name, target branch, commit message, PR title, and PR body to the desired values
```bash
BRANCH_NAME="example-branch-name"
TARGET_BRANCH="main"
COMMIT_MESSAGE="example commit message"
PR_TITLE="example pr title"
PR_BODY="example pr body"
```
4. Add whatever changes you want applied to each repo
5. Save `prx.sh` and run `./prx.sh`