From bf49880776a44f5c2713b39438898161fe7ffb1c Mon Sep 17 00:00:00 2001 From: Rob Lazzurs Date: Sun, 1 Dec 2024 13:00:22 +0000 Subject: [PATCH] feat: Adding pull request workflow. This is part of making the main branch protected. --- .github/workflows/pull_request.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..f597dc9 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,16 @@ +--- +on: [pull_request] + +jobs: + cog_check_job: + runs-on: ubuntu-latest + name: check conventional commit compliance + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + # pick the pr HEAD instead of the merge commit + ref: ${{ github.event.pull_request.head.sha }} + + - name: Conventional commit check + uses: cocogitto/cocogitto-action@v3