trigger: validate that the commit is a short SHA

This commit is contained in:
Jimmy Zelinskie 2015-04-22 11:24:04 -04:00
parent 02498d72ba
commit 133ed7190e

View file

@ -564,7 +564,8 @@ class CustomBuildTrigger(BuildTrigger):
'properties': {
'commit': {
'type': 'string',
'description': 'SHA-1 identifier for a git commit',
'description': 'first 7 characters of the SHA-1 identifier for a git commit',
'pattern': '^(\w{7})$',
},
'ref': {
'type': 'string',