Skip to content

Commit b78b1ba

Browse files
committed
Delete comment
1 parent 40da061 commit b78b1ba

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

modules/actions/run.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"code.gitea.io/gitea/modules/storage"
1414
)
1515

16-
// TODO: When deleting a run, it should at lease delete artifacts, tasks logs, database record.
16+
// DeleteRun deletes a done workflow run
1717
func DeleteRun(ctx context.Context, repoID int64, run *actions.ActionRun, jobs []*actions.ActionRunJob) error {
1818
tasks := make(actions.TaskList, 0)
1919

@@ -79,6 +79,5 @@ func DeleteRun(ctx context.Context, repoID int64, run *actions.ActionRun, jobs [
7979
}
8080
}
8181

82-
// TODO: Delete commit status? Looks like it has no direct reference to a run/task/job. Not quite feasible without modifying db models (Dangerous).
8382
return nil
8483
}

templates/repo/actions/runs_list.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
<div class="run-list-meta">{{svg "octicon-calendar" 16}}{{DateUtils.TimeSince .Updated}}</div>
3737
<div class="run-list-meta">{{svg "octicon-stopwatch" 16}}{{.Duration}}</div>
3838
</div>
39-
<!-- TODO: ? -->
4039
{{if and (.Link) (or (eq .Status.String "success") (eq .Status.String "skipped") (eq .Status.String "cancelled"))}}
4140
<button class="ui btn interact-bg link-action tw-p-2"
4241
data-url="{{.Link}}/delete"

0 commit comments

Comments
 (0)