chore: rename to NumActionRuns

This commit is contained in:
Jason Song
2023-01-04 18:21:26 +08:00
parent 6148e4c940
commit 95167fd0a2
6 changed files with 13 additions and 13 deletions

View File

@@ -106,11 +106,11 @@ func (run *ActionRun) GetPushEventPayload() (*api.PushPayload, error) {
func updateRepoRunsNumbers(ctx context.Context, repo *repo_model.Repository) error {
_, err := db.GetEngine(ctx).ID(repo.ID).
SetExpr("num_runs",
SetExpr("num_action_runs",
builder.Select("count(*)").From("action_run").
Where(builder.Eq{"repo_id": repo.ID}),
).
SetExpr("num_closed_runs",
SetExpr("num_closed_action_runs",
builder.Select("count(*)").From("action_run").
Where(builder.Eq{
"repo_id": repo.ID,