|
|
@ -44,6 +44,9 @@ const sfc = { |
|
|
|
canApprove: false, |
|
|
|
canApprove: false, |
|
|
|
canRerun: false, |
|
|
|
canRerun: false, |
|
|
|
done: false, |
|
|
|
done: false, |
|
|
|
|
|
|
|
workflowID: '', |
|
|
|
|
|
|
|
workflowLink: '', |
|
|
|
|
|
|
|
isSchedule: false, |
|
|
|
jobs: [ |
|
|
|
jobs: [ |
|
|
|
// { |
|
|
|
// { |
|
|
|
// id: 0, |
|
|
|
// id: 0, |
|
|
@ -338,10 +341,13 @@ export function initRepositoryActionView() { |
|
|
|
approve: el.getAttribute('data-locale-approve'), |
|
|
|
approve: el.getAttribute('data-locale-approve'), |
|
|
|
cancel: el.getAttribute('data-locale-cancel'), |
|
|
|
cancel: el.getAttribute('data-locale-cancel'), |
|
|
|
rerun: el.getAttribute('data-locale-rerun'), |
|
|
|
rerun: el.getAttribute('data-locale-rerun'), |
|
|
|
|
|
|
|
rerun_all: el.getAttribute('data-locale-rerun-all'), |
|
|
|
|
|
|
|
scheduled: el.getAttribute('data-locale-runs-scheduled'), |
|
|
|
|
|
|
|
commit: el.getAttribute('data-locale-runs-commit'), |
|
|
|
|
|
|
|
pushedBy: el.getAttribute('data-locale-runs-pushed-by'), |
|
|
|
artifactsTitle: el.getAttribute('data-locale-artifacts-title'), |
|
|
|
artifactsTitle: el.getAttribute('data-locale-artifacts-title'), |
|
|
|
areYouSure: el.getAttribute('data-locale-are-you-sure'), |
|
|
|
areYouSure: el.getAttribute('data-locale-are-you-sure'), |
|
|
|
confirmDeleteArtifact: el.getAttribute('data-locale-confirm-delete-artifact'), |
|
|
|
confirmDeleteArtifact: el.getAttribute('data-locale-confirm-delete-artifact'), |
|
|
|
rerun_all: el.getAttribute('data-locale-rerun-all'), |
|
|
|
|
|
|
|
showTimeStamps: el.getAttribute('data-locale-show-timestamps'), |
|
|
|
showTimeStamps: el.getAttribute('data-locale-show-timestamps'), |
|
|
|
showLogSeconds: el.getAttribute('data-locale-show-log-seconds'), |
|
|
|
showLogSeconds: el.getAttribute('data-locale-show-log-seconds'), |
|
|
|
showFullScreen: el.getAttribute('data-locale-show-full-screen'), |
|
|
|
showFullScreen: el.getAttribute('data-locale-show-full-screen'), |
|
|
@ -382,10 +388,16 @@ export function initRepositoryActionView() { |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="action-commit-summary"> |
|
|
|
<div class="action-commit-summary"> |
|
|
|
{{ run.commit.localeCommit }} |
|
|
|
<span><a class="muted" :href="run.workflowLink"><b>{{ run.workflowID }}</b></a>:</span> |
|
|
|
|
|
|
|
<template v-if="run.isSchedule"> |
|
|
|
|
|
|
|
{{ locale.scheduled }} |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-else> |
|
|
|
|
|
|
|
{{ locale.commit }} |
|
|
|
<a class="muted" :href="run.commit.link">{{ run.commit.shortSHA }}</a> |
|
|
|
<a class="muted" :href="run.commit.link">{{ run.commit.shortSHA }}</a> |
|
|
|
{{ run.commit.localePushedBy }} |
|
|
|
{{ locale.pushedBy }} |
|
|
|
<a class="muted" :href="run.commit.pusher.link">{{ run.commit.pusher.displayName }}</a> |
|
|
|
<a class="muted" :href="run.commit.pusher.link">{{ run.commit.pusher.displayName }}</a> |
|
|
|
|
|
|
|
</template> |
|
|
|
<span class="ui label tw-max-w-full" v-if="run.commit.shortSHA"> |
|
|
|
<span class="ui label tw-max-w-full" v-if="run.commit.shortSHA"> |
|
|
|
<a class="gt-ellipsis" :href="run.commit.branch.link">{{ run.commit.branch.name }}</a> |
|
|
|
<a class="gt-ellipsis" :href="run.commit.branch.link">{{ run.commit.branch.name }}</a> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|