Skip to content

docs: correct GitHub requests, the cost of preview, and what publishing replaces - #266

Merged
goldbarth merged 4 commits into
mainfrom
docs/github-access
Sep 29, 2026
Merged

goldbarth merged 4 commits into
mainfrom
docs/github-access

Conversation

@goldbarth

Copy link
Copy Markdown
Owner

Follows #265, and is stacked on it: the base is docs/provider-status, so this diff shows only this change. GitHub retargets it to main once #265 is merged.

  • Why: four statements about a run's contact with GitHub did not match the code, and each one leads a user to a wrong decision: running without a token for a release that exhausts the limit, running preview to save tokens, and expecting a draft where a published release is changed in public.
  • One request per commit, not per pull request (README credentials, docs/cli.md environment, docs/configuration.md github). GitHubPullRequestReader asks commits/{sha}/pulls for every commit of the range, and the range comes from git log without --no-merges. A pull request merged with a merge commit therefore costs one request for the merge commit and one for each commit on its branch. The README carries the example: ten squash-merged pull requests take ten requests, ten of five commits each take sixty, the whole unauthenticated hour.
  • The rate limit is named: the claim that an exhausted limit fails with a 403 naming a commit is gone. GitHubErrorResponse.DescribeCredentials recognizes the limit and says so; docs/cli.md shows that message.
  • preview costs what generate costs: both run the same pipeline and make the same model calls, so "to check token cost before committing to a real run" is removed and the cost is stated instead.
  • An existing release is not a draft: GitHubReleaseNotesWriter creates a draft only when the tag has no release, and otherwise patches the body alone. "Nothing goes public until you publish it on GitHub" is replaced by that, and the replaced notes of a published release join the known limitations with a link to A run with flags looks like a clean run, and a published release's notes are replaced unasked #249.
  • GitHub is the only source: a known limitation says Chartula reads pull requests from GitHub or GitHub Enterprise only, and the GitLab CI snippet is gone. docs/cli.md still names GitLab CI where it quotes the shallow-clone error, because that is the message GitCliCommitReader prints.

Left for its own change: the warning a run starts with when no token is set (GitHubTokenNotice.cs) still says "roughly one per pull request", as does a comment in LlmServiceCollectionExtensions.cs. That is code, not documentation.

Verified: git grep finds no "per pull request" request count, no "names a commit", and no "goes public" left in the README or docs/. The branch merges into main without a conflict.

Tests: no test changed; documentation only.

Base automatically changed from docs/provider-status to main September 29, 2026 18:53
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