Skip to content

docs: document gh_api sentinel contract and gh_api_paginate across all docs#27

Merged
locus313 merged 1 commit into
mainfrom
docs/gh-api-sentinel-contract
Jun 26, 2026
Merged

docs: document gh_api sentinel contract and gh_api_paginate across all docs#27
locus313 merged 1 commit into
mainfrom
docs/gh-api-sentinel-contract

Conversation

@locus313

Copy link
Copy Markdown
Owner

Summary

The final review found four documentation gaps — all docs-only fixes, no code changes.

Changes

lib/github-common.sh# Provides: header block rewritten:

  • Fixed scrambled layout (token auto-resolution text was interspersed between function entries)
  • Added missing get_repo_page_count entry
  • Added __404__/__422__ sentinel contract to gh_api
  • Added gh_api_paginate empty-output-on-404/422 note

README.md — Available Functions section:

  • Added configure_gh_auth (was missing entirely)
  • Added gh_api_paginate (was missing entirely)
  • Moved validate_slug to the Validation group
  • Expanded gh_api sentinel note (literal string, exit 0, callers must check before jq)

AGENTS.md — shared library table and rate-limiting section:

  • Updated gh_api and gh_api_paginate rows to describe sentinel behaviour
  • Added sentinel note to Rate limiting section

.github/copilot-instructions.md — three locations:

  • Rate-limiting bullet: added sentinel contract
  • github-dockerfile-discovery description: documented both gh_api call sites and their sentinel handling
  • Maintenance matrix: added row for gh_api_paginate callers (github-repo-permissions-report, github-copilot-report)

…l docs

- lib/github-common.sh: rewrite # Provides: header block — fix scrambled
  layout, add get_repo_page_count, document __404__/__422__ sentinel
  contract on gh_api, and note gh_api_paginate empty-output behaviour
- README.md: add configure_gh_auth to its own Auth helpers section;
  add gh_api_paginate to API helpers; clarify gh_api sentinel contract;
  move validate_slug to Validation section
- AGENTS.md: update gh_api and gh_api_paginate table rows to describe
  sentinel contract; add sentinel note to Rate limiting section
- copilot-instructions.md: update gh_api rate-limiting bullet to include
  sentinel contract; update github-dockerfile-discovery description to
  document both gh_api call sites' sentinel handling; add gh_api_paginate
  row to maintenance matrix

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@locus313 locus313 merged commit 652f36d into main Jun 26, 2026
2 checks passed
@locus313 locus313 deleted the docs/gh-api-sentinel-contract branch June 26, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant