From 1a9c08914bd1e9d3c8e854b44f47cc571e234d6a Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Wed, 11 Feb 2026 13:58:04 -0500 Subject: [PATCH] ci: add markdownlint problem matcher (#49765) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: David Sanders --- .github/problem-matchers/markdownlint.json | 16 ++++++++++++++++ .github/workflows/pipeline-electron-lint.yml | 6 ++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/problem-matchers/markdownlint.json diff --git a/.github/problem-matchers/markdownlint.json b/.github/problem-matchers/markdownlint.json new file mode 100644 index 0000000000..b5bb478097 --- /dev/null +++ b/.github/problem-matchers/markdownlint.json @@ -0,0 +1,16 @@ +{ + "problemMatcher": [ + { + "owner": "markdownlint", + "pattern": [ + { + "regexp": "^(.+):(\\d+):(\\d+)\\s+(.*)$", + "file": 1, + "line": 2, + "column": 3, + "message": 4 + } + ] + } + ] +} diff --git a/.github/workflows/pipeline-electron-lint.yml b/.github/workflows/pipeline-electron-lint.yml index f33ca6fc01..b9483b334c 100644 --- a/.github/workflows/pipeline-electron-lint.yml +++ b/.github/workflows/pipeline-electron-lint.yml @@ -65,9 +65,11 @@ jobs: curl -sL "https://chromium.googlesource.com/chromium/src/+/${chromium_revision}/buildtools/DEPS?format=TEXT" | base64 -d > src/buildtools/DEPS gclient sync --spec="solutions=[{'name':'src/buildtools','url':None,'deps_file':'DEPS','custom_vars':{'process_deps':True},'managed':False}]" - - name: Add ESLint problem matcher + - name: Add problem matchers shell: bash - run: echo "::add-matcher::src/electron/.github/problem-matchers/eslint-stylish.json" + run: | + echo "::add-matcher::src/electron/.github/problem-matchers/eslint-stylish.json" + echo "::add-matcher::src/electron/.github/problem-matchers/markdownlint.json" - name: Run Lint shell: bash run: |