1
0
Fork 0
forked from forgejo/forgejo

[TEST] webhook creation payload ref

This commit is contained in:
oliverpool 2024-04-05 11:24:32 +02:00
parent 11fd8d5109
commit 9d2919248b
3 changed files with 74 additions and 1 deletions

View file

@ -106,7 +106,7 @@ func (t *HookTask) simpleMarshalJSON(v any) string {
return string(p)
}
// HookTasks returns a list of hook tasks by given conditions.
// HookTasks returns a list of hook tasks by given conditions, order by ID desc.
func HookTasks(ctx context.Context, hookID int64, page int) ([]*HookTask, error) {
tasks := make([]*HookTask, 0, setting.Webhook.PagingNum)
return tasks, db.GetEngine(ctx).