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

feat: show current prerelease version #502

Merged
merged 1 commit into from
Dec 26, 2023
Merged

Conversation

mdjermanovic
Copy link
Member

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)

  • Updated tools/fetch-stats.js to correctly fetch and calculate the current version and the latest version.
  • Updated homepage to use this data and show different versions depending on whether the current release is prerelease, per the description.

Related Issues

eslint/eslint#17893 (comment)

Is there anything you'd like reviewers to focus on?

We'll need translations for "Latest Prerelease Version".

Copy link

netlify bot commented Dec 25, 2023

Deploy Preview for fr-eslint ready!

Name Link
🔨 Latest commit ff1b392
🔍 Latest deploy log https://app.netlify.com/sites/fr-eslint/deploys/6589db892961880008c526ce
😎 Deploy Preview https://deploy-preview-502--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 Dec 25, 2023

Deploy Preview for new-eslint ready!

Name Link
🔨 Latest commit ff1b392
🔍 Latest deploy log https://app.netlify.com/sites/new-eslint/deploys/6589db891cdab4000980b696
😎 Deploy Preview https://deploy-preview-502--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 Dec 25, 2023

Deploy Preview for es-eslint ready!

Name Link
🔨 Latest commit ff1b392
🔍 Latest deploy log https://app.netlify.com/sites/es-eslint/deploys/6589db899d6874000838fe84
😎 Deploy Preview https://deploy-preview-502--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 Dec 25, 2023

Deploy Preview for zh-hans-eslint ready!

Name Link
🔨 Latest commit ff1b392
🔍 Latest deploy log https://app.netlify.com/sites/zh-hans-eslint/deploys/6589db89ab1c410008d7247b
😎 Deploy Preview https://deploy-preview-502--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 Dec 25, 2023

Deploy Preview for ja-eslint ready!

Name Link
🔨 Latest commit ff1b392
🔍 Latest deploy log https://app.netlify.com/sites/ja-eslint/deploys/6589db899d6874000838fe88
😎 Deploy Preview https://deploy-preview-502--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 Dec 25, 2023

Deploy Preview for hi-eslint ready!

Name Link
🔨 Latest commit ff1b392
🔍 Latest deploy log https://app.netlify.com/sites/hi-eslint/deploys/6589db894a097500086e42c9
😎 Deploy Preview https://deploy-preview-502--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.

@@ -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
Copy link
Member Author

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.

Copy link

netlify bot commented Dec 25, 2023

Deploy Preview for de-eslint ready!

Name Link
🔨 Latest commit ff1b392
🔍 Latest deploy log https://app.netlify.com/sites/de-eslint/deploys/6589db89fa8cf1000895c38c
😎 Deploy Preview https://deploy-preview-502--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

netlify bot commented Dec 25, 2023

Deploy Preview for pt-br-eslint ready!

Name Link
🔨 Latest commit ff1b392
🔍 Latest deploy log https://app.netlify.com/sites/pt-br-eslint/deploys/6589db895778f90008e9684a
😎 Deploy Preview https://deploy-preview-502--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
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM

@nzakas nzakas merged commit cd3fd77 into main Dec 26, 2023
26 checks passed
@nzakas nzakas deleted the show-current-prerelease branch December 26, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants