Organization

An account on GitHub, with one or more owners, that has repositories, members and teams.

Implements

Connections

gists (GistConnection)
A list of the Gists the user has created.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

visibility GistVisibility

Allows filtering by gist visibility.

members (UserConnection)
A list of users who are members of this organization.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

projects (ProjectConnection)
A list of projects under the owner.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

orderBy ProjectOrder

Ordering options for projects returned from the connection

search String

Query to search projects by, currently only searching by name.

states

A list of states to filter the projects by.

repositories (RepositoryConnection)
A list of repositories that the user owns.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

privacy RepositoryPrivacy

If non-null, filters repositories according to privacy

isFork Boolean

If non-null, filters repositories according to whether they are forks of another repository

orderBy RepositoryOrder

Ordering options for repositories returned from the connection

affiliation

Affiliation options for repositories returned from the connection

isLocked Boolean

If non-null, filters repositories according to whether they have been locked

teams (TeamConnection)
A list of teams in this organization.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

privacy TeamPrivacy

If non-null, filters teams according to privacy

role TeamRole

If non-null, filters teams according to whether the viewer is an admin or member on team

query String

If non-null, filters teams with query on team name and team slug

orderBy TeamOrder

Ordering options for teams returned from the connection

Fields

avatarURL (String)

A URL pointing to the organization's public avatar.

Argument Type Description
size Int

The size of the resulting square image.

gist (Gist)

Find gist by repo name.

Argument Type Description
name

The gist name to find.

login (String)

The username used to login.

name (String)

The organization's public profile name.

path (URI)

The HTTP path for this user

project (Project)

Find project by number.

Argument Type Description
number

The project number to find.

projectsPath (URI)

The HTTP path listing organization's projects

projectsUrl (URI)

The HTTP url listing organization's projects

repository (Repository)

Find Repository.

Argument Type Description
name

Name of Repository to find.

team (Team)

Find an organization's team by its slug.

Argument Type Description
slug String

The name or slug of the team to find.

teamsPath (URI)

The HTTP path listing organization's teams

teamsUrl (URI)

The HTTP url listing organization's teams

url (URI)

The HTTP url for this user

viewerCanCreateProjects (Boolean)

Can the current viewer create new projects on this owner.

viewerCanCreateRepositories (Boolean)

Viewer can create repositories on this organization