Stack report script: dry-run which open PRs merge cleanly onto main, and in what order

Open
#90 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
git, github, python
Domain
cli, devops, tooling

Research direction

Create scripts/stack_report.py and start by reviewing the existing Python scripts and the GIT_DIR leak issue. Use gh pr list --json and git merge-tree --write-tree against origin/main, keeping subprocesses read-only and GIT_DIR-safe. Done means a table reports stack order, merge results, conflicting files, docs-only versus code conflicts, and the largest clean prefix without changing branches or the work tree.

Written by the indexing model from the issue text.

Description

enhancement

Idea

On 2026-10-01, landing an eight-PR stack meant repeated manual git merge-tree probes: which PRs merge cleanly onto main in stack order, where the conflicts are, and whether they're docs-only or code. Those probes led to the combined PR #71, which merged #38 and #39 with one CI run.

Proposal

Add scripts/stack_report.py, in Python since the repo already uses it. It:

  • reads the open PRs and their bases with gh pr list --json, and builds the stack order;
  • probes git merge-tree --write-tree cumulatively onto origin/main, chaining synthetic commits, and never touches a branch or the work tree;
  • classifies each conflict as docs-only (CHANGELOG, testing profile, README) or code;
  • prints a table of PR, head, result, and conflicting files, plus the largest prefix that merges cleanly, ready to combine.

It must run with GIT_DIR-safe subprocess environments (see the GIT_DIR leak issue). It's read-only by design: no pushes and no merges.

Dominant language
Python
Stars
0
Forks
1
Avg merge
2h 13m
Merged PRs (30d)
51

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flyingrobots/AI-TTS

All issues in flyingrobots/AI-TTS

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.