Skip to content

gha: check-pr-branch: fix branch check regression#48194

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:fix_pr_title_check
Jul 19, 2024
Merged

gha: check-pr-branch: fix branch check regression#48194
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:fix_pr_title_check

Conversation

@thaJeztah
Copy link
Copy Markdown
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).

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 <[email protected]>
@thaJeztah
Copy link
Copy Markdown
Member Author

Check is green (and green on the backport); 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 155dd66 into moby:master Jul 19, 2024
@thaJeztah thaJeztah deleted the 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