mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	| @@ -464,11 +464,11 @@ func CheckPullBranchProtections(ctx context.Context, pr *issues_model.PullReques | ||||
| } | ||||
|  | ||||
| // MergedManually mark pr as merged manually | ||||
| func MergedManually(pr *issues_model.PullRequest, doer *user_model.User, baseGitRepo *git.Repository, commitID string) error { | ||||
| func MergedManually(ctx context.Context, pr *issues_model.PullRequest, doer *user_model.User, baseGitRepo *git.Repository, commitID string) error { | ||||
| 	pullWorkingPool.CheckIn(fmt.Sprint(pr.ID)) | ||||
| 	defer pullWorkingPool.CheckOut(fmt.Sprint(pr.ID)) | ||||
|  | ||||
| 	if err := db.WithTx(db.DefaultContext, func(ctx context.Context) error { | ||||
| 	if err := db.WithTx(ctx, func(ctx context.Context) error { | ||||
| 		if err := pr.LoadBaseRepo(ctx); err != nil { | ||||
| 			return err | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user