Skip to content

ci: skip the release notes checks on draft pull requests - #1295

Open
theletterf wants to merge 1 commit into
elastic:mainfrom
theletterf:docs/release-notes-skip-drafts
Open

theletterf wants to merge 1 commit into
elastic:mainfrom
theletterf:docs/release-notes-skip-drafts

Conversation

@theletterf

Copy link
Copy Markdown
Member

Draft pull requests in this repository get a failed release-notes / validate check and a "Changelog labels needed" comment before the author is ready for review. Authors then add labels early just to quiet the bot. The shared release-notes workflow now has an opt-in skip-drafts input, released in elastic/docs-actions v1 with elastic/docs-actions#442. This pull request turns it on here.

In .github/workflows/release-notes.yml:

  • skip-drafts: true skips the check and the comment while the pull request is a draft. GitHub cannot merge a draft, so the skipped check never lets an unchecked change through.
  • ready_for_review runs the check as soon as a draft is marked ready. Without it, nothing checks the pull request until the next push or label change.
  • converted_to_draft replaces a failed check with a skipped one when a pull request goes back to draft.

This pull request is a draft on purpose, so its own release-notes / validate check should show as skipped. Mark it ready for review and the check runs. If you add a type label (changelog:skip fits a CI-only change), it passes.

The same change is going into Kibana, docs-builder, and docs-content. Nothing else in the workflow changes, and release-notes-comments.yml and release-notes-changelog-file.yml stay as they are.

🤖 Generated with Claude Code

A draft pull request gets a failed release notes check and a changelog
comment before the author is ready. The skip-drafts input skips both on
drafts. The ready_for_review event runs the checks when a draft is ready,
and converted_to_draft clears a failed check when a pull request goes
back to draft.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@theletterf
theletterf marked this pull request as ready for review October 27, 2026 18:10
@theletterf
theletterf requested review from a team as code owners October 27, 2026 18:10
Copilot AI balanced review requested due to automatic review settings October 27, 2026 18:10
@theletterf

Copy link
Copy Markdown
Member Author

@SylvainJuge Ready to merge

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The supported input and both required transition triggers are configured, with no unresolved issues identified.

No open issues 🎉

What changed in this PR

Opts this repository into the shared release-notes workflow’s draft-skipping support introduced in elastic/docs-actions#442.

Changes:

  • Enables skip-drafts to avoid validation failures and new bot comments on draft pull requests.
  • Adds ready_for_review and converted_to_draft triggers so validation follows draft-state changes.
  • Preserves existing event triggers and push behavior.
File Description
.github/​workflows/​release-notes.yml Enables draft skipping and adds both draft-transition triggers.

Review effort: Balanced

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n 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.

LGTM

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants