Replies: 3 comments 3 replies
-
Hi! I'm a dev on the Sponsors team at GitHub. This is a good question, and we don't have the best solution for this right now. You can somewhat assemble this yourself right now with a query like this: query {
organization(login:"YourOrgLoginHere") {
sponsorsActivities(actions:[NEW_SPONSORSHIP, TIER_CHANGE], period:ALL, last:100, includePrivate:true){
nodes{
sponsorsTier{
monthlyPriceInDollars
isOneTime
}
sponsor {
... on User {login}
... on Organization {login}
}
}
}
}
} However, depending on the sponsors you have and their SAML settings, you might get back partial results, with errors like this one for some sponsors:
I'm going to note this in an issue on our side, because I think we can improve the interface for getting this kind of information. We have a |
Beta Was this translation helpful? Give feedback.
-
Okay, we have a better endpoint for you now! Can you try query {
viewer {
lifetimeReceivedSponsorshipValues(first: 100) {
nodes{
amountInCents
formattedAmount
sponsor {
... on User { login }
... on Organization { login }
}
}
}
}
} You can try it via https://docs.github.com/en/graphql/overview/explorer for yourself, there should be enough OAuth scopes there for requesting this on a user. To query it for an organization, you'll need I believe the |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
As a sponsorable organization, I would like to know how much each sponsor sponsored my org in total.
Currently, I'm using the CSV exported from the dashboard (grouping by
Sponsor Handle
and summingProcessed Amount
). But it's a manual process and I need to automate it.I tried a couple of things from https://github.com/orgs/community/discussions/3818 without success.
Is it possible to use the API to get the transactions similar to what the exported CSV provides? Or another alternative to get the total amount sponsored by each of your sponsors?
Beta Was this translation helpful? Give feedback.
All reactions