1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add API endpoints for getting action jobs status

This commit is contained in:
chesterip
2023-08-22 19:58:55 -04:00
parent 8f2e2878e5
commit b8a61a6ba4
5 changed files with 213 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package structs
import (
"time"
)
// Tag represents a repository tag
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"`
// swagger:strfmt date-time
Started time.Time `json:"started,omitempty"`
// swagger:strfmt date-time
Stopped time.Time `json:"stopped,omitempty"`
}