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

Add custom helm repo name generated from url #21024

Closed
wants to merge 5 commits into from

Conversation

21h
Copy link
Contributor

@21h 21h commented Sep 1, 2022

Replace helm repo name in Packages to generated from gitea instance site url. Because default "gitea" repo name has many installations in internet but repo name based on url unique for every instance.

image

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 1, 2022
@21h 21h changed the title add custom helm repo name generated from url Add custom helm repo name generated from url Sep 1, 2022
@@ -243,6 +243,7 @@ func Config(ctx *context.Context) {

ctx.Data["CustomConf"] = setting.CustomConf
ctx.Data["AppUrl"] = setting.AppURL
ctx.Data["GiteaRepoName"] = setting.Domain
Copy link
Member

Choose a reason for hiding this comment

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

Why are you declaring both a context variable and a helper function? One of them ought to be enough and I'd lean to just using Domain which is set 1 line below this one, so we can remove both the helper and the variable.

@wxiaoguang
Copy link
Contributor

@21h

Is this PR active? I think it could be easy to get approved: remove all other unnecessary domain code, just use {{AppDomain}} in tmpl , that's all.

@pull-request-size pull-request-size bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Apr 26, 2023
@pull-request-size pull-request-size bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 26, 2023
@21h
Copy link
Contributor Author

21h commented Apr 26, 2023

@wxiaoguang I created FRESH PR without conflicts #24363
You can close this PR

@wxiaoguang wxiaoguang closed this Apr 26, 2023
@21h 21h deleted the option-helm-repo-name branch April 26, 2023 20:26
silverwind pushed a commit that referenced this pull request Apr 27, 2023
Fresh version of "Add custom helm repo name generated from url #21024"
#21024

Co-authored-by: Giteabot <teabot@gitea.io>
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Aug 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants