File tree Expand file tree Collapse file tree 4 files changed +63
-0
lines changed Expand file tree Collapse file tree 4 files changed +63
-0
lines changed Original file line number Diff line number Diff line change 2
2
# Add team(s) or bot account(s) here instead of personal names.
3
3
# Example:
4
4
# * @org/maintainers
5
+ README.md @ maintainers
Original file line number Diff line number Diff line change
1
+ name : Link Check
2
+ on :
3
+ pull_request :
4
+ paths : ['**/*.md']
5
+ permissions :
6
+ contents : read
7
+ pull-requests : write
8
+ jobs :
9
+ lychee :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - uses : lycheeverse/lychee-action@v1
14
+ with :
15
+ args : --verbose --no-progress --require-https --max-redirects 5 --retry-wait-time 2 --timeout 20s --exclude-private true **/*.md
Original file line number Diff line number Diff line change
1
+ name : Markdown Quality
2
+ on :
3
+ pull_request :
4
+ paths : ['**/*.md']
5
+ jobs :
6
+ quality :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v4
10
+ - name : Setup Node
11
+ uses : actions/setup-node@v4
12
+ with :
13
+ node-version : ' 20'
14
+ - run : npm i -g textlint @textlint/markdown textlint-rule-terminology textlint-rule-no-dead-link
15
+ - run : |
16
+ cat > .textlintrc.json <<'JSON'
17
+ {
18
+ "rules": {
19
+ "terminology": true,
20
+ "no-dead-link": { "checkRelative": true }
21
+ }
22
+ }
23
+ JSON
24
+ - run : textlint -f pretty-error '**/*.md'
Original file line number Diff line number Diff line change
1
+ name : README Guard
2
+ on :
3
+ push :
4
+ branches : [ main, master ]
5
+ paths : [ 'README.md' ]
6
+ permissions :
7
+ contents : write
8
+ pull-requests : write
9
+ jobs :
10
+ guard :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - name : Create review PR for README change
15
+ uses : peter-evans/create-pull-request@v6
16
+ with :
17
+ title : " Guard: Review README.md change"
18
+ body : " Automated guard: Please review README changes."
19
+ commit-message : " chore: guard README change"
20
+ branch : " chore/readme-guard-${{ github.run_id }}"
21
+ base : " ${{ github.ref_name }}"
22
+ add-paths : |
23
+ README.md
You can’t perform that action at this time.
0 commit comments