Commits from CPython
What will you do if these are the
changes you're going to release?
Slide 29
Slide 29 text
No content
Slide 30
Slide 30 text
When developers made these changes,
they knew what they were changing.
Slide 31
Slide 31 text
No content
Slide 32
Slide 32 text
Concise commit messages make
comprehending the changes easier
Slide 33
Slide 33 text
No content
Slide 34
Slide 34 text
No content
Slide 35
Slide 35 text
How to write good commit
messages?
1. Separate subject from body with a blank line
2. Limit the subject line to 50 characters
3. Capitalize the subject line
4. Do not end the subject line with a period
5. Use the imperative mood in the subject line
6. Wrap the body at 72 characters
7. Use the body to explain what and why vs. how
Type of Changes
1.New Feature
2.Bug fix
3.Refactor
4.Style Change
5.Documentation
6.Improve test coverage
7.Performance
8.Build tool
9.CI/CD
10.and etc.
Slide 39
Slide 39 text
Mapping
Type of change → Version
Slide 40
Slide 40 text
Mapping
Type of change → Version
Slide 41
Slide 41 text
A simple rule example
(add the type at the end of commits)
Slide 42
Slide 42 text
A simple rule example
(add the type at the end of commits)
Slide 43
Slide 43 text
A simple rule example
(add the type at the end of commits)
Slide 44
Slide 44 text
Is there a better rule?
Slide 45
Slide 45 text
No content
Slide 46
Slide 46 text
No content
Slide 47
Slide 47 text
Conventional Commit Scheme
Somehow set language to "Turtle" for syntax highlight works well 🤔
Slide 48
Slide 48 text
Example
Commits from conventional-commit website
Slide 49
Slide 49 text
No content
Slide 50
Slide 50 text
No content
Slide 51
Slide 51 text
No content
Slide 52
Slide 52 text
No content
Slide 53
Slide 53 text
commitizen-tools
Slide 54
Slide 54 text
Please like
Slide 55
Slide 55 text
Please like, subscribe
Slide 56
Slide 56 text
Please like, subscribe and contribute
Slide 57
Slide 57 text
No content
Slide 58
Slide 58 text
Install commitizen
Slide 59
Slide 59 text
Initialize commitizen
Slide 60
Slide 60 text
Initialize commitizen
Slide 61
Slide 61 text
Initialize commitizen
Slide 62
Slide 62 text
Initialize commitizen
Slide 63
Slide 63 text
Initialize commitizen
Slide 64
Slide 64 text
Initialize commitizen
Slide 65
Slide 65 text
Initialize commitizen
Slide 66
Slide 66 text
Initialize commitizen
Slide 67
Slide 67 text
Initialize commitizen
Slide 68
Slide 68 text
Initialize commitizen
Slide 69
Slide 69 text
Making a commit
Slide 70
Slide 70 text
Making a commit
Slide 71
Slide 71 text
Making a commit
Slide 72
Slide 72 text
Making a commit
Slide 73
Slide 73 text
Making a commit
Slide 74
Slide 74 text
Making a commit
Slide 75
Slide 75 text
Making a commit
Slide 76
Slide 76 text
Output commit
Slide 77
Slide 77 text
Bump version
Slide 78
Slide 78 text
Bump version
Slide 79
Slide 79 text
Bump version
Generate a new commit for
bumping versions