github-samples / github-samples/pets-workshop

full-day workshop: Add the missing commit step before creating the feature pull request

Aperta Adatta ai principianti
#267 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

priority: P0
Lingua principale
Python
Stelle
80
Fork
161
Merge medio
31m
PR unite (30g)
1

Descrizione

Problem

In content/full-day/7-github-flow.md, learners create add-filter, run git add ., select Generate Commit Message, press Enter, and then run git push -u origin add-filter. No git commit command or Source Control commit action is provided.

Generating a commit message does not itself create a commit. The branch therefore has no commits ahead of main, and gh pr create can fail because there are no commits between the branches. This blocks the pull-request portion of the workshop.

Suggested change

Add an explicit commit action after generating the message, and verify the branch is ahead of main before pushing and opening the PR.

Acceptance criteria

  • Learners are told exactly where the generated message appears.
  • An explicit CLI or Source Control commit step is included.
  • The instructions verify the feature commit exists on add-filter.
  • git push publishes the feature commit.
  • gh pr create succeeds from a fresh workshop run.

Guida per i contributori

Apri la 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.

Direzione di ricerca

Apri content/full-day/7-github-flow.md e segui la sequenza del workshop relativa a add-filter, Generate Commit Message, git push e gh pr create. Aggiungi le istruzioni mancanti per eseguire il commit e le verifiche, in modo che una nuova esecuzione confermi che il commit della funzionalità sia avanti rispetto a main, lo esegua il push e crei correttamente la pull request.

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

Valutazione

Stack tecnologico
git, github
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
1/5
Tempo stimato
1-3 ore
Stato di attività
Attiva
Chiarezza
Specificata chiaramente
Idoneità per principianti
88/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.