From e226b89eef1f3096db5bc547ed9b53937c6c1eb9 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 10 Feb 2024 13:57:14 +0100 Subject: [PATCH 1/3] chore: run on node 20 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e102774..cf9c66c 100644 --- a/action.yml +++ b/action.yml @@ -2,7 +2,7 @@ name: 'sort problem matcher' author: 'Peter Newman' description: 'Shows GNU sort errors as annotation (with file and code line) in GitHub Actions' runs: - using: 'node16' + using: 'node20' main: 'index.js' branding: icon: 'search' From d265c088d16c20c51d1a382d3dda2aff0824fc8b Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 10 Feb 2024 14:01:33 +0100 Subject: [PATCH 2/3] Add a .pre-commit config file Avoid this CI error message: =====> .pre-commit-config.yaml is not a file --- .pre-commit-config.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..7d4929e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,29 @@ +--- +repos: + - repo: https://github.com/executablebooks/mdformat + # Do this before other tools "fixing" the line endings + rev: 0.7.17 + hooks: + - id: mdformat + name: Format Markdown + entry: mdformat # Executable to run, with fixed options + language: python + types: [markdown] + args: [--wrap, "75", --number] + additional_dependencies: + - mdformat-toc + - mdformat-beautysh + # -mdformat-shfmt + # -mdformat-tables + - mdformat-config + - mdformat-black + - mdformat-web + - mdformat-gfm + - repo: https://github.com/adrienverge/yamllint.git + rev: v1.33.0 + hooks: + - id: yamllint + args: + - --no-warnings + - -d + - "{extends: relaxed, rules: {line-length: {max: 90}}}" From f29266d2bb0066493f5536454adac4eb85392b40 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 10 Feb 2024 13:15:12 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 98e1572..8fed69c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ This problem matcher lets you show errors from GNU `sort` as annotation in GitHub Actions. -Based on [korelstar](https://github.com/korelstar)'s [xmllint-problem-matcher](https://github.com/korelstar/xmllint-problem-matcher). +Based on [korelstar](https://github.com/korelstar)'s +[xmllint-problem-matcher](https://github.com/korelstar/xmllint-problem-matcher). ## Inputs @@ -18,5 +19,5 @@ No outputs are generated apart from a configured problem matcher. Add the step to your workflow, before `sort -c` is called. ```yaml - - uses: codespell-project/sort-problem-matcher@v1 + - uses: codespell-project/sort-problem-matcher@v1 ```