enforce a standard git commit format
Bug #1947772 reported by
Andrea Ieri
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bootstack-charms-spec |
New
|
Undecided
|
Unassigned |
Bug Description
We should leverage pre-commit to enforce a git commit standard that would include the LP bug the commit is fixing. This would allow us to automate marking bugs as fix-released in launchpad, as well as generating release notes.
Open question: we may sometimes want to add trivial commits that are not tied to a bug. How do we prevent pre-commit from blocking the commit? One possibility would be to have an alternate valid format for trivial commits that includes a specific keyword, e.g. #TRIVIAL
To post a comment you must log in.
Suggest having a standard format and some docs surrounding that, e.g. `Fixes bug LP: #12345`, for formatting that is also captured and automatically turned to links by some editors/terminals.