antfu-collective/sponsorkit

Display the past sponsors.

dohooo opened this issue · 7 comments

Clear and concise description of the problem

Maybe we can display the past sponsors because I saw GitHub shows it in the sponsor profile.

Suggested solution

    {
      title: 'Past Sponsors',
      monthlyDollars: -1,
      preset: presets.base,
    },

Alternative

No response

Additional context

No response

Validations

Is this ok? I can submit a PR. @antfu

antfu commented

Sure, PR welcome

However, It seems GitHub doesn't get past sponsorships from grapgql. The official doesn't add new fields for this feature. But I think we can use playwright for this.

image

image

We can get the username from here. What do you think?

antfu commented

Using Playwright is probably not a good option for us. We might better request GitHub to expose that API.

I have asked about this. It seems doesn't want to support this, there have nobody replied to that question.

Using Playwright is probably not a good option for us. We might better request GitHub to expose that API.

I can create a package to get past sponsorships, and we can import this package into sponsorkit. Then we'll replace it when GitHub exposes that API.

released, So can I add this feature?

There are some discussions for this feature request.
community/community#38393
community/community#37234