-
Notifications
You must be signed in to change notification settings - Fork 10
feat(stack): add mergify stack list command
#931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(stack): add mergify stack list command
#931
Conversation
Add a new command to display the current stack's commits and their associated PRs. Shows PR status (open, draft, merged, no PR) with color-coded output. Supports --json flag for scripting and --trunk to specify target branch. Co-Authored-By: Claude Opus 4.5 <[email protected]> Change-Id: I0a142447aacf2e96838b26d433e1749e94beaa6a
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 🤖 Continuous IntegrationWonderful, this rule succeeded.
🟢 👀 Review RequirementsWonderful, this rule succeeded.
🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
🟢 🔎 ReviewsWonderful, this rule succeeded.
🟢 📕 PR descriptionWonderful, this rule succeeded.
|
🧪 CI InsightsHere's what we observed from your CI run for 025ec40. 🟢 All jobs passed!But CI Insights is watching 👀 |
There was a problem hiding this 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 a new mergify stack list command to display commits in the current stack along with their associated pull request status. The command shows PR state (open, draft, merged, or no PR) with color-coded output and supports JSON output for scripting workflows.
Changes:
- Implements core stack listing logic with PR status detection
- Adds comprehensive test coverage for various stack states and edge cases
- Integrates the new command into the CLI interface with --json and --trunk flags
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| mergify_cli/stack/list.py | Core implementation of stack listing functionality with status detection and display formatting |
| mergify_cli/tests/stack/test_list.py | Comprehensive test suite covering PR states, JSON output, empty stacks, and error cases |
| mergify_cli/stack/cli.py | CLI integration adding the new list command with trunk and JSON output options |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge Queue Status🚫 The pull request has left the queue (rule: This pull request spent 1 minute 35 seconds in the queue, including 1 minute 19 seconds running CI. Required conditions to merge
ReasonThe merge conditions cannot be satisfied due to failing checks Failing checks:
HintYou may have to fix your CI before adding the pull request to the queue again. |
|
@Mergifyio requeue |
✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically |
Merge Queue Status✅ The pull request has been merged at 025ec40 This pull request spent 2 minutes 6 seconds in the queue, including 1 minute 51 seconds running CI. Required conditions to merge
|
Add a new command to display the current stack's commits and their
associated PRs. Shows PR status (open, draft, merged, no PR) with
color-coded output.
Supports --json flag for scripting and --trunk to specify target branch.
Co-Authored-By: Claude Opus 4.5 [email protected]