MCPcopy Create free account
hub / github.com/FastLED/FastLED / fetch_content_created_at

Function fetch_content_created_at

ci/github_project_drift_sync.py:243–253  ·  view source on GitHub ↗

Given a content node ID (issue/PR), return its createdAt (ISO 8601).

(content_id: str)

Source from the content-addressed store, hash-verified

241
242
243def fetch_content_created_at(content_id: str) -> str | None:
244 """Given a content node ID (issue/PR), return its createdAt (ISO 8601)."""
245 q = (
246 "query($id: ID!) { node(id: $id) { "
247 "... on Issue { createdAt } "
248 "... on PullRequest { createdAt } } }"
249 )
250 d = graphql(q, id=content_id)
251 node = (d.get("data") or {}).get("node") or {}
252 created = node.get("createdAt")
253 return str(created) if created else None
254
255
256def fetch_repo_items(

Callers 1

mainFunction · 0.85

Calls 2

graphqlFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected