-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (49 loc) · 1.47 KB
/
semantic-pull-request.yaml
File metadata and controls
55 lines (49 loc) · 1.47 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2025 The Linux Foundation
name: 'Semantic Pull Request'
# yamllint disable-line rule:truthy
on:
# Not supported when workflow contains: amannn/action-semantic-pull-request
# workflow_dispatch:
pull_request:
types: [opened, reopened, edited, synchronize]
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
semantic-pull-request:
name: "Semantic Pull Request"
permissions:
contents: read
runs-on: ubuntu-24.04
timeout-minutes: 3
steps:
# Harden the runner used by this workflow
# yamllint disable-line rule:line-length
- uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
with:
egress-policy: audit
- name: "Validate pull request title"
# yamllint disable-line rule:line-length
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Requires the type to be capitalised,
# but accept any of the standard types
types: |
Fix
Feat
Chore
Docs
Style
Refactor
Perf
Test
Revert
CI
Build
validateSingleCommit: true
validateSingleCommitMatchesPrTitle: true