8000 [27.1 backport] gha: check-pr-branch: fix branch check regression by thaJeztah · Pull Request #48195 · moby/moby · GitHub
[go: up one dir, main page]

Skip to content

Conversation

thaJeztah
Copy link
Member

This check was updated in f460110, but introduced some bugs;

  • the regular expressions were meant to define a capturing group, but the braces ((, )) were escaped (they previously were used by sed, which requires different escaping), so no value was captured.
  • the check itself was not updated to use the resulting $target_branch env-var, so was comparing against the $GITHUB_BASE_REF (which is the branch name before stripping minor versions).

(cherry picked from commit e0b98a3)

This check was updated in f460110, but
introduced some bugs;

- the regular expressions were meant to define a capturing group, but
  the braces (`(`, `)`) were escaped (they previously were used by
  `sed`, which requires different escaping), so no value was captured.
- the check itself was not updated to use the resulting `$target_branch`
  env-var, so was comparing against the `$GITHUB_BASE_REF` (which is
  the branch name before stripping minor versions).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit e0b98a3)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the 27.1.0 milestone Jul 19, 2024
@thaJeztah thaJeztah self-assigned this Jul 19, 2024
@thaJeztah thaJeztah requested a review from vvoland July 19, 2024 10:31
@thaJeztah
Copy link
Member Author

Check is green (and green on the master); I'll merge this one, as we don't need the rest of CI to complete

Screenshot 2024-07-19 at 12 33 17

@thaJeztah thaJeztah merged commit df7f275 into moby:27.0 Jul 19, 2024
@thaJeztah thaJeztah deleted the 27.1_backport_fix_pr_title_check branch July 19, 2024 10:34
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.

2 participants
0