Skip to content

Commit 8a9f2ac

Browse files
chore(setup): add commit message template configuration
1 parent 1171679 commit 8a9f2ac

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

commit-template.txt

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Write your commit message using the Conventional Commits format.
2+
#
3+
# Format:
4+
# <type>(<scope>)!: <short summary>
5+
#
6+
# Common types:
7+
# feat: a new feature
8+
# fix: a bug fix
9+
# docs: documentation only changes
10+
# style: changes that do not affect code meaning (formatting, etc.)
11+
# refactor: code change that neither fixes a bug nor adds a feature
12+
# test: adding or updating tests
13+
# chore: other changes that don't modify src or test files
14+
#
15+
# Use "!" after the type or scope to indicate a BREAKING CHANGE.
16+
#
17+
# Examples:
18+
# feat!: drop support for Node 12
19+
# refactor(auth)!: change token structure
20+
# fix(ui): correct layout on iOS
21+
# docs(readme): add usage instructions
22+
#
23+
# Optional body:
24+
# - Explain the motivation for the change
25+
# - Highlight what changed
26+
#
27+
# BREAKING CHANGE (in body, if needed):
28+
# Add a line that starts with "BREAKING CHANGE:" followed by the explanation.
29+
#
30+
# Example with body and breaking change:
31+
#
32+
# feat(auth)!: switch to OAuth 2.1
33+
#
34+
# This update replaces the old token system with OAuth 2.1 for better security.
35+
#
36+
# BREAKING CHANGE: Old refresh tokens will no longer work.
37+
#
38+
# Guidelines:
39+
# - Keep the subject line under 72 characters.
40+
# - Use the imperative mood: "add", not "added" or "adds".
41+
# - Leave a blank line between subject, body, and footer (if any).

setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
22
set -e
33

4+
git config commit.template commit-template.txt
5+
46
# Function to use flutter or fvm flutter
57
flutter_cmd() {
68
if command -v fvm &> /dev/null; then

0 commit comments

Comments
 (0)