Skip to content

Commit

Permalink
Enforce semantic PR titles (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
cugu authored Jul 7, 2024
1 parent 451f200 commit f5fcee0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Semantic Pull Request

on:
pull_request_target:
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
with:
disallowScopes: ".*"
subjectPattern: "^(?![A-Z]).+$"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f5fcee0

Please sign in to comment.