From 30972d99bdd57f5d9c7142e8bdaf87da2ded8990 Mon Sep 17 00:00:00 2001 From: Piotr Halama Date: Fri, 22 Sep 2023 10:45:13 +0200 Subject: [PATCH] Add new governance job --- .../workflows/lint-markdown-links-daily.yml | 18 ++++++++++++++++++ .github/workflows/lint-markdown-links-pr.yml | 17 +++++++++++++++++ .mlc.config.json | 12 ++++++++++++ milv.config.yaml | 13 ------------- 4 files changed, 47 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/lint-markdown-links-daily.yml create mode 100644 .github/workflows/lint-markdown-links-pr.yml create mode 100644 .mlc.config.json delete mode 100644 milv.config.yaml diff --git a/.github/workflows/lint-markdown-links-daily.yml b/.github/workflows/lint-markdown-links-daily.yml new file mode 100644 index 0000000000..6d7a98b741 --- /dev/null +++ b/.github/workflows/lint-markdown-links-daily.yml @@ -0,0 +1,18 @@ +name: Lint Markdown Links Daily +run-name: ${{github.event.pull_request.title}} +on: + schedule: + # Run everyday at 5:00 AM + - cron: "0 5 * * *" +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + config-file: '.mlc.config.json' + folder-path: '.' + max-depth: -1 diff --git a/.github/workflows/lint-markdown-links-pr.yml b/.github/workflows/lint-markdown-links-pr.yml new file mode 100644 index 0000000000..7c12c598b5 --- /dev/null +++ b/.github/workflows/lint-markdown-links-pr.yml @@ -0,0 +1,17 @@ +name: Lint Markdown Links PR +run-name: ${{github.event.pull_request.title}} +on: [ pull_request ] +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + config-file: '.mlc.config.json' + folder-path: '.' + max-depth: -1 + check-modified-files-only: 'yes' + base-branch: 'main' diff --git a/.mlc.config.json b/.mlc.config.json new file mode 100644 index 0000000000..abe2be6dc0 --- /dev/null +++ b/.mlc.config.json @@ -0,0 +1,12 @@ +{ + "replacementPatterns": [ + { + "_comment": "a replacement rule for all the in-repository references", + "pattern": "^/", + "replacement": "{{BASEURL}}/" + } + ], + "timeout": "20s", + "retryCount": 5, + "fallbackRetryDelay": "30s" + } diff --git a/milv.config.yaml b/milv.config.yaml deleted file mode 100644 index 24d9e7259a..0000000000 --- a/milv.config.yaml +++ /dev/null @@ -1,13 +0,0 @@ -external-links-to-ignore: - ['localhost', 'kyma.local', 'https://busola.local.kyma.dev'] -files-to-ignore: ['node_modules'] -timeout: 60 -request-repeats: 5 -files: - - path: './.github/ISSUE_TEMPLATE/security-vulnerability.md' - config: - internal-links-to-ignore: ['{CVSS'] - external-links-to-ignore: - [ - 'https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N', - ]