add custom trigger build description
This commit is contained in:
parent
15ffec4678
commit
7d72608006
1 changed files with 42 additions and 2 deletions
|
@ -59,7 +59,47 @@
|
|||
</span>
|
||||
</span>
|
||||
|
||||
<!-- Unknown -->
|
||||
<span ng-switch-default></span>
|
||||
<!-- Custom -->
|
||||
<span ng-switch-when="custom">
|
||||
<!-- Full Commit Information -->
|
||||
<span ng-if="build.job_config.trigger_metadata.commit_info">
|
||||
<div class="commit-message">
|
||||
{{ build.job_config.trigger_metadata.commit_info.message }}
|
||||
</div>
|
||||
<div class="commit-information">
|
||||
<span class="commit-who-when">
|
||||
Authored
|
||||
<span am-time-ago="build.job_config.trigger_metadata.commit_info.date"></span>
|
||||
<span class="commit-who">
|
||||
{{ build.job_config.trigger_metadata.commit_info.author.username }}
|
||||
</span>
|
||||
</span>
|
||||
<span>
|
||||
{{ build.job_config.trigger_metadata.commit_sha }}
|
||||
</span>
|
||||
<span>
|
||||
{{ build.job_config.trigger_metadata.ref }}
|
||||
</span>
|
||||
</div>
|
||||
</span>
|
||||
|
||||
<!-- Just commit SHA -->
|
||||
<span ng-if="build.job_config.trigger_metadata && !build.job_config.trigger_metadata.commit_info">
|
||||
Triggered by commit
|
||||
<span>
|
||||
{{ build.job_config.trigger_metadata.commit_sha }}
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<!-- No information -->
|
||||
<span ng-if="!build.job_config.trigger_metadata">
|
||||
Triggered by commit to
|
||||
<i class="fa fa-git fa-lg" data-title="git" bs-tooltip="tooltip.title"></i>
|
||||
{{ build.trigger.config.build_source }}
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<!-- Unknown -->
|
||||
<span ng-switch-default>Unknown Build Trigger</span>
|
||||
</span>
|
||||
</div>
|
Reference in a new issue