Skip to content

Conversation

@sileht
Copy link
Member

@sileht sileht commented Oct 8, 2025

This will be used like this:

mergify ci scopes --write $RUNNER_TEMP/mergify-scopes.json
mergify ci scopes-send --file $RUNNER_TEMP/mergify-scopes.json

@mergify mergify bot had a problem deploying to Mergify Merge Protections October 8, 2025 17:09 Failure
@sileht
Copy link
Member Author

sileht commented Oct 8, 2025

This pull request is part of a stack:

  1. feat(scopes): upload scopes to Mergify API (#806) 👈
  2. chore: remove click.Exception from modules (#807)
  3. fix: better handling of GitHub events (#808)
  4. feat: change configuration file format (#811)

@mergify
Copy link
Contributor

mergify bot commented Oct 8, 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=test (macos-15)
    • check-success=test (ubuntu-24.04)
    • check-success=test (windows-2025)

🟢 👀 Review Requirements

Wonderful, this rule succeeded.
  • any of:
    • #approved-reviews-by>=2
    • author = dependabot[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

@mergify
Copy link
Contributor

mergify bot commented Oct 8, 2025

🧪 CI Insights

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

🟢 All jobs passed!

But CI Insights is watching 👀

@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from 7bb0004 to 59313f1 Compare October 8, 2025 17:12
@mergify mergify bot had a problem deploying to Mergify Merge Protections October 8, 2025 17:13 Failure
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from 59313f1 to 5e1af89 Compare October 8, 2025 17:14
@mergify mergify bot had a problem deploying to Mergify Merge Protections October 8, 2025 17:15 Failure
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from 5e1af89 to 90b0ec1 Compare October 8, 2025 20:05
@mergify mergify bot had a problem deploying to Mergify Merge Protections October 8, 2025 20:05 Failure
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from 90b0ec1 to 6d24897 Compare October 8, 2025 20:23
@mergify mergify bot had a problem deploying to Mergify Merge Protections October 8, 2025 20:24 Failure
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from 6d24897 to 6efa181 Compare October 8, 2025 20:25
@mergify mergify bot had a problem deploying to Mergify Merge Protections October 8, 2025 20:26 Failure
@mergify mergify bot requested a review from a team October 8, 2025 20:28
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I63589a7b6e202dc7bd86d1e3d965a26db72638bd branch from b0b6f99 to 49af629 Compare October 9, 2025 11:53
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from 6efa181 to d07334f Compare October 9, 2025 11:53
@mergify mergify bot had a problem deploying to Mergify Merge Protections October 9, 2025 11:53 Failure
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I63589a7b6e202dc7bd86d1e3d965a26db72638bd branch from 49af629 to fe2a38d Compare October 9, 2025 14:31
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from d07334f to dc1b465 Compare October 9, 2025 14:31
@mergify mergify bot had a problem deploying to Mergify Merge Protections October 9, 2025 14:32 Failure
Base automatically changed from devs/sileht/fetch-for-diff/I63589a7b6e202dc7bd86d1e3d965a26db72638bd to main October 10, 2025 07:08
@mergify
Copy link
Contributor

mergify bot commented Oct 10, 2025

@sileht this pull request is now in conflict 😩

@mergify mergify bot added the conflict label Oct 10, 2025
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from dc1b465 to e93bf88 Compare October 10, 2025 07:09
@mergify mergify bot had a problem deploying to Mergify Merge Protections October 10, 2025 07:10 Failure
@mergify mergify bot requested a review from a team October 10, 2025 07:14
Copilot AI review requested due to automatic review settings October 10, 2025 07:27
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from e93bf88 to cd003f0 Compare October 10, 2025 07:27
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 adds functionality to upload scope detection results to the Mergify API. The scopes command now not only detects which scopes are impacted by changed files but also uploads this information to Mergify when running in CI environments.

Key changes:

  • Enhanced scopes CLI command to upload detected scopes to Mergify API
  • Added utility functions for GitHub event handling and boolean environment variable parsing
  • Implemented HTTP client for Mergify API communication

Reviewed Changes

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

Show a summary per file
File Description
mergify_cli/utils.py Added Mergify HTTP client, GitHub event parsing, and boolean environment utilities
mergify_cli/ci/scopes/cli.py Modified detect function to return DetectedScope dataclass and added upload_scopes function
mergify_cli/ci/scopes/base_detector.py Refactored GitHub event handling to use centralized utility function
mergify_cli/ci/detector.py Added GitHub PR number detection and refactored boolean parsing to use utility
mergify_cli/ci/cli.py Enhanced scopes command with API upload functionality and parameter validation
mergify_cli/tests/* Comprehensive test coverage for new functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mergify mergify bot had a problem deploying to Mergify Merge Protections October 10, 2025 07:28 Failure
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from cd003f0 to 07809cd Compare October 10, 2025 08:35
@mergify mergify bot had a problem deploying to Mergify Merge Protections October 10, 2025 08:35 Failure
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from 07809cd to cd6d784 Compare October 10, 2025 08:48
@mergify mergify bot had a problem deploying to Mergify Merge Protections October 10, 2025 08:49 Failure
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from cd6d784 to 1155b69 Compare October 10, 2025 08:51
@mergify mergify bot had a problem deploying to Mergify Merge Protections October 10, 2025 08:52 Failure
@mergify mergify bot requested a review from a team October 10, 2025 09:14
jd
jd previously approved these changes Oct 10, 2025
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from 1155b69 to b2e712e Compare October 10, 2025 11:55
@mergify mergify bot dismissed jd’s stale review October 10, 2025 11:56

Pull request has been modified.

@mergify mergify bot had a problem deploying to Mergify Merge Protections October 10, 2025 11:56 Failure
This will be used like this:
```
mergify ci scopes --write $RUNNER_TEMP/mergify-scopes.json
mergify ci scopes-send --file $RUNNER_TEMP/mergify-scopes.json
```

Change-Id: I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2
@sileht sileht force-pushed the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch from b2e712e to 716c97a Compare October 10, 2025 13:02
@mergify mergify bot deployed to Mergify Merge Protections October 10, 2025 13:02 Active
@mergify mergify bot requested a review from a team October 10, 2025 13:04
@mergify mergify bot merged commit 9336584 into main Oct 10, 2025
8 checks passed
@mergify mergify bot deleted the devs/sileht/fetch-for-diff/I913ec1dfc5a9b9fd50253e67f453e8c3328eb2e2 branch October 10, 2025 13:40
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