ziglang / release-cutter

automating the zig release process
MIT License
9 stars 6 forks source link

Get sponsors with tiers in one GraphQL query #1

Open catdevnull opened 2 years ago

catdevnull commented 2 years ago

I believe this query should allow this, but for me tier comes out as null as it seems I can't see that kind of thing without being an admin in @ziglang.

query GetSponsors {
  organization(login: "ziglang") {
    sponsorshipsAsMaintainer(first: 100) {
      nodes {
        tier {
          id
          name
          description
        }
        sponsorEntity {
          ... on User {
            id
            name
            login
            twitterUsername
            websiteUrl
          }
          ... on Organization {
            id
            name
            login
            twitterUsername
            websiteUrl
          }
        }
      }
    }
  }
}
catdevnull commented 2 years ago

Because of this privacy rule, I can't do the second query in the README to try sponsors-html.zig myself (the API returns no sponsors at all). Can we have a dataset somewhere to be able to contribute to this repo?