Skip to content

Commit

Permalink
fix: only check PR title
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Nov 30, 2023
1 parent 167c056 commit 46e9a4b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,3 @@ jobs:
with:
github_token: ${{ secrets.github_token }}
locale: "US"

cocogitto:
name: cocogitto
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: "Conventional commit check"
uses: cocogitto/cocogitto-action@v3
with:
check: true
check-latest-tag-only: true
34 changes: 34 additions & 0 deletions .github/workflows/event_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ⚡ Pull-Request
run-name: 'PR / ${{ github.event.pull_request.title }}'

on:
pull_request:
types:
- opened # A pull request was created.
- reopened # A closed pull request was reopened.
- edited # A pull request's title, body, or labels are edited.
- synchronize # A pull request's branch was synchronized with its base branch.
- unlocked # Conversation on a pull request was unlocked.

concurrency:
group: pr-${{ github.event.pull_request.number }}
cancel-in-progress: true

permissions:
contents: read
id-token: write
issues: read
pull-requests: write

jobs:
check_pr:
name: Check PR
runs-on:
group: ${{ vars.RUN_GROUP }}
permissions:
statuses: write
steps:
- name: Check PR Title
uses: aslafy-z/conventional-pr-title-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 46e9a4b

Please sign in to comment.