Allow pushing branches to forks

Aperta
#125 1 commento 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
git, github, go
Ambito
cli, devtools

Direzione di ricerca

Inizia dalle sezioni del README che descrivono --repo, la creazione dei branch, il push e la creazione delle pull request, quindi segui la gestione di queste opzioni nella CLI. Determina in che modo un --push-repo separato influirebbe sia sulla destinazione del push sia sul repository padre della pull request. Il lavoro è completo quando il comando documentato può eseguire il push del branch nel fork aprendo al contempo la PR verso il repository padre.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Describe the solution you'd like
I contribute to various repositories where the development model involves forking a repo, pushing to the fork, and then making a PR back to the parent repo. In this situation my forked repo's main branch is rarely up-to-date because the local main branch is pointing to the parent repo's version of the branch, i.e. locally I have main -> upstream/main and origin/main lags arbitrarily far behind upstream/main. In those scenarios, I would like to be able to point git-xargs to push my new branch to a different repo than the repository from which it was cloned. I envision something like:

git-xargs \
  --branch-name test-branch \
  --repo parent/repo \
  --push-repo forked/repo \
  --commit-message "Create hello-world.txt" \
  touch hello-world.txt

Apologies in advance if there's a way to do this that I'm missing! I've read through the README and glanced through issues, and don't see anything similar discussed anywhere.

Describe alternatives you've considered
Keeping the main branch on my forks would partially address this problem by ensuring that I am making changes from the same state as the parent repo. However, you would still need a way for the created PRs to point back to the parent repo rather than the main branch on the fork, which IIUC requires some additional information no matter what.

Additional context
None

Lingua principale
Go
Stelle
1.1k
Fork
75
Merge medio
22h 5m
PR unite (30g)
4

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di gruntwork-io/git-xargs

Tutte le issue di gruntwork-io/git-xargs

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.