File tree Expand file tree Collapse file tree 3 files changed +22
-20
lines changed
Expand file tree Collapse file tree 3 files changed +22
-20
lines changed Original file line number Diff line number Diff line change 1- name : Ensure Conventional Commits-like PR titles
1+ name : PR title
22
33on :
44 pull_request_target :
5- types : [opened, edited, synchronize]
5+ types :
6+ - opened
7+ - edited
8+ - synchronize
9+ - reopened
10+ - ready_for_review
611
712permissions :
813 pull-requests : read
914
1015jobs :
1116 semantic-pull-request :
12- name : Validate PR title
17+ name : Check PR title
1318 runs-on : ubuntu-latest
1419 steps :
1520 - uses : amannn/action-semantic-pull-request@v5
16- # add `improv` to the list of allowed types
21+ env :
22+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1723 with :
18- types : |
24+ requireScope : false
25+ subjectPattern : ^(?![A-Z]).+$ # disallow title starting with capital
26+ types : | # add `improv` to the list of allowed types
1927 improv
2028 fix
2129 feat
2937 docs
3038 break
3139 revert
32- env :
33- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1- name : " Close stale issues and PRs "
1+ name : Stale bot
22on :
33 schedule :
44 - cron : " 18 04 * * 3"
@@ -11,13 +11,13 @@ jobs:
1111 stale :
1212 runs-on : ubuntu-latest
1313 steps :
14- - name : Close Stale Issues
14+ - name : Close stale issues
1515 uses : actions/stale@v9
1616 with :
1717 repo-token : ${{ secrets.GITHUB_TOKEN }}
1818
19- # DOCS https://github.com/actions/stale?tab=readme-ov-file #all-options
20- days-before-stale : 180 # ~6 months
19+ # DOCS https://github.com/actions/stale#all-options
20+ days-before-stale : 180
2121 days-before-close : 7
2222 stale-issue-label : " Stale"
2323 stale-issue-message : |
Original file line number Diff line number Diff line change 1- name : Format with Stylua
1+ name : Stylua check
22
33on :
44 push :
55 branches : [main]
66 paths : ["**.lua"]
7-
8- permissions :
9- contents : write
7+ pull_request :
108
119jobs :
12- postprocessing :
10+ stylua :
11+ name : Stylua
1312 runs-on : ubuntu-latest
1413 steps :
1514 - uses : actions/checkout@v4
1615 - uses : JohnnyMorganz/stylua-action@v4
1716 with :
1817 token : ${{ secrets.GITHUB_TOKEN }}
1918 version : latest
20- args : .
21- - uses : stefanzweifel/git-auto-commit-action@v5
22- with :
23- commit_message : " style: auto-format with stylua"
19+ args : --check .
You can’t perform that action at this time.
0 commit comments