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

Function statusEvent

desktop/src/features/projects/projectPullRequests.test.mjs:44–56  ·  view source on GitHub ↗
({ kind, pubkey, createdAt })

Source from the content-addressed store, hash-verified

42}
43
44function statusEvent({ kind, pubkey, createdAt }) {
45 return {
46 id: `status-${pubkey.slice(0, 8)}-${createdAt}`,
47 kind,
48 pubkey,
49 created_at: createdAt,
50 content: "",
51 tags: [
52 ["e", "f".repeat(64), "", "root"],
53 ["a", REPO_ADDRESS],
54 ],
55 };
56}
57
58test("accepts updates signed by the PR author", () => {
59 const update = updateEvent({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected