triggers: metadata.commit_sha -> metadata.commit
This resolves an issue where the custom-git trigger's public facing schema was not the same as the internal metadata schema. Instead of breaking users, we rework the internal metadata schema to be the same as the custom-git JSON schema. This commit also updates everything that used `metadata.commit_sha` including the test database.
This commit is contained in:
parent
b7adacb36b
commit
e01bdd4ab0
7 changed files with 13 additions and 13 deletions
|
@ -33,7 +33,7 @@ angular.module('quay').directive('triggeredBuildDescription', function () {
|
|||
return;
|
||||
}
|
||||
|
||||
if (build.trigger && build.trigger.build_source && triggerMetadata.commit_sha) {
|
||||
if (build.trigger && build.trigger.build_source && triggerMetadata.commit) {
|
||||
$scope.infoDisplay = 'commitsha';
|
||||
return;
|
||||
}
|
||||
|
@ -43,4 +43,4 @@ angular.module('quay').directive('triggeredBuildDescription', function () {
|
|||
}
|
||||
};
|
||||
return directiveDefinitionObject;
|
||||
});
|
||||
});
|
||||
|
|
Reference in a new issue