Skip to content

Conversation

@sileht
Copy link
Member

@sileht sileht commented Oct 28, 2025

These modules will be reused for a new cli mergify ci git-refgs.

Copilot AI review requested due to automatic review settings October 28, 2025 16:54
@mergify mergify bot had a problem deploying to Mergify Merge Protections October 28, 2025 16:54 Failure
@sileht
Copy link
Member Author

sileht commented Oct 28, 2025

This pull request is part of a stack:

  1. refactor: move git_refs into its own module (#848) 👈
  2. feat: add new cli tool (#849)
  3. feat: allow to pass base/head sha to ci scopes (#850)

@sileht sileht mentioned this pull request Oct 28, 2025
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 references detection functionality by moving it from mergify_cli.ci.scopes.git_refs_detector into its own dedicated module at mergify_cli.ci.git_refs.detector, enabling reuse for a new CLI tool.

Key changes:

  • Moved git_refs_detector module into mergify_cli.ci.git_refs.detector
  • Relocated GitHub Actions output writing for base/head refs from scopes/cli.py to the References class via a new maybe_write_to_github_outputs() method
  • Updated all import statements and references across the codebase

Reviewed Changes

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

Show a summary per file
File Description
mergify_cli/tests/ci/scopes/test_cli.py Updated imports and mock paths to use the new module location; removed base/head parameters from maybe_write_github_outputs calls
mergify_cli/tests/ci/git_refs/test_git_refs_detector.py Updated imports to use new module path; added test for the new maybe_write_to_github_outputs method
mergify_cli/ci/scopes/cli.py Updated import to use new module location; removed base/head output writing logic and parameters
mergify_cli/ci/git_refs/detector.py Added GitHub Actions output constants and maybe_write_to_github_outputs method to References class
mergify_cli/ci/git_refs/cli.py Created empty placeholder file for future CLI implementation

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

@mergify
Copy link
Contributor

mergify bot commented Oct 28, 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 ~= .{48,}

@mergify
Copy link
Contributor

mergify bot commented Oct 28, 2025

🧪 CI Insights

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

🟢 All jobs passed!

But CI Insights is watching 👀

@mergify mergify bot requested a review from a team October 28, 2025 16:56
This modules will be reused for a new cli.

Change-Id: I95fa84a430ebfb8fde19dcb1b8cd231f69502600
@sileht sileht force-pushed the devs/sileht/cli-base-head/I95fa84a430ebfb8fde19dcb1b8cd231f69502600 branch from e7ae8ea to 26b0e37 Compare October 29, 2025 07:23
@mergify mergify bot deployed to Mergify Merge Protections October 29, 2025 07:23 Active
@mergify
Copy link
Contributor

mergify bot commented Oct 29, 2025

✅ The pull request has been merged

@mergify mergify bot merged commit b3a03f2 into main Oct 29, 2025
10 checks passed
@mergify mergify bot deleted the devs/sileht/cli-base-head/I95fa84a430ebfb8fde19dcb1b8cd231f69502600 branch October 29, 2025 08:32
mergify bot pushed a commit that referenced this pull request Oct 29, 2025
This introduces `mergify ci git-refs` to get the shas the monorepo
tooling must use for testing batches.

Depends-On: #848
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