e01bdd4ab0
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.
58 lines
2.5 KiB
HTML
58 lines
2.5 KiB
HTML
<div class="triggered-build-description-element">
|
|
<div ng-switch on="infoDisplay">
|
|
<!-- Manually built with no user -->
|
|
<div class="tbd-content" class="manual" ng-switch-when="manual">
|
|
(Manually Triggered Build)
|
|
</div>
|
|
|
|
<!-- Manually built with a user -->
|
|
<div class="tbd-content" ng-switch-when="manual+user">
|
|
<i class="fa fa-user"></i> {{ build.manual_user }}
|
|
</div>
|
|
|
|
<!-- Source information only (i.e. no info) -->
|
|
<div class="tbd-content" ng-switch-when="source">
|
|
Triggered by
|
|
<div class="trigger-description" short="true" trigger="build.trigger"
|
|
style="display: inline-block; margin-left: 4px;"></div>
|
|
</div>
|
|
|
|
<!-- Just commit SHA -->
|
|
<div class="tbd-content" ng-switch-when="commitsha">
|
|
Triggered by commit
|
|
<span class="source-commit-link"
|
|
commit-sha="build.trigger_metadata.commit"></span>
|
|
</div>
|
|
|
|
<!-- Full Commit Information -->
|
|
<div class="tbd-content" ng-switch-when="fullcommit">
|
|
<div class="commit-message">
|
|
<span class="anchor" is-only-text="!TriggerService.getFullLinkTemplate(build, 'commit')"
|
|
target="_blank" href="{{ TriggerService.getFullLinkTemplate(build, 'commit').replace('{sha}', build.trigger_metadata.commit) }}">
|
|
{{ build.trigger_metadata.commit_info.message }}
|
|
</span>
|
|
</div>
|
|
<div class="commit-information">
|
|
<span class="commit-who-when">
|
|
Authored
|
|
<span am-time-ago="build.trigger_metadata.commit_info.date"></span>
|
|
<span class="anchor commit-who"
|
|
href="{{ build.trigger_metadata.commit_info.author.url }}"
|
|
is-only-text="!build.trigger_metadata.commit_info.author.url"
|
|
target="_blank">
|
|
<img ng-src="{{ build.trigger_metadata.commit_info.author.avatar_url }}"
|
|
ng-if="build.trigger_metadata.commit_info.author.avatar_url">
|
|
{{ build.trigger_metadata.commit_info.author.username }}
|
|
</span>
|
|
</span>
|
|
<span class="source-commit-link"
|
|
commit-sha="build.trigger_metadata.commit"
|
|
url-template="TriggerService.getFullLinkTemplate(build, 'commit')"></span>
|
|
<span class="source-ref-link"
|
|
ref="build.trigger_metadata.ref"
|
|
branch-template="TriggerService.getFullLinkTemplate(build, 'branch')"
|
|
tag-template="TriggerService.getFullLinkTemplate(build, 'tag')"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|