Skip to content

Commit b5d9696

Browse files
committed
Merge branch 'lunny/actions_log_api' of github.com:lunny/gitea into lunny/actions_log_api
2 parents 43208e4 + 520e732 commit b5d9696

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/actions/run_job_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (jobs ActionJobList) GetRunIDs() []int64 {
2424

2525
func (jobs ActionJobList) LoadRepos(ctx context.Context) error {
2626
repoIDs := container.FilterSlice(jobs, func(j *ActionRunJob) (int64, bool) {
27-
return j.RepoID, j.RepoID != 0
27+
return j.RepoID, j.RepoID != 0 && j.Repo == nil
2828
})
2929
if len(repoIDs) == 0 {
3030
return nil

routers/api/v1/repo/actions_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
func DownloadActionsRunJobLogs(ctx *context.APIContext) {
1313
// swagger:operation GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs repository downloadActionsRunJobLogs
1414
// ---
15-
// summary: Downloads the logs for a workflow run redirects to blob url
15+
// summary: Downloads the job logs for a workflow run
1616
// produces:
1717
// - application/json
1818
// parameters:

0 commit comments

Comments
 (0)