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: Ensure donations don't show up as sponsors #623

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Sep 6, 2024

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?

@eslint-github-bot eslint-github-bot bot added the bug Something isn't working label Sep 6, 2024
Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for new-eslint ready!

Name Link
🔨 Latest commit f9182f7
🔍 Latest deploy log https://app.netlify.com/sites/new-eslint/deploys/66db4f96cadbfe0008095521
😎 Deploy Preview https://deploy-preview-623--new-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for hi-eslint ready!

Name Link
🔨 Latest commit f9182f7
🔍 Latest deploy log https://app.netlify.com/sites/hi-eslint/deploys/66db4f962e5dc2000831cd22
😎 Deploy Preview https://deploy-preview-623--hi-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for es-eslint ready!

Name Link
🔨 Latest commit f9182f7
🔍 Latest deploy log https://app.netlify.com/sites/es-eslint/deploys/66db4f96c7b27300088d4888
😎 Deploy Preview https://deploy-preview-623--es-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for ja-eslint ready!

Name Link
🔨 Latest commit f9182f7
🔍 Latest deploy log https://app.netlify.com/sites/ja-eslint/deploys/66db4f96c4f0a40009c5835d
😎 Deploy Preview https://deploy-preview-623--ja-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for zh-hans-eslint ready!

Name Link
🔨 Latest commit f9182f7
🔍 Latest deploy log https://app.netlify.com/sites/zh-hans-eslint/deploys/66db4f96edebba00084dba5c
😎 Deploy Preview https://deploy-preview-623--zh-hans-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for pt-br-eslint ready!

Name Link
🔨 Latest commit f9182f7
🔍 Latest deploy log https://app.netlify.com/sites/pt-br-eslint/deploys/66db4f96a3517d0009d5a569
😎 Deploy Preview https://deploy-preview-623--pt-br-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for fr-eslint ready!

Name Link
🔨 Latest commit f9182f7
🔍 Latest deploy log https://app.netlify.com/sites/fr-eslint/deploys/66db50026750230008732a20
😎 Deploy Preview https://deploy-preview-623--fr-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for de-eslint ready!

Name Link
🔨 Latest commit f9182f7
🔍 Latest deploy log https://app.netlify.com/sites/de-eslint/deploys/66db4f967dc40b0008dff216
😎 Deploy Preview https://deploy-preview-623--de-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@harish-sethuraman harish-sethuraman left a 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));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Copy link
Member

@fasttime fasttime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@fasttime fasttime merged commit 54b36c7 into main Sep 6, 2024
36 of 37 checks passed
@fasttime fasttime deleted the github-donation-fix branch September 6, 2024 19:33
@amareshsm
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted bug Something isn't working
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

4 participants