From 9b83265cc4b71c911bb7ebdae6634a3684878831 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Tue, 10 Dec 2024 10:24:47 -0500 Subject: [PATCH] fix: Make conventional commit action run only on main (#1312) ### Description of Changes Make Conventional commit action run only on PR to main Get rid of 'release' type since we can use `chore(release):` --- .github/workflows/conventional-commit.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/conventional-commit.yml b/.github/workflows/conventional-commit.yml index 764e5f10a..5d6721454 100644 --- a/.github/workflows/conventional-commit.yml +++ b/.github/workflows/conventional-commit.yml @@ -1,15 +1,16 @@ -name: PR Title Checks +name: PR Title Check on: pull_request: + branches: [main] types: [opened, synchronize, reopened, edited] jobs: - validate-pr-title: + conventional-commit-check: runs-on: ubuntu-latest steps: - name: Conventional Commit Validation uses: ytanikin/pr-conventional-commits@1.4.0 with: - task_types: '["feat","fix", "docs", "test", "ci", "refactor", "chore", "revert", "release"]' + task_types: '["feat","fix", "docs", "test", "ci", "refactor", "chore", "revert"]' add_label: 'false' \ No newline at end of file