question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

prepend certain characters to a commit-msg using precommit

See original GitHub issue

Not sure if the new commit-msg stage helps, may be we need a new prepare-commit-msg stage that can hook into ways people can add to commit messages?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
asottilecommented, Apr 8, 2019

The biggest internal change since that PR is the combination of the hook template and removal of bash, hopefully (?) it’s simpler now: https://github.com/pre-commit/pre-commit/blob/b33f2c40d8de0cd2c55a9b637773172198962832/pre_commit/resources/hook-tmpl#L162-L169

1reaction
milind-shakya-spcommented, Apr 8, 2019

@marcjay I went ahead with creating a precommit hook instead. You can checkout https://github.com/milin/giticket to see if its useful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prepending Your Git Commit Messages with User Story IDs
It's always a good practice to prepend your commit messages with something meaningful. For example, it is often common when working with project...
Read more >
How to automatically prepend git commit with a branch name
1 and it show the branch name appenede when do git commit -am ".." but on github. I cannot see the branch name...
Read more >
Prepend partial branch name to commit message - git
Example project with prepare-commit-msg hook configured to prepend branch name to commit message automatically
Read more >
Supported hooks - pre-commit
gitlint - Checks your git commit messages for style. gitlint-ci - gitlint ... giticket - Utility to prepend your commits with info from...
Read more >
How to use GIT HOOKS for better COMMITS (PYTHON CODE ...
Git hooks are a great way to automate your quality assurance for your commits. In this tutorial, we will explore the different types...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found