
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
git-merged-branches
Advanced tools
CLI tool to list all Git branches merged into a base branch with issue link formatting
git-merged-branches is a command-line utility to view branches merged into a selected base branch (e.g., master or main).
package.jsonInstall globally to use git-merged-branches or the shorter version gmb:
npm install --global git-merged-branches
Or use it without installation via npx:
npx git-merged-branches
By default, the command shows merged branches into the base branch (master or main). If neither exists, it will notify you.
Example output:
$ git-merged-branches
2 branches merged into master:
fix/crash-on-start
feat/add-new-feature
You can also delete these merged branches with the --delete option:
$ git-merged-branches --delete
2 branches merged into master:
fix/crash-on-start
feature/add-new-feature
Deleting branches locally…
Deleting branches remotely…
Branches deleted successfully.
You can configure the utility in your package.json under git-merged-branches. This allows you to set:
https://your-jira-instance.net/browse/{{prefix}}{{id}}.https://github.com/org/repo/issues/{{id}}.Example configuration for JIRA:
"git-merged-branches": {
"issueUrlFormat": "https://your-jira-instance.net/browse/{{prefix}}{{id}}",
"issueUrlPrefix": ["TOKEN-", "PROJECT-"]
}
Example configuration for GitHub:
"git-merged-branches": {
"issueUrlFormat": "https://github.com/org/repo/issues/{{id}}",
"issueUrlPrefix": ["#"]
}
With this setup, git-merged-branches will generate links for branches with such tokens in their name:
$ git-merged-branches
4 branches merged into master:
fix/EXTERNAL-391
fix/TOKEN-123_some-fix https://your-jira-instance.net/browse/TOKEN-123
hotfix
TOKEN-800_new-feature https://your-jira-instance.net/browse/TOKEN-800
refactor/#55_cleanup https://github.com/org/repo/issues/55
If the configuration is invalid, warnings will be shown and the utility will skip formatting URLs.
To contribute or test locally:
Clone the repository:
git clone https://github.com/VChet/git-merged-branches.git
cd git-merged-branches
Install dependencies:
pnpm install
Build the project:
pnpm run build
Link it locally for testing:
npm link
Now you can run git-merged-branches on your local machine.
Git commands are executed via child_process.execFileSync, eliminating shell injection risks. Network access originates from Git operations, e.g. git ls-remote, not from the application itself.
If you have any ideas, bug reports, or feature requests, feel free to contribute or report issues.
FAQs
CLI tool to list all Git branches merged into a base branch with issue link formatting
The npm package git-merged-branches receives a total of 12 weekly downloads. As such, git-merged-branches popularity was classified as not popular.
We found that git-merged-branches demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.