custom-git: accept commit SHAs 7+ chars in length
This commit is contained in:
parent
598fc6ec46
commit
fe3f0dc10b
2 changed files with 2 additions and 2 deletions
|
@ -1048,7 +1048,7 @@ class CustomBuildTrigger(BuildTriggerHandler):
|
||||||
}
|
}
|
||||||
|
|
||||||
prepared = PreparedBuild(self.trigger)
|
prepared = PreparedBuild(self.trigger)
|
||||||
prepared.tags = [commit_sha]
|
prepared.tags = [commit_sha[:7]]
|
||||||
prepared.name_from_sha(commit_sha)
|
prepared.name_from_sha(commit_sha)
|
||||||
prepared.subdirectory = config['subdir']
|
prepared.subdirectory = config['subdir']
|
||||||
prepared.metadata = metadata
|
prepared.metadata = metadata
|
||||||
|
|
|
@ -122,7 +122,7 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
|
||||||
'title': 'Commit',
|
'title': 'Commit',
|
||||||
'type': 'regex',
|
'type': 'regex',
|
||||||
'name': 'commit_sha',
|
'name': 'commit_sha',
|
||||||
'regex': '^([A-Fa-f0-9]{7})$',
|
'regex': '^([A-Fa-f0-9]{7,})$',
|
||||||
'placeholder': '1c002dd'
|
'placeholder': '1c002dd'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Reference in a new issue