From d712450c6f801581a7b6acd4dc30da13d278fbab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Volf?= <66163112+matous-volf@users.noreply.github.com> 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 }} -- 2.47.1 From afd22c3d9625afc28e3046cc139953e14b81674e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Volf?= <66163112+matous-volf@users.noreply.github.com> 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: -- 2.47.1