Documentation
¶
Overview ¶
Package github holds GitHub REST API replies for the github connector's tests, in the shapes GitHub's REST reference documents (API version 2022-11-28) for repository acme/widgets: the repository, its main branch at commit HeadSHA, and that commit's recursive tree, whole and truncated.
Index ¶
Constants ¶
View Source
const CommitDate = "2026-11-12T09:30:00Z"
CommitDate is HeadSHA's committer date, as branch.json reports it.
View Source
const HeadSHA = "c0ffee00c0ffee00c0ffee00c0ffee00c0ffee00"
HeadSHA is the commit the main branch points at in branch.json.
View Source
const MovedSHA = "beef0000beef0000beef0000beef0000beef0000"
MovedSHA is the commit branch_moved.json reports, after a push.
Variables ¶
View Source
var Replies embed.FS
Replies are the reply bodies, by file name:
- repo.json: GET /repos/acme/widgets (default branch main).
- branch.json: GET /repos/acme/widgets/branches/main at HeadSHA.
- branch_moved.json: the same branch after a push, at MovedSHA.
- tree.json: GET /repos/acme/widgets/git/trees/<HeadSHA>?recursive=1 — six regular files (one 50 MB), a symlink, a submodule and directory entries.
- tree_truncated.json: the same tree with truncated set.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.