-
-
Notifications
You must be signed in to change notification settings - Fork 669
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: add the ability to show a release candidate as pre-release in the UI #278
Conversation
✔️ Deploy Preview for asyncapi-website ready! 🔨 Explore the source changes: eaea13b 🔍 Inspect the deploy log: https://app.netlify.com/sites/asyncapi-website/deploys/60cafe0d8922950008edc8d1 😎 Browse the preview: https://deploy-preview-278--asyncapi-website.netlify.app |
scripts/build-post-list.js
Outdated
if(fileName.includes('release')) { | ||
details.isPrerelease = true | ||
details.releaseDate = getReleaseDate(fileName) | ||
fileName = fileName.split('-')[0] | ||
} |
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.
Some assumptions have been made here by me.
- The rc will always have
release
in the filename. - The format for the filename will always be
<release-version>-<year>-<month>-<release>.md
. ex.v2.1.0-2021-06-release.md
.
This is being used in marking a rc aspre-release
as well as getting the release 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 assumptions, and valid ones, you can put them as a comment for future generations and even refer asyncapi/spec#513 (comment) in the comment for future generations
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.
last general comment: I have consistency-related doubts regarding the stripping of the v
from the version for the title. It feels weird that in docs it will be without v and then the tag and also link will contact v
🤔
🤔 Do we add the |
@aayushmau5 I'm honestly not sure, there are pros and cons for both. So maybe just leave it as it is, |
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.
ping me when you are ready for another review round
@derberg Made some changes. Please review :) |
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.
awesome stuff, I guess we are ready on the website side now and can work on merging the action in spec repo right?
Yeah, I think so. Everything done on the website side. Made some changes on the Actions. Just need to verify it, and then, we can merge it. |
Description
Screeshots
Related issue(s)
#86