From 28dd4017c4f9edb01cd22208381f24f84acfec2b Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 20 Nov 2026 12:16:16 +0100 Subject: [PATCH 1/4] feat: add `sequence-drop` passthru CLI flag `changelog-maker@5.1.0` added support for `--sequence-drop` --- branch-diff.js | 1 + 1 file changed, 1 insertion(+) diff --git a/branch-diff.js b/branch-diff.js index 6c206f5..740c1bb 100755 --- a/branch-diff.js +++ b/branch-diff.js @@ -136,6 +136,7 @@ async function main () { repo: { type: 'string' }, 'require-label': { type: 'string', multiple: true }, reverse: { type: 'boolean' }, + 'sequence-drop': { type: 'string' }, user: { type: 'string' }, version: { type: 'boolean', short: 'v' } } From 70e5df177b2677ef049b4c38ef73da90debd6a3e Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 20 Nov 2026 12:17:07 +0100 Subject: [PATCH 2/4] fixup! feat: add `sequence-drop` passthru CLI flag --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 795478b..1c91c6c 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "author": "Rod (http://r.va.gg/)", "license": "MIT", "dependencies": { - "changelog-maker": "^5.0.5", + "changelog-maker": "^5.1.3", "commit-stream": "^2.0.1", "gitexec": "^2.0.1", "pkg-to-id": "^0.0.3", From ba3548ec2e74589adc43781add925a036a5bc474 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 21 Nov 2026 09:58:46 +0100 Subject: [PATCH 3/4] fixup! feat: add `sequence-drop` passthru CLI flag --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b8719eb..3438fce 100644 --- a/README.md +++ b/README.md @@ -29,15 +29,17 @@ But the comparison isn't quite as strict, generally leading to a shorter list of * `--exclude-label`: Exclude any commits from the list that come from a GitHub pull request with the given label. Multiple `--exclude-label` options may be provided, they will also be split by `,`. e.g. `--exclude-label=semver-major,meta`. * `--require-label`: Only include commits in the list that come from a GitHub pull request with the given label. Multiple `--require-label` options may be provided, they will also be split by `,`. e.g. `--require-label=test,doc`. * `--patch-only`: An alias for `--exclude-label=semver-major,semver-minor`. -* `--format`: Dictates what formatting the output will have. Possible options are: `simple`, `markdown`, `plaintext`, `messageonly` and `sha`. The default is to print a `simple` output suitable for stdout. An unknown format is an error. - - `simple`: Don't print full markdown output, good for console printing without the additional fluff. - - `sha`: Print only the 10-character truncated commit hashes. Good for piping though additional tooling, such as `xargs git cherry-pick` for applying commits. +* `--format`: Dictates what formatting the output will have. Possible options are: + - `simple`: Don't print full markdown output, good for console printing without the additional fluff. **This is default**. + - `sequence`: Hybrid format that can be pasted directly in the sequence editor of a `git rebase --interactive` session, with commit title, author, labels and PR URL as comments compatible with interactive rebase input. + - `sha`: Print only the 10-character truncated commit hashes. - `plaintext`: A very simple form, without commit details, implies `--group`. - `markdown`: A Markdown formatted from, with links and proper escaping. - - `messageonly`: Only the commit message, implies `--group`. + - `messageonly`: Displays the commit message only, implies `--group`. * `--filter-release`: Exclude Node-style release commits from the list. e.g. `Working on v1.0.0` or `2015-10-21 Version 2.0.0`. * `--reverse`: Reverse the results, this is especially useful when piping output to `xargs`. * `--commit-url`:A URL template which will be used to generate commit URLs for a repository not hosted in GitHub. `{ref}` is the placeholder that will be replaced with the commit, i.e. `--commit-url=https://gitlab.com/myUser/myRepo/commit/{ref}`. `{ghUser}` and `{ghRepo}` are available if they can be derived from package.json (Gitlab and Bitbucket URLs should be understood in package.json). +* `--sequence-drop=[,[,…]]`: When `--format=sequence`, will output the commits belonging to a PR with a label listed here as `drop` instead of `pick`. This can be useful for human backporter to understand why a specific commit does not apply cleanly, to spot which commit might be creating conflicts. * `--find-matching-prs`: Use the GitHub API to find the pull requests that match commits that don't have `PR-URL` metadata in their message text. * `--quiet` or `-q`: Do not print to stdout. * `--user`: Override the auto-detected GitHub user/org derived from package.json From 8bee69a255986844669b242632497f08f88b0b3f Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Sat, 28 Nov 2026 22:44:45 +1300 Subject: [PATCH 4/4] Apply batched suggestions from code review Co-authored-by: Rod Vagg --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3438fce..adfb356 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ But the comparison isn't quite as strict, generally leading to a shorter list of * `--require-label`: Only include commits in the list that come from a GitHub pull request with the given label. Multiple `--require-label` options may be provided, they will also be split by `,`. e.g. `--require-label=test,doc`. * `--patch-only`: An alias for `--exclude-label=semver-major,semver-minor`. * `--format`: Dictates what formatting the output will have. Possible options are: - - `simple`: Don't print full markdown output, good for console printing without the additional fluff. **This is default**. + - `simple` (default): Don't print full markdown output, good for console printing without the additional fluff. - `sequence`: Hybrid format that can be pasted directly in the sequence editor of a `git rebase --interactive` session, with commit title, author, labels and PR URL as comments compatible with interactive rebase input. - `sha`: Print only the 10-character truncated commit hashes. - `plaintext`: A very simple form, without commit details, implies `--group`. @@ -39,7 +39,7 @@ But the comparison isn't quite as strict, generally leading to a shorter list of * `--filter-release`: Exclude Node-style release commits from the list. e.g. `Working on v1.0.0` or `2015-10-21 Version 2.0.0`. * `--reverse`: Reverse the results, this is especially useful when piping output to `xargs`. * `--commit-url`:A URL template which will be used to generate commit URLs for a repository not hosted in GitHub. `{ref}` is the placeholder that will be replaced with the commit, i.e. `--commit-url=https://gitlab.com/myUser/myRepo/commit/{ref}`. `{ghUser}` and `{ghRepo}` are available if they can be derived from package.json (Gitlab and Bitbucket URLs should be understood in package.json). -* `--sequence-drop=[,[,…]]`: When `--format=sequence`, will output the commits belonging to a PR with a label listed here as `drop` instead of `pick`. This can be useful for human backporter to understand why a specific commit does not apply cleanly, to spot which commit might be creating conflicts. +* `--sequence-drop=[,[,...]]`: When `--format=sequence`, will output the commits belonging to a PR with a label listed here as `drop` instead of `pick`. This can be useful for a human backporter to understand why a specific commit does not apply cleanly, to spot which commit might be creating conflicts. * `--find-matching-prs`: Use the GitHub API to find the pull requests that match commits that don't have `PR-URL` metadata in their message text. * `--quiet` or `-q`: Do not print to stdout. * `--user`: Override the auto-detected GitHub user/org derived from package.json