Queries
sponsorables
Users and organizations who can be sponsored via GitHub Sponsors.
Type: SponsorableItemConnection!
Arguments for sponsorables
| Name | Description |
|---|---|
| Returns the elements in the list that come after the specified cursor. |
| Returns the elements in the list that come before the specified cursor. |
| Optional filter for which dependencies should be checked for sponsorable owners. Only sponsorable owners of dependencies in this ecosystem will be included. Used when onlyDependencies = true. Upcoming Change on 2022-07-01 UTC
Description: |
| Optional filter for which dependencies should be checked for sponsorable owners. Only sponsorable owners of dependencies in this ecosystem will be included. Used when onlyDependencies = true. |
| Returns the first n elements from the list. |
| Returns the last n elements from the list. |
| Whether only sponsorables who own the viewer's dependencies will be returned. Must be authenticated to use. Can check an organization instead for their dependencies owned by sponsorables by passing orgLoginForDependencies. The default value is |
| Ordering options for users and organizations returned from the connection. |
| Optional organization username for whose dependencies should be checked. Used when onlyDependencies = true. Omit to check your own dependencies. If you are not an administrator of the organization, only dependencies from its public repositories will be considered. |
Mutations
cancelSponsorship
Cancel an active sponsorship.
Input fields for cancelSponsorship
input(CancelSponsorshipInput!)
Return fields for cancelSponsorship
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The tier that was being used at the time of cancellation. |
createSponsorship
Start a new sponsorship of a maintainer in GitHub Sponsors, or reactivate a past sponsorship.
Input fields for createSponsorship
input(CreateSponsorshipInput!)
Return fields for createSponsorship
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The sponsorship that was started. |
createSponsorships
Make many sponsorships for different sponsorable users or organizations at once. Can only sponsor those who have a public GitHub Sponsors profile.
Input fields for createSponsorships
input(CreateSponsorshipsInput!)
Return fields for createSponsorships
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The users and organizations who received a sponsorship. |
createSponsorsListing
Create a GitHub Sponsors profile to allow others to sponsor you or your organization.
Input fields for createSponsorsListing
input(CreateSponsorsListingInput!)
Return fields for createSponsorsListing
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The new GitHub Sponsors profile. |
createSponsorsTier
Create a new payment tier for your GitHub Sponsors profile.
Input fields for createSponsorsTier
input(CreateSponsorsTierInput!)
Return fields for createSponsorsTier
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The new tier. |
publishSponsorsTier
Publish an existing sponsorship tier that is currently still a draft to a GitHub Sponsors profile.
Input fields for publishSponsorsTier
input(PublishSponsorsTierInput!)
Return fields for publishSponsorsTier
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The tier that was published. |
retireSponsorsTier
Retire a published payment tier from your GitHub Sponsors profile so it cannot be used to start new sponsorships.
Input fields for retireSponsorsTier
input(RetireSponsorsTierInput!)
Return fields for retireSponsorsTier
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The tier that was retired. |
updatePatreonSponsorability
Toggle the setting for your GitHub Sponsors profile that allows other GitHub accounts to sponsor you on GitHub while paying for the sponsorship on Patreon. Only applicable when you have a GitHub Sponsors profile and have connected your GitHub account with Patreon.
Input fields for updatePatreonSponsorability
Return fields for updatePatreonSponsorability
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The GitHub Sponsors profile. |
updateSponsorshipPreferences
Change visibility of your sponsorship and opt in or out of email updates from the maintainer.
Input fields for updateSponsorshipPreferences
Return fields for updateSponsorshipPreferences
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The sponsorship that was updated. |
Objects
SponsorableItemConnection
The connection type for SponsorableItem.
Fields for SponsorableItemConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
SponsorableItemEdge
An edge in a connection.
Fields for SponsorableItemEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
SponsorAndLifetimeValue
A GitHub account and the total amount in USD they've paid for sponsorships to a particular maintainer. Does not include payments made via Patreon.
Fields for SponsorAndLifetimeValue
| Name | Description |
|---|---|
| The amount in cents. |
| The amount in USD, formatted as a string. |
| The sponsor's GitHub account. |
| The maintainer's GitHub account. |
SponsorAndLifetimeValueConnection
The connection type for SponsorAndLifetimeValue.
Fields for SponsorAndLifetimeValueConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
SponsorAndLifetimeValueEdge
An edge in a connection.
Fields for SponsorAndLifetimeValueEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
SponsorConnection
A list of users and organizations sponsoring someone via GitHub Sponsors.
Fields for SponsorConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
SponsorEdge
Represents a user or organization who is sponsoring someone in GitHub Sponsors.
Fields for SponsorEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
SponsorsActivity
An event related to sponsorship activity.
SponsorsActivity Implements
Fields for SponsorsActivity
| Name | Description |
|---|---|
| What action this activity indicates took place. |
| The sponsor's current privacy level. |
| The Node ID of the SponsorsActivity object. |
| The platform that was used to pay for the sponsorship. |
| The tier that the sponsorship used to use, for tier change events. |
| The user or organization who triggered this activity and was/is sponsoring the sponsorable. |
| The user or organization that is being sponsored, the maintainer. |
| The associated sponsorship tier. |
| The timestamp of this event. |
| Was this sponsorship made alongside other sponsorships at the same time from the same sponsor?. |
SponsorsActivityConnection
The connection type for SponsorsActivity.
Fields for SponsorsActivityConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
SponsorsActivityEdge
An edge in a connection.
Fields for SponsorsActivityEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
SponsorsGoal
A goal associated with a GitHub Sponsors listing, representing a target the sponsored maintainer would like to attain.
Fields for SponsorsGoal
| Name | Description |
|---|---|
| A description of the goal from the maintainer. |
| What the objective of this goal is. |
| The percentage representing how complete this goal is, between 0-100. |
| What the goal amount is. Represents an amount in USD for monthly sponsorship amount goals. Represents a count of unique sponsors for total sponsors count goals. |
| A brief summary of the kind and target value of this goal. |
Sponsorship
A sponsorship relationship between a sponsor and a maintainer.
Sponsorship Implements
Fields for Sponsorship
| Name | Description |
|---|---|
| Identifies the date and time when the object was created. |
| The Node ID of the Sponsorship object. |
| Whether the sponsorship is active. False implies the sponsor is a past sponsor of the maintainer, while true implies they are a current sponsor. |
| Whether this sponsorship represents a one-time payment versus a recurring sponsorship. |
| Whether the sponsor has chosen to receive sponsorship update emails sent from the sponsorable. Only returns a non-null value when the viewer has permission to know this. |
| The entity that is being sponsored. Warning
|
| The platform that was most recently used to pay for the sponsorship. |
| The privacy level for this sponsorship. |
| The user that is sponsoring. Returns null if the sponsorship is private or if sponsor is not a user. Warning
|
| The user or organization that is sponsoring, if you have permission to view them. |
| The entity that is being sponsored. |
| The associated sponsorship tier. |
| Identifies the date and time when the current tier was chosen for this sponsorship. |
SponsorshipConnection
A list of sponsorships either from the subject or received by the subject.
Fields for SponsorshipConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
| The total amount in cents of all recurring sponsorships in the connection whose amount you can view. Does not include one-time sponsorships. |
| The total amount in USD of all recurring sponsorships in the connection whose amount you can view. Does not include one-time sponsorships. |
SponsorshipEdge
An edge in a connection.
Fields for SponsorshipEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
SponsorshipNewsletter
An update sent to sponsors of a user or organization on GitHub Sponsors.
SponsorshipNewsletter Implements
Fields for SponsorshipNewsletter
| Name | Description |
|---|---|
| The author of the newsletter. |
|