File tree Expand file tree Collapse file tree 4 files changed +19
-17
lines changed
Expand file tree Collapse file tree 4 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,6 @@ max_concurrency = 4
99# Check link anchors
1010include_fragments = true
1111
12- remap = [
13- # workaround for https://github.com/lycheeverse/lychee/issues/1729
14- " https://github.com/(.*?)/(.*?)/blob/(.*?)/(.*#.*)$ https://raw.githubusercontent.com/$1/$2/$3/$4" ,
15- ]
16-
1712exclude = [
1813 " ^http://localhost:" ,
1914 " ^http://0.0.0.0:" ,
Original file line number Diff line number Diff line change 5959 ]
6060 } ,
6161 "customManagers" : [
62+ {
63+ // keep SHA-pinned raw.githubusercontent.com URLs in mise.toml up to date
64+ "customType" : "regex" ,
65+ "datasourceTemplate" : "github-tags" ,
66+ "managerFilePatterns" : [
67+ "/^mise\\.toml$/"
68+ ] ,
69+ "matchStrings" : [
70+ "https://raw\\.githubusercontent\\.com/(?<depName>[^/]+/[^/]+)/(?<currentDigest>[a-f0-9]{40})/.*#\\s*(?<currentValue>v\\S+)"
71+ ]
72+ } ,
6273 {
6374 "customType" : "regex" ,
6475 "managerFilePatterns" : [
Original file line number Diff line number Diff line change @@ -12,20 +12,20 @@ jobs:
1212 steps :
1313 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1414 with :
15- fetch-depth : 0 # needed for merge-base used in lint:links-in- modified-files
15+ fetch-depth : 0 # needed for merge-base used in modified-files mode
1616
1717 - uses : jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1
1818
1919 - name : Link check for pull requests
2020 if : github.event_name == 'pull_request'
2121 env :
2222 GITHUB_TOKEN : ${{ github.token }}
23- run : |
24- mise run lint:local-links
25- mise run lint:links-in-modified-files --base origin/${{ github.base_ref }} --head ${{ github.event.pull_request.head.sha }}
23+ GITHUB_HEAD_SHA : ${{ github.event.pull_request.head.sha }}
24+ PR_HEAD_REPO : ${{ github.event.pull_request.head.repo.full_name }}
25+ run : mise run lint:links
2626
2727 - name : Link check for pushes and scheduled workflows
2828 if : github.event_name != 'pull_request'
2929 env :
3030 GITHUB_TOKEN : ${{ github.token }}
31- run : mise run lint:links
31+ run : mise run lint:links --full
Original file line number Diff line number Diff line change @@ -16,11 +16,7 @@ windows_default_file_shell_args = "bash"
1616unix_default_file_shell_args = " bash"
1717use_file_shell_for_executable_tasks = true
1818
19+ # Pick the tasks you need from flint (https://github.com/grafana/flint)
1920[tasks ."lint:links" ]
20- file = " https://raw.githubusercontent.com/open-telemetry/opentelemetry-java-contrib/refs/heads/main/.mise/tasks/lint/links.sh"
21-
22- [tasks ."lint:local-links" ]
23- file = " https://raw.githubusercontent.com/open-telemetry/opentelemetry-java-contrib/refs/heads/main/.mise/tasks/lint/local-links.sh"
24-
25- [tasks ."lint:links-in-modified-files" ]
26- file = " https://raw.githubusercontent.com/open-telemetry/opentelemetry-java-contrib/refs/heads/main/.mise/tasks/lint/links-in-modified-files.sh"
21+ description = " Check for broken links in changed files + all local links"
22+ file = " https://raw.githubusercontent.com/grafana/flint/8822bdc543f28f2c7dd1f697af4df6d89768c507/tasks/lint/links.sh" # v0.7.0
You can’t perform that action at this time.
0 commit comments