Skip to content

Commit 4af204f

Browse files
authored
Switch to using GitHub action to verify markdown links for PRs (PowerShell#17281)
1 parent a33b5d3 commit 4af204f

File tree

4 files changed

+24
-13
lines changed

4 files changed

+24
-13
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"aliveStatusCodes": [504, 503, 403, 200]
3+
}

.github/workflows/markdownLink.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- master
5+
- 'release/**'
6+
paths:
7+
- '**.md'
8+
9+
name: Check links for modified files
10+
jobs:
11+
markdown-link-check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@master
15+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
16+
with:
17+
use-quiet-mode: 'yes'
18+
use-verbose-mode: 'yes'
19+
check-modified-files-only: 'yes'
20+
config-file: .github/workflows/markdown-link/config.json

.vsts-ci/misc-analysis.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,3 @@ stages:
5151
dependsOn: []
5252
jobs:
5353
- template: ./misc-analysis/mdSpell.yml
54-
- stage: markdown_link
55-
displayName: Markdown Link
56-
dependsOn: []
57-
jobs:
58-
- template: ./misc-analysis/generateMarkdownMatrix.yml
59-
parameters:
60-
jobName: generateMatrix
61-
taskName: matrixTask
62-
- template: ./misc-analysis/markdown.yml
63-
parameters:
64-
matrix: $[ dependencies.generateMatrix.outputs['matrixTask.matrix'] ]
65-
dependsOn: generateMatrix

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ For more information on how and why we built this dashboard, check out this [blo
142142

143143
## Discussions
144144

145-
[GitHub Discussions](https://docs.github.com/en/free-pro-team@latest/discussions/quickstart) is a feature to enable fluid and open discussions within the community
145+
[GitHub Discussions](https://docs.github.com/discussions/quickstart) is a feature to enable fluid and open discussions within the community
146146
for topics that are not related to code, unlike issues.
147147

148148
This is an experiment we are trying in our repositories to see if it helps move discussions out of issues so that issues remain actionable by the team or members of the community.

0 commit comments

Comments
 (0)