mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-25 18:21:26 +02: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>
		
			
				
	
	
		
			24 lines
		
	
	
		
			408 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			408 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright 2021 The Gitea Authors. All rights reserved.
 | |
| // SPDX-License-Identifier: MIT
 | |
| 
 | |
| package v1_16
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| 
 | |
| 	"xorm.io/xorm"
 | |
| )
 | |
| 
 | |
| func AddAgitFlowPullRequest(x *xorm.Engine) error {
 | |
| 	type PullRequestFlow int
 | |
| 
 | |
| 	type PullRequest struct {
 | |
| 		Flow PullRequestFlow `xorm:"NOT NULL DEFAULT 0"`
 | |
| 	}
 | |
| 
 | |
| 	if err := x.Sync(new(PullRequest)); err != nil {
 | |
| 		return fmt.Errorf("sync2: %w", err)
 | |
| 	}
 | |
| 	return nil
 | |
| }
 |