File tree Expand file tree Collapse file tree 3 files changed +45
-4
lines changed Expand file tree Collapse file tree 3 files changed +45
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,3 @@ contact_links:
22 - name : 💬 Contact support
33 url : https://xdev.software/en/services/support
44 about : " If you need support as soon as possible or/and you can't wait for any pull request"
5- - name : 🐱💻 Security vulnerability
6- url : https://github.com/xdev-software/template-placeholder/security/advisories/new
7- about : " If you found a security vulnerability report it here"
Original file line number Diff line number Diff line change 2323 description : " This doesn't seem right"
2424 color : ' #e4e669'
2525# Custom
26+ - name : automated
27+ description : Created by a 🤖
28+ color : ' #000000'
2629- name : " can't reproduce"
2730 color : ' #e95f2c'
2831- name : customer-requested
29- description : was requested by a customer of us
32+ description : Was requested by a customer of us
3033 color : ' #068374'
3134- name : stale
3235 color : ' #ededed'
Original file line number Diff line number Diff line change 1+ name : Broken links
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ - cron : " 23 23 * * 0"
7+
8+ permissions :
9+ issues : write
10+
11+ jobs :
12+ link-checker :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - name : Link Checker
18+ id : lychee
19+ uses : lycheeverse/lychee-action@v1
20+
21+ - name : Find already existing issue
22+ id : find-issue
23+ run : |
24+ echo "number=$(gh issue list -l 'bug' -l 'automated' -L 1 -S 'in:title \"Link Checker Report\"' -s 'open' --json 'number' --jq '.[].number')" >> $GITHUB_OUTPUT
25+ env :
26+ GH_TOKEN : ${{ github.token }}
27+
28+ - name : Close issue if everything is fine
29+ if : env.lychee_exit_code == 0 && steps.find-issue.outputs.number != ''
30+ run : gh issue close -r 'not planned' ${{ steps.find-issue.outputs.number }}
31+ env :
32+ GH_TOKEN : ${{ github.token }}
33+
34+ - name : Create Issue From File
35+ if : env.lychee_exit_code != 0
36+ uses : peter-evans/create-issue-from-file@v5
37+ with :
38+ issue-number : ${{ steps.find-issue.outputs.number }}
39+ title : Link Checker Report
40+ content-filepath : ./lychee/out.md
41+ labels : bug, automated
You can’t perform that action at this time.
0 commit comments