giteabot backport / giteabot (push) Canceled after 0s
giteabot / giteabot (push) Canceled after 0s
release-nightly / nightly-binary (push) Canceled after 0s
release-nightly / nightly-container (push) Canceled after 0s
cache-seeder / gobuild (push) Canceled after 0s
cache-seeder / lint (bindata, lint-backend) (push) Canceled after 0s
release-nightly-snapcraft / build-and-publish (push) Canceled after 0s
Includes direct password setup links in registration emails. Assisted-by: Codex:GPT-5
21 lines
495 B
Go
21 lines
495 B
Go
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_20
|
|
|
|
import "gitea.dev/models/db"
|
|
|
|
func AddNeedApprovalToActionRun(x db.EngineMigration) error {
|
|
/*
|
|
New index: TriggerUserID
|
|
New fields: NeedApproval, ApprovedBy
|
|
*/
|
|
type ActionRun struct {
|
|
TriggerUserID int64 `xorm:"index"`
|
|
NeedApproval bool // may need approval if it's a fork pull request
|
|
ApprovedBy int64 `xorm:"index"` // who approved
|
|
}
|
|
|
|
return x.Sync(new(ActionRun))
|
|
}
|