diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..4ead895 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,31 @@ +--- +name: PR checks + +on: + pull_request: + types: + - opened + - edited + - synchronize + - reopened + - unlocked + +permissions: + contents: read + +jobs: + check-conventional-commit: + name: Check commit messages + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: "${{ github.event.pull_request.head.ref }}" + repository: "${{ github.event.pull_request.head.repo.full_name }}" + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + cache: "pip" # caching pip dependencies + - run: pip install commitizen + - name: Check commit messages + run: cz check --rev-range origin/${GITHUB_BASE_REF}.. diff --git a/pom.xml b/pom.xml index 7e6bd56..988633f 100644 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ org.apache.maven.plugins maven-jar-plugin - 3.3.0 + 3.4.1