Adds a Source Control action button in stable SCM menus (scm/title and repository inline actions).
When clicked, it reads the current branch name and appends or updates this line in the commit message:
Related Work: #<id>
Branch Pattern
This extension extracts the first number that appears right after / in the branch name.
Examples:
feat/1900 -> Related Work: #1900
refact/2100 -> Related Work: #2100
fix/2122-hotfix -> Related Work: #2122
If the branch does not contain /number (for example main), the extension shows a warning and leaves your commit message unchanged.
Notes
- This extension uses stable contribution points, so no proposed API flag is required.
- It targets Git repositories through the built-in Git extension API.
Development
npm install
npm run compile
npm test
| |