-
-
Notifications
You must be signed in to change notification settings - Fork 63
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: Ensure donations don't show up as sponsors #623
Conversation
✅ Deploy Preview for new-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for hi-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for es-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ja-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for zh-hans-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for pt-br-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for fr-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for de-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Shall I send PR to update in other repos?
@@ -387,7 +397,7 @@ async function fetchGitHubSponsors() { | |||
const donations = openCollectiveDonations.concat(githubDonations); | |||
|
|||
// sort donations so most recent is first | |||
donations.sort((a, b) => new Date(a) - new Date(b)); | |||
donations.sort((a, b) => Date.parse(b.date) - Date.parse(a.date)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Nice catch! I’m nearly done with the changes. Hopefully, this will resolve the issue in other repositories as well. You can track the progress here: #619. |
Prerequisites checklist
What is the purpose of this pull request?
What changes did you make? (Give an overview)
Siemens recently donated $1000 to ESLint through GitHub Sponsors, but it's showing up as a sponsor rather than a donation.
This updates our script to filter out any one-time sponsorships from the sponsors list (these are displayed as individual donations rather than sponsorships).
I also fixed the sorting of donations so that the Open Collective and GitHub donations are sorted in chronological order across both data sets.
Related Issues
Is there anything you'd like reviewers to focus on?