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

Abierto Apto para principiantes
#2,499 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
82/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, python, yaml
Área
ci-cd

Línea de trabajo

Lee .github/workflows/gh-aw-update-pr-body.md, centrándote en el bloque workflow_call.inputs y en las referencias a inputs.messages-footer alrededor de las líneas 91 y 111. Ejecuta el script de reproducción del issue para confirmar que falta el input. La tarea estará terminada cuando el input indicado esté declarado y el script finalice correctamente.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Python
Estrellas
13
Forks
16
Merge medio
45 min
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de elastic/ai-github-actions

Todos los issues de elastic/ai-github-actions

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.