diff --git a/.dlc.json b/.dlc.json new file mode 100644 index 0000000000000000000000000000000000000000..f2b124ebc1a9637a3e039c6214bc628e1cdf6a1e --- /dev/null +++ b/.dlc.json @@ -0,0 +1,18 @@ +{ + "ignorePatterns": [ + { + "pattern": "^http://localhost" + }, + { + "pattern": "^https://github.com/apache/skywalking/blob/master/changes/changes-x.y.z.md$" + } + ], + "timeout": "10s", + "retryOn429": true, + "retryCount": 10, + "fallbackRetryDelay": "1000s", + "aliveStatusCodes": [ + 200, + 401 + ] +} diff --git a/.github/actions/skip/action.yml b/.github/actions/skip/action.yml index 44536a81c24114a5353d1b6f060c6a04fa26e620..2e6de66d10f8d9d58fe7276d9f6642f320042918 100644 --- a/.github/actions/skip/action.yml +++ b/.github/actions/skip/action.yml @@ -28,6 +28,8 @@ inputs: "*.md" "skywalking-ui" ".asf.yaml" + ".dlc.yaml" + ".licenserc.yaml" runs: using: "composite" steps: diff --git a/.github/workflows/dead-link-checker.yaml b/.github/workflows/dead-link-checker.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d58181030756b2a82395eaa59f1032f6b17efce1 --- /dev/null +++ b/.github/workflows/dead-link-checker.yaml @@ -0,0 +1,32 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Dead Link Checker + +on: + pull_request: + +jobs: + CheckDeadLinks: + runs-on: ubuntu-18.04 + timeout-minutes: 30 + steps: + - uses: actions/checkout@v2 + - run: sudo npm install -g markdown-link-check + - run: | + for file in $(find . -name "*.md"); do + markdown-link-check -c .dlc.json -q "$file" + done diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 220f9b4cc23a381cb467273e3b471b2ea36cb852..e45fd4af1b138b2267bb3ce41d91912599fe00d8 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -71,7 +71,7 @@ This statement thanks the following, on which it draws for content and inspirati * [CouchDB Project Code of conduct](http://couchdb.apache.org/conduct.html) * [Fedora Project Code of Conduct](http://fedoraproject.org/code-of-conduct) -* [Speak Up! Code of Conduct](http://speakup.io/coc.html) +* [Speak Up! Code of Conduct](https://code-of-conduct.roche.com/en/speak-up.html) * [Django Code of Conduct](https://www.djangoproject.com/conduct/) * [Debian Code of Conduct](http://www.debian.org/vote/2014/vote_002) * [Twitter Open Source Code of Conduct](https://github.com/twitter/code-of-conduct/blob/master/code-of-conduct.md) diff --git a/README.md b/README.md index 4cfe97c82c328a0abb7793c861a1128ac0e7dba7..c275be4269682b44b340c08d924ef6d4dd9d3271 100644 --- a/README.md +++ b/README.md @@ -101,4 +101,4 @@ SkyWalking enriches the