Skip to content

docs: move GitHub access to docs/github.md - #271

Merged
goldbarth merged 1 commit into
mainfrom
docs/github
Sep 29, 2026
Merged

goldbarth merged 1 commit into
mainfrom
docs/github

Conversation

@goldbarth

@goldbarth goldbarth commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

Follows #270 and #266. Updated when #262 closes, since the section on a read-only token describes the late check it fixes.

  • Why: everything about GitHub access was spread over the README credentials, the cli.md environment section and configuration.md github, and the rate limit was written out in all three. A user setting up a token had to read three pages, and a correction had to be made three times.
  • One page, one home: the token and its permissions, the rate limit, GitHub Enterprise, private repositories, and what generate writes to GitHub. cli.md, configuration.md and the README keep one sentence each and link here.
  • Permissions as a table per command: preview and generate --no-publish need read-only, generate needs Contents read and write. A read-only token cannot change the repository, so the page recommends it until publishing.
  • Private repositories: the message a run prints when its first request is refused, and why GitHub answers 404 rather than 403, so the typo and the missing token are both named.
  • The rate limit moves here unchanged from docs: correct GitHub requests, the cost of preview, and what publishing replaces #266, including the merge-commit consequence and the ten-and-sixty example, plus the few requests generate adds for the release notes.
  • GitHub Enterprise: Chartula__GitHub__ApiBaseUrl with the header line that confirms it. The page says to keep the trailing slash: without it, the relative request paths replace the last segment, so https://ghe.example.com/api/v3 sends requests to /api/repos/... and every request fails with 404. The fix in code is Chartula__GitHub__ApiBaseUrl without a trailing slash sends every request to the wrong path #272.
  • What generate writes: a draft for a tag without a release, replaced notes for an existing one (A run with flags looks like a clean run, and a published release's notes are replaced unasked #249), the re-run that finds its earlier draft, and publishing a draft with gh release edit --draft=false.
  • A read-only token on generate: the files are written and the model calls paid for before GitHub refuses; the page shows that output and recommends --no-publish until generate finds out the token cannot publish only after every model call #262 moves the check.
  • cli.md keeps a pointer that all three credential variables can be renamed, which the removed token section used to carry.

Verified: the messages are taken from GitHubPullRequestReader.cs, GitHubReleaseNotesWriter.cs, GitHubErrorResponse.cs and ReleaseCommand.cs. The trailing-slash behavior follows from GitHubHttpClientFactory setting BaseAddress and the adapters requesting relative paths; checked with RFC 3986 resolution of repos/... against both forms of the URL. Every relative link and anchor in the repository resolves.

Tests: no test changed; documentation only. MalformedYamlTests (reads docs/configuration.md) passing.

@goldbarth goldbarth self-assigned this Sep 29, 2026
@goldbarth
goldbarth merged commit d7a8aba into main Sep 29, 2026
4 checks passed
@goldbarth
goldbarth deleted the docs/github branch September 29, 2026 20:10
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