(overrides = {})
| 9 | const REPO_ADDRESS = `30617:${OWNER}:demo`; |
| 10 | |
| 11 | function pullRequestEvent(overrides = {}) { |
| 12 | return { |
| 13 | id: "f".repeat(64), |
| 14 | kind: 1618, |
| 15 | pubkey: AUTHOR, |
| 16 | created_at: 100, |
| 17 | content: "Add feature\n\nDetails.", |
| 18 | tags: [ |
| 19 | ["a", REPO_ADDRESS], |
| 20 | ["subject", "Add feature"], |
| 21 | ["c", "1111111111111111111111111111111111111111"], |
| 22 | ["clone", `https://relay.example/git/${OWNER}/demo`], |
| 23 | ], |
| 24 | ...overrides, |
| 25 | }; |
| 26 | } |
| 27 | |
| 28 | function updateEvent({ pubkey, createdAt, commit, cloneUrl }) { |
| 29 | return { |
no outgoing calls
no test coverage detected