Skip to content

Commit 18c303e

Browse files
committed
Fix bug on action list deleted branch
1 parent 1cfb718 commit 18c303e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/actions/actions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func loadIsRefDeleted(ctx *context.Context, runs actions_model.RunList) error {
292292
branchSet := git_model.BranchesToNamesSet(branchInfos)
293293
for _, run := range runs {
294294
refName := git.RefName(run.Ref)
295-
if refName.IsBranch() && !branchSet.Contains(run.Ref) {
295+
if refName.IsBranch() && !branchSet.Contains(refName.ShortName()) {
296296
run.IsRefDeleted = true
297297
}
298298
}

0 commit comments

Comments
 (0)