Repository navigation
Route fork-guidance comment through release-notes-comments.yml - #349
Merged
Merged
Conversation
When a fork PR from a non-Elastic-org-member triggers release-notes-changelog-file, the preflight job sets should-submit=false and previously did nothing. Add a fork-guidance job that posts a upsert-safe PR comment with two options: a copy-pastable bash heredoc (no tooling) and a docs-builder changelog add one-liner. Also plumbs pr-number through preflight outputs so fork-guidance can address the comment to the correct PR. Co-Authored-By: Claude <[email protected]>
reakaleek
approved these changes
Sep 16, 2026
There was a problem hiding this comment.
Requesting changes: the fork-guidance comment upsert must paginate PR comments so reruns remain idempotent on threads with more than one comments page.
What is this? | From workflow: PR Review
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
…tifact Replace the fork-guidance job's direct github-script comment with an artifact upload. The job now downloads the triggering release-notes run's changelog- decision artifact to verify the PR is specifically failing the file gate (status: missing-entry, gate: file) before uploading its own changelog-decision artifact with is_fork: true. When release-notes-comments.yml processes this artifact, docs-builder's RenderMissingEntry renders a fork-specific body with copy-pasteable bash and docs-builder instructions — going through the single sticky comment system rather than posting a parallel comment with a custom marker. Co-Authored-By: Claude <[email protected]>
There was a problem hiding this comment.
Approved.
What is this? | From workflow: PR Review
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the
fork-guidancejob's directgithub-scriptcomment with achangelog-decisionartifact upload, so the comment flows throughrelease-notes-comments.ymland the single sticky comment system.Affects: changelog PR comments,
release-notes-changelog-file.ymlPrompt summary: Route fork-guidance comments through
release-notes-comments.yml(which uses a state file so only one comment can be active at a time) instead of posting directly with a custom marker.Why
The previous approach posted a comment directly using
actions/github-scriptwith a custom<!-- changelog-fork-guidance -->marker, bypassing the single sticky### 📋 Changelogcomment managed byrelease-notes-comments.yml. This meant fork PRs could end up with two concurrent changelog comments and the comment couldn't be tested in docs-builder.What
Fork-guidance job now uploads an artifact instead of posting directly
The
fork-guidancejob downloads thechangelog-decisionartifact from the triggeringrelease-notesrun to verify the PR is specifically failing the file gate (status: missing-entry,gate: file). If confirmed, it writes its ownchangelog-decisionartifact withis_fork: true,gate: file,status: missing-entry.release-notes-comments.ymlthen processes this artifact and callsdocs-builder changelog github-comment, which renders the fork-specific guidance body viaRenderMissingEntry.No comment for skip/label-failure cases
Because the job checks the triggering run's artifact first, it only uploads guidance when the file gate actually failed — not for
changelog:skipPRs or unlabeled PRs where the existing label-gate comment already covers the situation.Permission change
pull-requests: writeis replaced withactions: writesince the job no longer posts comments directly.Depends on
docs-builder
feat/changelog-validate-onboarding-preflight—RenderMissingEntryextended withisForkparameter that renders the bash + docs-builder one-liner block.🤖 Generated with Claude Code