Stephan van Rooij

Software architect with a passion for home automation.

Query github sponsors with graphql

Q

Github exposes all their data at a GraphQL endpoint, that you can also try out with the Github GraphQL explorer.

If you want to query who is sponsoring you, use the following GraphQL. You can use this query at the explorer of in your own graphql client.

{
  viewer {
    login
    sponsorshipsAsMaintainer(first: 100, orderBy: {field: CREATED_AT, direction: ASC}, includePrivate: true) {
      totalCount
      pageInfo {
        endCursor
      }
      nodes {
        sponsorEntity {
          ... on User {
            name
            login
            url
          }
          ... on Organization {
            name
            url
            login
          }
        }
        createdAt
        privacyLevel
        tier {
          monthlyPriceInCents
        }
      }
    }
  }
}

Ideas

  1. Build a website where a higher sponsor tier unlocks more features
  2. Include your sponsors in a README.md file for some repository.

Both ideas intrige me, so if you have some code that could help with that, please let me know.

Clone a BIG git repository

C

Wanted to clone a repository to do a quick text fix and create a pull request. Created the fork, and tried to clone. Cloning the repository took way longer than I’m used to.

Slow git clone

Github pages (Jekyll) live reload with docker

G

I really like Github Pages to host static webpages. Static in this case means the files are generated at build time (so once when you publish a new version), instead of every time like with a wordpress website. One of the main benefits is that it results in a blazing fast website.

Git extra author

G

If someone else created some sourcecode, but for whatever reason they aren’t the one adding it to the repository. You can still have their name/photo in the git commit.

Like what you're seeing? Consider Sharing on Twitter or Sponsoring me