fix: render job title as commit message (#32748)
resolves #32724 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit ad994780af48e2aff27b0e7e496fd559dc0fe3fc) Conflicts: routers/web/repo/actions/view.go because of RenderCommitMessage context
This commit is contained in:
parent
63faaaeda4
commit
b811574d47
2 changed files with 19 additions and 13 deletions
|
@ -42,6 +42,7 @@ const sfc = {
|
|||
run: {
|
||||
link: '',
|
||||
title: '',
|
||||
titleHTML: '',
|
||||
status: '',
|
||||
canCancel: false,
|
||||
canApprove: false,
|
||||
|
@ -424,9 +425,8 @@ export function initRepositoryActionView() {
|
|||
<div class="action-info-summary">
|
||||
<div class="action-info-summary-title">
|
||||
<ActionRunStatus :locale-status="locale.status[run.status]" :status="run.status" :size="20"/>
|
||||
<h2 class="action-info-summary-title-text">
|
||||
{{ run.title }}
|
||||
</h2>
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<h2 class="action-info-summary-title-text" v-html="run.titleHTML"/>
|
||||
</div>
|
||||
<button class="ui basic small compact button primary" @click="approveRun()" v-if="run.canApprove">
|
||||
{{ locale.approve }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue