diff --git a/.github/workflows/conventional-commit.yml b/.github/workflows/conventional-commit.yml new file mode 100644 index 000000000000..ab9dc2ae9eff --- /dev/null +++ b/.github/workflows/conventional-commit.yml @@ -0,0 +1,47 @@ +name: Conventional Commit + +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + branches-ignore: + - release-please-* +jobs: + conventional-commit: + name: Conventional Commit + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Check PR Conventional Commit title + uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | # mirrors changelog-sections in the /release-please-config.json + feat + fix + infra + ci + docs + deps + perf + refactor + test + chore + - name: Auto-label PR with Conventional Commit title + uses: kramen22/conventional-release-labels@v1 + with: + type_labels: | + { + "feat": "feature", + "fix": "fix", + "infra": "infrastructure", + "ci": "ci-cd", + "docs": "docs", + "deps": "dependencies", + "perf": "performance", + "refactor": "refactor", + "test": "testing", + "chore": "chore" + } + ignored_types: '[]' diff --git a/.github/workflows/platform-pull-request.yml b/.github/workflows/platform-pull-request.yml index bc81034092be..550e484a5355 100644 --- a/.github/workflows/platform-pull-request.yml +++ b/.github/workflows/platform-pull-request.yml @@ -10,46 +10,6 @@ on: - release-please-* jobs: - conventional-commit: - name: Conventional Commit - runs-on: ubuntu-latest - permissions: - pull-requests: write - steps: - - name: Check PR Conventional Commit title - uses: amannn/action-semantic-pull-request@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - types: | # mirrors changelog-sections in the /release-please-config.json - feat - fix - infra - ci - docs - deps - perf - refactor - test - chore - - name: Auto-label PR with Conventional Commit title - uses: kramen22/conventional-release-labels@v1 - with: - type_labels: | - { - "feat": "feature", - "fix": "fix", - "infra": "infrastructure", - "ci": "ci-cd", - "docs": "docs", - "deps": "dependencies", - "perf": "performance", - "refactor": "refactor", - "test": "testing", - "chore": "chore" - } - ignored_types: '[]' - check-permissions: name: Check actor permissions runs-on: ubuntu-latest