mirror of https://github.com/go-gitea/gitea.git
add workflow
parent
f2c7d32484
commit
fb12ed211e
@ -0,0 +1,30 @@
|
||||
// Copyright 2025 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package project
|
||||
|
||||
import "code.gitea.io/gitea/models/db"
|
||||
|
||||
type WorkflowEvent string
|
||||
|
||||
const (
|
||||
WorkflowEventItemAddedToProject WorkflowEvent = "item_added_to_project"
|
||||
WorkflowEventItemReopened WorkflowEvent = "item_reopened"
|
||||
WorkflowEventItemClosed WorkflowEvent = "item_closed"
|
||||
WorkflowEventCodeChangesRequested WorkflowEvent = "code_changes_requested"
|
||||
WorkflowEventCodeReviewApproved WorkflowEvent = "code_review_approved"
|
||||
WorkflowEventPullRequestMerged WorkflowEvent = "pull_request_merged"
|
||||
WorkflowEventAutoArchiveItems WorkflowEvent = "auto_archive_items"
|
||||
WorkflowEventAutoAddToProject WorkflowEvent = "auto_add_to_project"
|
||||
WorkflowEventAutoCloseIssue WorkflowEvent = "auto_close_issue"
|
||||
)
|
||||
|
||||
type ProjectWorkflow struct {
|
||||
ID int64
|
||||
ProjectID int64 `xorm:"index"`
|
||||
WorkflowEvent WorkflowEvent `xorm:"index"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
db.RegisterModel(new(ProjectWorkflow))
|
||||
}
|
||||
Loading…
Reference in New Issue