You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.adoc
+55Lines changed: 55 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,24 @@ Try to explain the scenario to us by following these tips:
95
95
96
96
To contribute to the repo one must adhere to the following:
97
97
98
+
**Conventional commits**
99
+
100
+
Conventional commits is a specification to standardize
101
+
commit messages. It improves the legibility and the meaning
102
+
of the messages enforcing rules to be followed.
103
+
104
+
The message should be formatted as shown bellow.
105
+
106
+
[source]
107
+
----
108
+
<type>[optional scope]: <description>
109
+
110
+
[optional body]
111
+
112
+
[optional footer(s)]
113
+
----
114
+
115
+
98
116
**Types of Commits:**
99
117
100
118
- **fix:** Any commit that patches a bug anywhere in the codebase
@@ -106,11 +124,48 @@ To contribute to the repo one must adhere to the following:
106
124
**Examples of commits**
107
125
108
126
- **Regular Commit Message:** This may be used for either fix or feat and can be written as `fix: <message>` or `feat: <message>`
127
+
128
+
[source]
129
+
----
130
+
fix: add NullPointerException validation
131
+
----
132
+
133
+
[source]
134
+
----
135
+
feat: supporting GAV parameter
136
+
----
109
137
- **Commit with breaking change**: Example: A new feature being introduced as a breaking change can be written as `feat!: <message>`, this can also simply be written as a regular feat with the *BREAKING CHANGE* appended to it at the end of the commit
138
+
139
+
[source]
140
+
----
141
+
feat!: replace flag
142
+
----
143
+
144
+
[source]
145
+
----
146
+
feat: add new flag
147
+
148
+
BREAKING CHANGE: used records, a feature that requires from Java 17 onwards
149
+
----
110
150
- **Specific breaking change:**: Example: A breaking change introduced with a new feature somewhere in the api can be written as `feat(api)!: <message>`
151
+
152
+
[source]
153
+
----
154
+
feat(api)!: add a required flag
155
+
----
111
156
- **Changing the docs:** `docs: <message>`
157
+
158
+
[source]
159
+
----
160
+
docs: add README.md
161
+
----
112
162
- **Regular commit message with specification:** A new feature introduced in the api can be written as `feat(api): <message>`
113
163
164
+
[source]
165
+
----
166
+
feat(api): add support for pom parent
167
+
----
168
+
114
169
**Formatting Commit messages**
115
170
116
171
All commit messages must clearly state the change that takes place. Multiple paragraphs or bullet points explaining the changes in detail are encouraged. The message must contain the link to the issue that it is directed towards.
0 commit comments