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: allow specify url in release assets #322

Merged
merged 23 commits into from May 16, 2022

Conversation

awcjack
Copy link
Contributor

@awcjack awcjack commented Jan 23, 2022

This solve #154

@awcjack awcjack changed the title feat: Allow specific url in release assets feat: Allow specify url in release assets Jan 23, 2022
@hvanoch
Copy link

hvanoch commented Apr 14, 2022

Is there something holding back this MR?
This would be helpful for us too, so if I can assist somewhere getting this merged.

lib/publish.js Outdated Show resolved Hide resolved
lib/publish.js Outdated Show resolved Hide resolved
lib/publish.js Outdated Show resolved Hide resolved
@awcjack
Copy link
Contributor Author

awcjack commented Apr 17, 2022

forget created pull request
I thought I just test in my repo and haven't touch the repo few months lol

Copy link
Contributor

@JonasSchubert JonasSchubert left a comment

Choose a reason for hiding this comment

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

@fgreinacher What do you think?

test/publish.test.js Outdated Show resolved Hide resolved
lib/publish.js Outdated
throw error;
let _url = asset.url;
if (_url) {
// Allow loading variable from process.env load CI_JOB_ID for attaching CI artifact
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice you considered this, too 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

I understand the idea behind this, but I don't like how this new propery is handled in a very special way. We already have a templating mechanism (via lodash) and I don't want to introduce another one. I'd suggest we switch to that for the URL and create a follow-up issue for using env vars in templates.

README.md Outdated Show resolved Hide resolved
lib/publish.js Show resolved Hide resolved
lib/publish.js Outdated Show resolved Hide resolved
Copy link
Contributor

@JonasSchubert JonasSchubert left a comment

Choose a reason for hiding this comment

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

Only merge issues to fix and then it looks good for me. (sorry for the late reply...)
@fgreinacher what do you think?

Copy link
Contributor

@fgreinacher fgreinacher left a comment

Choose a reason for hiding this comment

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

Code looks very good, I have some concerns with the templating though.

And we need a rebase 😀

@awcjack
Copy link
Contributor Author

awcjack commented May 12, 2022

Rebased (ran test for checking no merge error) and removed the variable code
I will create another merge request after updating the variable code to lodash template later
@fgreinacher

README.md Outdated Show resolved Hide resolved
@fgreinacher fgreinacher changed the title feat: Allow specify url in release assets feat: allow specify url in release assets May 16, 2022
@fgreinacher
Copy link
Contributor

@awcjack Thanks a lot for your contribution, greatly appreciated!

@fgreinacher fgreinacher merged commit 3a9fb9a into semantic-release:master May 16, 2022
@github-actions
Copy link

🎉 This PR is included in version 9.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants