Skip to content

Commit 2b3eb5e

Browse files
committed
fix
1 parent 857243b commit 2b3eb5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/actions/notifier.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,9 @@ func (n *actionsNotifier) CreateRef(ctx context.Context, pusher *user_model.User
547547
apiRepo := convert.ToRepo(ctx, repo, access_model.Permission{AccessMode: perm_model.AccessModeNone})
548548

549549
newNotifyInput(repo, pusher, webhook_module.HookEventCreate).
550-
WithRef(refFullName.ShortName()). // FIXME: should we use a full ref name
550+
WithRef(refFullName.String()).
551551
WithPayload(&api.CreatePayload{
552-
Ref: refFullName.ShortName(),
552+
Ref: refFullName.String(),
553553
Sha: refID,
554554
RefType: refFullName.RefType(),
555555
Repo: apiRepo,
@@ -566,7 +566,7 @@ func (n *actionsNotifier) DeleteRef(ctx context.Context, pusher *user_model.User
566566

567567
newNotifyInput(repo, pusher, webhook_module.HookEventDelete).
568568
WithPayload(&api.DeletePayload{
569-
Ref: refFullName.ShortName(),
569+
Ref: refFullName.String(),
570570
RefType: refFullName.RefType(),
571571
PusherType: api.PusherTypeUser,
572572
Repo: apiRepo,

0 commit comments

Comments
 (0)