Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use caller's workflow name in default footer#546

Merged
strawgate merged 6 commits intomainfrom
feat/footer-caller-workflow-name
Mar 2, 2026
Merged

Use caller's workflow name in default footer#546
strawgate merged 6 commits intomainfrom
feat/footer-caller-workflow-name

Conversation

@strawgate
Copy link
Collaborator

@strawgate strawgate commented Mar 2, 2026

Summary

Updates default safe-output footers to display the caller workflow name via github.workflow instead of the reusable-workflow placeholder ({workflow_name}).

Before

footer: "$\{\{ inputs.messages-footer || '---\n...[From workflow: {workflow_name}]({run_url})...' }}"

After

footer: "$\{\{ inputs.messages-footer || format('---\n...[From workflow: {0}](\{\{run_url}})...', github.workflow) }}"

Details

  • Uses format(..., github.workflow) in footer defaults so comments/reviews show the caller workflow name.
  • Preserves inputs.messages-footer override behavior.
  • Regenerates affected .lock.yml workflows so compiled GH_AW_SAFE_OUTPUT_MESSAGES include the updated footer expression.
  • Adds .github/workflows/gh-aw-fragments/messages-footer-no-feedback.md and imports it in .github/workflows/gh-aw-update-pr-body.md.
  • Updates gh-aw-update-pr-body compiled workflow so its GH_AW_SAFE_OUTPUT_MESSAGES includes a default footer without the feedback line.

Scope

  • Updates the shared footer template in .github/workflows/gh-aw-fragments/messages-footer.md.
  • Adds the no-feedback footer fragment and wires it into gh-aw-update-pr-body.
  • Regenerates affected workflow .lock.yml files.

Test plan

  • CI passes
  • Spot-check a compiled lock file for format('... ', github.workflow) in GH_AW_SAFE_OUTPUT_MESSAGES

What is this? | From workflow: Trigger Update PR Body

@coderabbitai
Copy link

coderabbitai bot commented Mar 2, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8bd7529 and 6b4d9fc.

