Skip to main content

sponsorships

Creates, updates, deletes, gets or lists a sponsorships resource.

Overview

Namesponsorships
TypeResource
Idgithub.users.sponsorships

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idstringThe GraphQL node ID of the sponsorship.
created_atstring (date-time)
is_activeboolean
is_one_time_paymentboolean
privacy_levelstringPUBLIC or PRIVATE.
sponsor_entityobjectThe sponsoring user or organization (login, name).
tierobjectThe sponsorship tier (name, monthly_price_in_dollars, monthly_price_in_cents, is_one_time).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectusernameGitHub Sponsors sponsorships where the user is the maintainer being sponsored. Backed by the GitHub GraphQL API (user.sponsorshipsAsMaintainer). Private sponsorships are only visible to the sponsored account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
usernamestringThe handle for the GitHub user account.

SELECT examples

GitHub Sponsors sponsorships where the user is the maintainer being sponsored. Backed by the GitHub GraphQL API (user.sponsorshipsAsMaintainer). Private sponsorships are only visible to the sponsored account.

SELECT
id,
created_at,
is_active,
is_one_time_payment,
privacy_level,
sponsor_entity,
tier
FROM github.users.sponsorships
WHERE username = '{{ username }}' -- required
;