mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-20 20:35:13 +02:00
fix: use ref in options
This commit is contained in:
parent
66b558017f
commit
e37b3911d8
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user