📒 Files selected for processing (64)
  • .github/workflows/downstream-users.lock.yml
  • .github/workflows/gh-aw-agent-suggestions.lock.yml
  • .github/workflows/gh-aw-autonomy-atomicity-analyzer.lock.yml
  • .github/workflows/gh-aw-branch-actions-detective.lock.yml
  • .github/workflows/gh-aw-breaking-change-detect.lock.yml
  • .github/workflows/gh-aw-breaking-change-detector.lock.yml
  • .github/workflows/gh-aw-bug-exterminator.lock.yml
  • .github/workflows/gh-aw-bug-hunter.lock.yml
  • .github/workflows/gh-aw-code-duplication-detector.lock.yml
  • .github/workflows/gh-aw-code-duplication-fixer.lock.yml
  • .github/workflows/gh-aw-code-simplifier.lock.yml
  • .github/workflows/gh-aw-deep-research.lock.yml
  • .github/workflows/gh-aw-dependency-review.lock.yml
  • .github/workflows/gh-aw-docs-drift.lock.yml
  • .github/workflows/gh-aw-docs-patrol.lock.yml
  • .github/workflows/gh-aw-duplicate-issue-detector.lock.yml
  • .github/workflows/gh-aw-estc-actions-resource-not-accessible-detector.lock.yml
  • .github/workflows/gh-aw-estc-docs-patrol-external.lock.yml
  • .github/workflows/gh-aw-estc-docs-pr-review.lock.yml
  • .github/workflows/gh-aw-estc-downstream-health.lock.yml
  • .github/workflows/gh-aw-estc-newbie-contributor-patrol-external.lock.yml
  • .github/workflows/gh-aw-estc-pr-buildkite-detective.lock.yml
  • .github/workflows/gh-aw-flaky-test-investigator.lock.yml
  • .github/workflows/gh-aw-fragments/messages-footer-no-feedback.md
  • .github/workflows/gh-aw-fragments/messages-footer.md
  • .github/workflows/gh-aw-framework-best-practices.lock.yml
  • .github/workflows/gh-aw-information-architecture.lock.yml
  • .github/workflows/gh-aw-internal-gemini-cli-web-search.lock.yml
  • .github/workflows/gh-aw-internal-gemini-cli.lock.yml
  • .github/workflows/gh-aw-issue-fixer.lock.yml
  • .github/workflows/gh-aw-issue-triage.lock.yml
  • .github/workflows/gh-aw-mention-in-issue-no-sandbox.lock.yml
  • .github/workflows/gh-aw-mention-in-issue.lock.yml
  • .github/workflows/gh-aw-mention-in-pr-by-id.lock.yml
  • .github/workflows/gh-aw-mention-in-pr-no-sandbox.lock.yml
  • .github/workflows/gh-aw-mention-in-pr.lock.yml
  • .github/workflows/gh-aw-newbie-contributor-fixer.lock.yml
  • .github/workflows/gh-aw-newbie-contributor-patrol.lock.yml
  • .github/workflows/gh-aw-performance-profiler.lock.yml
  • .github/workflows/gh-aw-plan.lock.yml
  • .github/workflows/gh-aw-pr-actions-detective.lock.yml
  • .github/workflows/gh-aw-pr-actions-fixer.lock.yml
  • .github/workflows/gh-aw-pr-ci-detective.lock.yml
  • .github/workflows/gh-aw-pr-review-addresser.lock.yml
  • .github/workflows/gh-aw-pr-review.lock.yml
  • .github/workflows/gh-aw-product-manager-impersonator.lock.yml
  • .github/workflows/gh-aw-project-summary.lock.yml
  • .github/workflows/gh-aw-refactor-opportunist.lock.yml
  • .github/workflows/gh-aw-release-update.lock.yml
  • .github/workflows/gh-aw-scheduled-audit.lock.yml
  • .github/workflows/gh-aw-scheduled-fix.lock.yml
  • .github/workflows/gh-aw-small-problem-fixer.lock.yml
  • .github/workflows/gh-aw-stale-issues-investigator.lock.yml
  • .github/workflows/gh-aw-stale-issues-remediator.lock.yml
  • .github/workflows/gh-aw-stale-issues.lock.yml
  • .github/workflows/gh-aw-test-coverage-detector.lock.yml
  • .github/workflows/gh-aw-test-improvement.lock.yml
  • .github/workflows/gh-aw-test-improver.lock.yml
  • .github/workflows/gh-aw-text-auditor.lock.yml
  • .github/workflows/gh-aw-text-beautifier.lock.yml
  • .github/workflows/gh-aw-update-pr-body.lock.yml
  • .github/workflows/gh-aw-update-pr-body.md
  • .github/workflows/gh-aw-ux-design-patrol.lock.yml
  • .github/workflows/internal-downstream-health.lock.yml
🚧 Files skipped from review as they are similar to previous changes (45)
  • .github/workflows/gh-aw-issue-triage.lock.yml
  • .github/workflows/gh-aw-deep-research.lock.yml
  • .github/workflows/gh-aw-pr-actions-fixer.lock.yml
  • .github/workflows/gh-aw-stale-issues-remediator.lock.yml
  • .github/workflows/gh-aw-mention-in-pr-no-sandbox.lock.yml
  • .github/workflows/gh-aw-performance-profiler.lock.yml
  • .github/workflows/gh-aw-pr-actions-detective.lock.yml
  • .github/workflows/gh-aw-estc-actions-resource-not-accessible-detector.lock.yml
  • .github/workflows/gh-aw-stale-issues-investigator.lock.yml
  • .github/workflows/gh-aw-estc-docs-pr-review.lock.yml
  • .github/workflows/gh-aw-mention-in-pr.lock.yml
  • .github/workflows/gh-aw-project-summary.lock.yml
  • .github/workflows/gh-aw-scheduled-fix.lock.yml
  • .github/workflows/gh-aw-estc-pr-buildkite-detective.lock.yml
  • .github/workflows/gh-aw-release-update.lock.yml
  • .github/workflows/gh-aw-pr-review.lock.yml
  • .github/workflows/gh-aw-test-improvement.lock.yml
  • .github/workflows/gh-aw-mention-in-pr-by-id.lock.yml
  • .github/workflows/gh-aw-plan.lock.yml
  • .github/workflows/gh-aw-breaking-change-detector.lock.yml
  • .github/workflows/gh-aw-agent-suggestions.lock.yml
  • .github/workflows/gh-aw-duplicate-issue-detector.lock.yml
  • .github/workflows/gh-aw-refactor-opportunist.lock.yml
  • .github/workflows/gh-aw-text-auditor.lock.yml
  • .github/workflows/gh-aw-framework-best-practices.lock.yml
  • .github/workflows/gh-aw-mention-in-issue.lock.yml
  • .github/workflows/gh-aw-small-problem-fixer.lock.yml
  • .github/workflows/downstream-users.lock.yml
  • .github/workflows/internal-downstream-health.lock.yml
  • .github/workflows/gh-aw-test-improver.lock.yml
  • .github/workflows/gh-aw-stale-issues.lock.yml
  • .github/workflows/gh-aw-text-beautifier.lock.yml
  • .github/workflows/gh-aw-bug-hunter.lock.yml
  • .github/workflows/gh-aw-information-architecture.lock.yml
  • .github/workflows/gh-aw-code-simplifier.lock.yml
  • .github/workflows/gh-aw-fragments/messages-footer.md
  • .github/workflows/gh-aw-bug-exterminator.lock.yml
  • .github/workflows/gh-aw-pr-ci-detective.lock.yml
  • .github/workflows/gh-aw-newbie-contributor-fixer.lock.yml
  • .github/workflows/gh-aw-estc-docs-patrol-external.lock.yml
  • .github/workflows/gh-aw-estc-downstream-health.lock.yml
  • .github/workflows/gh-aw-internal-gemini-cli.lock.yml
  • .github/workflows/gh-aw-breaking-change-detect.lock.yml
  • .github/workflows/gh-aw-issue-fixer.lock.yml
  • .github/workflows/gh-aw-pr-review-addresser.lock.yml

