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

Construct pushURL from remote instead of hardcoding github.com #94

Merged
merged 6 commits into from Apr 21, 2021

Conversation

rdpa
Copy link
Contributor

@rdpa rdpa commented Nov 20, 2020

No description provided.

Signed-off-by: Reed Palmer <reed.d.palmer@gmail.com>
@rdpa
Copy link
Contributor Author

rdpa commented Nov 20, 2020

closes #91

Signed-off-by: Reed Palmer <reed.d.palmer@gmail.com>
Copy link
Member

@unguiculus unguiculus left a comment

Choose a reason for hiding this comment

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

Sorry, this slipped through.

return "", err
}

pushURLArray := strings.SplitAfter(strings.TrimSpace(string(pushURL)), "https://")
Copy link
Member

Choose a reason for hiding this comment

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

This probably won't work for SSH URLs. Please add a test that verifies the functionality for both, SSH and HTTPS URLs.

Copy link
Member

Choose a reason for hiding this comment

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

You're right regarding SSH. That's not supported and a token is needed for pushing. chart-releaser is usually used with GitHub Actions which don't use SSH anyways.

@rdpa
Copy link
Contributor Author

rdpa commented Feb 17, 2021

Thanks for the review @unguiculus. I will pick this back up soon. FWIW, the original functionality did not work with SSH either, but regardless it would be good to support, and I should add tests.

@gimler
Copy link
Contributor

gimler commented Mar 18, 2021

@rdpa i run into the same issue any news on that?

@afritzler
Copy link
Contributor

Any updates on this one? Having the same issue here.

@helm-bot helm-bot added size/M and removed size/S labels Mar 31, 2021
Signed-off-by: Reed Palmer <reed.d.palmer@gmail.com>
Signed-off-by: Reed Palmer <reed.d.palmer@gmail.com>
@helm-bot helm-bot added size/L and removed size/M labels Mar 31, 2021
Signed-off-by: Reed Palmer <reed.d.palmer@gmail.com>
@rdpa
Copy link
Contributor Author

rdpa commented Apr 1, 2021

@unguiculus tests added

@cpanato cpanato requested a review from unguiculus April 1, 2021 09:03
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

lgtm this change, dont see big issue

@unguiculus unguiculus merged commit 30eafb2 into helm:main Apr 21, 2021
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

6 participants