Project

General

Profile

Actions

Feature #51537

open

use git `Prepare Commit Message` hook to add component in commit title

Added by Deepika Upadhyay almost 3 years ago. Updated about 2 years ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Tags:
low-hanging-fruit
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

git `Prepare Commit Message`[0], add git commit title based on files touched:

will add common component names used based on files touched, while forming a
commit which can be amended if needed or used as is

the workflow should be:
1. developer stages the changes
2. calls git commit -s
3. editor opens to add commit msg, prepopulated with component touched in changes
4. fill the templated commit

[0]https://www.atlassian.com/git/tutorials/git-hooks
blog ref: https://codeburst.io/understanding-git-hooks-in-the-easiest-way-bad9afcbb1b3

Actions

Also available in: Atom PDF