# metab https://github.com/octo/demo --api '/api/plugin/github/pull-files?number=106'
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files?number=106
status: 200
{
  "state": "absent",
  "reason": "not_cached",
  "source": "https://github.com/octo/demo",
  "number": 106,
  "listed_from": null,
  "fetched_at": null,
  "generation": null,
  "reader": null,
  "head": null,
  "base": null,
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": null,
  "fetched": 0,
  "pages": 0,
  "last_page": null,
  "complete": false,
  "capped": false,
  "truncated": false,
  "offset": 0,
  "limit": 3000,
  "rows": []
}
--- stderr ---
cloning https://github.com/octo/demo into <HOME>
cloned https://github.com/octo/demo in 0.0 s
--- gh ---
gh api repos/octo/demo --jq .size
# metab https://github.com/octo/demo --api /api/plugin/github/pull-files-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files-refresh
status: 202
{
  "refresh": "started",
  "files": {
    "state": "pending",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 106,
    "listed_from": null,
    "fetched_at": null,
    "generation": null,
    "reader": null,
    "head": null,
    "base": null,
    "fresh_for_s": 60.0,
    "refreshing": true,
    "last_refresh": null,
    "fetched": 0,
    "pages": 0,
    "last_page": null,
    "complete": false,
    "capped": false,
    "truncated": false,
    "offset": 0,
    "limit": 0,
    "rows": []
  },
  "status_route": "/api/plugin/github/pull-files?number=106&limit=0"
}
after: /api/plugin/github/pull-files?number=106&limit=0
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 106,
  "listed_from": "github",
  "fetched_at": "2026-09-17T12:00:00Z",
  "generation": "00000000000000000000000000000001",
  "reader": "gh:octo-reader",
  "head": null,
  "base": null,
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "fetched": 249,
  "pages": 3,
  "last_page": 3,
  "complete": true,
  "capped": false,
  "truncated": false,
  "offset": 0,
  "limit": 0,
  "rows": []
}
--- stderr ---
--- body ---
{"number": 106}
--- gh ---
gh auth status
gh api repos/octo/demo/pulls/106/files?per_page=100&page=1
gh auth status
gh api repos/octo/demo/pulls/106/files?per_page=100&page=2
gh auth status
gh api repos/octo/demo/pulls/106/files?per_page=100&page=3
gh auth status
# metab https://github.com/octo/demo --api '/api/plugin/github/pull-files?number=106&limit=3'
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files?number=106&limit=3
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 106,
  "listed_from": "github",
  "fetched_at": "2026-09-17T12:00:00Z",
  "generation": "00000000000000000000000000000001",
  "reader": "gh:octo-reader",
  "head": null,
  "base": null,
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "fetched": 249,
  "pages": 3,
  "last_page": 3,
  "complete": true,
  "capped": false,
  "truncated": false,
  "offset": 0,
  "limit": 3,
  "rows": [
    {
      "path": "README.md",
      "previous_path": null,
      "status": "modified",
      "additions": 2,
      "deletions": 1,
      "display": "README.md",
      "previous_display": null
    },
    {
      "path": "assets/logo.png",
      "previous_path": null,
      "status": "modified",
      "additions": 0,
      "deletions": 0,
      "display": "assets/logo.png",
      "previous_display": null
    },
    {
      "path": "docs/guide.md",
      "previous_path": "docs/old-guide.md",
      "status": "renamed",
      "additions": 3,
      "deletions": 0,
      "display": "docs/guide.md",
      "previous_display": "docs/old-guide.md"
    }
  ]
}
--- stderr ---
--- gh ---
# metab https://github.com/octo/demo --api '/api/plugin/github/pull-files?number=106&offset=245'
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files?number=106&offset=245
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 106,
  "listed_from": "github",
  "fetched_at": "2026-09-17T12:00:00Z",
  "generation": "00000000000000000000000000000001",
  "reader": "gh:octo-reader",
  "head": null,
  "base": null,
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "fetched": 249,
  "pages": 3,
  "last_page": 3,
  "complete": true,
  "capped": false,
  "truncated": false,
  "offset": 245,
  "limit": 3000,
  "rows": [
    {
      "path": "src/app/views/two.py",
      "previous_path": null,
      "status": "added",
      "additions": 9,
      "deletions": 0,
      "display": "src/app/views/two.py",
      "previous_display": null
    },
    {
      "path": "tools/new/script.sh",
      "previous_path": "scripts/script.sh",
      "status": "renamed",
      "additions": 0,
      "deletions": 0,
      "display": "tools/new/script.sh",
      "previous_display": "scripts/script.sh"
    },
    {
      "path": "weird/bell\u0007name.txt",
      "previous_path": null,
      "status": "added",
      "additions": 1,
      "deletions": 0,
      "display": "weird/bell�name.txt",
      "previous_display": null
    },
    {
      "path": "weird/zero​width.md",
      "previous_path": null,
      "status": "modified",
      "additions": 1,
      "deletions": 1,
      "display": "weird/zero�width.md",
      "previous_display": null
    }
  ]
}
--- stderr ---
--- gh ---
# metab https://github.com/octo/demo --api /api/plugin/github/pull-files-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files-refresh
status: 200
{
  "refresh": "not_due",
  "files": {
    "state": "current",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 106,
    "listed_from": "github",
    "fetched_at": "2026-09-17T12:00:00Z",
    "generation": "00000000000000000000000000000001",
    "reader": "gh:octo-reader",
    "head": null,
    "base": null,
    "fresh_for_s": 60.0,
    "refreshing": false,
    "last_refresh": {
      "outcome": "succeeded",
      "message": null,
      "reset_at": null,
      "at": "2026-09-17T12:00:00Z"
    },
    "fetched": 249,
    "pages": 3,
    "last_page": 3,
    "complete": true,
    "capped": false,
    "truncated": false,
    "offset": 0,
    "limit": 0,
    "rows": []
  },
  "status_route": "/api/plugin/github/pull-files?number=106&limit=0"
}
--- stderr ---
--- body ---
{"number": 106}
--- gh ---
# metab https://github.com/octo/demo/pull/7 --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": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
  "pin_ref": "refs/pull/7/head",
  "fetched_at": "2026-09-17T12:00:00Z",
  "record_revision": "5f6cee1af17443e959e58c06e78d075f2aa143c66d86e9b0b3a6d9858bd55e29",
  "fresh_for_s": 60.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>",
  "record": {
    "schema_version": 2,
    "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/\"f9a5f87d7f2672e1b7757f36509de5ce7f8731429fe6cbfc7f672b160f1edb2b\"",
      "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\"",
      "repos/octo/demo/commits/85fcb2fa9e77eb5db485ffef445cbbc645d6db4a/check-runs?per_page=100&page=1": "W/\"8b11f63f1595a605256b810ecbc6ad42f31ec79413e5748815f151c4ed6821e8\"",
      "repos/octo/demo/commits/85fcb2fa9e77eb5db485ffef445cbbc645d6db4a/status?per_page=100&page=1": "W/\"7362c7bd7021c47983e06eb57cbc2d2b436158c6a1ec5f3fdeda0be1cc45832f\""
    },
    "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,
      "mergeable": "mergeable",
      "labels": [
        "enhancement"
      ],
      "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"
      }
    ],
    "check_runs": [
      {
        "id": 51401654787,
        "name": "tests (3.13)",
        "status": "completed",
        "conclusion": "success",
        "details_url": "https://github.com/octo/demo/actions/runs/18062895276/job/51401654787",
        "app": "GitHub Actions"
      },
      {
        "id": 51401654788,
        "name": "docs",
        "status": "in_progress",
        "conclusion": null,
        "details_url": "https://github.com/octo/demo/actions/runs/18062895276/job/51401654788",
        "app": "GitHub Actions"
      }
    ],
    "status": {
      "state": "success",
      "statuses": [
        {
          "context": "docs/readthedocs.org:demo",
          "state": "success",
          "description": "Read the Docs build succeeded!",
          "target_url": "https://demo--7.org.readthedocs.build/en/7/"
        }
      ]
    },
    "comparison": {
      "base": "f92fd713acd521d4ebb62fb9f345ec927b8b6d1b",
      "head": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
      "base_commit": "c691256511d05858850bc7684ae062fea0d41132",
      "base_from": "base_branch"
    },
    "truncated": {
      "issue_comments": false,
      "reviews": false,
      "review_comments": false,
      "check_runs": false,
      "statuses": false,
      "text": false
    },
    "unavailable": {}
  },
  "core_preview": null
}
--- stderr ---
selection: pull_request
pin: 85fcb2fa9e77eb5db485ffef445cbbc645d6db4a (pull request 7 head)
pull_request: 7 (open; fetched 2026-09-17T12:00:00Z by gh:octo-reader)
--- gh ---
gh auth status
gh api repos/octo/demo/pulls/7
gh api repos/octo/demo/commits/85fcb2fa9e77eb5db485ffef445cbbc645d6db4a/check-runs?per_page=100&page=1
gh api repos/octo/demo/commits/85fcb2fa9e77eb5db485ffef445cbbc645d6db4a/status?per_page=100&page=1
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 auth status
# metab https://github.com/octo/demo --api /api/plugin/github/pull-files-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files-refresh
status: 202
{
  "refresh": "started",
  "files": {
    "state": "pending",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 7,
    "listed_from": null,
    "fetched_at": null,
    "generation": null,
    "reader": null,
    "head": null,
    "base": null,
    "fresh_for_s": 60.0,
    "refreshing": true,
    "last_refresh": null,
    "fetched": 0,
    "pages": 0,
    "last_page": null,
    "complete": false,
    "capped": false,
    "truncated": false,
    "offset": 0,
    "limit": 0,
    "rows": []
  },
  "status_route": "/api/plugin/github/pull-files?number=7&limit=0"
}
after: /api/plugin/github/pull-files?number=7&limit=0
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 7,
  "listed_from": "comparison",
  "fetched_at": "2026-09-17T12:00:00Z",
  "generation": "00000000000000000000000000000002",
  "reader": null,
  "head": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
  "base": "f92fd713acd521d4ebb62fb9f345ec927b8b6d1b",
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "fetched": 2,
  "pages": 0,
  "last_page": null,
  "complete": true,
  "capped": false,
  "truncated": false,
  "offset": 0,
  "limit": 0,
  "rows": []
}
--- stderr ---
--- body ---
{"number": 7}
--- gh ---
# metab https://github.com/octo/demo --api '/api/plugin/github/pull-files?number=7'
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files?number=7
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 7,
  "listed_from": "comparison",
  "fetched_at": "2026-09-17T12:00:00Z",
  "generation": "00000000000000000000000000000002",
  "reader": null,
  "head": "85fcb2fa9e77eb5db485ffef445cbbc645d6db4a",
  "base": "f92fd713acd521d4ebb62fb9f345ec927b8b6d1b",
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "fetched": 2,
  "pages": 0,
  "last_page": null,
  "complete": true,
  "capped": false,
  "truncated": false,
  "offset": 0,
  "limit": 3000,
  "rows": [
    {
      "path": "docs/new.md",
      "previous_path": null,
      "status": "added",
      "additions": 1,
      "deletions": 0,
      "display": "docs/new.md",
      "previous_display": null
    },
    {
      "path": "src/app.txt",
      "previous_path": null,
      "status": "modified",
      "additions": 1,
      "deletions": 0,
      "display": "src/app.txt",
      "previous_display": null
    }
  ]
}
--- stderr ---
--- gh ---
# metab https://github.com/octo/demo --api /api/plugin/github/pull-files-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files-refresh
status: 202
{
  "refresh": "started",
  "files": {
    "state": "pending",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 105,
    "listed_from": null,
    "fetched_at": null,
    "generation": null,
    "reader": null,
    "head": null,
    "base": null,
    "fresh_for_s": 60.0,
    "refreshing": true,
    "last_refresh": null,
    "fetched": 0,
    "pages": 0,
    "last_page": null,
    "complete": false,
    "capped": false,
    "truncated": false,
    "offset": 0,
    "limit": 0,
    "rows": []
  },
  "status_route": "/api/plugin/github/pull-files?number=105&limit=0"
}
after: /api/plugin/github/pull-files?number=105&limit=0
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 105,
  "listed_from": "github",
  "fetched_at": "2026-09-17T12:00:00Z",
  "generation": "00000000000000000000000000000003",
  "reader": "gh:octo-reader",
  "head": null,
  "base": null,
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "fetched": 3000,
  "pages": 30,
  "last_page": 30,
  "complete": true,
  "capped": true,
  "truncated": false,
  "offset": 0,
  "limit": 0,
  "rows": []
}
--- stderr ---
--- body ---
{"number": 105}
--- gh ---
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=1
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=2
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=3
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=4
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=5
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=6
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=7
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=8
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=9
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=10
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=11
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=12
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=13
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=14
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=15
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=16
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=17
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=18
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=19
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=20
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=21
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=22
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=23
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=24
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=25
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=26
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=27
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=28
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=29
gh auth status
gh api repos/octo/demo/pulls/105/files?per_page=100&page=30
gh auth status
## The clock moves on 120 s, to 2026-09-17T12:02:00Z.
# metab https://github.com/octo/demo --api /api/plugin/github/pulls-refresh --data list-request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pulls-refresh
status: 202
{
  "refresh": "started",
  "pulls": {
    "state": "pending",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "list": "all",
    "fetched_at": null,
    "reader": null,
    "fresh_for_s": 60.0,
    "refreshing": true,
    "last_refresh": null,
    "total": null,
    "repository_total": null,
    "filter_totals": null,
    "count_at": null,
    "catalog_fetched": 0,
    "generation": null,
    "fetched": 0,
    "complete": false,
    "truncated": false,
    "limit": 0,
    "next_after": null,
    "rows": []
  },
  "status_route": "/api/plugin/github/pulls?state=all&limit=0"
}
after: /api/plugin/github/pulls?state=all&limit=0
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "list": "all",
  "fetched_at": "2026-09-17T12:02:00Z",
  "reader": "gh:octo-reader",
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:02:00Z"
  },
  "total": 1,
  "repository_total": 1,
  "filter_totals": {
    "all": 1,
    "open": 1,
    "closed": 0
  },
  "count_at": "2026-09-17T12:02:00Z",
  "catalog_fetched": 1,
  "generation": "<CATALOG_EPOCH_1>:0",
  "fetched": 1,
  "complete": true,
  "truncated": false,
  "limit": 0,
  "next_after": null,
  "rows": []
}
--- stderr ---
--- gh ---
gh auth status
gh api graphql catalog state=all cursor=start
# metab https://github.com/octo/demo --api '/api/plugin/github/pull-files?number=106&limit=1'
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files?number=106&limit=1
status: 200
{
  "state": "stale",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 106,
  "listed_from": "github",
  "fetched_at": "2026-09-17T12:00:00Z",
  "generation": "00000000000000000000000000000001",
  "reader": "gh:octo-reader",
  "head": null,
  "base": null,
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "fetched": 249,
  "pages": 3,
  "last_page": 3,
  "complete": true,
  "capped": false,
  "truncated": false,
  "offset": 0,
  "limit": 1,
  "rows": [
    {
      "path": "README.md",
      "previous_path": null,
      "status": "modified",
      "additions": 2,
      "deletions": 1,
      "display": "README.md",
      "previous_display": null
    }
  ]
}
--- stderr ---
--- gh ---
# metab https://github.com/octo/demo --api /api/plugin/github/pull-files-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files-refresh
status: 202
{
  "refresh": "started",
  "files": {
    "state": "stale",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 106,
    "listed_from": "github",
    "fetched_at": "2026-09-17T12:00:00Z",
    "generation": "00000000000000000000000000000001",
    "reader": "gh:octo-reader",
    "head": null,
    "base": null,
    "fresh_for_s": 60.0,
    "refreshing": true,
    "last_refresh": {
      "outcome": "succeeded",
      "message": null,
      "reset_at": null,
      "at": "2026-09-17T12:00:00Z"
    },
    "fetched": 249,
    "pages": 3,
    "last_page": 3,
    "complete": true,
    "capped": false,
    "truncated": false,
    "offset": 0,
    "limit": 0,
    "rows": []
  },
  "status_route": "/api/plugin/github/pull-files?number=106&limit=0"
}
after: /api/plugin/github/pull-files?number=106&limit=0
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 106,
  "listed_from": "github",
  "fetched_at": "2026-09-17T12:02:00Z",
  "generation": "00000000000000000000000000000004",
  "reader": "gh:octo-reader",
  "head": null,
  "base": null,
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:02:00Z"
  },
  "fetched": 249,
  "pages": 3,
  "last_page": 3,
  "complete": true,
  "capped": false,
  "truncated": false,
  "offset": 0,
  "limit": 0,
  "rows": []
}
--- stderr ---
--- body ---
{"number": 106}
--- gh ---
gh auth status
gh api repos/octo/demo/pulls/106/files?per_page=100&page=1 (If-None-Match)
gh api repos/octo/demo/pulls/106/files?per_page=100&page=2 (If-None-Match)
gh api repos/octo/demo/pulls/106/files?per_page=100&page=3 (If-None-Match)
gh auth status
# metab https://github.com/octo/demo --api '/api/plugin/github/pull-files?number=106&limit=1'
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files?number=106&limit=1
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 106,
  "listed_from": "github",
  "fetched_at": "2026-09-17T12:02:00Z",
  "generation": "00000000000000000000000000000004",
  "reader": "gh:octo-reader",
  "head": null,
  "base": null,
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:02:00Z"
  },
  "fetched": 249,
  "pages": 3,
  "last_page": 3,
  "complete": true,
  "capped": false,
  "truncated": false,
  "offset": 0,
  "limit": 1,
  "rows": [
    {
      "path": "README.md",
      "previous_path": null,
      "status": "modified",
      "additions": 5,
      "deletions": 1,
      "display": "README.md",
      "previous_display": null
    }
  ]
}
--- stderr ---
--- gh ---
# metab https://github.com/octo/demo --api /api/plugin/github/pull-files-refresh --data request.json
exit: 1
--- stdout ---
api: /api/plugin/github/pull-files-refresh
status: 202
{
  "refresh": "started",
  "files": {
    "state": "current",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 106,
    "listed_from": "github",
    "fetched_at": "2026-09-17T12:02:00Z",
    "generation": "00000000000000000000000000000004",
    "reader": "gh:octo-reader",
    "head": null,
    "base": null,
    "fresh_for_s": 60.0,
    "refreshing": true,
    "last_refresh": {
      "outcome": "succeeded",
      "message": null,
      "reset_at": null,
      "at": "2026-09-17T12:02:00Z"
    },
    "fetched": 249,
    "pages": 3,
    "last_page": 3,
    "complete": true,
    "capped": false,
    "truncated": false,
    "offset": 0,
    "limit": 0,
    "rows": []
  },
  "status_route": "/api/plugin/github/pull-files?number=106&limit=0"
}
after: /api/plugin/github/pull-files?number=106&limit=0
status: 200
{
  "state": "stale",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 106,
  "listed_from": "github",
  "fetched_at": "2026-09-17T12:02:00Z",
  "generation": "00000000000000000000000000000004",
  "reader": "gh:octo-reader",
  "head": null,
  "base": null,
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "network_error",
    "message": "gh could not reach api.github.com",
    "reset_at": null,
    "at": "2026-09-17T12:02:00Z"
  },
  "fetched": 249,
  "pages": 3,
  "last_page": 3,
  "complete": true,
  "capped": false,
  "truncated": false,
  "offset": 0,
  "limit": 0,
  "rows": []
}
--- stderr ---
Error: the refresh ended with network_error
--- body ---
{"number": 106, "retry": true}
--- gh ---
gh auth status
gh api repos/octo/demo/pulls/106/files?per_page=100&page=1
# metab https://github.com/octo/demo --api '/api/plugin/github/pull-files?number=106&limit=0'
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files?number=106&limit=0
status: 200
{
  "state": "stale",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 106,
  "listed_from": "github",
  "fetched_at": "2026-09-17T12:02:00Z",
  "generation": "00000000000000000000000000000004",
  "reader": "gh:octo-reader",
  "head": null,
  "base": null,
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "network_error",
    "message": "gh could not reach api.github.com",
    "reset_at": null,
    "at": "2026-09-17T12:02:00Z"
  },
  "fetched": 249,
  "pages": 3,
  "last_page": 3,
  "complete": true,
  "capped": false,
  "truncated": false,
  "offset": 0,
  "limit": 0,
  "rows": []
}
--- stderr ---
--- gh ---
