MCPcopy Create free account
hub / github.com/block/buzz / updateEvent

Function updateEvent

desktop/src/features/projects/projectPullRequests.test.mjs:28–42  ·  view source on GitHub ↗
({ pubkey, createdAt, commit, cloneUrl })

Source from the content-addressed store, hash-verified

26}
27
28function 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
44function statusEvent({ kind, pubkey, createdAt }) {
45 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected