Skip to content

BUILD/CI: Limit PR commit range checks#11527

Open
yosefe wants to merge 1 commit into
openucx:masterfrom
yosefe:codex/ci-commit-range-fixes
Open

BUILD/CI: Limit PR commit range checks#11527
yosefe wants to merge 1 commit into
openucx:masterfrom
yosefe:codex/ci-commit-range-fixes

Conversation

@yosefe
Copy link
Copy Markdown
Member

@yosefe yosefe commented Jun 5, 2026

What

Take only relevant PR commits for title and AUTHOR checks, avoid checking commits merged from upstream

Why

Avoid CI failures because of commits unrelated to the PR

@yosefe yosefe marked this pull request as ready for review June 5, 2026 06:38
@yosefe yosefe changed the title [codex] BUILD/CI: Limit PR commit range checks BUILD/CI: Limit PR commit range checks Jun 5, 2026
title=`git log -1 --format="%s" $sha1`
if echo $title | grep -qP '^Merge |^[0-9A-Z/_\-]*: \w'
title=$(git log -1 --format="%s" $sha1)
if [[ $title =~ ^[0-9A-Z/_-]*:\ [[:alnum:]_] ]]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [[ $title =~ ^[0-9A-Z/_-]*:\ [[:alnum:]_] ]]
if [[ $title =~ ^[0-9A-Z/_-]+:\ [[:alnum:]_] ]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants