Skip to content

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

Closed
sileht wants to merge 1 commit intomainfrom
devs/sileht/allow-to-pass-config-file/Ide4525c9098103cd36627bf592518ba11c8d9c9c
Closed

feat(ci): add --config option and MERGIFY_CONFIG envvar to git-refs and scopes#998
sileht wants to merge 1 commit intomainfrom
devs/sileht/allow-to-pass-config-file/Ide4525c9098103cd36627bf592518ba11c8d9c9c

Conversation

@sileht
Copy link
Member

@sileht sileht commented Mar 4, 2026

Allow passing the mergify config file path via --config flag or
MERGIFY_CONFIG environment variable for both ci git-refs and ci scopes
commands.

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

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

mergify bot commented Mar 4, 2026

🧪 CI Insights

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

🟢 All jobs passed!

But CI Insights is watching 👀

@mergify
Copy link
Contributor

mergify bot commented Mar 4, 2026

Merge Protections

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

🔴 🔎 Reviews

This rule is failing.
  • #review-threads-unresolved = 0
  • #changes-requested-reviews-by = 0
  • #review-requested = 0

🟢 🤖 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)(?:\(.+\))?:

🟢 📕 PR description

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

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 extends the mergify ci CLI so callers can provide the Mergify YAML configuration path via a --config flag or the MERGIFY_CONFIG environment variable for the git-refs and scopes commands.

Changes:

  • Add a --config option (with MERGIFY_CONFIG envvar support) to mergify ci git-refs.
  • Add MERGIFY_CONFIG envvar support to the existing --config option for mergify ci scopes.

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

@sileht sileht force-pushed the devs/sileht/allow-to-pass-config-file/Ide4525c9098103cd36627bf592518ba11c8d9c9c branch from 98e7637 to e3664da Compare March 4, 2026 14:20
@mergify mergify bot had a problem deploying to Mergify Merge Protections March 4, 2026 14:20 Failure
@mergify mergify bot requested a review from a team March 4, 2026 14:22
JulianMaurin
JulianMaurin previously approved these changes Mar 4, 2026
@mergify mergify bot requested a review from a team March 4, 2026 14:58
…nd scopes

Allow passing the mergify config file path via --config flag or
MERGIFY_CONFIG environment variable for both ci git-refs and ci scopes
commands.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change-Id: Ide4525c9098103cd36627bf592518ba11c8d9c9c
@sileht sileht force-pushed the devs/sileht/allow-to-pass-config-file/Ide4525c9098103cd36627bf592518ba11c8d9c9c branch from e3664da to ae5e4f2 Compare March 4, 2026 16:20
@mergify mergify bot dismissed JulianMaurin’s stale review March 4, 2026 16:20

Pull request has been modified.

@mergify mergify bot had a problem deploying to Mergify Merge Protections March 4, 2026 16:20 Failure
"config_path",
type=click.Path(),
type=click.Path(exists=True, dir_okay=False),
envvar="MERGIFY_CONFIG",
Copy link
Contributor

Choose a reason for hiding this comment

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

@mergify mergify bot requested a review from a team March 4, 2026 19:53
@sileht sileht closed this Mar 5, 2026
@sileht sileht deleted the devs/sileht/allow-to-pass-config-file/Ide4525c9098103cd36627bf592518ba11c8d9c9c branch March 5, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants