Skip to content

Commit 9cdf9d4

Browse files
authored
MRG: Merge pull request #191 from octue/devops/use-conventional-commits-repo-for-ci-checks
Use conventional-commits repo for CI checks
2 parents 868d815 + dc7b507 commit 9cdf9d4

File tree

6 files changed

+8
-220
lines changed

6 files changed

+8
-220
lines changed

.github/workflows/python-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ jobs:
2323
curl -L https://github.com/idc101/git-mkver/releases/download/v1.2.1/git-mkver-linux-amd64-1.2.1.tar.gz \
2424
| tar xvz \
2525
&& sudo mv git-mkver /usr/local/bin
26+
- name: Install semantic version checker
27+
run: pip install git+https://github.com/octue/conventional-commits
2628
- name: Check version
27-
run: python .github/workflows/scripts/check-semantic-version.py
29+
run: check-semantic-version setup.py
2830

2931
run-tests:
3032
if: "!contains(github.event.head_commit.message, 'skip_ci_tests')"

.github/workflows/scripts/check-semantic-version.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/scripts/compile-release-notes.py

Lines changed: 0 additions & 176 deletions
This file was deleted.

.github/workflows/update-pull-request.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ jobs:
2121
with:
2222
# Set fetch-depth to 0 to fetch all commit history (necessary for compiling pull request description).
2323
fetch-depth: 0
24+
- name: Install release note compiler
25+
run: pip install git+https://github.com/octue/conventional-commits
2426
- name: Compile new pull request description
2527
run: |
2628
echo 'PULL_REQUEST_NOTES<<EOF' >> $GITHUB_ENV
27-
echo "$(python .github/workflows/scripts/compile-release-notes.py LAST_RELEASE '${{ github.event.pull_request.body }}')" >> $GITHUB_ENV
29+
echo "$(compile-release-notes LAST_RELEASE '${{ github.event.pull_request.body }}')" >> $GITHUB_ENV
2830
echo 'EOF' >> $GITHUB_ENV
2931
- name: Update pull request body
3032
uses: riskledger/update-pr-description@v2

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ repos:
5858
- '^release/(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$'
5959

6060
- repo: https://github.com/octue/pre-commit-hooks
61-
rev: 0.0.2
61+
rev: 0.0.3
6262
hooks:
6363
- id: check-commit-message-is-conventional
6464
stages: [commit-msg]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
setup(
1919
name="octue",
20-
version="0.1.24", # Ensure all requirements files containing octue are updated, too (e.g. docs build).
20+
version="0.1.25", # Ensure all requirements files containing octue are updated, too (e.g. docs build).
2121
py_modules=["cli"],
2222
install_requires=[
2323
"click>=7.1.2",

0 commit comments

Comments
 (0)