Skip to content

Commit

Permalink
feat(mutation): optional recurring argument for `createSponsorship(…
Browse files Browse the repository at this point in the history
…)` (#913)

---------

Co-authored-by: Octokit Bot <octokitbot@martynus.net>
  • Loading branch information
octokitbot and Octokit Bot authored Mar 8, 2024
1 parent 54d37d9 commit 9d08d51
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
11 changes: 8 additions & 3 deletions schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4119,6 +4119,12 @@ export type CreateSponsorshipsInput = {
privacyLevel?: InputMaybe<SponsorshipPrivacy>;
/** Whether the sponsor should receive email updates from the sponsorables. */
receiveEmails?: InputMaybe<Scalars['Boolean']['input']>;
/**
* Whether the sponsorships created should continue each billing cycle for the
* sponsor (monthly or annually), versus lasting only a single month. Defaults to
* one-time sponsorships.
*/
recurring?: InputMaybe<Scalars['Boolean']['input']>;
/** The username of the user or organization who is acting as the sponsor, paying for the sponsorships. */
sponsorLogin: Scalars['String']['input'];
/** The list of maintainers to sponsor and for how much apiece. */
Expand Down Expand Up @@ -10884,9 +10890,8 @@ export type Mutation = {
/** Start a new sponsorship of a maintainer in GitHub Sponsors, or reactivate a past sponsorship. */
createSponsorship?: Maybe<CreateSponsorshipPayload>;
/**
* Make many one-time sponsorships for different sponsorable users or
* organizations at once. Can only sponsor those who have a public GitHub
* Sponsors profile.
* Make many sponsorships for different sponsorable users or organizations at
* once. Can only sponsor those who have a public GitHub Sponsors profile.
*/
createSponsorships?: Maybe<CreateSponsorshipsPayload>;
/** Creates a new team discussion. */
Expand Down
12 changes: 9 additions & 3 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7959,6 +7959,13 @@ input CreateSponsorshipsInput {
"""
receiveEmails: Boolean = false

"""
Whether the sponsorships created should continue each billing cycle for the
sponsor (monthly or annually), versus lasting only a single month. Defaults to
one-time sponsorships.
"""
recurring: Boolean = false

"""
The username of the user or organization who is acting as the sponsor, paying for the sponsorships.
"""
Expand Down Expand Up @@ -21967,9 +21974,8 @@ type Mutation {
): CreateSponsorshipPayload

"""
Make many one-time sponsorships for different sponsorable users or
organizations at once. Can only sponsor those who have a public GitHub
Sponsors profile.
Make many sponsorships for different sponsorable users or organizations at
once. Can only sponsor those who have a public GitHub Sponsors profile.
"""
createSponsorships(
"""
Expand Down
12 changes: 11 additions & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -20324,6 +20324,16 @@
},
"defaultValue": "PUBLIC"
},
{
"name": "recurring",
"description": "Whether the sponsorships created should continue each billing cycle for the sponsor (monthly or annually), versus lasting only a single month. Defaults to one-time sponsorships.",
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "false"
},
{
"name": "clientMutationId",
"description": "A unique identifier for the client performing the mutation.",
Expand Down Expand Up @@ -56028,7 +56038,7 @@
},
{
"name": "createSponsorships",
"description": "Make many one-time sponsorships for different sponsorable users or organizations at once. Can only sponsor those who have a public GitHub Sponsors profile.",
"description": "Make many sponsorships for different sponsorable users or organizations at once. Can only sponsor those who have a public GitHub Sponsors profile.",
"args": [
{
"name": "input",
Expand Down

0 comments on commit 9d08d51

Please sign in to comment.