Support workflows triggered by any event ()

* Allow change detection on all event types

* mention commit SHA in docs for base parameter

* improve logging

* update CHANGELOG.md
This commit is contained in:
Michal Dorner 2020-10-16 12:28:12 +02:00 committed by GitHub
parent 9bd03c0d68
commit 75cbfb4be9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 71 additions and 43 deletions
__tests__

View file

@ -26,4 +26,10 @@ describe('git utility function tests (those not invoking git)', () => {
expect(git.getShortName('tags/v1')).toBe('tags/v1')
expect(git.getShortName('v1')).toBe('v1')
})
test('isGitSha(ref) returns true only for 40 characters of a-z and 0-9', () => {
expect(git.isGitSha('8b399ed1681b9efd6b1e048ca1c5cba47edf3855')).toBeTruthy()
expect(git.isGitSha('This_is_very_long_name_for_a_branch_1111')).toBeFalsy()
expect(git.isGitSha('master')).toBeFalsy()
})
})