2023-08-23 00:11:40 +00:00
|
|
|
// Copyright 2023 The Gitea Authors. All rights reserved.
|
2023-08-22 23:58:55 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2023-08-23 14:13:39 +00:00
|
|
|
// ActionTask represents a ActionTask
|
2023-08-22 23:58:55 +00:00
|
|
|
type ActionTask struct {
|
2023-08-30 15:34:01 +00:00
|
|
|
ID int64 `json:"id"`
|
2023-08-23 14:13:39 +00:00
|
|
|
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"`
|
2023-08-30 15:34:01 +00:00
|
|
|
URL string `json:"url"`
|
2023-08-22 23:58:55 +00:00
|
|
|
// swagger:strfmt date-time
|
2023-08-23 14:13:39 +00:00
|
|
|
CreatedAt time.Time `json:"created_at,omitempty"`
|
2023-08-22 23:58:55 +00:00
|
|
|
// swagger:strfmt date-time
|
2023-08-23 14:13:39 +00:00
|
|
|
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"`
|
2023-08-22 23:58:55 +00:00
|
|
|
}
|