From be75d893f0712e2e05cced07783209784ffcd9f7 Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Sat, 21 Oct 2023 14:35:27 +0200 Subject: [PATCH] feat: pr lint --- .github/workflows/pr-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 3a38db94ba..215ec0bbd7 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -30,5 +30,5 @@ jobs: - env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: node ./scripts/updateContributors.mjs ${{ steps.changed-files.outputs.all_changed_files }} - - run: git diff --unified=0 | perl -ne '/^(\+|- |@)/ && print' | perl -pe 's/\n/%0A/' | perl -pe 's/%0A(\+\+\+ b\/)/\n\1/g' | perl -pe 's/\+\+\+ b\/([^@]*)%0A@@ -(\d+)[^\s]* \+(\d+)[^@]@@(.*)/::error file=\1,line=\2,endLine=\3::\4/' + - run: git diff --unified=0 | perl -ne '/^(\+|- |@)/ && print' | perl -pe 's/\n/%0A/' | perl -pe 's/%0A(\+\+\+ b\/)/\n\1/g' | perl -pe 's/\+\+\+ b\/([^@]*)%0A@@ -(\d+)[^\s]* \+(\d+)[^@]*@@(.*)/::error file=\1,line=\2,endLine=\3::\4/' - run: git diff --exit-code