mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-21 16:45:03 +02:00
fix keda scaler compat
This commit is contained in:
parent
875c7745e4
commit
22bfd96b9c
@ -86,19 +86,21 @@ type ActionArtifact struct {
|
|||||||
|
|
||||||
// ActionWorkflowRun represents a WorkflowRun
|
// ActionWorkflowRun represents a WorkflowRun
|
||||||
type ActionWorkflowRun struct {
|
type ActionWorkflowRun struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
HTMLURL string `json:"html_url"`
|
HTMLURL string `json:"html_url"`
|
||||||
DisplayTitle string `json:"display_title"`
|
DisplayTitle string `json:"display_title"`
|
||||||
Path string `json:"path"`
|
Path string `json:"path"`
|
||||||
Event string `json:"event"`
|
Event string `json:"event"`
|
||||||
RunAttempt int64 `json:"run_attempt"`
|
RunAttempt int64 `json:"run_attempt"`
|
||||||
RunNumber int64 `json:"run_number"`
|
RunNumber int64 `json:"run_number"`
|
||||||
RepositoryID int64 `json:"repository_id,omitempty"`
|
RepositoryID int64 `json:"repository_id,omitempty"`
|
||||||
HeadSha string `json:"head_sha"`
|
HeadSha string `json:"head_sha"`
|
||||||
HeadBranch string `json:"head_branch,omitempty"`
|
HeadBranch string `json:"head_branch,omitempty"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Conclusion string `json:"conclusion,omitempty"`
|
Repository *Repository `json:"repository,omitempty"`
|
||||||
|
HeadRepository *Repository `json:"head_repository,omitempty"`
|
||||||
|
Conclusion string `json:"conclusion,omitempty"`
|
||||||
// swagger:strfmt date-time
|
// swagger:strfmt date-time
|
||||||
StartedAt time.Time `json:"started_at,omitempty"`
|
StartedAt time.Time `json:"started_at,omitempty"`
|
||||||
// swagger:strfmt date-time
|
// swagger:strfmt date-time
|
||||||
|
@ -251,6 +251,7 @@ func ToActionWorkflowRun(ctx context.Context, repo *repo_model.Repository, run *
|
|||||||
Status: status,
|
Status: status,
|
||||||
Conclusion: conclusion,
|
Conclusion: conclusion,
|
||||||
Path: fmt.Sprintf("%s@%s", run.WorkflowID, run.Ref),
|
Path: fmt.Sprintf("%s@%s", run.WorkflowID, run.Ref),
|
||||||
|
Repository: ToRepo(ctx, repo, access_model.Permission{AccessMode: perm.AccessModeNone}),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user