{{ define "title" }}{{ .Tab }} settings · {{ .RepoInfo.FullName }}{{ end }} {{ define "repoContent" }}
{{ template "repo/settings/fragments/sidebar" . }}
{{ template "baseSettings" . }} {{ template "branchSettings" . }} {{ template "defaultLabelSettings" . }} {{ template "customLabelSettings" . }} {{ template "deleteRepo" . }}
{{ end }} {{ define "baseSettings" }}

Description

Website URL

Topics

List of topics separated by spaces.

{{ end }} {{ define "branchSettings" }}

Default Branch

The default branch is considered the “base” branch in your repository, against which all pull requests and code commits are automatically made, unless you specify a different branch.

{{ end }} {{ define "defaultLabelSettings" }}

Default Labels

Manage your issues and pulls by creating labels to categorize them. Only repository owners may configure labels. You may choose to subscribe to default labels, or create entirely custom labels.

{{ $title := "Unubscribe from all labels" }} {{ $icon := "x" }} {{ $text := "unsubscribe all" }} {{ $action := "unsubscribe" }} {{ if $.ShouldSubscribeAll }} {{ $title = "Subscribe to all labels" }} {{ $icon = "check-check" }} {{ $text = "subscribe all" }} {{ $action = "subscribe" }} {{ end }} {{ range .DefaultLabels }} {{ end }}
{{ range .DefaultLabels }}
{{ template "repo/settings/fragments/labelListing" (list $ .) }} {{ $action := "subscribe" }} {{ $icon := "plus" }} {{ if mapContains $.SubscribedLabels .AtUri.String }} {{ $action = "unsubscribe" }} {{ $icon = "minus" }} {{ end }}
{{ else }}
no labels added yet
{{ end }}
{{ end }} {{ define "customLabelSettings" }}

Custom Labels

{{ template "repo/settings/fragments/addLabelDefModal" . }}
{{ range .Labels }}
{{ template "repo/settings/fragments/labelListing" (list $ .) }} {{ if $.RepoInfo.Roles.IsOwner }} {{ end }}
{{ else }}
no labels added yet
{{ end }}
{{ end }} {{ define "deleteRepo" }} {{ if .RepoInfo.Roles.RepoDeleteAllowed }}

Delete Repository

Deleting a repository is irreversible and permanent. Be certain before deleting a repository.

{{ end }} {{ end }}