mirror of
https://github.com/go-gitea/gitea
synced 2024-11-06 18:24:24 +00:00
35 lines
998 B
Go
35 lines
998 B
Go
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package structs
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// ActionTask represents a ActionTask
|
|
type ActionTask struct {
|
|
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
|
|
CreatedAt time.Time `json:"created_at,omitempty"`
|
|
// swagger:strfmt date-time
|
|
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"`
|
|
}
|