Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Related Work SCM ButtonNew to Visual Studio Code? Get it now.
Related Work SCM Button

Related Work SCM Button

akkiris

|
2 installs
| (0) | Free
Adds a Source Control input action that inserts Related Work from branch name.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Related Work SCM Button

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
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft