@@ -748,10 +748,9 @@ func (m *webhookNotifier) PullRequestReviewRequest(ctx context.Context, doer *us
748
748
func (m * webhookNotifier ) CreateRef (ctx context.Context , pusher * user_model.User , repo * repo_model.Repository , refFullName git.RefName , refID string ) {
749
749
apiPusher := convert .ToUser (ctx , pusher , nil )
750
750
apiRepo := convert .ToRepo (ctx , repo , access_model.Permission {AccessMode : perm .AccessModeNone })
751
- refName := refFullName .ShortName ()
752
751
753
752
if err := PrepareWebhooks (ctx , EventSource {Repository : repo }, webhook_module .HookEventCreate , & api.CreatePayload {
754
- Ref : refName , // FIXME: should it be a full ref name?
753
+ Ref : refFullName . String (),
755
754
Sha : refID ,
756
755
RefType : refFullName .RefType (),
757
756
Repo : apiRepo ,
@@ -785,10 +784,9 @@ func (m *webhookNotifier) PullRequestSynchronized(ctx context.Context, doer *use
785
784
func (m * webhookNotifier ) DeleteRef (ctx context.Context , pusher * user_model.User , repo * repo_model.Repository , refFullName git.RefName ) {
786
785
apiPusher := convert .ToUser (ctx , pusher , nil )
787
786
apiRepo := convert .ToRepo (ctx , repo , access_model.Permission {AccessMode : perm .AccessModeOwner })
788
- refName := refFullName .ShortName ()
789
787
790
788
if err := PrepareWebhooks (ctx , EventSource {Repository : repo }, webhook_module .HookEventDelete , & api.DeletePayload {
791
- Ref : refName , // FIXME: should it be a full ref name?
789
+ Ref : refFullName . String (),
792
790
RefType : refFullName .RefType (),
793
791
PusherType : api .PusherTypeUser ,
794
792
Repo : apiRepo ,
0 commit comments