From d895b3be2cffeab3004bc0087a9f3e2b2b790892 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 31 Jul 2020 12:07:23 +0200 Subject: .github/workflows: check commit description format Check PR commit subjects for the standard format we use "pkg/name: description of the change". Check PR commit bodies for at most 120 characters. --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9c332cf9..0b4119e33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,9 @@ jobs: uses: actions/checkout@v2 with: path: gopath/src/github.com/google/syzkaller + # This is needed for tools/check-commits.sh + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 100 # Caches everything in .cache dir, in partiuclar we want to cache go-build and golangci-lint stuff. # For reference see: # https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#using-the-cache-action @@ -25,6 +28,8 @@ jobs: key: cache # Run make presubmit_smoke. - name: run + env: + GITHUB_PR_BASE_SHA: ${{ github.event.pull_request.base.sha }} run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-env make presubmit_smoke # Upload coverage report to codecov.io. For reference see: # https://github.com/codecov/codecov-action/blob/master/README.md -- cgit mrf-deployment