2024-09-17 15:10:34 +02:00
|
|
|
// 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)
|
2024-09-19 20:37:53 +02:00
|
|
|
// DisableWorkflow disable a workflow
|
|
|
|
DisableWorkflow(*context.APIContext)
|
2024-09-17 15:10:34 +02:00
|
|
|
// DispatchWorkflow create a workflow dispatch event
|
|
|
|
DispatchWorkflow(*context.APIContext)
|
2024-09-19 20:37:53 +02:00
|
|
|
// EnableWorkflow enable a workflow
|
|
|
|
EnableWorkflow(*context.APIContext)
|
2024-09-17 15:10:34 +02:00
|
|
|
}
|