mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Dont overwrite err with nil & rename PullCheckingFuncs to reflect there usage (#19572)
- dont overwrite err with nil unintentionaly - rename CheckPRReadyToMerge to CheckPullBranchProtections - rename prQueue to prPatchCheckerQueue from #9307 Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
		| @@ -662,8 +662,8 @@ func IsUserAllowedToMerge(pr *models.PullRequest, p models.Permission, user *use | ||||
| 	return false, nil | ||||
| } | ||||
|  | ||||
| // CheckPRReadyToMerge checks whether the PR is ready to be merged (reviews and status checks) | ||||
| func CheckPRReadyToMerge(ctx context.Context, pr *models.PullRequest, skipProtectedFilesCheck bool) (err error) { | ||||
| // CheckPullBranchProtections checks whether the PR is ready to be merged (reviews and status checks) | ||||
| func CheckPullBranchProtections(ctx context.Context, pr *models.PullRequest, skipProtectedFilesCheck bool) (err error) { | ||||
| 	if err = pr.LoadBaseRepoCtx(ctx); err != nil { | ||||
| 		return fmt.Errorf("LoadBaseRepo: %v", err) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 6543
					6543