github / github/gh-gei

`rewire-pipeline` Command Switches YAML Triggers

オープン
#1,237 コメント 4 件 リアクション 1 件 担当者 0 名 GitHub で見る
bug
主要言語
C#
スター
478
フォーク
146
平均マージ
7日 21時間
マージ済み PR(30日)
2

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

`rewire-pipeline` コマンドから始め、明示的なトリガーのオーバーライドがない ADO YAML パイプラインで問題を再現します。コマンド実行前後のパイプライン定義を比較し、`triggers` オブジェクトと `options` オブジェクトに注目します。YAML のトリガーがそのまま維持され、オーバーライドのチェックボックスが予期せず有効にならなければ完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, csharp
領域
ci-cd, cli, devops
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。