Skip to content

Commit

Permalink
chore: move conventional commit (#4441)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Jul 31, 2024
1 parent 093e26a commit 40bdd54
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 40 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/conventional-commit.yml
Original file line number Diff line number Diff line change
@@ -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: '[]'
40 changes: 0 additions & 40 deletions .github/workflows/platform-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40bdd54

Please sign in to comment.