Add "Cancel workflow run" button to Actions list page (#34817)

This commit is contained in:
NorthRealm
2025-06-23 07:05:16 +08:00
committed by GitHub
parent 181db69e0c
commit 485d8f1121
4 changed files with 9 additions and 3 deletions

View File

@@ -318,7 +318,7 @@ func prepareWorkflowList(ctx *context.Context, workflows []Workflow) {
ctx.Data["Page"] = pager
ctx.Data["HasWorkflowsOrRuns"] = len(workflows) > 0 || len(runs) > 0
ctx.Data["AllowDeleteWorkflowRuns"] = ctx.Repo.CanWrite(unit.TypeActions)
ctx.Data["CanWriteRepoUnitActions"] = ctx.Repo.CanWrite(unit.TypeActions)
}
// loadIsRefDeleted loads the IsRefDeleted field for each run in the list.