({ pubkey, createdAt, commit, cloneUrl })
| 26 | } |
| 27 | |
| 28 | function updateEvent({ pubkey, createdAt, commit, cloneUrl }) { |
| 29 | return { |
| 30 | id: `update-${pubkey.slice(0, 8)}-${createdAt}`, |
| 31 | kind: 1619, |
| 32 | pubkey, |
| 33 | created_at: createdAt, |
| 34 | content: "", |
| 35 | tags: [ |
| 36 | ["E", "f".repeat(64)], |
| 37 | ["a", REPO_ADDRESS], |
| 38 | ["c", commit], |
| 39 | ...(cloneUrl ? [["clone", cloneUrl]] : []), |
| 40 | ], |
| 41 | }; |
| 42 | } |
| 43 | |
| 44 | function statusEvent({ kind, pubkey, createdAt }) { |
| 45 | return { |
no outgoing calls
no test coverage detected