Commit 992bff3
feat(stack): add revision history comments for force-pushed PRs
When `stack push` force-pushes a PR branch, reviewers have no way to see
what changed between the previous and new commits. This adds a "Revision
History" comment on each updated PR showing all push iterations with:
- Compare links (github.com/owner/repo/compare/old...new) so reviewers
can see exactly what changed
- Change type labels (content vs rebase) using git patch-id to detect
whether the force-push changed actual code or just rebased
- Timestamps for each push iteration
The feature is enabled by default. Disable per-push with
`--no-revision-history` or globally with:
git config --global mergify-cli.stack-revision-history false
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Change-Id: Id77b800246f8ba19cebedb75ca9913a790abcc251 parent f5e13b6 commit 992bff3
5 files changed
Lines changed: 904 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
344 | 353 | | |
345 | 354 | | |
346 | 355 | | |
| |||
356 | 365 | | |
357 | 366 | | |
358 | 367 | | |
| 368 | + | |
359 | 369 | | |
360 | 370 | | |
361 | 371 | | |
| |||
378 | 388 | | |
379 | 389 | | |
380 | 390 | | |
| 391 | + | |
381 | 392 | | |
382 | 393 | | |
383 | 394 | | |
| |||
0 commit comments