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

Remove stars when repo goes private #19904

Merged
merged 12 commits into from
Jun 5, 2023
2 changes: 1 addition & 1 deletion templates/repo/settings/options.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{{if not .Repository.IsFork}}
<div class="inline field">
<label>{{.i18n.Tr "repo.visibility"}}</label>
<div class="ui checkbox{{if not .Repository.IsPrivate}} tooltip{{end}}" data-content="{{.i18n.Tr "repo.stars_remove_warning"}}">
<div class="ui checkbox{{if and (not .Repository.IsPrivate) (ne .Repository.NumStars 0)}} tooltip{{end}}" data-content="{{.i18n.Tr "repo.stars_remove_warning"}}">
6543 marked this conversation as resolved.
Show resolved Hide resolved
{{if .IsAdmin}}
6543 marked this conversation as resolved.
Show resolved Hide resolved
<input name="private" type="checkbox" {{if .Repository.IsPrivate}}checked{{end}}>
{{else}}
Expand Down