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
+50-1
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ Contributions are always welcomed. You can help **MySQL2** community in various
16
16
- Performance improvements
17
17
- Add Features
18
18
19
+
---
20
+
19
21
## Security Issues
20
22
21
23
Please contact project maintainers privately before opening a security issue on Github. It will allow us to fix the issue before attackers know about it.
@@ -24,18 +26,22 @@ Please contact project maintainers privately before opening a security issue on
24
26
25
27
- Andrey Sidorov, sidorares@yandex.ru
26
28
29
+
---
30
+
27
31
## New Features
28
32
29
33
It's better to discuss an API before actually start implementing it. You can open an issue on Github. We can discuss design of API and implementation ideas.
30
34
35
+
---
36
+
31
37
## Development
32
38
33
39
We assume you already have these tools installed on your system:
34
40
35
41
- MySQL Server
36
42
- Node.JS
37
43
38
-
As **MySQL2** is purely JS based you can develop it on Linux, Mac or Windows. Please follow these steps
44
+
As **MySQL2** is purely JS based, you can develop it on Linux, Mac or Windows. Please follow these steps
39
45
40
46
```bash
41
47
# clone node-mysql2
@@ -47,6 +53,40 @@ cd /path/to/node-mysql2
47
53
npm install
48
54
```
49
55
56
+
---
57
+
58
+
### Commits and Pull Request Titles
59
+
60
+
To ensure a clean commit history pattern, please use the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) format.
61
+
62
+
Prefixes that will trigger a new release version:
63
+
64
+
-`fix:` for patches, e.g., bug fixes that result in a patch version release.
65
+
-`feat:` for new features, e.g., additions that result in a minor version release.
66
+
67
+
Examples:
68
+
69
+
-`fix: message`
70
+
-`feat: message`
71
+
-`docs: message`
72
+
-`fix(module): message`
73
+
-`feat(module): message`
74
+
- etc.
75
+
76
+
---
77
+
78
+
### Including Tests
79
+
80
+
#### Fixes
81
+
82
+
Where possible, provide an error test case that your fix covers.
83
+
84
+
#### Features
85
+
86
+
Please ensure test cases to cover your features.
87
+
88
+
---
89
+
50
90
### Running Tests
51
91
52
92
Running tests requires MySQL server and an empty database. You can run `bash` command given below to create `test` database
@@ -77,3 +117,12 @@ FILTER='test-timestamp' npm run test
77
117
# or
78
118
FILTER='timeout' npm run test
79
119
```
120
+
121
+
> [!Tip]
122
+
> You can also run a single test by performing `node ./test/path-to-test-file`.
0 commit comments