-
Notifications
You must be signed in to change notification settings - Fork 82
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: support asset type and filepath #242
Conversation
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.
@yxonic This looks great! Thanks for putting this PR together.
I have one small suggestion on the current changes. I also think we should cover this new field in a test, most likely in publish.test.js
.
Back to you for now 🏓 Feel free to ping me when this is ready for another review!
@nfriend thanks for your time reviewing the code! I've made several changes according to your suggestions:
|
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.
@yxonic Looking great! Thanks for the changes and for adding the test.
I did find one usability issue that I think we should address, which I've mentioned below.
Also, I think we should log the type
and filepath
when in debug
mode on lines 54-55 in publish.js
(for some reason GitHub doesn't let me comment on the lines directly - I guess I'm just too used to GitLab 😅).
Let me know what you think. And please let me know if you need help with any of the suggested changes. I realize I'm probably requesting more changes than you originally bargained for 😄
@nfriend Hi~ I just fixed the links. Regarding the duplicate |
@yxonic Sorry for the slow response here, I'm going to try and get to this tomorrow! |
@yxonic Good call! This is a simpler and more consistent solution 👍 And thanks for documenting this behavior. |
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.
@yxonic This looks good to me! Just gave this a try in a test project and it works great. Thanks for all your work here!
🎉 This PR is included in version 6.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Implemented two options for assets according to GitLab document on asset permanent link and link type, addressing #161.
It can also be a solution to #167, with which now we can download asset using URL like this:
https://host/namespace/project/releases/v1.0.0/downloads/build.tar.gz