github / github/gh-gei

`rewire-pipeline` Command Switches YAML Triggers

Ouverte
#1,237 4 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
bug
Langage dominant
C#
Étoiles
478
Forks
146
Merge moyen
7 j 21 h
PR mergées (30 j)
2

Description

## 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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par la commande `rewire-pipeline` et reproduisez le problème sur un pipeline YAML ADO sans remplacements explicites des triggers. Comparez la définition du pipeline avant et après la commande, en vous concentrant sur les objets `triggers` et `options` ; c’est terminé lorsque les triggers YAML restent intacts et que la case à cocher de remplacement n’est pas activée de manière inattendue.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
azure, csharp
Domaine
ci-cd, cli, devops
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
38/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.