fix: use ref in options

This commit is contained in:
Jason Song 2022-11-28 18:21:49 +08:00
parent 66b558017f
commit e37b3911d8
No known key found for this signature in database
GPG Key ID: 8402EEEE4511A8B5

View File

@ -471,7 +471,7 @@ func (a *botsNotifier) NotifySyncPushCommits(ctx context.Context, pusher *user_m
return
}
if err := notify(repo, pusher, apiHeadCommit.ID, webhook.HookEventPush, &api.PushPayload{
if err := notify(repo, pusher, opts.RefFullName, webhook.HookEventPush, &api.PushPayload{
Ref: opts.RefFullName,
Before: opts.OldCommitID,
After: opts.NewCommitID,