PEP-46: ci test expects the extended webhook events
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
db822a570c
commit
53dd8a1f19
@ -65,7 +65,7 @@ describe("CI: connect a project", () => {
|
||||
assert.equal(registrations().length, before, "no per-repo runner for peppa-bot's repos");
|
||||
const repo = gitea.repo(BOT.login, p.giteaRepo);
|
||||
assert.equal(repo.secrets.PEPPA_CI_SECRET, core.projectHookSecret(p.id));
|
||||
assert.deepEqual(repo.hooks.map((h) => [h.url, h.secret, h.events]), [[runner.giteaHookUrl(), core.projectHookSecret(p.id), ["pull_request", "push"]]]);
|
||||
assert.deepEqual(repo.hooks.map((h) => [h.url, h.secret, h.events]), [[runner.giteaHookUrl(), core.projectHookSecret(p.id), runner.GITEA_HOOK_EVENTS]]);
|
||||
assert.match(runner.giteaHookUrl(), /\/api\/hooks\/gitea$/);
|
||||
assert.ok(r.prUrl?.endsWith("/pulls/1"));
|
||||
const pr = repo.pulls[0]!;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user