[bug-hunter] Update PR Body workflow references undeclared messages-footer input

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

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

評価

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

調査の方向性

.github/workflows/gh-aw-update-pr-body.mdを読み、workflow_call.inputsブロックと、91行目および111行目付近にあるinputs.messages-footerの参照に注目してください。issueの再現スクリプトを実行して、inputが不足していることを確認してください。指定されたinputが宣言され、スクリプトが正常に終了したら完了です。

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

説明

Impact

Callers of .github/workflows/gh-aw-update-pr-body.lock.yml cannot provide a custom footer even though the workflow source references inputs.messages-footer as an override. Passing with: messages-footer: ... to a reusable workflow call will be rejected as an unexpected input, which blocks the run.

Reproduction Steps

  1. From repo root, run this new minimal reproduction script:
python - <<'PY'
from pathlib import Path
import re, sys
p = Path('.github/workflows/gh-aw-update-pr-body.md')
text = p.read_text()

# Frontmatter block
start = text.find('---\n')
end = text.find('\n---\n', start + 4)
frontmatter = text[start + 4:end]

# Declared workflow_call inputs
m = re.search(r'workflow_call:\n\s+inputs:\n(?P<body>.*?)(?:\n\s{2}\w|\nroles:)', frontmatter, re.S)
if not m:
    print('Could not locate workflow_call.inputs block')
    sys.exit(2)

declared = set(re.findall(r'^\s{6}([a-zA-Z0-9_-]+):\s*$', m.group('body'), re.M))
referenced = set(re.findall(r'inputs\.([a-zA-Z0-9_-]+)', text))
undeclared = sorted(referenced - declared)

print('Declared inputs:', sorted(declared))
print('Referenced inputs:', sorted(referenced))
print('Undeclared referenced inputs:', undeclared)

if undeclared:
    sys.exit(1)
PY

Expected vs Actual

Expected: Every inputs.<name> used by the workflow is declared under workflow_call.inputs, including messages-footer if it is intended to be user-configurable.

Actual: messages-footer is referenced but not declared; the reproduction exits with code 1.

Actual output:

Declared inputs: ['additional-instructions', 'allowed-bot-users', 'edit-accuracy', 'edit-completeness', 'edit-format', 'edit-style', 'model', 'report-failure-as-issue', 'setup-commands']
Referenced inputs: ['additional-instructions', 'allowed-bot-users', 'edit-accuracy', 'edit-completeness', 'edit-format', 'edit-style', 'messages-footer', 'model', 'setup-commands']
Undeclared referenced inputs: ['messages-footer']

Failing Test

Same script as in reproduction step 1 (it exits non-zero when undeclared referenced inputs exist).

Evidence

  • .github/workflows/gh-aw-update-pr-body.md:91 references inputs.messages-footer in safe-outputs.messages.footer.
  • .github/workflows/gh-aw-update-pr-body.md:111 documents inputs.messages-footer in the prompt context.
  • .github/workflows/gh-aw-update-pr-body.md:22-68 defines workflow_call.inputs, but no messages-footer input is declared.

What is this? | From workflow: Trigger Bug Hunter

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

  • expires on Nov 19, 2026, 11:23 AM 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 を短くまとめたダイジェスト。