From: Harald Hoyer Date: Mon, 14 Dec 2020 15:18:02 +0000 (+0100) Subject: test(conventional): add Conventional Commits PR github action X-Git-Tag: 052~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c50ed83a3b668e90aa19cf8a0e5b4bd04ab9821;p=thirdparty%2Fdracut.git test(conventional): add Conventional Commits PR github action To ease the creation of the release notes, enforce some style on the git commit message titles with `Commisery`. https://github.com/marketplace/actions/commisery Using https://github.com/clog-tool/clog-cli later on these commits will generate a pretty nice base for the release notes. --- diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 000000000..c6782c559 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,19 @@ +name: Commisery +on: + pull_request: + types: [edited, opened, synchronize, reopened] + +jobs: + commit-message: + name: Conventional Commit Message Checker (Commisery) + runs-on: ubuntu-latest + steps: + - name: Check-out the repo under $GITHUB_WORKSPACE + uses: actions/checkout@v2 + + - name: Run Commisery + uses: KevinDeJong-TomTom/commisery-action@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + pull_request: ${{ github.event.number }} +