## A cache-only read; a refresh asks GitHub for the set, one page.
# metab https://github.com/octo/demo --api /api/plugin/github/labels
exit: 0
--- stdout ---
api: /api/plugin/github/labels
status: 200
{
  "state": "absent",
  "reason": "not_cached",
  "source": "https://github.com/octo/demo",
  "reader": null,
  "fetched_at": null,
  "fresh_for_s": 0,
  "refreshing": false,
  "last_refresh": null,
  "complete": false,
  "count": 0,
  "labels": []
}
--- stderr ---
cloning https://github.com/octo/demo into <HOME>
cloned https://github.com/octo/demo in 0.0 s
--- gh ---
gh auth status
gh api repos/octo/demo --jq .size
# metab https://github.com/octo/demo --api /api/plugin/github/labels-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/labels-refresh
status: 202
{
  "refresh": "started",
  "labels": {
    "state": "absent",
    "reason": "not_cached",
    "source": "https://github.com/octo/demo",
    "reader": null,
    "fetched_at": null,
    "fresh_for_s": 0,
    "refreshing": true,
    "last_refresh": null,
    "complete": false,
    "count": 0,
    "labels": []
  },
  "status_route": "/api/plugin/github/labels"
}
after: /api/plugin/github/labels
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "reader": "gh:octo-reader",
  "fetched_at": "2026-09-17T12:00:00Z",
  "fresh_for_s": 300.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "complete": true,
  "count": 3,
  "labels": [
    {
      "name": "enhancement",
      "color": "2700af",
      "description": "A label's description is its chip's tooltip"
    },
    {
      "name": "invalid",
      "color": "e4e669",
      "description": null
    },
    {
      "name": "bug",
      "color": "d73a4a",
      "description": "Something isn't working"
    }
  ]
}
--- stderr ---
--- body ---
{}
--- gh ---
gh api user
gh api repos/octo/demo/labels?per_page=100&page=1
gh api user (If-None-Match)
# metab https://github.com/octo/demo --api /api/plugin/github/labels
exit: 0
--- stdout ---
api: /api/plugin/github/labels
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "reader": "gh:octo-reader",
  "fetched_at": "2026-09-17T12:00:00Z",
  "fresh_for_s": 300.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "complete": true,
  "count": 3,
  "labels": [
    {
      "name": "enhancement",
      "color": "2700af",
      "description": "A label's description is its chip's tooltip"
    },
    {
      "name": "invalid",
      "color": "e4e669",
      "description": null
    },
    {
      "name": "bug",
      "color": "d73a4a",
      "description": "Something isn't working"
    }
  ]
}
--- stderr ---
--- gh ---
# metab https://github.com/octo/demo --api /api/plugin/github/labels-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/labels-refresh
status: 200
{
  "refresh": "not_due",
  "labels": {
    "state": "current",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "reader": "gh:octo-reader",
    "fetched_at": "2026-09-17T12:00:00Z",
    "fresh_for_s": 300.0,
    "refreshing": false,
    "last_refresh": {
      "outcome": "succeeded",
      "message": null,
      "reset_at": null,
      "at": "2026-09-17T12:00:00Z"
    },
    "complete": true,
    "count": 3,
    "labels": [
      {
        "name": "enhancement",
        "color": "2700af",
        "description": "A label's description is its chip's tooltip"
      },
      {
        "name": "invalid",
        "color": "e4e669",
        "description": null
      },
      {
        "name": "bug",
        "color": "d73a4a",
        "description": "Something isn't working"
      }
    ]
  },
  "status_route": "/api/plugin/github/labels"
}
--- stderr ---
--- body ---
{}
--- gh ---
## A record cached before label colors names its labels alone; the pull envelope
## carries the set's entry for each, and a colored record needs none.
# metab https://github.com/octo/demo --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 202
{
  "refresh": "started",
  "pull": {
    "state": "pending",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 7,
    "pin": "c691256511d05858850bc7684ae062fea0d41132",
    "pin_ref": "refs/remotes/origin/topic",
    "fetched_at": null,
    "verified_at": null,
    "verified_by": null,
    "head_moved": false,
    "checks_pending": false,
    "record_revision": null,
    "fresh_for_s": 60.0,
    "probe_every_s": null,
    "refreshing": true,
    "last_refresh": null,
    "comparison_route": null,
    "image_route": null,
    "rendered_route": null,
    "size_route": null,
    "record": null,
    "core_preview": null,
    "repository_labels": [],
    "labels_pending": false,
    "status": null,
    "readiness": null,
    "checks": null,
    "status_unavailable": null
  },
  "status_route": "/api/plugin/github/pull?number=7"
}
after: /api/plugin/github/pull?number=7
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 7,
  "pin": "c691256511d05858850bc7684ae062fea0d41132",
  "pin_ref": "refs/remotes/origin/topic",
  "fetched_at": "2026-09-17T12:00:00Z",
  "verified_at": "2026-09-17T12:00:00Z",
  "verified_by": "fetch",
  "head_moved": false,
  "checks_pending": true,
  "record_revision": "a9dfa5c72aff60d11d992707bfdd715db78cd3ffae4b076b64dc271ddaefb538",
  "fresh_for_s": 60.0,
  "probe_every_s": 5.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "comparison_route": "/api/plugin/github/pull-comparison?number=7&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=85fcb2fa9e77eb5db485ffef445cbbc645d6db4a&base_policy=merge_base&build=<BUILD>&store=<STORE>",
  "image_route": "/api/plugin/github/pull-image?number=7&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=85fcb2fa9e77eb5db485ffef445cbbc645d6db4a&store=<STORE>",
  "rendered_route": "/api/plugin/github/pull-rendered-diff?number=7&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=85fcb2fa9e77eb5db485ffef445cbbc645d6db4a&store=<STORE>",
  "size_route": "/api/plugin/github/pull-size?number=7&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=85fcb2fa9e77eb5db485ffef445cbbc645d6db4a&store=<STORE>",
  "record": {
    "schema_version": 3,
    "projection_version": 2,
    "source": "https://github.com/octo/demo",
    "number": 7,
    "fetched_at": "2026-09-17T12:00:00Z",
    "reader": "gh:octo-reader",
    "etags": {
      "repos/octo/demo/pulls/7": "W/\"369a52b442c8b956f7bb9bd28a3ae75f06b540c1781d3c8eacc7e3afc4da232f\"",
      "repos/octo/demo/issues/7/comments?per_page=100&page=1": "W/\"129ba5d41c7ad9dc46b0ecc3d92124b83747ed95e5ff5422603eb05b99399608\"",
      "repos/octo/demo/pulls/7/reviews?per_page=100&page=1": "W/\"553dbffc68c21141af1083cb13e8be39e4138e90d4011da721d679e7853c5e9d\"",
      "repos/octo/demo/pulls/7/comments?per_page=100&page=1": "W/\"b4ca741eae91bcff3445421bd4f16ee7b2ae05d25fa979346f04a378ee3bd6cc\""
    },
    "pull": {
      "number": 7,
      "title": "Count to two in the app",
      "body": "The app counts to one.\r\n\r\nThis teaches it **two**.",
      "body_truncated": false,
      "state": "open",
      "draft": false,
      "merged": false,
      "merged_by": null,
      "merged_by_avatar_url": null,
      "commits": 2,
      "merge_commit_sha": null,
      "labels": [
        {
          "name": "enhancement",
          "color": "2700af",
          "description": "A label's description is its chip's tooltip"
        }
      ],
      "author": "forker",
      "author_avatar_url": null,
      "created_at": "2026-09-16T10:57:23Z",
      "updated_at": "2026-09-16T17:39:01Z",
      "merged_at": null,
      "closed_at": null,
      "base": {
        "ref": "topic",
        "sha": "07b55f07793d9ed4e9f3e130c4414d979137bc53",
        "repository": "octo/demo"
      },
      "head": {
        "ref": "count-to-two",
        "sha": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
        "repository": "forker/demo"
      },
      "html_url": "https://github.com/octo/demo/pull/7"
    },
    "issue_comments": [
      {
        "id": 3341937855,
        "author": "maintainer",
        "author_avatar_url": null,
        "body": "Thanks. CI is green; one question inline.",
        "body_truncated": false,
        "created_at": "2026-09-16T17:34:17Z",
        "updated_at": "2026-09-16T17:35:33Z"
      }
    ],
    "reviews": [
      {
        "id": 3274109685,
        "state": "COMMENTED",
        "author": "maintainer",
        "author_avatar_url": null,
        "body": "",
        "body_truncated": false,
        "submitted_at": "2026-09-16T12:32:50Z",
        "commit_id": "f7c5a9918657080d6aeb455902615b6e17df760a"
      },
      {
        "id": 3279967139,
        "state": "APPROVED",
        "author": "maintainer",
        "author_avatar_url": null,
        "body": "Looks right.",
        "body_truncated": false,
        "submitted_at": "2026-09-16T17:36:02Z",
        "commit_id": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a"
      }
    ],
    "review_comments": [
      {
        "id": 2383608906,
        "review_id": 3274109685,
        "in_reply_to": null,
        "path": "src/app.txt",
        "line": null,
        "original_line": 1,
        "start_line": null,
        "original_start_line": null,
        "side": "RIGHT",
        "commit_id": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
        "original_commit_id": "f7c5a9918657080d6aeb455902615b6e17df760a",
        "diff_hunk": "@@ -1 +1 @@\n-one\n+one",
        "diff_hunk_truncated": false,
        "author": "maintainer",
        "author_avatar_url": null,
        "body": "Why does this line change?",
        "body_truncated": false,
        "created_at": "2026-09-16T12:32:50Z",
        "updated_at": "2026-09-16T12:32:50Z"
      },
      {
        "id": 2388073350,
        "review_id": 3279967139,
        "in_reply_to": 2383608906,
        "path": "src/app.txt",
        "line": 2,
        "original_line": 2,
        "start_line": null,
        "original_start_line": null,
        "side": "RIGHT",
        "commit_id": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
        "original_commit_id": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
        "diff_hunk": "@@ -1 +1,2 @@\n one\n+two",
        "diff_hunk_truncated": false,
        "author": "forker",
        "author_avatar_url": null,
        "body": "It no longer does; the second line is new.",
        "body_truncated": false,
        "created_at": "2026-09-16T17:30:11Z",
        "updated_at": "2026-09-16T17:30:11Z"
      }
    ],
    "comparison": {
      "base": "f92fd713acd521d4ebb62fb9f345ec927b8b6d1b",
      "head": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
      "base_commit": "c691256511d05858850bc7684ae062fea0d41132",
      "base_from": "base_branch"
    },
    "truncated": {
      "issue_comments": false,
      "reviews": false,
      "review_comments": false,
      "text": false
    },
    "unavailable": {}
  },
  "core_preview": null,
  "repository_labels": [],
  "labels_pending": false,
  "status": {
    "number": 7,
    "head": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
    "base_ref": "topic",
    "base": "07b55f07793d9ed4e9f3e130c4414d979137bc53",
    "observed_at": "2026-09-17T12:00:00Z",
    "observed_by": "read",
    "conflicts": "mergeable",
    "merge_state": "blocked",
    "review_decision": "review_required",
    "checks": {
      "state": "pending",
      "counts": {
        "pass": 2,
        "fail": 0,
        "pending": 1,
        "skipping": 0,
        "cancel": 0
      },
      "required_failing": 0,
      "required_pending": 1,
      "listed_at": "2026-09-17T12:00:00Z",
      "moved_at": null
    },
    "auto_merge": {
      "method": "squash",
      "enabled_by": "maintainer",
      "enabled_at": "2026-09-16T17:40:00Z"
    },
    "queue": null
  },
  "readiness": {
    "verdict": "checks_pending",
    "tone": "attention",
    "label": "Checks pending",
    "head": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
    "observed_at": "2026-09-17T12:00:00Z",
    "requirements": [
      {
        "kind": "conflicts",
        "status": "met",
        "summary": "No merge conflicts with topic.",
        "github_url": null,
        "tone": "success"
      },
      {
        "kind": "checks",
        "status": "waiting",
        "summary": "Some checks are still pending: 2 successful, and 1 pending.",
        "github_url": "https://github.com/octo/demo/pull/7/checks",
        "tone": "attention"
      },
      {
        "kind": "reviews",
        "status": "waiting",
        "summary": "Review required.",
        "github_url": "https://github.com/octo/demo/pull/7",
        "tone": "attention"
      }
    ],
    "auto_merge": {
      "method": "squash",
      "enabled_by": "maintainer",
      "enabled_at": "2026-09-16T17:40:00Z"
    },
    "auto_merge_summary": "Auto-merge enabled (squash)."
  },
  "checks": {
    "number": 7,
    "head": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
    "observed_at": "2026-09-17T12:00:00Z",
    "items": [
      {
        "name": "tests (3.13)",
        "kind": "run",
        "bucket": "pass",
        "status": "COMPLETED",
        "conclusion": "SUCCESS",
        "required": true,
        "details_url": "https://github.com/octo/demo/actions/runs/18062895276/job/51401654787",
        "app": "GitHub Actions",
        "description": null
      },
      {
        "name": "docs",
        "kind": "run",
        "bucket": "pending",
        "status": "IN_PROGRESS",
        "conclusion": null,
        "required": true,
        "details_url": "https://github.com/octo/demo/actions/runs/18062895276/job/51401654788",
        "app": "GitHub Actions",
        "description": null
      },
      {
        "name": "docs/readthedocs.org:demo",
        "kind": "status",
        "bucket": "pass",
        "status": null,
        "conclusion": "SUCCESS",
        "required": false,
        "details_url": "https://demo--7.org.readthedocs.build/en/7/",
        "app": null,
        "description": "Read the Docs build succeeded!"
      }
    ],
    "truncated": false
  },
  "status_unavailable": null,
  "refresh_timing": {
    "finished_at": "2026-09-17T12:00:00Z",
    "duration_ms": "<ELAPSED_MS>",
    "provider": "github_cli",
    "request_count": 6,
    "response_body_bytes": 2585
  }
}
--- stderr ---
--- body ---
{"number": 7, "retry": true}
--- gh ---
gh api user
gh api repos/octo/demo/pulls/7
gh api repos/octo/demo/issues/7/comments?per_page=100&page=1
gh api repos/octo/demo/pulls/7/comments?per_page=100&page=1
gh api repos/octo/demo/pulls/7/reviews?per_page=100&page=1
gh api user (If-None-Match)
gh api graphql status number=7 cursor=start
# metab https://github.com/octo/demo --api '/api/plugin/github/pull?number=7'
exit: 0
--- stdout ---
api: /api/plugin/github/pull?number=7
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 7,
  "pin": "c691256511d05858850bc7684ae062fea0d41132",
  "pin_ref": "refs/remotes/origin/topic",
  "fetched_at": "2026-09-17T12:00:00Z",
  "verified_at": "2026-09-17T12:00:00Z",
  "verified_by": "fetch",
  "head_moved": false,
  "checks_pending": true,
  "record_revision": "a9dfa5c72aff60d11d992707bfdd715db78cd3ffae4b076b64dc271ddaefb538",
  "fresh_for_s": 60.0,
  "probe_every_s": 5.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "comparison_route": "/api/plugin/github/pull-comparison?number=7&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=85fcb2fa9e77eb5db485ffef445cbbc645d6db4a&base_policy=merge_base&build=<BUILD>&store=<STORE>",
  "image_route": "/api/plugin/github/pull-image?number=7&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=85fcb2fa9e77eb5db485ffef445cbbc645d6db4a&store=<STORE>",
  "rendered_route": "/api/plugin/github/pull-rendered-diff?number=7&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=85fcb2fa9e77eb5db485ffef445cbbc645d6db4a&store=<STORE>",
  "size_route": "/api/plugin/github/pull-size?number=7&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=85fcb2fa9e77eb5db485ffef445cbbc645d6db4a&store=<STORE>",
  "record": {
    "schema_version": 3,
    "projection_version": 2,
    "source": "https://github.com/octo/demo",
    "number": 7,
    "fetched_at": "2026-09-17T12:00:00Z",
    "reader": "gh:octo-reader",
    "etags": {
      "repos/octo/demo/pulls/7": "W/\"369a52b442c8b956f7bb9bd28a3ae75f06b540c1781d3c8eacc7e3afc4da232f\"",
      "repos/octo/demo/issues/7/comments?per_page=100&page=1": "W/\"129ba5d41c7ad9dc46b0ecc3d92124b83747ed95e5ff5422603eb05b99399608\"",
      "repos/octo/demo/pulls/7/reviews?per_page=100&page=1": "W/\"553dbffc68c21141af1083cb13e8be39e4138e90d4011da721d679e7853c5e9d\"",
      "repos/octo/demo/pulls/7/comments?per_page=100&page=1": "W/\"b4ca741eae91bcff3445421bd4f16ee7b2ae05d25fa979346f04a378ee3bd6cc\""
    },
    "pull": {
      "number": 7,
      "title": "Count to two in the app",
      "body": "The app counts to one.\r\n\r\nThis teaches it **two**.",
      "body_truncated": false,
      "state": "open",
      "draft": false,
      "merged": false,
      "merged_by": null,
      "merged_by_avatar_url": null,
      "commits": 2,
      "merge_commit_sha": null,
      "labels": [
        {
          "name": "enhancement",
          "color": "2700af",
          "description": "A label's description is its chip's tooltip"
        }
      ],
      "author": "forker",
      "author_avatar_url": null,
      "created_at": "2026-09-16T10:57:23Z",
      "updated_at": "2026-09-16T17:39:01Z",
      "merged_at": null,
      "closed_at": null,
      "base": {
        "ref": "topic",
        "sha": "07b55f07793d9ed4e9f3e130c4414d979137bc53",
        "repository": "octo/demo"
      },
      "head": {
        "ref": "count-to-two",
        "sha": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
        "repository": "forker/demo"
      },
      "html_url": "https://github.com/octo/demo/pull/7"
    },
    "issue_comments": [
      {
        "id": 3341937855,
        "author": "maintainer",
        "author_avatar_url": null,
        "body": "Thanks. CI is green; one question inline.",
        "body_truncated": false,
        "created_at": "2026-09-16T17:34:17Z",
        "updated_at": "2026-09-16T17:35:33Z"
      }
    ],
    "reviews": [
      {
        "id": 3274109685,
        "state": "COMMENTED",
        "author": "maintainer",
        "author_avatar_url": null,
        "body": "",
        "body_truncated": false,
        "submitted_at": "2026-09-16T12:32:50Z",
        "commit_id": "f7c5a9918657080d6aeb455902615b6e17df760a"
      },
      {
        "id": 3279967139,
        "state": "APPROVED",
        "author": "maintainer",
        "author_avatar_url": null,
        "body": "Looks right.",
        "body_truncated": false,
        "submitted_at": "2026-09-16T17:36:02Z",
        "commit_id": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a"
      }
    ],
    "review_comments": [
      {
        "id": 2383608906,
        "review_id": 3274109685,
        "in_reply_to": null,
        "path": "src/app.txt",
        "line": null,
        "original_line": 1,
        "start_line": null,
        "original_start_line": null,
        "side": "RIGHT",
        "commit_id": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
        "original_commit_id": "f7c5a9918657080d6aeb455902615b6e17df760a",
        "diff_hunk": "@@ -1 +1 @@\n-one\n+one",
        "diff_hunk_truncated": false,
        "author": "maintainer",
        "author_avatar_url": null,
        "body": "Why does this line change?",
        "body_truncated": false,
        "created_at": "2026-09-16T12:32:50Z",
        "updated_at": "2026-09-16T12:32:50Z"
      },
      {
        "id": 2388073350,
        "review_id": 3279967139,
        "in_reply_to": 2383608906,
        "path": "src/app.txt",
        "line": 2,
        "original_line": 2,
        "start_line": null,
        "original_start_line": null,
        "side": "RIGHT",
        "commit_id": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
        "original_commit_id": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
        "diff_hunk": "@@ -1 +1,2 @@\n one\n+two",
        "diff_hunk_truncated": false,
        "author": "forker",
        "author_avatar_url": null,
        "body": "It no longer does; the second line is new.",
        "body_truncated": false,
        "created_at": "2026-09-16T17:30:11Z",
        "updated_at": "2026-09-16T17:30:11Z"
      }
    ],
    "comparison": {
      "base": "f92fd713acd521d4ebb62fb9f345ec927b8b6d1b",
      "head": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
      "base_commit": "c691256511d05858850bc7684ae062fea0d41132",
      "base_from": "base_branch"
    },
    "truncated": {
      "issue_comments": false,
      "reviews": false,
      "review_comments": false,
      "text": false
    },
    "unavailable": {}
  },
  "core_preview": null,
  "repository_labels": [],
  "labels_pending": false,
  "status": "<STATUS 7>",
  "readiness": "<READINESS 85fcb2fa9e77eb5db485ffef445cbbc645d6db4a>",
  "checks": "<CHECKS 7>",
  "status_unavailable": null,
  "refresh_timing": {
    "finished_at": "2026-09-17T12:00:00Z",
    "duration_ms": "<ELAPSED_MS>",
    "provider": "github_cli",
    "request_count": 6,
    "response_body_bytes": 2585
  }
}
--- stderr ---
--- gh ---
# metab https://github.com/octo/demo --api '/api/plugin/github/pull?number=7'
exit: 0
--- stdout ---
api: /api/plugin/github/pull?number=7
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 7,
  "pin": "c691256511d05858850bc7684ae062fea0d41132",
  "pin_ref": "refs/remotes/origin/topic",
  "fetched_at": "2026-09-17T12:00:00Z",
  "verified_at": "2026-09-17T12:00:00Z",
  "verified_by": "fetch",
  "head_moved": false,
  "checks_pending": true,
  "record_revision": "c7af53089cf8c3d91bc20881015c78f0b1b85cc5855354c3a0ecc212631a40b2",
  "fresh_for_s": 60.0,
  "probe_every_s": 5.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "comparison_route": "/api/plugin/github/pull-comparison?number=7&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=85fcb2fa9e77eb5db485ffef445cbbc645d6db4a&base_policy=merge_base&build=<BUILD>&store=<STORE>",
  "image_route": "/api/plugin/github/pull-image?number=7&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=85fcb2fa9e77eb5db485ffef445cbbc645d6db4a&store=<STORE>",
  "rendered_route": "/api/plugin/github/pull-rendered-diff?number=7&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=85fcb2fa9e77eb5db485ffef445cbbc645d6db4a&store=<STORE>",
  "size_route": "/api/plugin/github/pull-size?number=7&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=85fcb2fa9e77eb5db485ffef445cbbc645d6db4a&store=<STORE>",
  "record": {
    "schema_version": 3,
    "projection_version": 1,
    "source": "https://github.com/octo/demo",
    "number": 7,
    "fetched_at": "2026-09-17T12:00:00Z",
    "reader": "gh:octo-reader",
    "etags": {
      "repos/octo/demo/pulls/7": "W/\"369a52b442c8b956f7bb9bd28a3ae75f06b540c1781d3c8eacc7e3afc4da232f\"",
      "repos/octo/demo/issues/7/comments?per_page=100&page=1": "W/\"129ba5d41c7ad9dc46b0ecc3d92124b83747ed95e5ff5422603eb05b99399608\"",
      "repos/octo/demo/pulls/7/reviews?per_page=100&page=1": "W/\"553dbffc68c21141af1083cb13e8be39e4138e90d4011da721d679e7853c5e9d\"",
      "repos/octo/demo/pulls/7/comments?per_page=100&page=1": "W/\"b4ca741eae91bcff3445421bd4f16ee7b2ae05d25fa979346f04a378ee3bd6cc\""
    },
    "pull": {
      "number": 7,
      "title": "Count to two in the app",
      "body": "The app counts to one.\r\n\r\nThis teaches it **two**.",
      "body_truncated": false,
      "state": "open",
      "draft": false,
      "merged": false,
      "merged_by": null,
      "merged_by_avatar_url": null,
      "commits": 2,
      "merge_commit_sha": null,
      "labels": [
        {
          "name": "enhancement",
          "color": null,
          "description": null
        },
        {
          "name": "deleted-on-github",
          "color": null,
          "description": null
        }
      ],
      "author": "forker",
      "author_avatar_url": null,
      "created_at": "2026-09-16T10:57:23Z",
      "updated_at": "2026-09-16T17:39:01Z",
      "merged_at": null,
      "closed_at": null,
      "base": {
        "ref": "topic",
        "sha": "07b55f07793d9ed4e9f3e130c4414d979137bc53",
        "repository": "octo/demo"
      },
      "head": {
        "ref": "count-to-two",
        "sha": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
        "repository": "forker/demo"
      },
      "html_url": "https://github.com/octo/demo/pull/7"
    },
    "issue_comments": [
      {
        "id": 3341937855,
        "author": "maintainer",
        "author_avatar_url": null,
        "body": "Thanks. CI is green; one question inline.",
        "body_truncated": false,
        "created_at": "2026-09-16T17:34:17Z",
        "updated_at": "2026-09-16T17:35:33Z"
      }
    ],
    "reviews": [
      {
        "id": 3274109685,
        "state": "COMMENTED",
        "author": "maintainer",
        "author_avatar_url": null,
        "body": "",
        "body_truncated": false,
        "submitted_at": "2026-09-16T12:32:50Z",
        "commit_id": "f7c5a9918657080d6aeb455902615b6e17df760a"
      },
      {
        "id": 3279967139,
        "state": "APPROVED",
        "author": "maintainer",
        "author_avatar_url": null,
        "body": "Looks right.",
        "body_truncated": false,
        "submitted_at": "2026-09-16T17:36:02Z",
        "commit_id": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a"
      }
    ],
    "review_comments": [
      {
        "id": 2383608906,
        "review_id": 3274109685,
        "in_reply_to": null,
        "path": "src/app.txt",
        "line": null,
        "original_line": 1,
        "start_line": null,
        "original_start_line": null,
        "side": "RIGHT",
        "commit_id": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
        "original_commit_id": "f7c5a9918657080d6aeb455902615b6e17df760a",
        "diff_hunk": "@@ -1 +1 @@\n-one\n+one",
        "diff_hunk_truncated": false,
        "author": "maintainer",
        "author_avatar_url": null,
        "body": "Why does this line change?",
        "body_truncated": false,
        "created_at": "2026-09-16T12:32:50Z",
        "updated_at": "2026-09-16T12:32:50Z"
      },
      {
        "id": 2388073350,
        "review_id": 3279967139,
        "in_reply_to": 2383608906,
        "path": "src/app.txt",
        "line": 2,
        "original_line": 2,
        "start_line": null,
        "original_start_line": null,
        "side": "RIGHT",
        "commit_id": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
        "original_commit_id": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
        "diff_hunk": "@@ -1 +1,2 @@\n one\n+two",
        "diff_hunk_truncated": false,
        "author": "forker",
        "author_avatar_url": null,
        "body": "It no longer does; the second line is new.",
        "body_truncated": false,
        "created_at": "2026-09-16T17:30:11Z",
        "updated_at": "2026-09-16T17:30:11Z"
      }
    ],
    "comparison": {
      "base": "f92fd713acd521d4ebb62fb9f345ec927b8b6d1b",
      "head": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
      "base_commit": "c691256511d05858850bc7684ae062fea0d41132",
      "base_from": "base_branch"
    },
    "truncated": {
      "issue_comments": false,
      "reviews": false,
      "review_comments": false,
      "text": false
    },
    "unavailable": {}
  },
  "core_preview": null,
  "repository_labels": [
    {
      "name": "enhancement",
      "color": "2700af",
      "description": "A label's description is its chip's tooltip"
    }
  ],
  "labels_pending": false,
  "status": "<STATUS 7>",
  "readiness": "<READINESS 85fcb2fa9e77eb5db485ffef445cbbc645d6db4a>",
  "checks": "<CHECKS 7>",
  "status_unavailable": null
}
--- stderr ---
--- gh ---
## A due refresh asks again with the page's ETag; a 304 keeps the set.
# metab https://github.com/octo/demo --api /api/plugin/github/labels-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/labels-refresh
status: 202
{
  "refresh": "started",
  "labels": {
    "state": "stale",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "reader": "gh:octo-reader",
    "fetched_at": "2026-09-17T12:00:00Z",
    "fresh_for_s": 0.0,
    "refreshing": true,
    "last_refresh": {
      "outcome": "succeeded",
      "message": null,
      "reset_at": null,
      "at": "2026-09-17T12:00:00Z"
    },
    "complete": true,
    "count": 3,
    "labels": [
      {
        "name": "enhancement",
        "color": "2700af",
        "description": "A label's description is its chip's tooltip"
      },
      {
        "name": "invalid",
        "color": "e4e669",
        "description": null
      },
      {
        "name": "bug",
        "color": "d73a4a",
        "description": "Something isn't working"
      }
    ]
  },
  "status_route": "/api/plugin/github/labels"
}
after: /api/plugin/github/labels
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "reader": "gh:octo-reader",
  "fetched_at": "2026-09-17T12:05:01Z",
  "fresh_for_s": 300.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:05:01Z"
  },
  "complete": true,
  "count": 3,
  "labels": [
    {
      "name": "enhancement",
      "color": "2700af",
      "description": "A label's description is its chip's tooltip"
    },
    {
      "name": "invalid",
      "color": "e4e669",
      "description": null
    },
    {
      "name": "bug",
      "color": "d73a4a",
      "description": "Something isn't working"
    }
  ]
}
--- stderr ---
--- body ---
{}
--- gh ---
gh api user
gh api repos/octo/demo/labels?per_page=100&page=1 (If-None-Match)
gh api user (If-None-Match)
# metab https://github.com/octo/demo --api /api/plugin/github/labels
exit: 0
--- stdout ---
api: /api/plugin/github/labels
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "reader": "gh:octo-reader",
  "fetched_at": "2026-09-17T12:05:01Z",
  "fresh_for_s": 300.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:05:01Z"
  },
  "complete": true,
  "count": 3,
  "labels": [
    {
      "name": "enhancement",
      "color": "2700af",
      "description": "A label's description is its chip's tooltip"
    },
    {
      "name": "invalid",
      "color": "e4e669",
      "description": null
    },
    {
      "name": "bug",
      "color": "d73a4a",
      "description": "Something isn't working"
    }
  ]
}
--- stderr ---
--- gh ---
