@@ -526,3 +526,38 @@ func (n *actionsNotifier) NotifyPullRequestChangeTargetBranch(ctx context.Contex
526
526
WithPullRequest (pr ).
527
527
Notify (ctx )
528
528
}
529
+
530
+ func (n * actionsNotifier ) NotifyNewWikiPage (ctx context.Context , doer * user_model.User , repo * repo_model.Repository , page , comment string ) {
531
+ ctx = withMethod (ctx , "NotifyNewWikiPage" )
532
+
533
+ newNotifyInput (repo , doer , webhook_module .HookEventWiki ).WithPayload (& api.WikiPayload {
534
+ Action : api .HookWikiCreated ,
535
+ Repository : convert .ToRepo (ctx , repo , perm_model .AccessModeOwner ),
536
+ Sender : convert .ToUser (ctx , doer , nil ),
537
+ Page : page ,
538
+ Comment : comment ,
539
+ }).Notify (ctx )
540
+ }
541
+
542
+ func (n * actionsNotifier ) NotifyEditWikiPage (ctx context.Context , doer * user_model.User , repo * repo_model.Repository , page , comment string ) {
543
+ ctx = withMethod (ctx , "NotifyEditWikiPage" )
544
+
545
+ newNotifyInput (repo , doer , webhook_module .HookEventWiki ).WithPayload (& api.WikiPayload {
546
+ Action : api .HookWikiEdited ,
547
+ Repository : convert .ToRepo (ctx , repo , perm_model .AccessModeOwner ),
548
+ Sender : convert .ToUser (ctx , doer , nil ),
549
+ Page : page ,
550
+ Comment : comment ,
551
+ }).Notify (ctx )
552
+ }
553
+
554
+ func (n * actionsNotifier ) NotifyDeleteWikiPage (ctx context.Context , doer * user_model.User , repo * repo_model.Repository , page string ) {
555
+ ctx = withMethod (ctx , "NotifyDeleteWikiPage" )
556
+
557
+ newNotifyInput (repo , doer , webhook_module .HookEventWiki ).WithPayload (& api.WikiPayload {
558
+ Action : api .HookWikiDeleted ,
559
+ Repository : convert .ToRepo (ctx , repo , perm_model .AccessModeOwner ),
560
+ Sender : convert .ToUser (ctx , doer , nil ),
561
+ Page : page ,
562
+ }).Notify (ctx )
563
+ }
0 commit comments