Skip to content

Conversation

@sileht
Copy link
Member

@sileht sileht commented Dec 19, 2025

This change introduces the source of where we found the base/head sha
This will help debuging Customer CI.

Copilot AI review requested due to automatic review settings December 19, 2025 14:22
@mergify mergify bot had a problem deploying to Mergify Merge Protections December 19, 2025 14:22 Failure
@mergify
Copy link
Contributor

mergify bot commented Dec 19, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success=ci-gate

🟢 👀 Review Requirements

Wonderful, this rule succeeded.
  • any of:
    • #approved-reviews-by>=2
    • author = dependabot[bot]
    • author = mergify-ci-bot
    • author = renovate[bot]

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?:

🟢 🔎 Reviews

Wonderful, this rule succeeded.
  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= (?ms:.{48,})

@mergify
Copy link
Contributor

mergify bot commented Dec 19, 2025

🧪 CI Insights

Here's what we observed from your CI run for b15160c.

🟢 All jobs passed!

But CI Insights is watching 👀

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the git reference detection system to improve debugging capabilities by tracking the source of base/head SHA detection. The change replaces the boolean is_merge_queue field with a more descriptive source field that uses a typed literal to indicate where the references were detected from.

Key Changes:

  • Introduced a ReferencesSource type with values like "manual", "merge_queue", "github_event_pull_request", etc.
  • Updated the References dataclass to use source: ReferencesSource instead of is_merge_queue: bool
  • Modified CLI output to display the source of detected references for better debugging

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
mergify_cli/ci/git_refs/detector.py Added ReferencesSource literal type and replaced is_merge_queue field with source in the References dataclass
mergify_cli/ci/cli.py Updated scopes command to create References with "manual" source when base/head are provided via CLI options
mergify_cli/ci/scopes/cli.py Modified detect() and maybe_write_github_step_summary() to accept References object and display source information
mergify_cli/tests/ci/git_refs/test_git_refs_detector.py Updated test assertions to use the new source field with appropriate values
mergify_cli/tests/ci/scopes/test_cli.py Updated test mocks and assertions to use References objects with correct source values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

jd
jd previously approved these changes Dec 19, 2025
This change introduces the source of where we found the base/head sha
This will help debuging Customer CI.

Change-Id: I74a4910647e62f85135e6d5245e5c329c8503007
@sileht sileht force-pushed the devs/sileht/mq-bug-base/I74a4910647e62f85135e6d5245e5c329c8503007 branch from 0d7c61e to b15160c Compare December 19, 2025 14:53
@mergify mergify bot dismissed jd’s stale review December 19, 2025 14:53

Pull request has been modified.

@mergify mergify bot deployed to Mergify Merge Protections December 19, 2025 14:53 Active
@mergify mergify bot requested a review from a team December 19, 2025 14:56
@mergify
Copy link
Contributor

mergify bot commented Dec 22, 2025

Merge Queue Status

✅ The pull request has been merged at b15160c

This pull request spent 22 seconds in the queue, including 3 seconds running CI.
The checks were run in-place.

Required conditions to merge

@mergify mergify bot merged commit 35f149d into main Dec 22, 2025
10 checks passed
@mergify mergify bot added the queued label Dec 22, 2025
@mergify mergify bot deleted the devs/sileht/mq-bug-base/I74a4910647e62f85135e6d5245e5c329c8503007 branch December 22, 2025 10:48
@mergify mergify bot removed the queued label Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants