[workflow-patrol] Workflow drift detected: duplicate-issue-detector missing runtime setup pattern

オープン 初心者向け
#2,517 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, yaml
領域
ci-cd, tooling

調査の方向性

.github/workflows/gh-aw-duplicate-issue-detector.md から始め、その import、workflow_call.inputs、ステップを、issue で挙げられている3つのサンプル workflow と比較します。ランタイム設定の import、setup-commands input、ガード付きのセットアップステップを Prescan issue index の前に追加します。生成された workflow の整合性を確認するため、compile と lint を再実行します。

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

説明

Findings

1. gh-aw-duplicate-issue-detector.md is the only workflow source missing the runtime-setup + setup-commands pattern

Deviating workflow

  • .github/workflows/gh-aw-duplicate-issue-detector.md

    • Imports block has no gh-aw-fragments/runtime-setup.md (lines 4-10)
    • workflow_call.inputs has no setup-commands input (lines 21-51)
    • steps begins directly with Prescan issue index instead of the standard Repo-specific setup step (line 76)

Majority pattern

  • 53/54 gh-aw-*.md sources include all three:

    1. runtime-setup fragment import
    2. setup-commands input
    3. Repo-specific setup step
  • Example workflows following the pattern:

    • .github/workflows/gh-aw-issue-triage.md (lines 8, 39, 98)
    • .github/workflows/gh-aw-pr-review.md (lines 7, 40, 99)
    • .github/workflows/gh-aw-create-comment-on-issue.md (lines 7, 46, 87)

Why this looks like drift

  • This repository has standardized on this structure across nearly all workflow sources.
  • The outlier appears to have missed that refactor and now differs from peers in the same workflow family.

Suggested fix

  • Update .github/workflows/gh-aw-duplicate-issue-detector.md to match the common structure:

    • add gh-aw-fragments/runtime-setup.md to imports
    • add workflow_call.inputs.setup-commands
    • add the standard Repo-specific setup step (guarded on inputs.setup-commands != '') before Prescan issue index

Suggested Actions

  • Add runtime-setup import to gh-aw-duplicate-issue-detector.md
  • Add setup-commands workflow input
  • Add Repo-specific setup step before prescan
  • Re-run compile/lint to verify generated workflow consistency

Generated by Internal: Workflow Patrol · copilot · gpt53codex · 157.6 AIC · ⌖ 5.06 AIC · ⊞ 15.7K · ◷

  • expires on Nov 23, 2026, 1:43 PM UTC
主要言語
Python
スター
13
フォーク
16
平均マージ
45分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

elastic/ai-github-actions のほかの issue

elastic/ai-github-actions の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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