feat(actions): add manage runners button to workflow run view
Adds a "Manage Runners" button to the actions workflow run page for repository admins. This provides quick access to the runners settings page directly from the workflow execution view.
This commit is contained in:
@@ -99,6 +99,14 @@ export default defineComponent({
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
runnersUrl: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
canAdmin: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
locale: {
|
||||
type: Object as PropType<Record<string, any>>,
|
||||
default: null,
|
||||
@@ -492,6 +500,9 @@ export default defineComponent({
|
||||
<button class="ui basic small compact button link-action tw-shrink-0" :data-url="`${run.link}/rerun`" v-else-if="run.canRerun">
|
||||
{{ locale.rerun_all }}
|
||||
</button>
|
||||
<a v-if="canAdmin" class="ui basic small compact button tw-shrink-0" :href="runnersUrl">
|
||||
<SvgIcon name="octicon-server" class="tw-mr-1"/>{{ locale.manageRunners }}
|
||||
</a>
|
||||
</div>
|
||||
<div class="action-commit-summary">
|
||||
<span><a class="muted" :href="run.workflowLink"><b>{{ run.workflowID }}</b></a>:</span>
|
||||
|
||||
Reference in New Issue
Block a user