mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	[refactor] notify remove unused praram (#9804)
This commit is contained in:
		| @@ -6,7 +6,6 @@ package base | ||||
|  | ||||
| import ( | ||||
| 	"code.gitea.io/gitea/models" | ||||
| 	"code.gitea.io/gitea/modules/git" | ||||
| 	"code.gitea.io/gitea/modules/repository" | ||||
| ) | ||||
|  | ||||
| @@ -32,7 +31,7 @@ type Notifier interface { | ||||
| 		addedLabels []*models.Label, removedLabels []*models.Label) | ||||
|  | ||||
| 	NotifyNewPullRequest(*models.PullRequest) | ||||
| 	NotifyMergePullRequest(*models.PullRequest, *models.User, *git.Repository) | ||||
| 	NotifyMergePullRequest(*models.PullRequest, *models.User) | ||||
| 	NotifyPullRequestSynchronized(doer *models.User, pr *models.PullRequest) | ||||
| 	NotifyPullRequestReview(*models.PullRequest, *models.Review, *models.Comment) | ||||
| 	NotifyPullRequestChangeTargetBranch(doer *models.User, pr *models.PullRequest, oldBranch string) | ||||
|   | ||||
| @@ -6,7 +6,6 @@ package base | ||||
|  | ||||
| import ( | ||||
| 	"code.gitea.io/gitea/models" | ||||
| 	"code.gitea.io/gitea/modules/git" | ||||
| 	"code.gitea.io/gitea/modules/repository" | ||||
| ) | ||||
|  | ||||
| @@ -44,7 +43,7 @@ func (*NullNotifier) NotifyPullRequestReview(pr *models.PullRequest, r *models.R | ||||
| } | ||||
|  | ||||
| // NotifyMergePullRequest places a place holder function | ||||
| func (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *models.User, baseRepo *git.Repository) { | ||||
| func (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *models.User) { | ||||
| } | ||||
|  | ||||
| // NotifyPullRequestSynchronized places a place holder function | ||||
|   | ||||
		Reference in New Issue
	
	Block a user