Skip to content

Fix detection of ci/no-release label in a push event#7927

Merged
pavoljuhas merged 1 commit intoquantumlib:mainfrom
pavoljuhas:skip-release-for-ci/no-release-label
Mar 3, 2026
Merged

Fix detection of ci/no-release label in a push event#7927
pavoljuhas merged 1 commit intoquantumlib:mainfrom
pavoljuhas:skip-release-for-ci/no-release-label

Conversation

@pavoljuhas
Copy link
Collaborator

@pavoljuhas pavoljuhas commented Mar 2, 2026

Problem: gh pr list --state=merged may not find the pull request
due to race condition at its push event time.

Solution: Extract pull request number from the commit subject and
look up its labels directly.

Follow-up to #7917

Problem: `gh pr list --state=merged` may not find the pull request
due to race condition at its push event.

Solution: Extract pull request number from the commit subject and
look up its labels directly.

Follow-up to quantumlib#7917
@pavoljuhas pavoljuhas requested review from a team and vtomole as code owners March 2, 2026 22:59
@pavoljuhas pavoljuhas requested a review from tanujkhattar March 2, 2026 22:59
@github-actions github-actions bot added the Size: XS <10 lines changed label Mar 2, 2026
@pavoljuhas pavoljuhas requested a review from mhucka March 2, 2026 22:59
@pavoljuhas
Copy link
Collaborator Author

@mhucka - sorry about pestering you with these; this is hopefully a variant that actually works.

Copy link
Contributor

@mhucka mhucka left a comment

Choose a reason for hiding this comment

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

LGTM

@pavoljuhas pavoljuhas added the ci/no-release Use this label for pull request that should not have Cirq pre-release on PyPI. label Mar 3, 2026
@pavoljuhas pavoljuhas added this pull request to the merge queue Mar 3, 2026
Merged via the queue into quantumlib:main with commit df4f3ff Mar 3, 2026
38 of 39 checks passed
@pavoljuhas pavoljuhas deleted the skip-release-for-ci/no-release-label branch March 3, 2026 00:12
@codecov
Copy link

codecov bot commented Mar 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.61%. Comparing base (bd5b2f6) to head (59f49e2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7927   +/-   ##
=======================================
  Coverage   99.61%   99.61%           
=======================================
  Files        1104     1104           
  Lines       99375    99375           
=======================================
  Hits        98996    98996           
  Misses        379      379           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

pavoljuhas added a commit to pavoljuhas/Cirq that referenced this pull request Mar 3, 2026
This is required for querying the repo on GitHub.

Follow-up to quantumlib#7927
github-merge-queue bot pushed a commit that referenced this pull request Mar 3, 2026
This is required for querying the repo on GitHub.

Follow-up to #7927
BichengYing pushed a commit to BichengYing/Cirq that referenced this pull request Mar 3, 2026
Problem: `gh pr list --state=merged` may not find the pull request
due to race condition at its push event time.

Solution: Extract pull request number from the commit subject and
look up its labels directly.

Follow-up to quantumlib#7917
BichengYing pushed a commit to BichengYing/Cirq that referenced this pull request Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/no-release Use this label for pull request that should not have Cirq pre-release on PyPI. Size: XS <10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants