1
0
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:
Christoph Daniel Miksche
2019-09-11 13:53:51 +02:00
committed by GitHub
4 changed files with 11 additions and 0 deletions

5
.gitlint Normal file
View 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

View File

@@ -7,4 +7,5 @@ install:
- pip install pipenv - pip install pipenv
- pipenv install - pipenv install
script: script:
- gitlint
- python tests.py - python tests.py

View File

@@ -10,6 +10,7 @@ requests = "*"
packaging = "*" packaging = "*"
fire = "*" fire = "*"
configparser = "*" configparser = "*"
gitlint = "*"
[requires] [requires]
python_version = "3.7" python_version = "3.7"

View File

@@ -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