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.md
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,33 @@ Give us some time to review your proposal and provide you with our feedback. It
26
26
Our team adheres to the defined requirements to coding style to optimize for readability. You can take a look on this [Coding style guide](https://github.com/saveourtool/diktat/blob/master/info/guide/diktat-coding-convention.md) to better understand what we expect to see in your code.
27
27
28
28
29
+
## Naming conventions
30
+
We have been using GitHub for a while, and now we have a couple of tips for naming issues, commits and pull requests (PRs). You are welcome to stick to them too 🙂
31
+
32
+
Our favorite recipes are:
33
+
34
+
**issue title = feature request or bug description + issue ID**
35
+
36
+
**commit message = PR title = fix description + issue ID + (PR number)**
37
+
38
+
How to insert the issue ID into the commit message and the PR title?<br>
39
+
— Manually.
40
+
41
+
How to append the PR number to the PR title?<br>
42
+
— It appends automatically.
43
+
44
+
How to insert the PR number into the commit message?<br>
45
+
— *Push* the feature branch + *Create pull request* on GitHub and then →<br>
46
+
1) The preferred and the easiest flow:
47
+
<br>*Squash and merge* on GitHub → the PR number automatically appends to the resulting commit message
48
+
2) The flow for advanced users:
49
+
<br>(a) squash the commits locally → insert the PR number in parentheses (!) manually into the resulting commit
50
+
message + *Force Push* the resulting commit → *Rebase and merge* on GitHub
51
+
<br>or
52
+
<br>(b) change the commit message locally → insert the PR number in parentheses (!) manually + *Force Push* the
53
+
commit → *Rebase and merge* on GitHub
54
+
55
+
29
56
## How to setup development environment?
30
57
31
58
Please refer [Developer guide](https://github.com/UnitTestBot/UTBotJava/blob/main/DEVNOTE.md) to setup developer environment, build and run UTBot.
0 commit comments