Skip to content

Commit

Permalink
ci: PR-Lint for PR titles (#235)
Browse files Browse the repository at this point in the history
* ci: PR-Lint for PR titles

* change filename
  • Loading branch information
go-to-k committed Aug 16, 2024
1 parent 4ff64d4 commit 04e7c92
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# for manual release (No triggering when tagpr is used.)
name: release
name: manual
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
goreleaser:
manual:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -15,4 +15,4 @@ jobs:
- uses: ./.github/actions/release
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
homebrew-tap-github-token: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
homebrew-tap-github-token: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
42 changes: 42 additions & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "Lint PR"

on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened

permissions:
pull-requests: read

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
chore
docs
style
refactor
perf
test
ci
scopes: |
deps
main
app
action
io
types
version
client
requireScope: false

0 comments on commit 04e7c92

Please sign in to comment.