2023-08-23 02:11:40 +02:00
|
|
|
// Copyright 2023 The Gitea Authors. All rights reserved.
|
2023-08-23 01:58:55 +02:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2023-08-23 16:13:39 +02:00
|
|
|
// ActionTask represents a ActionTask
|
2023-08-23 01:58:55 +02:00
|
|
|
type ActionTask struct {
|
2023-08-30 17:34:01 +02:00
|
|
|
ID int64 `json:"id"`
|
2023-08-23 16:13:39 +02:00
|
|
|
Name string `json:"name"`
|
|
|
|
HeadBranch string `json:"head_branch"`
|
2024-04-26 15:38:34 +02:00
|
|
|
HeadSHA string `json:"head_sha"`
|
2023-08-23 16:13:39 +02:00
|
|
|
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 17:34:01 +02:00
|
|
|
URL string `json:"url"`
|
2023-08-23 01:58:55 +02:00
|
|
|
// swagger:strfmt date-time
|
2023-09-11 20:24:25 +02:00
|
|
|
CreatedAt time.Time `json:"created_at"`
|
2023-08-23 01:58:55 +02:00
|
|
|
// swagger:strfmt date-time
|
2023-09-11 20:24:18 +02:00
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
2023-08-23 16:13:39 +02:00
|
|
|
// swagger:strfmt date-time
|
2023-09-11 20:24:32 +02:00
|
|
|
RunStartedAt time.Time `json:"run_started_at"`
|
2023-08-23 16:13:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ActionTaskResponse returns a ActionTask
|
|
|
|
type ActionTaskResponse struct {
|
|
|
|
Entries []*ActionTask `json:"workflow_runs"`
|
|
|
|
TotalCount int64 `json:"total_count"`
|
2023-08-23 01:58:55 +02:00
|
|
|
}
|