mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-22 06:34:33 +01:00
ref: https://github.com/go-gitea/gitea/issues/31765 --------- Signed-off-by: Bence Santha <git@santha.eu> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
21 lines
646 B
Go
21 lines
646 B
Go
// Copyright 2024 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package actions
|
|
|
|
import "code.gitea.io/gitea/services/context"
|
|
|
|
// WorkflowAPI for action workflow of a repository
|
|
type WorkflowAPI interface {
|
|
// ListRepositoryWorkflows list repository workflows
|
|
ListRepositoryWorkflows(*context.APIContext)
|
|
// GetWorkflow get a workflow
|
|
GetWorkflow(*context.APIContext)
|
|
// DisableWorkflow disable a workflow
|
|
DisableWorkflow(*context.APIContext)
|
|
// DispatchWorkflow create a workflow dispatch event
|
|
DispatchWorkflow(*context.APIContext)
|
|
// EnableWorkflow enable a workflow
|
|
EnableWorkflow(*context.APIContext)
|
|
}
|