Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pass config.includePastSponsors to partitionTiers #59

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

azu
Copy link
Contributor

@azu azu commented Dec 25, 2023

Description

v0.9.0 did not show GitHub's Past Sponsors.

#58 introduce includePastSponsors argument for partitionTiers function, but It looks like that forgot to pass config.includePastSponsors.

As a result, past sponsors always to be hidden.

https://github.com/antfu/sponsorkit/blob/35f29eca827894b6f9e89d99bcf5b70bed358ec4/src/config.ts#L120-L136

Linked Issues

None

Additional context

Run npm run build in example/ with following env.

SPONSORKIT_GITHUB_TOKEN=xxx
SPONSORKIT_GITHUB_LOGIN=azu

This example includes past sponsors.

In v0.9.0:

sponsors

In this PR:

sponsors

@antfu antfu merged commit a5a93e6 into antfu-collective:main Dec 26, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants