Repository navigation
3di | Fix the Enhance job for pull requests coming from forks - #7294
Merged
christophebedard merged 2 commits intoOct 15, 2026
Merged
Conversation
The job already checks out fork files as data and runs the checker from rolling. This change finishes that design. Field values in `.. meta::` now stop at the end of the line so a blank `:experience:` does not hide `:area:`. The job fetches the pull request base from ros2/ros2_documentation and posts the review there too. Both of those steps were talking to the fork checkout.
christophebedard
approved these changes
Oct 15, 2026
Member
|
Based on the workflow configuration ( |
Collaborator
|
for the perspective of github workflow, i agree with you, this is no need to backport. but tools/rst_utils.py on lyrical still has the old \s* regex, and the regression test is missing. after all, i believe that this needs to be backported to lyrical. |
fujitatomoya
added a commit
that referenced
this pull request
Oct 24, 2026
…7328) The job already checks out fork files as data and runs the checker from rolling. This change finishes that design. Field values in `.. meta::` now stop at the end of the line so a blank `:experience:` does not hide `:area:`. The job fetches the pull request base from ros2/ros2_documentation and posts the review there too. Both of those steps were talking to the fork checkout. (cherry picked from commit 829377a) Co-authored-by: Kacper Bojakowski <[email protected]> Co-authored-by: Tomoya Fujita <[email protected]>
Member
|
that makes sense |
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.
Another small hotfix to the enhancement checker. The previous fix got the check running, but it still fell over on a pull request opened from a fork because a few steps were talking to the fork checkout instead of the base repository, and the metadata parser mishandled empty optional fields. This change addresses those cases so that the check behaviour for fork PRs is the same as for branch PRs.
@gbiggs @tfoote FYI this is the hotfix Denise mentioned in the latest email. I'll address all the comments and reviews in the other PRs as soon as I can. Thank you for your patience.
What I changed
Fetch the diff base from the trusted repository – Under
pull_request_targetthe working copy is the PR head checkout, so on a fork itsoriginremote points at the fork, which doesn't have the base commit. The fetch now targets the base repo explicitly by URL (https://github.com/${BASE_REPO}.git) so the diff againstrollingcan always be computed.Stop metadata field values at the end of the line – The parser used
\s*for the value, which crosses line breaks, so an empty optional field such as:experience:would eat up the next line and hide:area:. The pattern now uses[ \t]*and anchors to end of the line, so a blank field stays blank and the following field is read correctly. Also added a regression test for the empty-field case, just in case.Post the review comment on the base repository –
gh pr reviewinferred the repo from the fork checkout, so it tried to review the wrong repository. It now passes--repoexplicitly. The comment body is also written to a file and passed with--body-fileinstead of inline, so the multiline Markdown summary can't be broken by shell quoting.Don't let the advisory comment fail the check – Posting that comment is informational, so it now runs with
continue-on-error: true. The real gate is still the "Enforce required enhancements" step, which fails only when error-level enhancements are missing.