CI: Properly run gitlint in CI 62/68162/3
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 28 Jun 2021 17:32:58 +0000 (10:32 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Tue, 29 Jun 2021 18:02:29 +0000 (11:02 -0700)
commit9fa943e01f4bb4961714a6bab74ae2b90801308e
treec763d8d7058c8aa333fddf6b3ec9aab825b5dee9
parentcc6f732b6466407738ee7456e295d451010ee8f8
CI: Properly run gitlint in CI

When running pre-commit in a CI system the COMMIT_EDITMSG does not
(normally) get created as that is an artifact of editing the commit
message. If the file doesn't exist then gitlint will skip which makes it
possible for pre-commit checks that should fail, to pass.

Since we want tox to run in a consistent manner both locally and in CI
we need to play around a little with how we are checking the commit
message.

Change-Id: I25c1815ea3195e47a67b529a06497ad3594b2c84
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
releasenotes/notes/convential_commit-a24e8a18c540c91f.yaml [new file with mode: 0644]
tox.ini