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:
23
modules/structs/repo_actions.go
Normal file
23
modules/structs/repo_actions.go
Normal 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"`
|
||||
}
|
Reference in New Issue
Block a user