1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

align with GitHub Actions

This commit is contained in:
chesterip
2023-08-23 10:13:39 -04:00
parent 8f787dfe66
commit 5ebefc85ca
3 changed files with 52 additions and 23 deletions

View File

@ -7,17 +7,28 @@ import (
"time"
)
// Tag represents a repository tag
// ActionTask represents a ActionTask
type ActionTask struct {
ID int64 `json:"id"`
JobName string `json:"job_name"`
WorkflowID string `json:"workflow_id"`
Title string `json:"title"`
Status string `json:"status"`
Commit string `json:"commit"`
Duration string `json:"duration"`
Id int64 `json:"id"`
Name string `json:"name"`
HeadBranch string `json:"head_branch"`
HeadSha string `json:"head_sha"`
RunNumber int64 `json:"run_number"`
Event string `json:"event"`
DisplayTitle string `json:"display_title"`
Status string `json:"status"`
WorkflowID string `json:"workflow_id"`
Url string `json:"url"`
// swagger:strfmt date-time
Started time.Time `json:"started,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
// swagger:strfmt date-time
Stopped time.Time `json:"stopped,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
// swagger:strfmt date-time
RunStartedAt time.Time `json:"run_started_at,omitempty"`
}
// ActionTaskResponse returns a ActionTask
type ActionTaskResponse struct {
Entries []*ActionTask `json:"workflow_runs"`
TotalCount int64 `json:"total_count"`
}