GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - walles/git-commit-message-plus: VSCode git commit message highlighter nicer than the built-in one

BranchesTags
Open more actions menu

Latest commit

 

History

357 Commits
357 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
images
images
 
 
src
src
 
 
syntaxes
syntaxes
 
 
tests
tests
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
.vscodeignore
.vscodeignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
esbuild.js
esbuild.js
 
 
eslint.config.js
eslint.config.js
 
 
language-configuration.json
language-configuration.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
package.nls.json
package.nls.json
 
 
tsconfig.json
tsconfig.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

CI Status

Git Commit Message Plus

A git commit message highlighter being nicer than the built-in one.

Report issues here: https://github.com/walles/git-commit-message-plus/issues

Prep

Set VSCode as your Git commit editor. Then when you git commit, you'll be supported in writing good Git commit messages.

Features

  • Quick Fixes for certain diagnostics
  • Inform about git commit -v if it isn't being used (with Quick Fix)
  • Code completion for JIRA issue IDs based on branch name
  • Diagnostics for:
    • > 50 characters subject lines
    • > 72 characters subject lines
    • Not-capitalized subject lines (with Quick Fix)
    • Trailing punctuation in the subject line (with Quick Fix)
    • Not-capitalized JIRA issue IDs (with Quick Fix)
    • JIRA issue ID conflicting with branch name (with Quick Fix)
    • Non-blank second lines

Highlighted Git commit message

Internal

  • Comes with tests using https://github.com/PanAeon/vscode-tmgrammar-test
  • Comes with unit tests for the diagnostics

TODO

  • Consider the tests for no-diffs for both diagnostics and quick fixes. Are we really testing for comment-line followed by an empty line at the end?
  • Highlight current branch name in the Git metadata
  • Move all tests under the same top subdirectory

Development

To run the unit tests:

npm install && npm test

To install into VSCode:

  1. npm run package
  2. In VSCode:
    • Click Extensions
    • Click the ... menu in the top right corner
    • Click Install from VSIX...
    • Pick the 99.99.99 one, that's the perpetual development version

To check highlighting in VSCode: "Developer: Inspect Editor Tokens and Scopes"

To publish a new version:

  1. Bump the "version" in package.json
  2. npm install to get that version into package-lock.json as well
  3. Commit the version bump ^
  4. git push
  5. git tag NEW-VERSION-NUMBER && git push --tags
  6. npm run publish

If npm run publish fails with "Access Denied: The Personal Access Token used has expired.":

  1. Go to Azure DevOps and click your profile icon (User settings) -> Personal access tokens.
  2. Create a new token with the organization set to All accessible organizations and the scope set to Marketplace / Manage.
  3. Run npx vsce login walles and paste the new PAT before trying the publish command again.

About

VSCode git commit message highlighter nicer than the built-in one

Topics

commit-messagegitgit-commit-messagesvscode-extension

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.