Skip to content

Commit

Permalink
infra: add semantic pr validation (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Feb 28, 2024
1 parent 6654c4e commit 42333a5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Semantic Pull Request

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions: {}

jobs:
main:
permissions:
pull-requests: read # to analyze PRs (amannn/action-semantic-pull-request)
statuses: write # to mark status of analyzed PR (amannn/action-semantic-pull-request)

runs-on: ubuntu-latest
timeout-minutes: 10
name: Semantic Pull Request
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f # v5.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
chore
refactor
docs
test
ci
build
infra
revert

0 comments on commit 42333a5

Please sign in to comment.