aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/semantic-pull-request.yml
blob: 683e56d7c3b3413bf23e8ef2cb137c7c5a2cf166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          types: |
            feat
            fix
            chore
            refactor
            docs
            test
            ci
            build
            infra
            revert