From 7c32ac17ddefd2813abd0247f6b936155f3440cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Volf?= Date: Thu, 15 Aug 2024 11:38:53 +0200 Subject: [PATCH 1/2] ci: add a GitHub action for checking conventional commits --- .github/workflows/conventional-commits.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/conventional-commits.yml diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml new file mode 100644 index 0000000..cb43ba0 --- /dev/null +++ b/.github/workflows/conventional-commits.yml @@ -0,0 +1,15 @@ +name: conventional commits + +on: + pull_request: + branches: [ master ] + +jobs: + build: + name: conventional commits + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: webiny/action-conventional-commits@v1.3.0 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 49d29d6e5f338b533f7b0573435d5cf071d97150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Volf?= Date: Thu, 15 Aug 2024 11:45:59 +0200 Subject: [PATCH 2/2] fix: make the action target PRs on the branch `main` --- .github/workflows/conventional-commits.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml index cb43ba0..ab0894e 100644 --- a/.github/workflows/conventional-commits.yml +++ b/.github/workflows/conventional-commits.yml @@ -2,7 +2,7 @@ name: conventional commits on: pull_request: - branches: [ master ] + branches: [ main ] jobs: build: