Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: only check PR title #51

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}