From 5ebee03ae8c0b959bc5e1759cdc31a82e2e56c5d Mon Sep 17 00:00:00 2001 From: Pion <59523206+pionbot@users.noreply.github.com> Date: Fri, 30 Oct 2020 04:12:58 +0000 Subject: [PATCH] Update CI configs to v0.4.10 Update lint scripts and CI configs. --- .github/assert-contributors.sh | 6 ------ .github/lint-commit-message.sh | 8 +------- .github/workflows/lint.yaml | 2 ++ 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/assert-contributors.sh b/.github/assert-contributors.sh index b0be2f7..12e6afe 100755 --- a/.github/assert-contributors.sh +++ b/.github/assert-contributors.sh @@ -11,12 +11,6 @@ set -e -# Unshallow the repo, this check doesn't work with this enabled -# https://github.com/travis-ci/travis-ci/issues/3412 -if [ -f $(git rev-parse --git-dir)/shallow ]; then - git fetch --unshallow || true -fi - SCRIPT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) if [ -f ${SCRIPT_PATH}/.ci.conf ] diff --git a/.github/lint-commit-message.sh b/.github/lint-commit-message.sh index 7357c94..010a332 100755 --- a/.github/lint-commit-message.sh +++ b/.github/lint-commit-message.sh @@ -58,13 +58,7 @@ if [ "$#" -eq 1 ]; then fi lint_commit_message "$(sed -n '/# Please enter the commit message for your changes. Lines starting/q;p' "$1")" else - # TRAVIS_COMMIT_RANGE is empty for initial branch commit - if [[ "${TRAVIS_COMMIT_RANGE}" != *"..."* ]]; then - parent=$(git log -n 1 --format="%P" ${TRAVIS_COMMIT_RANGE}) - TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE}...$parent" - fi - - for commit in $(git rev-list ${TRAVIS_COMMIT_RANGE}); do + for commit in $(git rev-list --no-merges origin/master..); do lint_commit_message "$(git log --format="%B" -n 1 $commit)" done fi diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index a3f6ab2..4f365e3 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Commit Message run: .github/lint-commit-message.sh