forked from santoshyadavdev/angular-devtools
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 896 Bytes
/
Copy pathcommit-message.yml
File metadata and controls
37 lines (30 loc) · 896 Bytes
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: Commit message
on:
pull_request:
types: [opened, edited, reopened, synchronize]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
- name: Pull request title
env:
TITLE: ${{ github.event.pull_request.title }}
run: node scripts/commit-message.mjs --title "$TITLE" --warn
- name: Commit messages
env:
BASE: ${{ github.event.pull_request.base.sha }}
HEAD: ${{ github.event.pull_request.head.sha }}
run: node scripts/commit-message.mjs --range "$BASE..$HEAD" --warn