Skip to main content

Module model

Module model 

Source
Expand description

The GitHub data model shown by the GitHub board. Field names follow the JSON (camelCase).

Structs§

AssignableResponse
GET /api/gh/assignable: people who can be assigned (up to 100).
DiffResponse
GET /api/gh/diff.
FileResponse
GET /api/gh/file: one file’s text, up to 1 MB.
GhCheck
GhDiffFile
GhEvent
GhItem
One row. id is the GraphQL node id (used for writes); key is owner/name#number.
GhItemDetail
GET /api/gh/item?account=<login>&repo=<owner/name>&number=<n>.
GhLabel
GhRepository
A repository from GitHub’s repository search or GET /user/repos. Field names follow GitHub’s REST JSON.
GhReviewer
GhUser
Image
GET /api/gh/image: an image’s bytes, up to 10 MB.
MergeTarget
The head commit and merge method shown to the viewer.
SectionDef
One gh-dash-style section: a saved GitHub search.
SectionResponse
GET /api/gh/section: up to 50 items, most recently updated first.

Enums§

CheckRunState
CheckState
EventKind
GhFileStatus
GitHub’s file status, as the pulls files API reports it.
IssueState
Issue states: a subset of PrState, which GhItem::state uses.
ItemKind
MergeMethod
PrState
ReviewDecision
ReviewEvent
The review of POST /api/gh/review.
ReviewerState

Constants§

SECTIONS
The gh-dash-style sections (GH-03).

Functions§

display_name
The name, else the short login.
image_type
The image Content-Type for a repository path, by its extension.
short_login
EMU logins end in the enterprise shortcode.