mirror of
https://github.com/CMiksche/gitea-auto-update
synced 2025-12-10 07:57:23 +01:00
feat: gitlint
Add gitlint settings to the master.
This commit is contained in:
5
.gitlint
Normal file
5
.gitlint
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
[general]
|
||||||
|
contrib=contrib-title-conventional-commits
|
||||||
|
|
||||||
|
[contrib-title-conventional-commits]
|
||||||
|
types = build,ci,docs,feat,fix,perf,refactor,style,test
|
||||||
@@ -7,4 +7,5 @@ install:
|
|||||||
- pip install pipenv
|
- pip install pipenv
|
||||||
- pipenv install
|
- pipenv install
|
||||||
script:
|
script:
|
||||||
|
- gitlint
|
||||||
- python tests.py
|
- python tests.py
|
||||||
|
|||||||
1
Pipfile
1
Pipfile
@@ -10,6 +10,7 @@ requests = "*"
|
|||||||
packaging = "*"
|
packaging = "*"
|
||||||
fire = "*"
|
fire = "*"
|
||||||
configparser = "*"
|
configparser = "*"
|
||||||
|
gitlint = "*"
|
||||||
|
|
||||||
[requires]
|
[requires]
|
||||||
python_version = "3.7"
|
python_version = "3.7"
|
||||||
|
|||||||
@@ -62,9 +62,13 @@ If you want to schedule your updates, edit your /etc/crontab file.
|
|||||||
|
|
||||||
The following instructions help you for developing.
|
The following instructions help you for developing.
|
||||||
|
|
||||||
|
* Check out the [Contribution Guidelines](CONTRIBUTING.md).
|
||||||
* Clone this git repo
|
* Clone this git repo
|
||||||
* Install pipenv: `pip install pipenv`
|
* Install pipenv: `pip install pipenv`
|
||||||
* Install all dependencies: `pipenv install`
|
* Install all dependencies: `pipenv install`
|
||||||
|
* You can run the tests with `python tests.py`
|
||||||
|
* After changes and commit, you can check if your commit message follows the contribution guidelines with `gitlint`. If there is a problem, gitlint will show you a error message.
|
||||||
|
* After pushing, you should check the build status which currently checks the tests and the commit message format.
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user