From 716d54ccfadcba971a5f2eb135d20595b1ef9dae Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 17:59:16 +0200 Subject: [PATCH 01/26] Add markdownlint as git hook --- .pre-commit-config.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7657767..3341131 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,18 @@ repos: - id: trailing-whitespace args: [--markdown-linebreak-ext=md] + - repo: https://github.com/igorshubovych/markdownlint-cli + rev: v0.28.1 + hooks: + - id: markdownlint + args: [ + "--config", ".markdownlint.json", + "--fix", + "-i", "**/template_*.md", + "--output", "linter_markdown_report.txt" + ] + language_version: "14.17.6" + # Specific part for https://pre-commit.ci ci: autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit.com hooks" From 14e04d4337c29673bc50422e57fd8e51e6239357 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:00:32 +0200 Subject: [PATCH 02/26] Try new GA --- .../workflows/pr_linter_markdown_matcher.yml | 14 ++++++++++++++ .../workflows/pr_linter_markdown_reporter.yml | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/pr_linter_markdown_matcher.yml create mode 100644 .github/workflows/pr_linter_markdown_reporter.yml diff --git a/.github/workflows/pr_linter_markdown_matcher.yml b/.github/workflows/pr_linter_markdown_matcher.yml new file mode 100644 index 0000000..2904de4 --- /dev/null +++ b/.github/workflows/pr_linter_markdown_matcher.yml @@ -0,0 +1,14 @@ +# Trigger +on: + pull_request: + branches: [master] + paths: + - "content/**/*.md" + +jobs: + lilint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: xt0rted/markdownlint-problem-matcher@v1 + - run: markdownlint -i "**/template_*.md" -i node_modules content/**/*.md diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml new file mode 100644 index 0000000..7180c41 --- /dev/null +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -0,0 +1,18 @@ +# Trigger +on: + pull_request: + branches: [master] + paths: + - "content/**/*.md" + +jobs: + markdownlint: + name: runner / markdownlint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: markdownlint + uses: reviewdog/action-markdownlint@v0.1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + reporter: github-pr-review From b29fa102a44a49c238f393a87d53c2e8d168beb0 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:02:06 +0200 Subject: [PATCH 03/26] main --- .github/workflows/pr_linter_markdown_matcher.yml | 2 +- .github/workflows/pr_linter_markdown_reporter.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_linter_markdown_matcher.yml b/.github/workflows/pr_linter_markdown_matcher.yml index 2904de4..d4fa59b 100644 --- a/.github/workflows/pr_linter_markdown_matcher.yml +++ b/.github/workflows/pr_linter_markdown_matcher.yml @@ -1,7 +1,7 @@ # Trigger on: pull_request: - branches: [master] + branches: [main] paths: - "content/**/*.md" diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index 7180c41..05f8ff1 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -1,7 +1,7 @@ # Trigger on: pull_request: - branches: [master] + branches: [main] paths: - "content/**/*.md" From 16dc3675d46a97362115a36e4a641d84c0b35ded Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:05:08 +0200 Subject: [PATCH 04/26] Add bad md --- content/test_bad_markdown.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 content/test_bad_markdown.md diff --git a/content/test_bad_markdown.md b/content/test_bad_markdown.md new file mode 100644 index 0000000..51ce488 --- /dev/null +++ b/content/test_bad_markdown.md @@ -0,0 +1 @@ +# Hello ! From e692bf9d5fa4702884495f1c562aa8a58a1604e9 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:14:36 +0200 Subject: [PATCH 05/26] Minor improvments --- .github/workflows/pr_linter_markdown_matcher.yml | 7 +++++++ .github/workflows/pr_linter_markdown_reporter.yml | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/pr_linter_markdown_matcher.yml b/.github/workflows/pr_linter_markdown_matcher.yml index d4fa59b..aa6345f 100644 --- a/.github/workflows/pr_linter_markdown_matcher.yml +++ b/.github/workflows/pr_linter_markdown_matcher.yml @@ -10,5 +10,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + + - name: Install Node + uses: actions/setup-node@v2.4.0 + with: + node-version: 14 + - uses: xt0rted/markdownlint-problem-matcher@v1 + - run: markdownlint -i "**/template_*.md" -i node_modules content/**/*.md diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index 05f8ff1..1e1fd6d 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -16,3 +16,8 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review + level: warning + filter_mode: added + markdownlint_flags: + description: "Options of markdownlint-cli command." + default: "--config .markdownlint.json --ignore **/template_*.md" From 8569f8be6218121f8fad7a54f9be7c8ef9f71025 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:17:23 +0200 Subject: [PATCH 06/26] changes --- .github/workflows/pr_linter_markdown_matcher.yml | 2 ++ .github/workflows/pr_linter_markdown_reporter.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_linter_markdown_matcher.yml b/.github/workflows/pr_linter_markdown_matcher.yml index aa6345f..3146aab 100644 --- a/.github/workflows/pr_linter_markdown_matcher.yml +++ b/.github/workflows/pr_linter_markdown_matcher.yml @@ -16,6 +16,8 @@ jobs: with: node-version: 14 + - run: npm install -g markdownlint-cli + - uses: xt0rted/markdownlint-problem-matcher@v1 - run: markdownlint -i "**/template_*.md" -i node_modules content/**/*.md diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index 1e1fd6d..20b7c6d 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -17,7 +17,7 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review level: warning - filter_mode: added + filter_mode: diff markdownlint_flags: description: "Options of markdownlint-cli command." default: "--config .markdownlint.json --ignore **/template_*.md" From 28ba75531e657177ddb539466f30b630f5f92dfd Mon Sep 17 00:00:00 2001 From: Julien Date: Wed, 8 Sep 2021 18:19:15 +0200 Subject: [PATCH 07/26] Update pr_linter_markdown_reporter.yml --- .github/workflows/pr_linter_markdown_reporter.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index 20b7c6d..de906af 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -18,6 +18,4 @@ jobs: reporter: github-pr-review level: warning filter_mode: diff - markdownlint_flags: - description: "Options of markdownlint-cli command." - default: "--config .markdownlint.json --ignore **/template_*.md" + markdownlint_flags: "--config .markdownlint.json --ignore **/template_*.md" From 81038ee3f9e19b7095975b19f27aab36d8cad480 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:21:53 +0200 Subject: [PATCH 08/26] fix filter_mode value --- .github/workflows/pr_linter_markdown_reporter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index 20b7c6d..5a3c00d 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -17,7 +17,7 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review level: warning - filter_mode: diff + # filter_mode: diff markdownlint_flags: description: "Options of markdownlint-cli command." default: "--config .markdownlint.json --ignore **/template_*.md" From 3bf75560c2d1239061ba39c4c3144360f354a29c Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:23:44 +0200 Subject: [PATCH 09/26] comment out filtermode --- .github/workflows/pr_linter_markdown_reporter.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index d00563c..fc07b20 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -18,5 +18,4 @@ jobs: reporter: github-pr-review level: warning # filter_mode: diff - filter_mode: diff markdownlint_flags: "--config .markdownlint.json --ignore **/template_*.md" From 48c55994de6cd11d475aa32de52cf4d39523c512 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:26:31 +0200 Subject: [PATCH 10/26] provocation --- content/articles/2021/test_bad_markdown.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 content/articles/2021/test_bad_markdown.md diff --git a/content/articles/2021/test_bad_markdown.md b/content/articles/2021/test_bad_markdown.md new file mode 100644 index 0000000..31c72ef --- /dev/null +++ b/content/articles/2021/test_bad_markdown.md @@ -0,0 +1,10 @@ +# Hello ! + +# Bonjour 2 + +- salut +- première liste à puces + + +* et bam +* une autre liste à puces mais pas avec le même caractère From ead600feab45c96adc1698fa6db2b70362ff3603 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:33:23 +0200 Subject: [PATCH 11/26] try to trigger --- .github/workflows/pr_linter_markdown_reporter.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index fc07b20..79d7e2a 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -1,3 +1,5 @@ +name: reporter + # Trigger on: pull_request: @@ -6,11 +8,12 @@ on: - "content/**/*.md" jobs: - markdownlint: - name: runner / markdownlint + mdlint-report: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - name: Check out code + uses: actions/checkout@v2 + - name: markdownlint uses: reviewdog/action-markdownlint@v0.1 with: @@ -18,4 +21,4 @@ jobs: reporter: github-pr-review level: warning # filter_mode: diff - markdownlint_flags: "--config .markdownlint.json --ignore **/template_*.md" + markdownlint_flags: "--config .markdownlint.json --ignore **/template_*.md content/**/*.md" From f236b77d117f36f8dc1a1f4f94ecbb0939f72cbd Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:37:41 +0200 Subject: [PATCH 12/26] use latest version --- .github/workflows/pr_linter_markdown_reporter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index 79d7e2a..fbb046b 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v2 - name: markdownlint - uses: reviewdog/action-markdownlint@v0.1 + uses: reviewdog/action-markdownlint@v0 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review From e9fd2bf2a1f22886dea176918be08e73c9301ad3 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:38:15 +0200 Subject: [PATCH 13/26] again --- content/articles/2021/test_bad_markdown.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/articles/2021/test_bad_markdown.md b/content/articles/2021/test_bad_markdown.md index 31c72ef..95f017e 100644 --- a/content/articles/2021/test_bad_markdown.md +++ b/content/articles/2021/test_bad_markdown.md @@ -8,3 +8,8 @@ * et bam * une autre liste à puces mais pas avec le même caractère + + bash + sfbdfdb + + From 5fd531e7f6966178f47775e60049be3d730389d2 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:49:05 +0200 Subject: [PATCH 14/26] explciit run of mdlint --- .github/workflows/pr_linter_markdown_reporter.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index fbb046b..a5b12c6 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -16,9 +16,10 @@ jobs: - name: markdownlint uses: reviewdog/action-markdownlint@v0 + run: markdownlint --config .markdownlint.json --ignore **/template_*.md content/**/*.md with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review level: warning # filter_mode: diff - markdownlint_flags: "--config .markdownlint.json --ignore **/template_*.md content/**/*.md" + markdownlint_flags: "--config .markdownlint.json" From fe7aae98445c393431ecd4445e2278b7c21e39ba Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 18:56:02 +0200 Subject: [PATCH 15/26] run and uses can't be used together --- .github/workflows/pr_linter_markdown_reporter.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index a5b12c6..6a95ad9 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -16,10 +16,7 @@ jobs: - name: markdownlint uses: reviewdog/action-markdownlint@v0 - run: markdownlint --config .markdownlint.json --ignore **/template_*.md content/**/*.md with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review - level: warning - # filter_mode: diff markdownlint_flags: "--config .markdownlint.json" From 658534288b3e3947d1a654c281eb9a4d00e7becb Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 19:01:19 +0200 Subject: [PATCH 16/26] try to fix bad option --- .github/workflows/pr_linter_markdown_reporter.yml | 3 ++- content/test_bad_markdown.md | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 content/test_bad_markdown.md diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index 6a95ad9..7ec3800 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -19,4 +19,5 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review - markdownlint_flags: "--config .markdownlint.json" + fail_on_error: true + markdownlint_flags: --config=.markdownlint.json . diff --git a/content/test_bad_markdown.md b/content/test_bad_markdown.md deleted file mode 100644 index 51ce488..0000000 --- a/content/test_bad_markdown.md +++ /dev/null @@ -1 +0,0 @@ -# Hello ! From 9606467e190924880a729a693f7953c87b84d319 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 8 Sep 2021 19:06:16 +0200 Subject: [PATCH 17/26] dernier essai --- .github/workflows/pr_linter_markdown_reporter.yml | 11 +++++++++-- content/articles/2021/test_bad_markdown.md | 9 ++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index 7ec3800..c33cd06 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -14,10 +14,17 @@ jobs: - name: Check out code uses: actions/checkout@v2 + - name: markdownlint-github-check + uses: reviewdog/action-markdownlint@v0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + reporter: github-check + level: warning + filter_mode: nofilter + - name: markdownlint uses: reviewdog/action-markdownlint@v0 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review - fail_on_error: true - markdownlint_flags: --config=.markdownlint.json . + markdownlint_flags: --config=.markdownlint.json content/ diff --git a/content/articles/2021/test_bad_markdown.md b/content/articles/2021/test_bad_markdown.md index 95f017e..e4da341 100644 --- a/content/articles/2021/test_bad_markdown.md +++ b/content/articles/2021/test_bad_markdown.md @@ -12,4 +12,11 @@ bash sfbdfdb - + + + + + +# chouette! + + From 76a7496927a0af8d0ca4e04555b67794cb6518e1 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Thu, 9 Sep 2021 18:51:15 +0200 Subject: [PATCH 18/26] try to fix flags --- .github/workflows/pr_linter_markdown_reporter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index c33cd06..2544c80 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -22,9 +22,9 @@ jobs: level: warning filter_mode: nofilter - - name: markdownlint + - name: markdownlint-github-pr-review uses: reviewdog/action-markdownlint@v0 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review - markdownlint_flags: --config=.markdownlint.json content/ + markdownlint_flags: '--config=.markdownlint.json' From 76f2cb8c54fa37ad2228ce1608f2d3a6ccc5cd8d Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Thu, 9 Sep 2021 18:55:54 +0200 Subject: [PATCH 19/26] hop --- .github/workflows/pr_linter_markdown_reporter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index 2544c80..bea101c 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -27,4 +27,4 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review - markdownlint_flags: '--config=.markdownlint.json' + markdownlint_flags: content/**/*.md From 09b3588fae38caeda8c6748a71a147657deba699 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Thu, 9 Sep 2021 19:02:01 +0200 Subject: [PATCH 20/26] Add more use cases --- content/articles/2021/test_bad_markdown.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/content/articles/2021/test_bad_markdown.md b/content/articles/2021/test_bad_markdown.md index e4da341..fdb21d0 100644 --- a/content/articles/2021/test_bad_markdown.md +++ b/content/articles/2021/test_bad_markdown.md @@ -1,5 +1,7 @@ # Hello ! + + # Bonjour 2 - salut @@ -19,4 +21,18 @@ # chouette! + + +--- + + + +---- + + From 9b3364761fec1a74ecd4e3c968c1aea18c911991 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Thu, 9 Sep 2021 19:39:01 +0200 Subject: [PATCH 21/26] try otheer options --- .../workflows/pr_linter_markdown_matcher.yml | 23 ------------------- .../workflows/pr_linter_markdown_reporter.yml | 10 ++------ 2 files changed, 2 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/pr_linter_markdown_matcher.yml diff --git a/.github/workflows/pr_linter_markdown_matcher.yml b/.github/workflows/pr_linter_markdown_matcher.yml deleted file mode 100644 index 3146aab..0000000 --- a/.github/workflows/pr_linter_markdown_matcher.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Trigger -on: - pull_request: - branches: [main] - paths: - - "content/**/*.md" - -jobs: - lilint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Install Node - uses: actions/setup-node@v2.4.0 - with: - node-version: 14 - - - run: npm install -g markdownlint-cli - - - uses: xt0rted/markdownlint-problem-matcher@v1 - - - run: markdownlint -i "**/template_*.md" -i node_modules content/**/*.md diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index bea101c..72c9bf1 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -14,17 +14,11 @@ jobs: - name: Check out code uses: actions/checkout@v2 - - name: markdownlint-github-check - uses: reviewdog/action-markdownlint@v0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - reporter: github-check - level: warning - filter_mode: nofilter - - name: markdownlint-github-pr-review uses: reviewdog/action-markdownlint@v0 with: github_token: ${{ secrets.GITHUB_TOKEN }} + fail_on_error: true + filter_mode: added reporter: github-pr-review markdownlint_flags: content/**/*.md From 2d7aa0a11ddcb1c95ed331692c0dd75305a33740 Mon Sep 17 00:00:00 2001 From: Julien Date: Thu, 9 Sep 2021 19:40:32 +0200 Subject: [PATCH 22/26] Update content/articles/2021/test_bad_markdown.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- content/articles/2021/test_bad_markdown.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/articles/2021/test_bad_markdown.md b/content/articles/2021/test_bad_markdown.md index fdb21d0..056bafe 100644 --- a/content/articles/2021/test_bad_markdown.md +++ b/content/articles/2021/test_bad_markdown.md @@ -1,7 +1,5 @@ # Hello ! - - # Bonjour 2 - salut From 7a0a14badec297715a36096754dedfb10fdbff22 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Thu, 9 Sep 2021 19:42:41 +0200 Subject: [PATCH 23/26] try diff_context --- .github/workflows/pr_linter_markdown_reporter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index 72c9bf1..1bc7721 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -19,6 +19,6 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} fail_on_error: true - filter_mode: added + filter_mode: diff_context reporter: github-pr-review markdownlint_flags: content/**/*.md From 0ac1330d2620a22a748d33fef714877cc9ed08c8 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Thu, 9 Sep 2021 19:44:05 +0200 Subject: [PATCH 24/26] don't fail --- .github/workflows/pr_linter_markdown_reporter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index 1bc7721..308c8da 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -18,7 +18,7 @@ jobs: uses: reviewdog/action-markdownlint@v0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - fail_on_error: true + fail_on_error: false filter_mode: diff_context reporter: github-pr-review markdownlint_flags: content/**/*.md From f8d332473880fc9cae28b6a29070549eb7526081 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Mon, 13 Sep 2021 19:36:37 +0200 Subject: [PATCH 25/26] change version --- .github/workflows/pr_linter_markdown_reporter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_linter_markdown_reporter.yml b/.github/workflows/pr_linter_markdown_reporter.yml index 308c8da..b7379d1 100644 --- a/.github/workflows/pr_linter_markdown_reporter.yml +++ b/.github/workflows/pr_linter_markdown_reporter.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v2 - name: markdownlint-github-pr-review - uses: reviewdog/action-markdownlint@v0 + uses: reviewdog/action-markdownlint@v0.2.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} fail_on_error: false From 1c2f015906e1e166fd35d1cac418c1f49dcec8ad Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Sun, 20 Mar 2022 16:02:54 +0100 Subject: [PATCH 26/26] fix --- .github/workflows/pr_checker_build.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/pr_checker_build.yml b/.github/workflows/pr_checker_build.yml index 5a777e7..7f5cf95 100644 --- a/.github/workflows/pr_checker_build.yml +++ b/.github/workflows/pr_checker_build.yml @@ -81,8 +81,6 @@ jobs: cp ${{steps.dependencies.outputs.config_path}} ${{ env.BUILD_DIR }} # remove files reserved for production - rm ${{ env.BUILD_DIR }}/CNAME - rm ${{ env.BUILD_DIR }}/robots.txt rm ${{ env.BUILD_DIR }}/sitemap.xml rm ${{ env.BUILD_DIR }}/sitemap.xml.gz