github

package
v0.0.54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 1 Imported by: 0

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

func Reply

func Reply(name string) string

Reply returns the named reply body; it panics on a missing name, a test bug.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL