| 94 | }); |
| 95 | |
| 96 | function fixture(): Fixture { |
| 97 | return { |
| 98 | scenario: "full-delegation", repo: "sandbox/run", workDir: "/unused", |
| 99 | baseSha: "base", initialHead: "initial", |
| 100 | pr: { |
| 101 | number: 1, html_url: "https://github.com/sandbox/run/pull/1", state: "open", merged: false, mergeable: true, |
| 102 | merge_commit_sha: null, head: { sha: "initial", ref: "improve-greeting" }, base: { ref: "main" }, |
| 103 | }, |
| 104 | }; |
| 105 | } |
| 106 | |
| 107 | test("actor waits for readiness, requests a fix, and approves only the verified pushed head", async t => { |
| 108 | const data = fixture(); |