Compare commits
2 commits
4d36fa0c0e
...
4a4eb8d0e1
Author | SHA1 | Date | |
---|---|---|---|
4a4eb8d0e1 | |||
a109b47ba7 |
2 changed files with 17 additions and 2 deletions
8
.woodpecker.yml
Normal file
8
.woodpecker.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
pipeline:
|
||||||
|
test:
|
||||||
|
image: debian
|
||||||
|
commands:
|
||||||
|
- apt update
|
||||||
|
- apt install pylint3 python3-flake8
|
||||||
|
- python3 -m flake8 gitdch
|
||||||
|
- python3 -m pylint gitdch
|
11
gitdch
11
gitdch
|
@ -79,7 +79,9 @@ parser.add_argument(
|
||||||
'--version',
|
'--version',
|
||||||
type=str,
|
type=str,
|
||||||
dest='version',
|
dest='version',
|
||||||
help='Currrent version (default: autodetected using git describe --always --tags)'
|
help=(
|
||||||
|
'Currrent version (default: autodetected using git describe '
|
||||||
|
'--always --tags)')
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
@ -176,7 +178,12 @@ def add_version():
|
||||||
|
|
||||||
tag = None
|
tag = None
|
||||||
version_commit = None
|
version_commit = None
|
||||||
version = options.version or clean_deb_version(repo.git.describe('--always', '--tags'))
|
version = (
|
||||||
|
options.version or
|
||||||
|
clean_deb_version(
|
||||||
|
repo.git.describe('--always', '--tags')
|
||||||
|
)
|
||||||
|
)
|
||||||
messages = []
|
messages = []
|
||||||
for commit in repo.iter_commits():
|
for commit in repo.iter_commits():
|
||||||
if version_commit is None:
|
if version_commit is None:
|
||||||
|
|
Loading…
Reference in a new issue