Add --generate-notes to gh release edit
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
Inizia confrontando il percorso esistente di gh release create --generate-notes con gh release edit e rivedi la guida e i test del comando release. Traccia il modo in cui il comando di modifica aggiorna una release esistente, quindi verifica che --generate-notes chiami la Release Notes API di GitHub e utilizzi il body generato, preservando l'identità della release.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the feature or problem you’d like to solve
gh release create supports --generate-notes, but gh release edit does not.
This makes it unnecessarily difficult to refresh an existing draft release with newly generated notes. gh release create --generate-notes cannot update an existing release, while deleting and recreating the release changes its identity and discards associated state rather than updating it in place.
The current workaround requires calling the REST API separately and passing its output back to gh release edit:
gh api \
--method POST \
"repos/${GITHUB_REPOSITORY}/releases/generate-notes" \
--field tag_name="${tag_name}" \
--field target_commitish="${target_commitish}" \
--jq '.body' > release-notes.md
gh release edit "${release_tag}" --notes-file release-notes.md
Proposed solution
Support --generate-notes on gh release edit, consistently with gh release create:
gh release edit next --generate-notes
The command should generate release notes through GitHub’s Release Notes API and use the generated body when updating the existing release.
Additional context
Confirmed with gh version 2.98.0: gh release edit --help exposes --notes and --notes-file, but no option for generating notes.
- Lingua principale
- Go
- Stelle
- 46.3k
- Fork
- 9.1k
- Merge medio
- 1g 7h
- PR unite (30g)
- 76
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cli/cli
-
enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
more-info-needed needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
-
bug gh-pr priority-2
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
bug gh-pr priority-2
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
bug gh-auth priority-3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Issue simili
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
microsoft/agent-framework-go#1179 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
[Bug]: OLLAMA_KEEP_ALIVE="5m" / "24h" crashes Ollama embedding and vision models with ValueError Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
infiniflow/ragflow#20223 · 1 reazione ·
-
bug needs triage pkg/translator/faro
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
open-telemetry/opentelemetry-collector-contrib#51484 · 1 commento ·