1
0
Fork 0
forked from forgejo/forgejo

[TEST] webhook creation payload ref

(cherry picked from commit 9d2919248b)
This commit is contained in:
oliverpool 2024-04-05 11:24:32 +02:00 committed by GitHub
parent 7e5fed7e29
commit 4a8eb1caa1
3 changed files with 74 additions and 1 deletions

View file

@ -83,6 +83,7 @@ func testPullCleanUp(t *testing.T, session *TestSession, user, repo, pullnum str
return resp
}
// returns the hook tasks, order by ID desc.
func retrieveHookTasks(t *testing.T, hookID int64, activateWebhook bool) []*webhook.HookTask {
t.Helper()
if activateWebhook {