mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 04:14:01 +01:00 
			
		
		
		
	enable nolintlint scope requirement add comments to new directives so it's more obvious why they are in place --- I can also toggle the mandatory comments on if that's something of interest. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
		
			
				
	
	
		
			23 lines
		
	
	
		
			534 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			534 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright 2022 The Gitea Authors. All rights reserved.
 | 
						|
// SPDX-License-Identifier: MIT
 | 
						|
 | 
						|
package v1_17
 | 
						|
 | 
						|
import (
 | 
						|
	"xorm.io/xorm"
 | 
						|
)
 | 
						|
 | 
						|
func AddAutoMergeTable(x *xorm.Engine) error {
 | 
						|
	type MergeStyle string
 | 
						|
	type PullAutoMerge struct {
 | 
						|
		ID          int64      `xorm:"pk autoincr"`
 | 
						|
		PullID      int64      `xorm:"UNIQUE"`
 | 
						|
		DoerID      int64      `xorm:"NOT NULL"`
 | 
						|
		MergeStyle  MergeStyle `xorm:"varchar(30)"`
 | 
						|
		Message     string     `xorm:"LONGTEXT"`
 | 
						|
		CreatedUnix int64      `xorm:"created"`
 | 
						|
	}
 | 
						|
 | 
						|
	return x.Sync(&PullAutoMerge{})
 | 
						|
}
 |