# 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,
  "base_ref": 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 auth status
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,
    "base_ref": 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,
  "base_ref": 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 api user
gh api repos/octo/demo/pulls/106/files?per_page=100&page=1
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/106/files?per_page=100&page=2
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/106/files?per_page=100&page=3
gh api user (If-None-Match)
# 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,
  "base_ref": 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,
  "base_ref": 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,
    "base_ref": 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",
  "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 ---
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 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-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,
    "base_ref": 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",
  "base_ref": null,
  "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",
  "base_ref": null,
  "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,
    "base_ref": 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,
  "base_ref": 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 api user
gh api repos/octo/demo/pulls/105/files?per_page=100&page=1
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=2
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=3
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=4
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=5
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=6
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=7
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=8
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=9
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=10
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=11
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=12
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=13
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=14
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=15
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=16
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=17
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=18
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=19
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=20
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=21
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=22
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=23
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=24
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=25
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=26
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=27
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=28
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=29
gh api user (If-None-Match)
gh api repos/octo/demo/pulls/105/files?per_page=100&page=30
gh api user (If-None-Match)
## 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,
    "checked_at": null,
    "reader": null,
    "fresh_for_s": 60.0,
    "probe_every_s": null,
    "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",
  "status_scan": "not_due",
  "status_scan_at": null
}
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",
  "checked_at": null,
  "reader": "gh:octo-reader",
  "fresh_for_s": 60.0,
  "probe_every_s": 10.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": [],
  "refresh_timing": {
    "finished_at": "2026-09-17T12:02:00Z",
    "duration_ms": 300,
    "provider": "github_cli",
    "request_count": 2,
    "response_body_bytes": 875
  }
}
--- stderr ---
--- gh ---
gh api user
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,
  "base_ref": 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,
    "base_ref": 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": "0000000000000000000000000000000000000000",
  "base": null,
  "base_ref": "topic",
  "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 api user
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 api user (If-None-Match)
# 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": "0000000000000000000000000000000000000000",
  "base": null,
  "base_ref": "topic",
  "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": "0000000000000000000000000000000000000000",
    "base": null,
    "base_ref": "topic",
    "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": "0000000000000000000000000000000000000000",
  "base": null,
  "base_ref": "topic",
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "network_error",
    "message": "GitHub could not be reached because api.github.com did not resolve (DNS)",
    "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 api user
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": "0000000000000000000000000000000000000000",
  "base": null,
  "base_ref": "topic",
  "fresh_for_s": 60.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "network_error",
    "message": "GitHub could not be reached because api.github.com did not resolve (DNS)",
    "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 ---
