Github
The github module’s root lookups: the community’s GitHub organization, its public repositories and its public GitHub Projects with their items, read by the audience’s GitHub App. Only audiences with a GitHub App on an organization have it (GithubAppKeys).
Root fields
Section titled “Root fields”| Field | Type | Description |
|---|---|---|
github |
IAudienceGithub! |
The instance’s IAudienceGithub mixin. Left out of the schema where its module isn’t installed. |
Objects
Section titled “Objects”AudienceGithubView
Section titled “AudienceGithubView”Object · implements IAudienceGithub
The organization as the audience’s GitHub App reads it (GithubCommunity).
| Field | Type | Description |
|---|---|---|
myItems |
[GithubProjectItem!]! |
Items on the open public projects assigned to the signed-in member’s connected GitHub account (me.githubUsername); empty without one. |
organization |
GithubOrganization |
The organization, or null when GitHub is unreachable or the app isn’t installed. |
projectnumber: Int! |
GithubProject |
A public project with its items, by number; null when there is none. |
projects |
[GithubProject!]! |
Open public projects, most recently updated first, without their items. |
repositoriesfirst: Int |
[GithubRepository!]! |
Public, unarchived repositories, most recently pushed first. |
viewerLogin |
String |
The signed-in member’s connected GitHub login (myItems are theirs), or null when they have not connected GitHub. |
GithubLabel
Section titled “GithubLabel”Object
A label on an issue or pull request.
| Field | Type | Description |
|---|---|---|
color |
String |
Its color, as six hex digits without #. |
name |
String! |
Its name. |
GithubOrganization
Section titled “GithubOrganization”Object
The community’s GitHub organization (GithubCommunity::Organization).
| Field | Type | Description |
|---|---|---|
avatarUrl |
String |
Its avatar’s URL. |
description |
String |
What it says about itself. |
login |
String! |
Its login, e.g. hack-different. |
name |
String |
Its display name. |
url |
String! |
Its page on GitHub. |
websiteUrl |
String |
The website it links to. |
GithubPerson
Section titled “GithubPerson”Object
A GitHub account, as an assignee (GithubCommunity::Person).
| Field | Type | Description |
|---|---|---|
avatarUrl |
String |
Their avatar’s URL. |
login |
String! |
Their GitHub login. |
url |
String |
Their page on GitHub. |
GithubProject
Section titled “GithubProject”Object
One of the community organization’s public GitHub Projects (Projects v2, GithubCommunity::Project).
| Field | Type | Description |
|---|---|---|
itemCount |
Int! |
How many items it has. |
items |
[GithubProjectItem!] |
Its items in the order the project keeps them (the first 100), ones in private repositories left out. Only on github.project(number:); null in lists. |
number |
Int! |
Its number in the organization, for github.project(number:). |
readme |
String |
Its README, in Markdown. Only on github.project(number:). |
shortDescription |
String |
Its short description. |
statuses |
[GithubStatusOption!]! |
Its Status columns, in order; empty when it has no Status field. |
title |
String! |
Its title. |
updatedAt |
ISO8601DateTime |
When it last changed. |
url |
String! |
Its page on GitHub. |
GithubProjectItem
Section titled “GithubProjectItem”Object
An item on a GitHub Project: an issue, pull request or draft, with its Status (GithubCommunity::Item).
| Field | Type | Description |
|---|---|---|
assignees |
[GithubPerson!]! |
Who it is assigned to. |
id |
String! |
GitHub’s ID for the item. |
labels |
[GithubLabel!]! |
Its labels; none for drafts. |
number |
Int |
Its issue or pull request number; null for drafts. |
repository |
String |
owner/name of its repository; null for drafts. |
state |
String |
OPEN, CLOSED or MERGED (pull requests) as GitHub says; null for drafts. |
status |
String |
The name of its Status column (GithubProject.statuses), or null when unset. |
title |
String! |
Its title. |
type |
GithubItemType! |
Whether it is an issue, pull request or draft. |
updatedAt |
ISO8601DateTime |
When the item last changed. |
url |
String |
Its page on GitHub; null for drafts. |
GithubRepository
Section titled “GithubRepository”Object
One of the community organization’s public repositories (GithubCommunity::Repository).
| Field | Type | Description |
|---|---|---|
archived |
Boolean! |
Whether it is archived (read-only). |
description |
String |
What it says it is. |
forks |
Int! |
How many forks it has. |
language |
String |
Its main language. |
name |
String! |
Its name, e.g. hack_different_mobile. |
nameWithOwner |
String! |
owner/name. |
openIssues |
Int! |
How many issues are open. |
pushedAt |
ISO8601DateTime |
When it was last pushed to. |
stars |
Int! |
How many stars it has. |
topics |
[String!]! |
Its topics. |
url |
String! |
Its page on GitHub. |
GithubStatusOption
Section titled “GithubStatusOption”Object
One of a GitHub Project’s Status columns (Todo, In Progress, Done), in the project’s order.
| Field | Type | Description |
|---|---|---|
color |
String |
GitHub’s name for its color (GRAY, BLUE, GREEN..). |
description |
String |
What the column means, when the project says. |
id |
String! |
GitHub’s ID for the option. |
name |
String! |
Its name, which items show as their status. |
Interfaces
Section titled “Interfaces”IAudienceGithub
Section titled “IAudienceGithub”Interface · implemented by AudienceGithubView · mixin edge github on Audience
The github module’s root lookups: the community’s GitHub organization, its public repositories and its public GitHub Projects with their items, read by the audience’s GitHub App. Only audiences with a GitHub App on an organization have it (GithubAppKeys).
| Field | Type | Description |
|---|---|---|
myItems |
[GithubProjectItem!]! |
Items on the open public projects assigned to the signed-in member’s connected GitHub account (me.githubUsername); empty without one. |
organization |
GithubOrganization |
The organization, or null when GitHub is unreachable or the app isn’t installed. |
projectnumber: Int! |
GithubProject |
A public project with its items, by number; null when there is none. |
projects |
[GithubProject!]! |
Open public projects, most recently updated first, without their items. |
repositoriesfirst: Int |
[GithubRepository!]! |
Public, unarchived repositories, most recently pushed first. |
viewerLogin |
String |
The signed-in member’s connected GitHub login (myItems are theirs), or null when they have not connected GitHub. |
GithubItemType
Section titled “GithubItemType”Enum
What a GitHub Project item is.
DRAFT_ISSUEA draft on the project itself, with no repository yet.ISSUEAn issue in one of the repositories.PULL_REQUESTA pull request in one of the repositories.