github / github/app

Use new commits instead ammend+force push

Aperta
#1,283 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Bugs Requests and ideas
Lingua principale
Nessun dato sulla lingua
Stelle
2.1k
Fork
153
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Feature summary

As title suggests

### What problem are you trying to solve?

Please make the agent prefer creating new commits instead of amending+force pushing changes. I noticed that when I ask the agent to remove some code, it consistently remove the code, amend the current commit and force push to the remote repo without additional user consent. Force push is a destructive operation that shouldn't be easily executed like this.

Here is an example of what happened. There is no user interaction between when I submitted the prompt in the screenshot and when the agent force push the amended commit.
Image

### Proposed solution

Make the agent create a new commit instead, or require user consent for executing force push.

### Workflow impact

_No response_

### Installation context

_No response_

### Additional context

_No response_

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

L’issue non indica file né test. Traccia prima il workflow dell’agente per commit amendment e force-push; ciò significa che l’agente crea nuovi commit per impostazione predefinita oppure richiede il consenso esplicito dell’utente prima di eseguire un force-push.

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

Valutazione

Stack tecnologico
git
Ambito
desktop, developer-experience
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.