From 023283ebe9249237b391e402fb9d022d4c498ebf Mon Sep 17 00:00:00 2001 From: Fabrizio Ferri Benedetti Date: Tue, 27 Oct 2026 17:21:22 +0000 Subject: [PATCH] Skip release notes checks on draft pull requests 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 https://github.com/elastic/docs-actions/pull/442 in docs-actions v1. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0198Z15QXfthJ2QgGztrDHtu --- .github/workflows/release-notes.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index e27c6a4e729..e3cfbf06d39 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -1,7 +1,7 @@ name: "Release notes: Check" on: pull_request: - types: [opened, synchronize, reopened, labeled, unlabeled] + types: [opened, synchronize, reopened, labeled, unlabeled, ready_for_review, converted_to_draft] push: branches: [main] permissions: {} @@ -15,3 +15,5 @@ jobs: uses: elastic/docs-actions/.github/workflows/release-notes.yml@v1 with: config: changelog.yml + # Skip the checks and the PR comment on drafts. Needs ready_for_review above. + skip-drafts: true