Skip to content

Conversation

@jd
Copy link
Member

@jd jd commented Jan 23, 2026

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]

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
Copilot AI review requested due to automatic review settings January 23, 2026 13:56
@mergify mergify bot deployed to Mergify Merge Protections January 23, 2026 13:56 Active
@mergify
Copy link
Contributor

mergify bot commented Jan 23, 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 Jan 23, 2026

🧪 CI Insights

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

🟢 All jobs passed!

But CI Insights is watching 👀

@mergify mergify bot requested a review from a team January 23, 2026 13:59
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 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.

mergify bot added a commit that referenced this pull request Jan 26, 2026
@mergify
Copy link
Contributor

mergify bot commented Jan 26, 2026

Merge Queue Status

🚫 The pull request has left the queue (rule: default) at 025ec40

This pull request spent 1 minute 35 seconds in the queue, including 1 minute 19 seconds running CI.
The checks were run on draft #938.

Required conditions to merge

Reason

The merge conditions cannot be satisfied due to failing checks

Failing checks:

Hint

You may have to fix your CI before adding the pull request to the queue again.
If you update this pull request, to fix the CI, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio requeue comment.

@mergify mergify bot added the queued label Jan 26, 2026
@mergify mergify bot added dequeued and removed queued labels Jan 26, 2026
@jd
Copy link
Member Author

jd commented Jan 26, 2026

@Mergifyio requeue

@mergify
Copy link
Contributor

mergify bot commented Jan 26, 2026

requeue

✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically

@mergify
Copy link
Contributor

mergify bot commented Jan 26, 2026

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.
The checks were run on draft #939.

Required conditions to merge

mergify bot added a commit that referenced this pull request Jan 26, 2026
@mergify mergify bot added queued and removed dequeued labels Jan 26, 2026
@mergify mergify bot merged commit 3ffcc5e into main Jan 26, 2026
16 checks passed
@mergify mergify bot deleted the devs/jd/add-stack-list-command/I0a142447aacf2e96838b26d433e1749e94beaa6a branch January 26, 2026 17:00
@mergify mergify bot removed the queued label Jan 26, 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.

3 participants