Skip to content

Commit

Permalink
MRG: Merge pull request #89 from octue/devops/use-conventional-commit…
Browse files Browse the repository at this point in the history
…s-repo-for-ci-checks

Use conventional-commits repo for CI checks
  • Loading branch information
cortadocodes committed Jun 21, 2021
2 parents bdcde0b + b649c15 commit fcb8a7e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 220 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ jobs:
curl -L https://github.com/idc101/git-mkver/releases/download/v1.2.1/git-mkver-linux-amd64-1.2.1.tar.gz \
| tar xvz \
&& sudo mv git-mkver /usr/local/bin
- name: Install semantic version checker
run: pip install git+https://github.com/octue/conventional-commits
- name: Check version
run: python .github/workflows/scripts/check-semantic-version.py
run: check-semantic-version setup.py

run-tests:
if: "!contains(github.event.head_commit.message, 'skip_ci_tests')"
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/scripts/check-semantic-version.py

This file was deleted.

176 changes: 0 additions & 176 deletions .github/workflows/scripts/compile-release-notes.py

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/update-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
with:
# Set fetch-depth to 0 to fetch all commit history (necessary for compiling pull request description).
fetch-depth: 0
- name: Install release note compiler
run: pip install git+https://github.com/octue/conventional-commits
- name: Compile new pull request description
run: |
echo 'PULL_REQUEST_NOTES<<EOF' >> $GITHUB_ENV
echo "$(python .github/workflows/scripts/compile-release-notes.py LAST_RELEASE '${{ github.event.pull_request.body }}')" >> $GITHUB_ENV
echo "$(compile-release-notes LAST_RELEASE '${{ github.event.pull_request.body }}')" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Update pull request body
uses: riskledger/update-pr-description@v2
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ repos:
- '^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-]+)*))?$'

- repo: https://github.com/octue/pre-commit-hooks
rev: 0.0.2
rev: 0.0.3
hooks:
- id: check-commit-message-is-conventional
stages: [commit-msg]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name="twined",
version="0.0.23",
version="0.0.24",
py_modules=[],
install_requires=["jsonschema ~= 3.2.0", "python-dotenv"],
url="https://www.github.com/octue/twined",
Expand Down

0 comments on commit fcb8a7e

Please sign in to comment.