Skip to content

feat(ci): add --config option and MERGIFY_CONFIG_PATH envvar to git-refs and scopes#1000

Merged
mergify[bot] merged 1 commit intomainfrom
devs/sileht/allow-to-pass-config-file/I0b7bb94a7e7aff249ee90b650392dbae68f370fe
Mar 5, 2026
Merged

feat(ci): add --config option and MERGIFY_CONFIG_PATH envvar to git-refs and scopes#1000
mergify[bot] merged 1 commit intomainfrom
devs/sileht/allow-to-pass-config-file/I0b7bb94a7e7aff249ee90b650392dbae68f370fe

Conversation

@sileht
Copy link
Member

@sileht sileht commented Mar 5, 2026

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Copilot AI review requested due to automatic review settings March 5, 2026 08:49
@mergify mergify bot had a problem deploying to Mergify Merge Protections March 5, 2026 08:49 Failure
@mergify
Copy link
Contributor

mergify bot commented Mar 5, 2026

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 Mar 5, 2026

🧪 CI Insights

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

🟢 All jobs passed!

But CI Insights is watching 👀

@mergify mergify bot requested a review from a team March 5, 2026 08:51
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

Adds support for selecting the Mergify YAML config via CLI/environment for CI scope detection, with a regression test around MERGIFY_CONFIG_PATH behavior.

Changes:

  • Adds MERGIFY_CONFIG_PATH as an envvar source for the ci scopes --config option and tightens path validation.
  • Adds a test asserting that an empty MERGIFY_CONFIG_PATH should fall back to config auto-detection.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
mergify_cli/ci/cli.py Updates the scopes command --config Click option to read from MERGIFY_CONFIG_PATH and require an existing file.
mergify_cli/tests/ci/test_cli.py Adds a test for “empty env var => autodetect config” behavior.

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

JulianMaurin
JulianMaurin previously approved these changes Mar 5, 2026
@mergify mergify bot requested a review from a team March 5, 2026 09:29
@sileht sileht closed this Mar 5, 2026
@sileht sileht deleted the devs/sileht/allow-to-pass-config-file/I0b7bb94a7e7aff249ee90b650392dbae68f370fe branch March 5, 2026 13:43
@sileht sileht restored the devs/sileht/allow-to-pass-config-file/I0b7bb94a7e7aff249ee90b650392dbae68f370fe branch March 5, 2026 13:43
@sileht sileht reopened this Mar 5, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change-Id: I0b7bb94a7e7aff249ee90b650392dbae68f370fe
@sileht sileht force-pushed the devs/sileht/allow-to-pass-config-file/I0b7bb94a7e7aff249ee90b650392dbae68f370fe branch from 084364b to 6fba92a Compare March 5, 2026 13:43
@mergify mergify bot dismissed JulianMaurin’s stale review March 5, 2026 13:44

Pull request has been modified.

@mergify mergify bot deployed to Mergify Merge Protections March 5, 2026 13:44 Active
@mergify mergify bot requested a review from a team March 5, 2026 14:08
@mergify
Copy link
Contributor

mergify bot commented Mar 5, 2026

Merge Queue Status

Rule: default


  • Entered queue2026-03-05 20:58 UTC
  • Checks passed · in-place
  • Merged2026-03-05 20:59 UTC · at 6fba92aca699c2e063af2e50a8280f9a3a43205f

This pull request spent 7 seconds in the queue, including 1 second running CI.

Required conditions to merge

@mergify mergify bot added the queued label Mar 5, 2026
@mergify mergify bot merged commit cd28f17 into main Mar 5, 2026
10 checks passed
@mergify mergify bot deleted the devs/sileht/allow-to-pass-config-file/I0b7bb94a7e7aff249ee90b650392dbae68f370fe branch March 5, 2026 20:59
@mergify mergify bot removed the queued label Mar 5, 2026
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