mirror of
https://github.com/go-gitea/gitea
synced 2025-07-26 20:28:40 +00:00
fix: use ref in options
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user