github / github/gh-gei

`rewire-pipeline` Command Switches YAML Triggers

Open
#1,237 4 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
C#
Stars
478
Forks
146
Avg merge
7d 21h
Merged PRs (30d)
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.

Contributor guide

Open the contributing guide

Research direction

Start with the `rewire-pipeline` command and reproduce the issue against an ADO YAML pipeline without explicit trigger overrides. Compare the pipeline definition before and after the command, focusing on the `triggers` and `options` objects; done means the YAML triggers remain intact and the override checkbox is not enabled unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
ci-cd, cli, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.