fix(ci): add warnings when MQ pull request body or metadata is missing#985
Conversation
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 🤖 Continuous IntegrationWonderful, this rule succeeded.
🟢 👀 Review RequirementsWonderful, this rule succeeded.
🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
🟢 🔎 ReviewsWonderful, this rule succeeded.
🟢 📕 PR descriptionWonderful, this rule succeeded.
|
There was a problem hiding this comment.
Pull request overview
This PR adds warning messages to improve observability when merge queue pull requests are missing body content or Mergify metadata. The changes help diagnose optimization skips in the CI workflow by logging warnings instead of silently returning None.
Changes:
- Added import for click module to enable console output
- Added warning when MQ pull request body is missing
- Added warning when MQ pull request body lacks Mergify metadata
Comments suppressed due to low confidence (1)
mergify_cli/ci/queue/metadata.py:61
- There is an extra space in the assignment operator. It should be "ref = " with one space, not "ref = " with two spaces, to maintain consistent code formatting.
ref = _yaml_docs_from_fenced_blocks(body)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
🧪 CI InsightsHere's what we observed from your CI run for b7dc186. 🟢 All jobs passed!But CI Insights is watching 👀 |
Log warnings instead of silently returning None when the merge queue pull request has no body or no Mergify metadata in fenced blocks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Change-Id: I449dc4f833d56cc45b53ff16e6f3c035ce924775
88e1d07 to
b7dc186
Compare
Pull request has been modified.
Merge Queue StatusRule:
This pull request spent 14 seconds in the queue, including 2 seconds running CI. Required conditions to merge
|
Log warnings instead of silently returning None when the merge queue
pull request has no body or no Mergify metadata in fenced blocks.
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com