Skip to content

Commit f66c4b9

Browse files
committed
More lintfixes
This will not build until [this PR](https://gitea.com/gitea/act/pulls/73) (which adds `SingleWorkflow.RawPermissions`) is merged.
1 parent 0625616 commit f66c4b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

models/actions/run.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ func InsertRun(ctx context.Context, run *ActionRun, jobs []*jobparser.SingleWork
345345
} else {
346346
hasWaiting = true
347347
}
348-
job.Name, _ = util.EllipsisDisplayString(job.Name, 255)
349-
runJobs = append(runJobs, &ActionRunJob{
348+
job.Name = util.EllipsisDisplayString(job.Name, 255)
349+
runJob := &ActionRunJob{
350350
RunID: run.ID,
351351
RepoID: run.RepoID,
352352
OwnerID: run.OwnerID,
@@ -358,7 +358,8 @@ func InsertRun(ctx context.Context, run *ActionRun, jobs []*jobparser.SingleWork
358358
Needs: needs,
359359
RunsOn: job.RunsOn(),
360360
Status: status,
361-
})
361+
}
362+
runJobs = append(runJobs, runJob)
362363

363364
// Parse the job's permissions
364365
if err := job.RawPermissions.Decode(&runJob.Permissions); err != nil {

routers/api/v1/oidc.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"net/http"
1010

1111
actions_model "code.gitea.io/gitea/models/actions"
12-
"code.gitea.io/gitea/modules/context"
1312
"code.gitea.io/gitea/modules/git"
1413
"code.gitea.io/gitea/modules/setting"
1514
"code.gitea.io/gitea/modules/timeutil"

0 commit comments

Comments
 (0)