-
Notifications
You must be signed in to change notification settings - Fork 238
34 lines (32 loc) · 890 Bytes
/
lint.yml
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
name: Lint
on: [pull_request]
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: wagoid/commitlint-github-action@v6
with:
configFile: './package.json'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
danger:
permissions:
contents: read # to fetch code (actions/checkout)
issues: write # to create comment
pull-requests: write # to create comment
statuses: write # to set PR status
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Danger
uses: danger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}