-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat: show current prerelease version #502
Conversation
✅ Deploy Preview for fr-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for new-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 zh-hans-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 hi-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -40,10 +40,12 @@ const fetchWeeklyNpmDownloads = util.promisify(downloadStats.get.lastWeek); | |||
async function fetchStatsFromGitHubAPI() { | |||
const { repository } = await graphql(`query { | |||
repository(owner:"eslint", name:"eslint") { | |||
latestRelease { | |||
publishedAt | |||
isPrerelease |
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.
This wasn't working well, because latestRelease
is never a prerelease.
✅ Deploy Preview for de-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. |
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
Prerequisites checklist
What is the purpose of this pull request?
Updates eslint.org homepage to show different versions when the current version is a prerelease:
Latest Version
Latest Prerelease Version
Upcoming Version
instead of (when the current version is not a prerelease):
Latest Version
Upcoming Version
Development
What changes did you make? (Give an overview)
tools/fetch-stats.js
to correctly fetch and calculate the current version and the latest version.Related Issues
eslint/eslint#17893 (comment)
Is there anything you'd like reviewers to focus on?
We'll need translations for "Latest Prerelease Version".