📝 Walkthrough

Walkthrough

This pull request updates safe-output message templates in multiple .github/workflows/*.lock.yml and fragment files, replacing literal {workflow_name} placeholders with format(..., github.workflow) (adjusting run_url escaping where present) and updating gh-aw-metadata frontmatter_hash values. Changes are limited to message composition; control flow, error handling, and public/exported declarations are unchanged.

Possibly related PRs

  • PR #390: Modifies GH_AW_SAFE_OUTPUT_MESSAGES payloads across workflow files, touching the same safe-output/footer templates.
  • PR #378: Updates safe-output/message templates in workflows that overlap with files changed here.
  • PR #429: Touches gh-aw-dependency-review.lock.yml and aligns with the footer formatting changes applied in this PR.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/footer-caller-workflow-name

Comment @coderabbitai help to get the list of available commands and usage tips.

---
safe-outputs:
messages:
footer: "${{ inputs.messages-footer || format('---\n[What is this?](https://ela.st/github-ai-tools) | [From workflow: {0}]({{run_url}})"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LOW] Footer expression is left unterminated

This string never closes the format(...) call or the $\{\{ ... }} expression, so when this no-feedback fragment is used the footer value will contain an incomplete expression instead of a rendered workflow name.

Suggested change
footer: "${{ inputs.messages-footer || format('---\n[What is this?](https://ela.st/github-ai-tools) | [From workflow: {0}]({{run_url}})"
footer: "$\{\{ inputs.messages-footer || format('---\n[What is this?](https://ela.st/github-ai-tools) | [From workflow: {0}](\{\{run_url}})', github.workflow) }}"

strawgate and others added 2 commits March 2, 2026 12:31
Replace {workflow_name} (hardcoded reusable workflow name) with
github.workflow via format(), which resolves to the caller's workflow
name when the reusable workflow is invoked via workflow_call.

Co-authored-by: Copilot <[email protected]>
@strawgate strawgate force-pushed the feat/footer-caller-workflow-name branch 2 times, most recently from be2ab82 to 7d8533d Compare March 2, 2026 18:31
Replace {workflow_name} (hardcoded reusable workflow name) with
github.workflow via format(), which resolves to the caller's workflow
name when the reusable workflow is invoked via workflow_call.

Co-authored-by: Copilot <[email protected]>
@strawgate strawgate force-pushed the feat/footer-caller-workflow-name branch from 7d8533d to 662338c Compare March 2, 2026 18:31
strawgate and others added 3 commits March 2, 2026 12:34
The no-feedback footer variant is more appropriate for update-pr-body,
which auto-generates PR body content — asking for reaction feedback
there doesn't make sense.

Co-authored-by: Copilot <[email protected]>
@strawgate strawgate merged commit bc70848 into main Mar 2, 2026
18 checks passed
@strawgate strawgate deleted the feat/footer-caller-workflow-name branch March 2, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant