cypher_upsert_pull_request
Upsert the live state of a GitHub PR into the graph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The PR's canonical GitHub URL. | |
| npub | No | ||
| draft | No | True while the PR is a draft (in-progress, not yet up for review). | |
| state | Yes | Lifecycle state: 'open' | 'closed' (merged PRs are closed with merged_at set). | |
| title | Yes | PR title. | |
| author | No | GitHub login that opened the PR. | |
| number | Yes | The PR number (node identity). | |
| base_ref | No | Base branch the PR targets (e.g. 'main'). | |
| head_ref | No | Head branch of the PR (e.g. 'agent/fix-123'). | |
| head_sha | No | Head commit SHA (changes on each synchronize). | |
| merged_at | No | GitHub merge timestamp (ISO-8601), or null if not merged. | |
| repo_name | Yes | Repository name. | |
| created_at | No | GitHub creation timestamp (ISO-8601); a graph timestamp is used if omitted. | |
| dpop_token | No |