github / github/gh-gei

`rewire-pipeline` Command Switches YAML Triggers

Aperta
#1,237 4 commenti 1 reazione 0 assegnatari Vedi su GitHub
bug
Lingua principale
C#
Stelle
478
Fork
146
Merge medio
7g 21h
PR unite (30g)
2

Descrizione

## Description
After running the `rewire-pipeline` against an ADO YAML pipeline, the pipeline options/triggers have been changed unexpectedly. Curling the definition content it looks like the `rewire-pipeline` command removes the pipeline definition `triggers` object and instead populates it with `options` (mine didn't have options before anyway). After manually unchecking the `Override the YAML continuous integration trigger from here` checkbox and curling the definition, the `triggers` object is repopulated.

![image](https://github.com/github/gh-gei/assets/141368382/25ed1099-7ddc-4aa2-bf89-a5064c8ae3cb)

**After Running Command**:
![image](https://github.com/github/gh-gei/assets/141368382/9c353db4-7abc-4603-ac18-e59d223791cd)

**After Manually Reverting/Unchecking**:
![image](https://github.com/github/gh-gei/assets/141368382/f6f1b385-7abd-43a5-bd24-51f2d185e1a2)

## Reproduction Steps
Run the `rewire-pipeline` command against an ADO YAML pipeline without any explicit pipeline definition trigger overrides. After running the command, edit the pipeline in ADO and navigate to the triggers. Notice the `Override the YAML continuous integration trigger from here` checkbox is checked.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con il comando `rewire-pipeline` e riproduci il problema su una pipeline YAML ADO senza override espliciti dei trigger. Confronta la definizione della pipeline prima e dopo il comando, concentrandoti sugli oggetti `triggers` e `options`; il lavoro è completato quando i trigger YAML rimangono intatti e la casella di override non viene abilitata inaspettatamente.

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

Valutazione

Stack tecnologico
azure, csharp
Ambito
ci-cd, cli, devops
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.