Skip to content

Skip release notes checks on draft pull requests - #4611

Merged
theletterf merged 1 commit into
mainfrom
docs/release-notes-skip-drafts
Oct 27, 2026
Merged

theletterf merged 1 commit into
mainfrom
docs/release-notes-skip-drafts

Conversation

@theletterf

@theletterf theletterf commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Draft pull requests in this repository no longer get the release notes check or its pull request comment. The check runs when the pull request is marked ready for review.

Affects: Automation

Prompt summary: A Kibana engineer asked to stop the "Changelog labels needed" comment on draft pull requests. The fix is an opt-in skip-drafts input in docs-actions, and each repository that uses the release notes caller opts in. This pull request opts docs-builder in.

Why

release-notes / validate runs on every pull request, drafts included. A draft without a type label gets a failed check and a comment before the author is ready.

What

Drafts skip the check

The caller sets skip-drafts: true, so a draft shows the check as skipped and gets no comment. GitHub cannot merge a draft, so a skipped check never lets a pull request through.

The check follows draft transitions

The caller listens for ready_for_review, so the check runs as soon as a pull request leaves draft. It also listens for converted_to_draft, so a failed check turns into a skipped one when a pull request goes back to draft.

Depends on: elastic/docs-actions#442, released in docs-actions 1.69.0. v1 declares the skip-drafts input.

Out of scope: #4610 collapses the label tables in the same comment. The two changes are independent.


Generated by Claude Code

Draft PRs get a failed release notes check and a "Changelog labels needed"
comment before the author is ready. skip-drafts skips both on drafts. The
ready_for_review event runs the checks when the PR is ready, and
converted_to_draft clears a failed check when a PR goes back to draft.

Needs elastic/docs-actions#442 in docs-actions v1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0198Z15QXfthJ2QgGztrDHtu
@theletterf theletterf added the automation packaging, ci/cd. label Oct 27, 2026 — with Claude
@theletterf
theletterf marked this pull request as ready for review October 27, 2026 18:05
@theletterf
theletterf requested a review from a team as a code owner October 27, 2026 18:05
@theletterf
theletterf requested a review from reakaleek October 27, 2026 18:05
Comment thread .github/workflows/release-notes.yml
@theletterf
theletterf merged commit 6e03947 into main Oct 27, 2026
41 checks passed
@theletterf
theletterf deleted the docs/release-notes-skip-drafts branch October 27, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant