diff --git a/.github/workflows/.mlc_config.json b/.github/workflows/.mlc_config.json deleted file mode 100644 index 37f6b0516..000000000 --- a/.github/workflows/.mlc_config.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ignorePatterns": [ - { - "pattern": "^http://127.0.0.1" - }, - { - "pattern": "^http://localhost" - } - ] -} \ No newline at end of file diff --git a/.github/workflows/markdown.yml b/.github/workflows/markdown.yml deleted file mode 100644 index 05cb6e8db..000000000 --- a/.github/workflows/markdown.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Markdown-related check - -on: - pull_request: - branches: "*" - push: - branches: "*" - -jobs: - markdown-related-check: - name: markdown-related check - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v3 - - - name: Markdown Link Check - uses: docker://dragonflyoss/linter:v0.2.7 - with: - # validate all links in markdown files excluding vendor folder - args: bash -c "code=0;for mdFile in $(find ./ -name '*.md' | grep -v vendor | grep -v .github); do markdown-link-check -q --config .github/workflows/.mlc_config.json $mdFile; if [ $? -ne 0 ]; then code=1; fi;done; echo $code; exit $code" - - - name: Markdown Lint - uses: docker://dragonflyoss/linter:v0.2.7 - with: - # lint all markdown files excluding vendor folder - args: bash -c "find ./ -name '*.md' | grep -v vendor | grep -v .github | xargs mdl -r ~MD010,~MD013,~MD022,~MD024,~MD026,~MD029,~MD033,~MD036" diff --git a/script/githooks/commit-msg b/script/githooks/commit-msg index ca0d93e69..86721115f 100644 --- a/script/githooks/commit-msg +++ b/script/githooks/commit-msg @@ -67,6 +67,6 @@ test "" = "$(grep '^Signed-off-by: ' "$1" | if [ $? -ne 0 ] then printError "Please fix your commit message to match OpenIM coding standards" - printError "https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694" + printError "https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md" exit 1 fi \ No newline at end of file diff --git a/script/githooks/pre-commit b/script/githooks/pre-commit index 91c331b79..4ca4d2ca5 100644 --- a/script/githooks/pre-commit +++ b/script/githooks/pre-commit @@ -44,7 +44,7 @@ printError() { printMessage "Running local OpenIM pre-commit hook." # flutter format . -# https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694 +# https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md # TODO! GIT_FILE_SIZE_LIMIT=50000000 git commit -m "test: this commit is allowed file sizes up to 50MB" # Maximum file size limit in bytes limit=${GIT_FILE_SIZE_LIMIT:-2000000} # Default 2MB