Skip to content

GH workflow validate-changelog: Make the /no-changelog command actually clear the failed changelog check - #5099

Merged
janhoy merged 4 commits into
apache:mainfrom
janhoy:fix-no-changelog-label-rerun
Oct 24, 2026
Merged

janhoy merged 4 commits into
apache:mainfrom
janhoy:fix-no-changelog-label-rerun

Conversation

@janhoy

@janhoy janhoy commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

The previous version of changelog-comment-command.yml did not do what it claimed. It works fine if a committer sets the no-changelog label, then the failed changelog validation job re-runs and turns green.

But the new /no-changelog comment path worked only half-way. The workflow set the label correctly, but we assumed that would then trigger the validate-changelog again, but it does not since it was not a human action, as a recursion break.

This re-write explicitly calls the validate-changelog workflow after the label is set by changelog-comment-command.yml.

🤖 Implemented by Claude. Checked by me.

@janhoy
janhoy requested a balanced review from Copilot October 10, 2026 19:20
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

In-flight or previously labeled PRs can still retain stale checks, and oversized PRs may be evaluated incompletely.

3 open findings
What changed in this PR

Makes /no-changelog explicitly rerun changelog validation while reducing exposure to PR-authored code.

Changes:

  • Adds explicit validation reruns after label changes.
  • Uses GitHub APIs and the base-branch validator.
  • Updates changelog documentation.
File Description
.github/​workflows/​changelog-comment-command.yml Applies labels and reruns validation.
.github/​workflows/​validate-changelog.yml Validates PR files through APIs.
dev-docs/​changelog.adoc Clarifies validation behavior.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@janhoy
janhoy merged commit 91c4ed4 into apache:main Oct 24, 2026
3 checks passed
@dsmiley dsmiley added this to the 11.x milestone Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants