diff --git a/admin/actions.tmpl b/admin/actions.tmpl
deleted file mode 100644
index 597863d..0000000
--- a/admin/actions.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin actions")}}
-
- {{if eq .PageType "runners"}}
- {{template "shared/actions/runner_list" .}}
- {{end}}
- {{if eq .PageType "variables"}}
- {{template "shared/variables/variable_list" .}}
- {{end}}
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/applications/list.tmpl b/admin/applications/list.tmpl
deleted file mode 100644
index cbb66b1..0000000
--- a/admin/applications/list.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin config")}}
-
-
- {{template "user/settings/applications_oauth2_list" .}}
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/applications/oauth2_edit.tmpl b/admin/applications/oauth2_edit.tmpl
deleted file mode 100644
index 668bfe0..0000000
--- a/admin/applications/oauth2_edit.tmpl
+++ /dev/null
@@ -1,6 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin config")}}
-
-
- {{template "user/settings/applications_oauth2_edit_form" .}}
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/auth/edit.tmpl b/admin/auth/edit.tmpl
deleted file mode 100644
index e140d6b..0000000
--- a/admin/auth/edit.tmpl
+++ /dev/null
@@ -1,460 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin edit authentication")}}
-
-
-
-
-
-
-
GMail Settings:
-
Host: smtp.gmail.com, Port: 587, Enable TLS Encryption: true
-
-
{{ctx.Locale.Tr "admin.auths.tips.oauth2.general"}}:
-
{{ctx.Locale.Tr "admin.auths.tips.oauth2.general.tip"}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "admin.auths.delete_auth_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/auth/list.tmpl b/admin/auth/list.tmpl
deleted file mode 100644
index 6483ec8..0000000
--- a/admin/auth/list.tmpl
+++ /dev/null
@@ -1,38 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin authentication")}}
-
-
-
-
-
-
- ID
- {{ctx.Locale.Tr "admin.auths.name"}}
- {{ctx.Locale.Tr "admin.auths.type"}}
- {{ctx.Locale.Tr "admin.auths.enabled"}}
- {{ctx.Locale.Tr "admin.auths.updated"}}
- {{ctx.Locale.Tr "admin.users.created"}}
- {{ctx.Locale.Tr "admin.users.edit"}}
-
-
-
- {{range .Sources}}
-
- {{.ID}}
- {{.Name}}
- {{.TypeName}}
- {{if .IsActive}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{DateTime "short" .UpdatedUnix}}
- {{DateTime "short" .CreatedUnix}}
- {{svg "octicon-pencil"}}
-
- {{end}}
-
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/auth/new.tmpl b/admin/auth/new.tmpl
deleted file mode 100644
index f130e18..0000000
--- a/admin/auth/new.tmpl
+++ /dev/null
@@ -1,122 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin new authentication")}}
-
-
-
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
-
-
{{ctx.Locale.Tr "admin.auths.auth_type"}}
-
-
-
{{.CurrentTypeName}}
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.auth_name"}}
-
-
-
-
- {{template "admin/auth/source/ldap" .}}
-
-
- {{template "admin/auth/source/smtp" .}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.pam_service_name"}}
-
- {{ctx.Locale.Tr "admin.auths.pam_email_domain"}}
-
-
-
-
-
{{ctx.Locale.Tr "admin.auths.skip_local_two_fa"}}
-
-
{{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}
-
-
-
-
- {{template "admin/auth/source/oauth" .}}
-
-
- {{template "admin/auth/source/sspi" .}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.attributes_in_bind"}}
-
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.syncenabled"}}
-
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.activated"}}
-
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.new"}}
-
-
-
-
-
-
-
GMail Settings:
-
Host: smtp.gmail.com, Port: 587, Enable TLS Encryption: true
-
-
{{ctx.Locale.Tr "admin.auths.tips.oauth2.general"}}:
-
{{ctx.Locale.Tr "admin.auths.tips.oauth2.general.tip"}}
-
-
-
-
Bitbucket
- {{ctx.Locale.Tr "admin.auths.tip.bitbucket"}}
- Dropbox
- {{ctx.Locale.Tr "admin.auths.tip.dropbox"}}
- Facebook
- {{ctx.Locale.Tr "admin.auths.tip.facebook"}}
- GitHub
- {{ctx.Locale.Tr "admin.auths.tip.github"}}
- GitLab
- {{ctx.Locale.Tr "admin.auths.tip.gitlab_new"}}
- Google
- {{ctx.Locale.Tr "admin.auths.tip.google_plus"}}
- OpenID Connect
- {{ctx.Locale.Tr "admin.auths.tip.openid_connect"}}
- Twitter
- {{ctx.Locale.Tr "admin.auths.tip.twitter"}}
- Discord
- {{ctx.Locale.Tr "admin.auths.tip.discord"}}
- Gitea
- {{ctx.Locale.Tr "admin.auths.tip.gitea"}}
- Nextcloud
- {{ctx.Locale.Tr "admin.auths.tip.nextcloud"}}
- Yandex
- {{ctx.Locale.Tr "admin.auths.tip.yandex"}}
- Mastodon
- {{ctx.Locale.Tr "admin.auths.tip.mastodon"}}
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/auth/source/ldap.tmpl b/admin/auth/source/ldap.tmpl
deleted file mode 100644
index 9754aed..0000000
--- a/admin/auth/source/ldap.tmpl
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-
{{ctx.Locale.Tr "admin.auths.security_protocol"}}
-
-
-
{{.CurrentSecurityProtocol}}
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.host"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.port"}}
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.skip_tls_verify"}}
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.bind_dn"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.bind_password"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.user_base"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.user_dn"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.filter"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.admin_filter"}}
-
-
-
-
{{ctx.Locale.Tr "admin.auths.restricted_filter"}}
-
-
{{ctx.Locale.Tr "admin.auths.restricted_filter_helper"}}
-
-
- {{ctx.Locale.Tr "admin.auths.attribute_username"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.attribute_name"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.attribute_surname"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.attribute_mail"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.attribute_ssh_public_key"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.attribute_avatar"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.enable_ldap_groups"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.use_paged_search"}}
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.search_page_size"}}
-
-
-
-
-
{{ctx.Locale.Tr "admin.auths.skip_local_two_fa"}}
-
-
{{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.allow_deactivate_all"}}
-
-
-
-
diff --git a/admin/auth/source/oauth.tmpl b/admin/auth/source/oauth.tmpl
deleted file mode 100644
index f02c5bd..0000000
--- a/admin/auth/source/oauth.tmpl
+++ /dev/null
@@ -1,109 +0,0 @@
-
-
-
{{ctx.Locale.Tr "admin.auths.oauth2_provider"}}
-
-
-
{{.oauth2_provider}}
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_clientID"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_clientSecret"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_icon_url"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.openIdConnectAutoDiscoveryURL"}}
-
-
-
-
-
{{ctx.Locale.Tr "admin.auths.skip_local_two_fa"}}
-
-
{{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}
-
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_use_custom_url"}}
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_authURL"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_tokenURL"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_profileURL"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_emailURL"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_tenant"}}
-
-
-
- {{range .OAuth2Providers}}{{if .CustomURLSettings}}
-
-
-
-
-
-
- {{end}}{{end}}
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_scopes"}}
-
-
-
-
{{ctx.Locale.Tr "admin.auths.oauth2_required_claim_name"}}
-
-
{{ctx.Locale.Tr "admin.auths.oauth2_required_claim_name_helper"}}
-
-
-
{{ctx.Locale.Tr "admin.auths.oauth2_required_claim_value"}}
-
-
{{ctx.Locale.Tr "admin.auths.oauth2_required_claim_value_helper"}}
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_group_claim_name"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_admin_group"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_restricted_group"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_map_group_to_team"}}
- {{.oauth2_group_team_map}}
-
-
- {{ctx.Locale.Tr "admin.auths.oauth2_map_group_to_team_removal"}}
-
-
-
diff --git a/admin/auth/source/smtp.tmpl b/admin/auth/source/smtp.tmpl
deleted file mode 100644
index 31195ac..0000000
--- a/admin/auth/source/smtp.tmpl
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
{{ctx.Locale.Tr "admin.auths.smtp_auth"}}
-
-
-
{{.smtp_auth}}
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.smtphost"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.smtpport"}}
-
-
-
-
-
{{ctx.Locale.Tr "admin.auths.force_smtps"}}
-
-
{{ctx.Locale.Tr "admin.auths.force_smtps_helper"}}
-
-
-
-
- {{ctx.Locale.Tr "admin.auths.skip_tls_verify"}}
-
-
-
-
-
{{ctx.Locale.Tr "admin.auths.helo_hostname"}}
-
-
{{ctx.Locale.Tr "admin.auths.helo_hostname_helper"}}
-
-
-
- {{ctx.Locale.Tr "admin.auths.disable_helo"}}
-
-
-
-
-
{{ctx.Locale.Tr "admin.auths.allowed_domains"}}
-
-
{{ctx.Locale.Tr "admin.auths.allowed_domains_helper"}}
-
-
-
-
{{ctx.Locale.Tr "admin.auths.skip_local_two_fa"}}
-
-
{{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}
-
-
-
diff --git a/admin/auth/source/sspi.tmpl b/admin/auth/source/sspi.tmpl
deleted file mode 100644
index 6a3f00f..0000000
--- a/admin/auth/source/sspi.tmpl
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
{{ctx.Locale.Tr "admin.auths.sspi_auto_create_users"}}
-
-
{{ctx.Locale.Tr "admin.auths.sspi_auto_create_users_helper"}}
-
-
-
-
-
{{ctx.Locale.Tr "admin.auths.sspi_auto_activate_users"}}
-
-
{{ctx.Locale.Tr "admin.auths.sspi_auto_activate_users_helper"}}
-
-
-
-
-
{{ctx.Locale.Tr "admin.auths.sspi_strip_domain_names"}}
-
-
{{ctx.Locale.Tr "admin.auths.sspi_strip_domain_names_helper"}}
-
-
-
-
{{ctx.Locale.Tr "admin.auths.sspi_separator_replacement"}}
-
-
{{ctx.Locale.Tr "admin.auths.sspi_separator_replacement_helper"}}
-
-
-
{{ctx.Locale.Tr "admin.auths.sspi_default_language"}}
-
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
{{range .AllLangs}}{{if eq $.SSPIDefaultLanguage .Lang}}{{.Name}}{{end}}{{end}}
-
-
-
{{ctx.Locale.Tr "admin.auths.sspi_default_language_helper"}}
-
-
diff --git a/admin/config.tmpl b/admin/config.tmpl
deleted file mode 100644
index 8c16429..0000000
--- a/admin/config.tmpl
+++ /dev/null
@@ -1,343 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin config")}}
-
-
-
-
- {{ctx.Locale.Tr "admin.config.app_name"}}
- {{AppName}}
- {{ctx.Locale.Tr "admin.config.app_ver"}}
- {{AppVer}}{{.AppBuiltWith}}
- {{ctx.Locale.Tr "admin.config.custom_conf"}}
- {{.CustomConf}}
- {{ctx.Locale.Tr "admin.config.app_url"}}
- {{.AppUrl}}
- {{ctx.Locale.Tr "admin.config.domain"}}
- {{.Domain}}
- {{ctx.Locale.Tr "admin.config.offline_mode"}}
- {{if .OfflineMode}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.disable_router_log"}}
- {{if .DisableRouterLog}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
-
-
-
- {{ctx.Locale.Tr "admin.config.run_user"}}
- {{.RunUser}}
- {{ctx.Locale.Tr "admin.config.run_mode"}}
- {{.RunMode}}
-
-
-
- {{ctx.Locale.Tr "admin.config.git_version"}}
- {{.GitVersion}}
-
-
-
- {{ctx.Locale.Tr "admin.config.app_data_path"}}
- {{.AppDataPath}}
- {{ctx.Locale.Tr "admin.config.repo_root_path"}}
- {{.RepoRootPath}}
- {{ctx.Locale.Tr "admin.config.custom_file_root_path"}}
- {{.CustomRootPath}}
- {{ctx.Locale.Tr "admin.config.log_file_root_path"}}
- {{.LogRootPath}}
- {{ctx.Locale.Tr "admin.config.script_type"}}
- {{.ScriptType}}
- {{ctx.Locale.Tr "admin.config.reverse_auth_user"}}
- {{.ReverseProxyAuthUser}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.config.ssh_enabled"}}
- {{if not .SSH.Disabled}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{if not .SSH.Disabled}}
- {{ctx.Locale.Tr "admin.config.ssh_start_builtin_server"}}
- {{if .SSH.StartBuiltinServer}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.ssh_domain"}}
- {{.SSH.Domain}}
- {{ctx.Locale.Tr "admin.config.ssh_port"}}
- {{.SSH.Port}}
- {{ctx.Locale.Tr "admin.config.ssh_listen_port"}}
- {{.SSH.ListenPort}}
-
- {{if not .SSH.StartBuiltinServer}}
- {{ctx.Locale.Tr "admin.config.ssh_root_path"}}
- {{.SSH.RootPath}}
- {{ctx.Locale.Tr "admin.config.ssh_key_test_path"}}
- {{.SSH.KeyTestPath}}
- {{ctx.Locale.Tr "admin.config.ssh_keygen_path"}}
- {{.SSH.KeygenPath}}
- {{ctx.Locale.Tr "admin.config.ssh_minimum_key_size_check"}}
- {{if .SSH.MinimumKeySizeCheck}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{if .SSH.MinimumKeySizeCheck}}
- {{ctx.Locale.Tr "admin.config.ssh_minimum_key_sizes"}}
- {{.SSH.MinimumKeySizes}}
- {{end}}
- {{end}}
- {{end}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.config.lfs_enabled"}}
- {{if .LFS.StartServer}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{if .LFS.StartServer}}
- {{ctx.Locale.Tr "admin.config.lfs_content_path"}}
- {{JsonUtils.EncodeToString .LFS.Storage.ToShadowCopy}}
- {{ctx.Locale.Tr "admin.config.lfs_http_auth_expiry"}}
- {{.LFS.HTTPAuthExpiry}}
- {{end}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.config.db_type"}}
- {{.DbCfg.Type}}
- {{if not (eq .DbCfg.Type "sqlite3")}}
- {{ctx.Locale.Tr "admin.config.db_host"}}
- {{if .DbCfg.Host}}{{.DbCfg.Host}}{{else}}-{{end}}
- {{ctx.Locale.Tr "admin.config.db_name"}}
- {{if .DbCfg.Name}}{{.DbCfg.Name}}{{else}}-{{end}}
- {{ctx.Locale.Tr "admin.config.db_user"}}
- {{if .DbCfg.User}}{{.DbCfg.User}}{{else}}-{{end}}
- {{end}}
- {{if eq .DbCfg.Type "postgres"}}
- {{ctx.Locale.Tr "admin.config.db_schema"}}
- {{if .DbCfg.Schema}}{{.DbCfg.Schema}}{{else}}-{{end}}
- {{ctx.Locale.Tr "admin.config.db_ssl_mode"}}
- {{if .DbCfg.SSLMode}}{{.DbCfg.SSLMode}}{{else}}-{{end}}
- {{end}}
- {{if eq .DbCfg.Type "sqlite3"}}
- {{ctx.Locale.Tr "admin.config.db_path"}}
- {{if .DbCfg.Path}}{{.DbCfg.Path}}{{else}}-{{end}}
- {{end}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.config.register_email_confirm"}}
- {{if .Service.RegisterEmailConfirm}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.disable_register"}}
- {{if .Service.DisableRegistration}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.allow_only_internal_registration"}}
- {{if .Service.AllowOnlyInternalRegistration}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.allow_only_external_registration"}}
- {{if .Service.AllowOnlyExternalRegistration}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.show_registration_button"}}
- {{if .Service.ShowRegistrationButton}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.enable_openid_signup"}}
- {{if .Service.EnableOpenIDSignUp}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.enable_openid_signin"}}
- {{if .Service.EnableOpenIDSignIn}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.require_sign_in_view"}}
- {{if .Service.RequireSignInView}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.mail_notify"}}
- {{if .Service.EnableNotifyMail}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.enable_captcha"}}
- {{if .Service.EnableCaptcha}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.default_keep_email_private"}}
- {{if .Service.DefaultKeepEmailPrivate}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.default_allow_create_organization"}}
- {{if .Service.DefaultAllowCreateOrganization}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.enable_timetracking"}}
- {{if .Service.EnableTimetracking}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{if .Service.EnableTimetracking}}
- {{ctx.Locale.Tr "admin.config.default_enable_timetracking"}}
- {{if .Service.DefaultEnableTimetracking}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.default_allow_only_contributors_to_track_time"}}
- {{if .Service.DefaultAllowOnlyContributorsToTrackTime}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{end}}
- {{ctx.Locale.Tr "admin.config.default_visibility_organization"}}
- {{.Service.DefaultOrgVisibility}}
-
- {{ctx.Locale.Tr "admin.config.no_reply_address"}}
- {{if .Service.NoReplyAddress}}{{.Service.NoReplyAddress}}{{else}}-{{end}}
- {{ctx.Locale.Tr "admin.config.default_enable_dependencies"}}
- {{if .Service.DefaultEnableDependencies}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
-
- {{ctx.Locale.Tr "admin.config.active_code_lives"}}
- {{.Service.ActiveCodeLives}} {{ctx.Locale.Tr "tool.raw_minutes"}}
- {{ctx.Locale.Tr "admin.config.reset_password_code_lives"}}
- {{.Service.ResetPwdCodeLives}} {{ctx.Locale.Tr "tool.raw_minutes"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.config.queue_length"}}
- {{.Webhook.QueueLength}}
- {{ctx.Locale.Tr "admin.config.deliver_timeout"}}
- {{.Webhook.DeliverTimeout}} {{ctx.Locale.Tr "tool.raw_seconds"}}
- {{ctx.Locale.Tr "admin.config.skip_tls_verify"}}
- {{if .Webhook.SkipTLSVerify}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.config.mailer_enabled"}}
- {{if .MailerEnabled}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{if .MailerEnabled}}
- {{ctx.Locale.Tr "admin.config.mailer_name"}}
- {{.Mailer.Name}}
- {{if eq .Mailer.Protocol "sendmail"}}
- {{ctx.Locale.Tr "admin.config.mailer_use_sendmail"}}
- {{svg "octicon-check"}}
- {{ctx.Locale.Tr "admin.config.mailer_sendmail_path"}}
- {{.Mailer.SendmailPath}}
- {{ctx.Locale.Tr "admin.config.mailer_sendmail_args"}}
- {{.Mailer.SendmailArgs}}
- {{ctx.Locale.Tr "admin.config.mailer_sendmail_timeout"}}
- {{.Mailer.SendmailTimeout}} {{ctx.Locale.Tr "tool.raw_seconds"}}
- {{else if eq .Mailer.Protocol "dummy"}}
- {{ctx.Locale.Tr "admin.config.mailer_use_dummy"}}
- {{svg "octicon-check"}}
- {{else}}{{/* SMTP family */}}
- {{ctx.Locale.Tr "admin.config.mailer_protocol"}}
- {{.Mailer.Protocol}}
- {{ctx.Locale.Tr "admin.config.mailer_enable_helo"}}
- {{if .Mailer.EnableHelo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.mailer_smtp_addr"}}
- {{.Mailer.SMTPAddr}}
- {{ctx.Locale.Tr "admin.config.mailer_smtp_port"}}
- {{.Mailer.SMTPPort}}
- {{end}}
- {{ctx.Locale.Tr "admin.config.mailer_user"}}
- {{if .Mailer.User}}{{.Mailer.User}}{{else}}(empty){{end}}
-
- {{ctx.Locale.Tr "admin.config.send_test_mail"}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "admin.config.send_test_mail_submit"}}
-
-
- {{end}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.config.cache_adapter"}}
- {{.CacheAdapter}}
- {{if eq .CacheAdapter "memory"}}
- {{ctx.Locale.Tr "admin.config.cache_interval"}}
- {{.CacheInterval}} {{ctx.Locale.Tr "tool.raw_seconds"}}
- {{end}}
- {{if .CacheConn}}
- {{ctx.Locale.Tr "admin.config.cache_conn"}}
- {{.CacheConn}}
- {{ctx.Locale.Tr "admin.config.cache_item_ttl"}}
- {{.CacheItemTTL}}
- {{end}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.config.session_provider"}}
- {{.SessionConfig.Provider}}
- {{ctx.Locale.Tr "admin.config.provider_config"}}
- {{if .SessionConfig.ProviderConfig}}{{.SessionConfig.ProviderConfig}}{{else}}-{{end}}
- {{ctx.Locale.Tr "admin.config.cookie_name"}}
- {{.SessionConfig.CookieName}}
- {{ctx.Locale.Tr "admin.config.gc_interval_time"}}
- {{.SessionConfig.Gclifetime}} {{ctx.Locale.Tr "tool.raw_seconds"}}
- {{ctx.Locale.Tr "admin.config.session_life_time"}}
- {{.SessionConfig.Maxlifetime}} {{ctx.Locale.Tr "tool.raw_seconds"}}
- {{ctx.Locale.Tr "admin.config.https_only"}}
- {{if .SessionConfig.Secure}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.config.git_disable_diff_highlight"}}
- {{if .Git.DisableDiffHighlight}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{ctx.Locale.Tr "admin.config.git_max_diff_lines"}}
- {{.Git.MaxGitDiffLines}}
- {{ctx.Locale.Tr "admin.config.git_max_diff_line_characters"}}
- {{.Git.MaxGitDiffLineCharacters}}
- {{ctx.Locale.Tr "admin.config.git_max_diff_files"}}
- {{.Git.MaxGitDiffFiles}}
- {{ctx.Locale.Tr "admin.config.git_gc_args"}}
- {{.Git.GCArgs}}
-
-
-
- {{ctx.Locale.Tr "admin.config.git_migrate_timeout"}}
- {{.Git.Timeout.Migrate}} {{ctx.Locale.Tr "tool.raw_seconds"}}
- {{ctx.Locale.Tr "admin.config.git_mirror_timeout"}}
- {{.Git.Timeout.Mirror}} {{ctx.Locale.Tr "tool.raw_seconds"}}
- {{ctx.Locale.Tr "admin.config.git_clone_timeout"}}
- {{.Git.Timeout.Clone}} {{ctx.Locale.Tr "tool.raw_seconds"}}
- {{ctx.Locale.Tr "admin.config.git_pull_timeout"}}
- {{.Git.Timeout.Pull}} {{ctx.Locale.Tr "tool.raw_seconds"}}
- {{ctx.Locale.Tr "admin.config.git_gc_timeout"}}
- {{.Git.Timeout.GC}} {{ctx.Locale.Tr "tool.raw_seconds"}}
-
-
-
-
-
-
- {{if .Loggers.xorm.IsEnabled}}
- {{ctx.Locale.Tr "admin.config.xorm_log_sql"}}
- {{if $.LogSQL}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{end}}
-
- {{if .Loggers.access.IsEnabled}}
- {{ctx.Locale.Tr "admin.config.access_log_template"}}
- {{$.AccessLogTemplate}}
- {{end}}
-
- {{range $loggerName, $loggerDetail := .Loggers}}
- {{ctx.Locale.Tr "admin.config.logger_name_fmt" $loggerName}}
- {{if $loggerDetail.IsEnabled}}
- {{$loggerDetail.EventWriters | JsonUtils.EncodeToString | JsonUtils.PrettyIndent}}
- {{else}}
- {{ctx.Locale.Tr "admin.config.disabled_logger"}}
- {{end}}
- {{end}}
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/config_settings.tmpl b/admin/config_settings.tmpl
deleted file mode 100644
index 02ab5fd..0000000
--- a/admin/config_settings.tmpl
+++ /dev/null
@@ -1,42 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin config")}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.config.open_with_editor_app_help"}}
- {{.DefaultOpenWithEditorAppsString}}
-
-
-
- {{(.SystemConfig.Repository.OpenWithEditorApps.Value ctx).ToTextareaString}}
-
-
- {{ctx.Locale.Tr "save"}}
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/cron.tmpl b/admin/cron.tmpl
deleted file mode 100644
index 3cb6414..0000000
--- a/admin/cron.tmpl
+++ /dev/null
@@ -1,39 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.monitor.name"}}
- {{ctx.Locale.Tr "admin.monitor.schedule"}}
- {{ctx.Locale.Tr "admin.monitor.next"}}
- {{ctx.Locale.Tr "admin.monitor.previous"}}
- {{ctx.Locale.Tr "admin.monitor.execute_times"}}
- {{ctx.Locale.Tr "admin.monitor.last_execution_result"}}
-
-
-
- {{range .Entries}}
-
- {{svg "octicon-triangle-right"}}
- {{ctx.Locale.Tr (printf "admin.dashboard.%s" .Name)}}
- {{.Spec}}
- {{DateTime "full" .Next}}
- {{if gt .Prev.Year 1}}{{DateTime "full" .Prev}}{{else}}-{{end}}
- {{.ExecTimes}}
- {{if eq .Status ""}}—{{else if eq .Status "finished"}}{{svg "octicon-check" 16}}{{else}}{{svg "octicon-x" 16}}{{end}}
-
- {{end}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/dashboard.tmpl b/admin/dashboard.tmpl
deleted file mode 100644
index 2f9875f..0000000
--- a/admin/dashboard.tmpl
+++ /dev/null
@@ -1,86 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin dashboard")}}
-
- {{if .NeedUpdate}}
-
-
{{ctx.Locale.Tr "admin.dashboard.new_version_hint" .RemoteVersion AppVer}}
-
- {{end}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "admin.dashboard.delete_inactive_accounts"}}
- {{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
-
- {{ctx.Locale.Tr "admin.dashboard.delete_repo_archives"}}
- {{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
-
- {{ctx.Locale.Tr "admin.dashboard.delete_missing_repos"}}
- {{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
-
- {{ctx.Locale.Tr "admin.dashboard.git_gc_repos"}}
- {{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
- {{if and (not .SSH.Disabled) (not .SSH.StartBuiltinServer)}}
-
- {{ctx.Locale.Tr "admin.dashboard.resync_all_sshkeys"}}
- {{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
-
- {{ctx.Locale.Tr "admin.dashboard.resync_all_sshprincipals"}}
- {{svg "octicon-play" 16}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
- {{end}}
-
- {{ctx.Locale.Tr "admin.dashboard.resync_all_hooks"}}
- {{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
-
- {{ctx.Locale.Tr "admin.dashboard.reinit_missing_repos"}}
- {{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
-
- {{ctx.Locale.Tr "admin.dashboard.sync_external_users"}}
- {{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
-
- {{ctx.Locale.Tr "admin.dashboard.repo_health_check"}}
- {{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
-
- {{ctx.Locale.Tr "admin.dashboard.delete_generated_repository_avatars"}}
- {{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
-
- {{ctx.Locale.Tr "admin.dashboard.sync_repo_branches"}}
- {{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
-
- {{ctx.Locale.Tr "admin.dashboard.sync_repo_tags"}}
- {{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}
-
-
-
-
-
-
-
- {{/* TODO: make these stats work in multi-server deployments, likely needs per-server stats in DB */}}
-
-
-
- {{template "admin/system_status" .}}
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/emails/list.tmpl b/admin/emails/list.tmpl
deleted file mode 100644
index 388863d..0000000
--- a/admin/emails/list.tmpl
+++ /dev/null
@@ -1,98 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
-
-
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.users.name"}}
- {{SortArrow "username" "reverseusername" $.SortType false}}
-
- {{ctx.Locale.Tr "admin.users.full_name"}}
-
- {{ctx.Locale.Tr "email"}}
- {{SortArrow "email" "reverseemail" $.SortType true}}
-
- {{ctx.Locale.Tr "admin.emails.primary"}}
- {{ctx.Locale.Tr "admin.emails.activated"}}
-
-
-
- {{range .Emails}}
-
- {{.Name}}
- {{.FullName}}
- {{.Email}}
- {{if .IsPrimary}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
-
- {{if .CanChange}}
-
- {{if .IsActivated}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
-
- {{else}}
- {{if .IsActivated}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{end}}
-
-
- {{end}}
-
-
-
-
- {{template "base/paginate" .}}
-
-
-
-
-
{{ctx.Locale.Tr "admin.emails.change_email_text"}}
-
-
- {{$.CsrfTokenHtml}}
-
-
-
-
-
-
-
-
-
-
-
-
- {{template "base/modal_actions_confirm" .}}
-
-
-
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/hook_new.tmpl b/admin/hook_new.tmpl
deleted file mode 100644
index 37dcc49..0000000
--- a/admin/hook_new.tmpl
+++ /dev/null
@@ -1,13 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin settings new webhook")}}
-
- {{$CustomHeaderTitle := ctx.Locale.Tr "admin.defaulthooks.update_webhook"}}
- {{if .PageIsAdminDefaultHooksNew}}
- {{$CustomHeaderTitle = ctx.Locale.Tr "admin.defaulthooks.add_webhook"}}
- {{else if .PageIsAdminSystemHooksNew}}
- {{$CustomHeaderTitle = ctx.Locale.Tr "admin.systemhooks.add_webhook"}}
- {{else if .Webhook.IsSystemWebhook}}
- {{$CustomHeaderTitle = ctx.Locale.Tr "admin.systemhooks.update_webhook"}}
- {{end}}
- {{template "webhook/new" (dict "ctxData" . "CustomHeaderTitle" $CustomHeaderTitle)}}
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/hooks.tmpl b/admin/hooks.tmpl
deleted file mode 100644
index c77d27d..0000000
--- a/admin/hooks.tmpl
+++ /dev/null
@@ -1,9 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin hooks")}}
-
-
- {{template "repo/settings/webhook/base_list" .SystemWebhooks}}
- {{template "repo/settings/webhook/base_list" .DefaultWebhooks}}
-
- {{template "repo/settings/webhook/delete_modal" .}}
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/layout_footer.tmpl b/admin/layout_footer.tmpl
deleted file mode 100644
index 8d6e564..0000000
--- a/admin/layout_footer.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{if false}}{{/* to make html structure "likely" complete to prevent IDE warnings */}}
-
-
-
- {{/* block: admin-setting-content */}}
-{{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/admin/layout_head.tmpl b/admin/layout_head.tmpl
deleted file mode 100644
index 7cc6624..0000000
--- a/admin/layout_head.tmpl
+++ /dev/null
@@ -1,13 +0,0 @@
-{{template "base/head" .ctxData}}
-
-
- {{template "admin/navbar" .ctxData}}
-
- {{template "base/alert" .ctxData}}
- {{/* block: admin-setting-content */}}
-
-{{if false}}{{/* to make html structure "likely" complete to prevent IDE warnings */}}
-
-
-
-{{end}}
diff --git a/admin/navbar.tmpl b/admin/navbar.tmpl
deleted file mode 100644
index 1b3b9d6..0000000
--- a/admin/navbar.tmpl
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
diff --git a/admin/notice.tmpl b/admin/notice.tmpl
deleted file mode 100644
index 68703cc..0000000
--- a/admin/notice.tmpl
+++ /dev/null
@@ -1,68 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin notice")}}
-
-
-
- {{template "base/paginate" .}}
-
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/org/list.tmpl b/admin/org/list.tmpl
deleted file mode 100644
index 987ceab..0000000
--- a/admin/org/list.tmpl
+++ /dev/null
@@ -1,76 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
-
-
-
-
-
-
-
-
-
- ID{{SortArrow "oldest" "newest" $.SortType false}}
-
- {{ctx.Locale.Tr "admin.orgs.name"}}
- {{SortArrow "alphabetically" "reversealphabetically" $.SortType true}}
-
- {{ctx.Locale.Tr "admin.orgs.teams"}}
- {{ctx.Locale.Tr "admin.orgs.members"}}
- {{ctx.Locale.Tr "admin.users.repos"}}
-
- {{ctx.Locale.Tr "admin.users.created"}}
- {{SortArrow "recentupdate" "leastupdate" $.SortType false}}
-
-
-
-
-
- {{range .Users}}
-
- {{.ID}}
-
- {{.Name}}
- {{if .Visibility.IsPrivate}}
- {{svg "octicon-lock"}}
- {{end}}
- {{if eq .Type 3}}{{/* Reserved organization */}}
- {{ctx.Locale.Tr "admin.users.reserved"}}
- {{end}}
-
- {{.NumTeams}}
- {{.NumMembers}}
- {{.NumRepos}}
- {{DateTime "short" .CreatedUnix}}
- {{svg "octicon-pencil"}}
-
- {{end}}
-
-
-
-
- {{template "base/paginate" .}}
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/packages/list.tmpl b/admin/packages/list.tmpl
deleted file mode 100644
index d1d77b6..0000000
--- a/admin/packages/list.tmpl
+++ /dev/null
@@ -1,96 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
-
-
-
-
-
- {{template "shared/search/input" dict "Value" .Query}}
-
- {{ctx.Locale.Tr "packages.filter.type"}}
- {{ctx.Locale.Tr "packages.filter.type.all"}}
- {{range $type := .AvailableTypes}}
- {{$type.Name}}
- {{end}}
-
- {{template "shared/search/button"}}
-
-
-
-
-
-
-
- ID
- {{ctx.Locale.Tr "admin.packages.owner"}}
- {{ctx.Locale.Tr "admin.packages.type"}}
-
- {{ctx.Locale.Tr "admin.packages.name"}}
- {{SortArrow "name_asc" "name_desc" .SortType false}}
-
-
- {{ctx.Locale.Tr "admin.packages.version"}}
- {{SortArrow "version_desc" "version_asc" .SortType false}}
-
- {{ctx.Locale.Tr "admin.packages.creator"}}
- {{ctx.Locale.Tr "admin.packages.repository"}}
- {{ctx.Locale.Tr "admin.packages.size"}}
-
- {{ctx.Locale.Tr "admin.packages.published"}}
- {{SortArrow "created_asc" "created_desc" .SortType true}}
-
- {{ctx.Locale.Tr "admin.notices.op"}}
-
-
-
- {{range .PackageDescriptors}}
-
- {{.Version.ID}}
-
- {{.Owner.Name}}
- {{if .Owner.Visibility.IsPrivate}}
- {{svg "octicon-lock"}}
- {{end}}
-
- {{.Package.Type.Name}}
- {{.Package.Name}}
- {{.Version.Version}}
- {{.Creator.Name}}
-
- {{if .Repository}}
- {{.Repository.Name}}
- {{end}}
-
- {{FileSize .CalculateBlobSize}}
- {{DateTime "short" .Version.CreatedUnix}}
- {{svg "octicon-trash"}}
-
- {{end}}
-
-
-
-
- {{template "base/paginate" .}}
-
-
-
-
-
- {{ctx.Locale.Tr "packages.settings.delete.notice" (` `|SafeHTML) (` `|SafeHTML)}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/queue.tmpl b/admin/queue.tmpl
deleted file mode 100644
index 1be35cf..0000000
--- a/admin/queue.tmpl
+++ /dev/null
@@ -1,36 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.monitor.queue.name"}}
- {{ctx.Locale.Tr "admin.monitor.queue.type"}}
- {{ctx.Locale.Tr "admin.monitor.queue.exemplar"}}
- {{ctx.Locale.Tr "admin.monitor.queue.numberworkers"}}
- {{ctx.Locale.Tr "admin.monitor.queue.activeworkers"}}
- {{ctx.Locale.Tr "admin.monitor.queue.numberinqueue"}}
-
-
-
-
- {{range $qid, $q := .Queues}}
-
- {{$q.GetName}}
- {{$q.GetType}}
- {{$q.GetItemTypeName}}
- {{$q.GetWorkerNumber}}
- {{$q.GetWorkerActiveNumber}}
- {{$sum := $q.GetQueueItemNumber}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}}
- {{ctx.Locale.Tr "admin.monitor.queue.review_add"}}
-
- {{end}}
-
-
-
-
-{{template "admin/layout_footer" .}}
-
diff --git a/admin/queue_manage.tmpl b/admin/queue_manage.tmpl
deleted file mode 100644
index dc0196f..0000000
--- a/admin/queue_manage.tmpl
+++ /dev/null
@@ -1,61 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.monitor.queue.name"}}
- {{ctx.Locale.Tr "admin.monitor.queue.type"}}
- {{ctx.Locale.Tr "admin.monitor.queue.exemplar"}}
- {{ctx.Locale.Tr "admin.monitor.queue.numberworkers"}}
- {{ctx.Locale.Tr "admin.monitor.queue.activeworkers"}}
- {{ctx.Locale.Tr "admin.monitor.queue.maxnumberworkers"}}
- {{ctx.Locale.Tr "admin.monitor.queue.numberinqueue"}}
-
-
-
-
- {{.Queue.GetName}}
- {{.Queue.GetType}}
- {{.Queue.GetItemTypeName}}
- {{.Queue.GetWorkerNumber}}
- {{.Queue.GetWorkerActiveNumber}}
- {{.Queue.GetWorkerMaxNumber}}
-
- {{$sum := .Queue.GetQueueItemNumber}}
- {{if lt $sum 0}}
- -
- {{else}}
- {{$sum}}
-
- {{$.CsrfTokenHtml}}
- {{ctx.Locale.Tr "admin.monitor.queue.settings.remove_all_items"}}
-
- {{end}}
-
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "admin.monitor.queue.settings.desc"}}
-
- {{$.CsrfTokenHtml}}
-
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/repo/list.tmpl b/admin/repo/list.tmpl
deleted file mode 100644
index 4b27d87..0000000
--- a/admin/repo/list.tmpl
+++ /dev/null
@@ -1,110 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin")}}
-
-
-
- {{template "shared/repo_search" .}}
-
-
-
-
-
- ID{{SortArrow "oldest" "newest" $.SortType false}}
- {{ctx.Locale.Tr "admin.repos.owner"}}
-
- {{ctx.Locale.Tr "admin.repos.name"}}
- {{SortArrow "alphabetically" "reversealphabetically" $.SortType false}}
-
- {{ctx.Locale.Tr "repo.watchers"}}
-
- {{ctx.Locale.Tr "repo.stars"}}
- {{SortArrow "moststars" "feweststars" $.SortType false}}
-
-
- {{ctx.Locale.Tr "repo.forks"}}
- {{SortArrow "mostforks" "fewestforks" $.SortType false}}
-
- {{ctx.Locale.Tr "admin.repos.issues"}}
-
- {{ctx.Locale.Tr "admin.repos.size"}}
- {{SortArrow "gitsize" "reversegitsize" $.SortType false}}
-
-
- {{ctx.Locale.Tr "admin.repos.lfs_size"}}
- {{SortArrow "lfssize" "reverselfssize" $.SortType false}}
-
- {{ctx.Locale.Tr "admin.auths.updated"}}
- {{ctx.Locale.Tr "admin.users.created"}}
- {{ctx.Locale.Tr "admin.notices.op"}}
-
-
-
- {{range .Repos}}
-
- {{.ID}}
-
- {{.Owner.Name}}
- {{if .Owner.Visibility.IsPrivate}}
- {{svg "octicon-lock"}}
- {{end}}
-
-
- {{.Name}}
- {{if .IsArchived}}
- {{ctx.Locale.Tr "repo.desc.archived"}}
- {{end}}
- {{if .IsPrivate}}
- {{ctx.Locale.Tr "repo.desc.private"}}
- {{else}}
- {{if .Owner.Visibility.IsPrivate}}
- {{ctx.Locale.Tr "repo.desc.internal"}}
- {{end}}
- {{end}}
- {{if .IsTemplate}}
- {{ctx.Locale.Tr "repo.desc.template"}}
- {{end}}
- {{if eq .ObjectFormatName "sha256"}}
- {{ctx.Locale.Tr "repo.desc.sha256"}}
- {{end}}
- {{if .IsMirror}}
- {{svg "octicon-mirror"}}
- {{else if .IsFork}}
- {{svg "octicon-repo-forked"}}
- {{end}}
-
- {{.NumWatches}}
- {{.NumStars}}
- {{.NumForks}}
- {{.NumIssues}}
- {{FileSize .GitSize}}
- {{FileSize .LFSSize}}
- {{DateTime "short" .UpdatedUnix}}
- {{DateTime "short" .CreatedUnix}}
- {{svg "octicon-trash"}}
-
- {{end}}
-
-
-
-
- {{template "base/paginate" .}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.delete_desc"}}
- {{ctx.Locale.Tr "repo.settings.delete_notices_2" (`
`|SafeHTML)}}
- {{ctx.Locale.Tr "repo.settings.delete_notices_fork_1"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/repo/unadopted.tmpl b/admin/repo/unadopted.tmpl
deleted file mode 100644
index a95f6b5..0000000
--- a/admin/repo/unadopted.tmpl
+++ /dev/null
@@ -1,75 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin")}}
-
-
-
-
-
-
-
- {{template "shared/search/button"}}
-
-
-
- {{if .search}}
-
- {{if .Dirs}}
-
- {{range $dirI, $dir := .Dirs}}
-
-
{{svg "octicon-file-directory-fill"}} {{$dir}}
-
-
{{svg "octicon-plus"}} {{ctx.Locale.Tr "repo.adopt_preexisting_label"}}
-
-
-
-
{{ctx.Locale.Tr "repo.adopt_preexisting_content" $dir}}
-
-
- {{$.CsrfTokenHtml}}
-
-
-
-
- {{template "base/modal_actions_confirm"}}
-
-
-
{{svg "octicon-x"}} {{ctx.Locale.Tr "repo.delete_preexisting_label"}}
-
-
-
-
{{ctx.Locale.Tr "repo.delete_preexisting_content" $dir}}
-
-
- {{$.CsrfTokenHtml}}
-
-
-
-
- {{template "base/modal_actions_confirm"}}
-
-
-
-
- {{end}}
-
- {{template "base/paginate" .}}
- {{else}}
-
- {{ctx.Locale.Tr "admin.repos.unadopted.no_more"}}
-
- {{template "base/paginate" .}}
- {{end}}
-
- {{end}}
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/runners/edit.tmpl b/admin/runners/edit.tmpl
deleted file mode 100644
index 1165c84..0000000
--- a/admin/runners/edit.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin runners")}}
-
- {{template "shared/actions/runner_edit" .}}
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/self_check.tmpl b/admin/self_check.tmpl
deleted file mode 100644
index b249bf2..0000000
--- a/admin/self_check.tmpl
+++ /dev/null
@@ -1,52 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin")}}
-
-
-
-
- {{if .StartupProblems}}
-
-
-
{{ctx.Locale.Tr "admin.self_check.startup_warnings"}}
-
{{range .StartupProblems}}{{.}} {{end}}
-
-
- {{end}}
-
-
-
- {{if .DatabaseCheckHasProblems}}
-
- {{if .DatabaseType.IsMySQL}}
-
{{ctx.Locale.Tr "admin.self_check.database_fix_mysql"}}
- {{else if .DatabaseType.IsMSSQL}}
-
{{ctx.Locale.Tr "admin.self_check.database_fix_mssql"}}
- {{end}}
- {{if .DatabaseCheckCollationMismatch}}
-
{{ctx.Locale.Tr "admin.self_check.database_collation_mismatch" .DatabaseCheckResult.ExpectedCollation}}
- {{end}}
- {{if .DatabaseCheckCollationCaseInsensitive}}
-
{{ctx.Locale.Tr "admin.self_check.database_collation_case_insensitive" .DatabaseCheckResult.DatabaseCollation}}
- {{end}}
- {{if .DatabaseCheckInconsistentCollationColumns}}
-
-
- {{ctx.Locale.Tr "admin.self_check.database_inconsistent_collation_columns" .DatabaseCheckResult.DatabaseCollation}}
-
- {{range .DatabaseCheckInconsistentCollationColumns}}
- {{.}}
- {{end}}
-
-
-
- {{end}}
-
- {{end}}
- {{/* only shown when there is no visible "self-check-problem" */}}
-
- {{ctx.Locale.Tr "admin.self_check.no_problem_found"}}
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/stacktrace-row.tmpl b/admin/stacktrace-row.tmpl
deleted file mode 100644
index 694bf56..0000000
--- a/admin/stacktrace-row.tmpl
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
- {{if eq .Process.Type "request"}}
- {{svg "octicon-globe" 16}}
- {{else if eq .Process.Type "system"}}
- {{svg "octicon-cpu" 16}}
- {{else if eq .Process.Type "normal"}}
- {{svg "octicon-terminal" 16}}
- {{else}}
- {{svg "octicon-code" 16}}
- {{end}}
-
-
-
-
{{if ne .Process.Type "none"}}{{TimeSince .Process.Start ctx.Locale}}{{end}}
-
-
-
- {{if .Process.Stacks}}
-
- {{range .Process.Stacks}}
-
-
-
-
-
-
- {{range .Labels}}
-
- {{end}}
-
-
-
-
- {{range .Entry}}
-
-
{{svg "octicon-dot-fill" 16}}
-
-
-
{{.File}}:{{.Line}}
-
-
- {{end}}
-
-
-
- {{end}}
-
- {{end}}
-
- {{if .Process.Children}}
-
- {{range .Process.Children}}
- {{template "admin/stacktrace-row" dict "Process" . "root" $.root}}
- {{end}}
-
- {{end}}
-
-
diff --git a/admin/stacktrace.tmpl b/admin/stacktrace.tmpl
deleted file mode 100644
index e324570..0000000
--- a/admin/stacktrace.tmpl
+++ /dev/null
@@ -1,48 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.monitor.download_diagnosis_report"}}
- {{ctx.Locale.Tr "tool.raw_seconds"}}
-
-
-
-
-
-
-
-
- {{if .ProcessStacks}}
-
-
- {{range .ProcessStacks}}
- {{template "admin/stacktrace-row" dict "Process" . "root" $}}
- {{end}}
-
-
- {{end}}
-
-
-
-
-
-
{{ctx.Locale.Tr "admin.monitor.process.cancel_notices" (` `|SafeHTML)}}
-
{{ctx.Locale.Tr "admin.monitor.process.cancel_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/stats.tmpl b/admin/stats.tmpl
deleted file mode 100644
index 04fa862..0000000
--- a/admin/stats.tmpl
+++ /dev/null
@@ -1,17 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
-
-
-
-
- {{range $statsKey := .StatsKeys}}
-
- {{$statsKey}}
- {{index $.StatsCounter $statsKey}}
-
- {{end}}
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/system_status.tmpl b/admin/system_status.tmpl
deleted file mode 100644
index 7b5c9be..0000000
--- a/admin/system_status.tmpl
+++ /dev/null
@@ -1,62 +0,0 @@
-
- {{ctx.Locale.Tr "admin.dashboard.server_uptime"}}
- {{.SysStatus.StartTime}}
- {{ctx.Locale.Tr "admin.dashboard.current_goroutine"}}
- {{.SysStatus.NumGoroutine}}
-
- {{ctx.Locale.Tr "admin.dashboard.current_memory_usage"}}
- {{.SysStatus.MemAllocated}}
- {{ctx.Locale.Tr "admin.dashboard.total_memory_allocated"}}
- {{.SysStatus.MemTotal}}
- {{ctx.Locale.Tr "admin.dashboard.memory_obtained"}}
- {{.SysStatus.MemSys}}
- {{ctx.Locale.Tr "admin.dashboard.pointer_lookup_times"}}
- {{.SysStatus.Lookups}}
- {{ctx.Locale.Tr "admin.dashboard.memory_allocate_times"}}
- {{.SysStatus.MemMallocs}}
- {{ctx.Locale.Tr "admin.dashboard.memory_free_times"}}
- {{.SysStatus.MemFrees}}
-
- {{ctx.Locale.Tr "admin.dashboard.current_heap_usage"}}
- {{.SysStatus.HeapAlloc}}
- {{ctx.Locale.Tr "admin.dashboard.heap_memory_obtained"}}
- {{.SysStatus.HeapSys}}
- {{ctx.Locale.Tr "admin.dashboard.heap_memory_idle"}}
- {{.SysStatus.HeapIdle}}
- {{ctx.Locale.Tr "admin.dashboard.heap_memory_in_use"}}
- {{.SysStatus.HeapInuse}}
- {{ctx.Locale.Tr "admin.dashboard.heap_memory_released"}}
- {{.SysStatus.HeapReleased}}
- {{ctx.Locale.Tr "admin.dashboard.heap_objects"}}
- {{.SysStatus.HeapObjects}}
-
- {{ctx.Locale.Tr "admin.dashboard.bootstrap_stack_usage"}}
- {{.SysStatus.StackInuse}}
- {{ctx.Locale.Tr "admin.dashboard.stack_memory_obtained"}}
- {{.SysStatus.StackSys}}
- {{ctx.Locale.Tr "admin.dashboard.mspan_structures_usage"}}
- {{.SysStatus.MSpanInuse}}
- {{ctx.Locale.Tr "admin.dashboard.mspan_structures_obtained"}}
- {{.SysStatus.MSpanSys}}
- {{ctx.Locale.Tr "admin.dashboard.mcache_structures_usage"}}
- {{.SysStatus.MCacheInuse}}
- {{ctx.Locale.Tr "admin.dashboard.mcache_structures_obtained"}}
- {{.SysStatus.MCacheSys}}
- {{ctx.Locale.Tr "admin.dashboard.profiling_bucket_hash_table_obtained"}}
- {{.SysStatus.BuckHashSys}}
- {{ctx.Locale.Tr "admin.dashboard.gc_metadata_obtained"}}
- {{.SysStatus.GCSys}}
- {{ctx.Locale.Tr "admin.dashboard.other_system_allocation_obtained"}}
- {{.SysStatus.OtherSys}}
-
- {{ctx.Locale.Tr "admin.dashboard.next_gc_recycle"}}
- {{.SysStatus.NextGC}}
- {{ctx.Locale.Tr "admin.dashboard.last_gc_time"}}
- {{.SysStatus.LastGCTime}}
- {{ctx.Locale.Tr "admin.dashboard.total_gc_pause"}}
- {{.SysStatus.PauseTotalNs}}
- {{ctx.Locale.Tr "admin.dashboard.last_gc_pause"}}
- {{.SysStatus.PauseNs}}
- {{ctx.Locale.Tr "admin.dashboard.gc_times"}}
- {{.SysStatus.NumGC}}
-
diff --git a/admin/user/edit.tmpl b/admin/user/edit.tmpl
deleted file mode 100644
index 41b00de..0000000
--- a/admin/user/edit.tmpl
+++ /dev/null
@@ -1,231 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin edit user")}}
-
-
-
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "username"}}
-
-
-
-
-
{{ctx.Locale.Tr "admin.users.auth_source"}}
-
-
-
{{ctx.Locale.Tr "admin.users.local"}}
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "settings.visibility"}}
-
- {{if .User.Visibility.IsPublic}}
{{end}}
- {{if .User.Visibility.IsLimited}}
{{end}}
- {{if .User.Visibility.IsPrivate}}
{{end}}
-
- {{if .User.Visibility.IsPublic}}{{ctx.Locale.Tr "settings.visibility.public"}}{{end}}
- {{if .User.Visibility.IsLimited}}{{ctx.Locale.Tr "settings.visibility.limited"}}{{end}}
- {{if .User.Visibility.IsPrivate}}{{ctx.Locale.Tr "settings.visibility.private"}}{{end}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- {{ctx.Locale.Tr "admin.users.auth_login_name"}}
-
-
-
- {{ctx.Locale.Tr "settings.full_name"}}
-
-
-
- {{ctx.Locale.Tr "email"}}
-
-
-
-
{{ctx.Locale.Tr "password"}}
-
-
{{ctx.Locale.Tr "admin.users.password_helper"}}
-
-
-
-
{{ctx.Locale.Tr "settings.language"}}
-
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
{{range .AllLangs}}{{if eq $.User.Language .Lang}}{{.Name}}{{end}}{{end}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.website"}}
-
-
-
- {{ctx.Locale.Tr "settings.location"}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "admin.users.max_repo_creation"}}
-
-
{{ctx.Locale.Tr "admin.users.max_repo_creation_desc"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "admin.users.is_activated"}}
-
-
-
-
-
- {{ctx.Locale.Tr "admin.users.prohibit_login"}}
-
-
-
-
-
- {{ctx.Locale.Tr "admin.users.is_admin"}}
-
-
-
-
-
- {{ctx.Locale.Tr "admin.users.is_restricted"}}
-
-
-
-
-
- {{ctx.Locale.Tr "admin.users.allow_git_hook"}}
-
-
-
-
-
- {{ctx.Locale.Tr "admin.users.allow_import_local"}}
-
-
-
- {{if not .DisableRegularOrgCreation}}
-
-
- {{ctx.Locale.Tr "admin.users.allow_create_organization"}}
-
-
-
- {{end}}
-
- {{if .TwoFactorEnabled}}
-
-
-
- {{ctx.Locale.Tr "admin.users.reset_2fa"}}
-
-
-
- {{end}}
-
-
-
-
- {{ctx.Locale.Tr "admin.users.update_profile"}}
- {{ctx.Locale.Tr "admin.users.delete_account"}}
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "settings.delete_account_desc"}}
- {{$.CsrfTokenHtml}}
-
-
- {{ctx.Locale.Tr "admin.users.purge"}}
-
-
-
{{ctx.Locale.Tr "admin.users.purge_help"}}
-
-
- {{template "base/modal_actions_confirm" .}}
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/user/list.tmpl b/admin/user/list.tmpl
deleted file mode 100644
index 528d047..0000000
--- a/admin/user/list.tmpl
+++ /dev/null
@@ -1,119 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
-
-
-
-
-
-
-
-
- {{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.user_kind")}}
-
-
-
-
-
-
- ID{{SortArrow "oldest" "newest" .SortType false}}
-
- {{ctx.Locale.Tr "admin.users.name"}}
- {{SortArrow "alphabetically" "reversealphabetically" $.SortType true}}
-
- {{ctx.Locale.Tr "email"}}
- {{ctx.Locale.Tr "admin.users.activated"}}
- {{ctx.Locale.Tr "admin.users.restricted"}}
- {{ctx.Locale.Tr "admin.users.2fa"}}
- {{ctx.Locale.Tr "admin.users.created"}}
-
- {{ctx.Locale.Tr "admin.users.last_login"}}
- {{SortArrow "lastlogin" "reverselastlogin" $.SortType false}}
-
-
-
-
-
- {{range .Users}}
-
- {{.ID}}
-
- {{.Name}}
- {{if .IsAdmin}}
- {{ctx.Locale.Tr "admin.users.admin"}}
- {{else if eq 2 .Type}}{{/* Reserved user */}}
- {{ctx.Locale.Tr "admin.users.reserved"}}
- {{else if eq 4 .Type}}{{/* Bot "user" */}}
- {{ctx.Locale.Tr "admin.users.bot"}}
- {{else if eq 5 .Type}}{{/* Remote user */}}
- {{ctx.Locale.Tr "admin.users.remote"}}
- {{end}}
-
- {{.Email}}
- {{if .IsActive}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{if .IsRestricted}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{if index $.UsersTwoFaStatus .ID}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{DateTime "short" .CreatedUnix}}
- {{if .LastLoginUnix}}
- {{DateTime "short" .LastLoginUnix}}
- {{else}}
- {{ctx.Locale.Tr "admin.users.never_login"}}
- {{end}}
-
-
-
-
- {{end}}
-
-
-
-
- {{template "base/paginate" .}}
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/user/new.tmpl b/admin/user/new.tmpl
deleted file mode 100644
index b04ebc4..0000000
--- a/admin/user/new.tmpl
+++ /dev/null
@@ -1,90 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin new user")}}
-
-
-
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
-
-
{{ctx.Locale.Tr "admin.users.auth_source"}}
-
-
-
{{ctx.Locale.Tr "admin.users.local"}}
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "settings.visibility"}}
-
-
-
- {{if .DefaultUserVisibilityMode.IsPublic}}{{ctx.Locale.Tr "settings.visibility.public"}}{{end}}
- {{if .DefaultUserVisibilityMode.IsLimited}}{{ctx.Locale.Tr "settings.visibility.limited"}}{{end}}
- {{if .DefaultUserVisibilityMode.IsPrivate}}{{ctx.Locale.Tr "settings.visibility.private"}}{{end}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- {{ctx.Locale.Tr "admin.users.auth_login_name"}}
-
-
-
- {{ctx.Locale.Tr "username"}}
-
-
-
- {{ctx.Locale.Tr "email"}}
-
-
-
- {{ctx.Locale.Tr "password"}}
-
-
-
-
-
- {{ctx.Locale.Tr "auth.allow_password_change"}}
-
-
-
-
-
- {{if .CanSendEmail}}
-
-
- {{ctx.Locale.Tr "admin.users.send_register_notify"}}
-
-
-
- {{end}}
-
-
- {{ctx.Locale.Tr "admin.users.new_account"}}
-
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/user/view.tmpl b/admin/user/view.tmpl
deleted file mode 100644
index 21943a8..0000000
--- a/admin/user/view.tmpl
+++ /dev/null
@@ -1,48 +0,0 @@
-{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin view user")}}
-
-
-
-
-
-
- {{template "admin/user/view_details" .}}
-
-
-
-
-
- {{template "admin/user/view_emails" .}}
-
-
-
-
-
- {{template "explore/repo_list" .}}
-
-
-
- {{template "explore/user_list" .}}
-
-
-
-{{template "admin/layout_footer" .}}
diff --git a/admin/user/view_details.tmpl b/admin/user/view_details.tmpl
deleted file mode 100644
index be2f32b..0000000
--- a/admin/user/view_details.tmpl
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
- {{ctx.AvatarUtils.Avatar .User 48}}
-
-
-
- {{template "shared/user/name" .User}}
- {{if .User.IsAdmin}}
- {{ctx.Locale.Tr "admin.users.admin"}}
- {{end}}
-
-
- {{ctx.Locale.Tr "admin.users.auth_source"}}:
- {{if eq .LoginSource.ID 0}}
- {{ctx.Locale.Tr "admin.users.local"}}
- {{else}}
- {{.LoginSource.Name}}
- {{end}}
-
-
- {{ctx.Locale.Tr "admin.users.activated"}}:
- {{if .User.IsActive}}
- {{svg "octicon-check"}}
- {{else}}
- {{svg "octicon-x"}}
- {{end}}
-
-
- {{ctx.Locale.Tr "admin.users.restricted"}}:
- {{if .User.IsRestricted}}
- {{svg "octicon-check"}}
- {{else}}
- {{svg "octicon-x"}}
- {{end}}
-
-
- {{ctx.Locale.Tr "settings.visibility"}}:
- {{if .User.Visibility.IsPublic}}{{ctx.Locale.Tr "settings.visibility.public"}}{{end}}
- {{if .User.Visibility.IsLimited}}{{ctx.Locale.Tr "settings.visibility.limited"}}{{end}}
- {{if .User.Visibility.IsPrivate}}{{ctx.Locale.Tr "settings.visibility.private"}}{{end}}
-
-
- {{ctx.Locale.Tr "admin.users.2fa"}}:
- {{if .TwoFactorEnabled}}
- {{svg "octicon-check"}}
- {{else}}
- {{svg "octicon-x"}}
- {{end}}
-
- {{if .User.Language}}
-
-
- {{ctx.Locale.Tr "settings.language"}}:
- {{range .AllLangs}}{{if eq $.User.Language .Lang}}{{.Name}}{{end}}{{end}}
-
-
- {{end}}
- {{if .User.Location}}
-
- {{svg "octicon-location"}}{{.User.Location}}
-
- {{end}}
- {{if .User.Website}}
-
-
- {{svg "octicon-link"}}
- {{.User.Website}}
-
-
- {{end}}
-
-
-
diff --git a/admin/user/view_emails.tmpl b/admin/user/view_emails.tmpl
deleted file mode 100644
index 22ce305..0000000
--- a/admin/user/view_emails.tmpl
+++ /dev/null
@@ -1,19 +0,0 @@
-
- {{range .Emails}}
-
-
-
- {{.Email}}
- {{if .IsPrimary}}
-
{{ctx.Locale.Tr "settings.primary"}}
- {{end}}
- {{if .IsActivated}}
-
{{ctx.Locale.Tr "settings.activated"}}
- {{else}}
-
{{ctx.Locale.Tr "settings.requires_activation"}}
- {{end}}
-
-
-
- {{end}}
-
diff --git a/api/packages/pypi/simple.tmpl b/api/packages/pypi/simple.tmpl
deleted file mode 100644
index 85aa730..0000000
--- a/api/packages/pypi/simple.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
- Links for {{.PackageDescriptor.Package.Name}}
-
-
- {{- /* PEP 503 – Simple Repository API: https://peps.python.org/pep-0503/ */ -}}
- Links for {{.PackageDescriptor.Package.Name}}
- {{range .PackageDescriptors}}
- {{$pd := .}}
- {{range .Files}}
- {{.File.Name}}
- {{end}}
- {{end}}
-
-
diff --git a/base/alert.tmpl b/base/alert.tmpl
deleted file mode 100644
index 760d3bf..0000000
--- a/base/alert.tmpl
+++ /dev/null
@@ -1,20 +0,0 @@
-{{if .Flash.ErrorMsg}}
-
-
{{.Flash.ErrorMsg | SanitizeHTML}}
-
-{{end}}
-{{if .Flash.SuccessMsg}}
-
-
{{.Flash.SuccessMsg | SanitizeHTML}}
-
-{{end}}
-{{if .Flash.InfoMsg}}
-
-
{{.Flash.InfoMsg | SanitizeHTML}}
-
-{{end}}
-{{if .Flash.WarningMsg}}
-
-
{{.Flash.WarningMsg | SanitizeHTML}}
-
-{{end}}
diff --git a/base/alert_details.tmpl b/base/alert_details.tmpl
deleted file mode 100644
index 6801c82..0000000
--- a/base/alert_details.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-{{.Message}}
-
- {{.Summary}}
-
- {{.Details | SanitizeHTML}}
-
-
diff --git a/base/disable_form_autofill.tmpl b/base/disable_form_autofill.tmpl
deleted file mode 100644
index 6f06395..0000000
--- a/base/disable_form_autofill.tmpl
+++ /dev/null
@@ -1,31 +0,0 @@
-{{/*
-Why we need to disable form autofill:
-1. Many pages contain different password inputs for different usages, eg: repo setting, autofill will make a mess.
-2. We have `areYouSure` confirm dialog if a user leaves a pages without submit.
-Autofill will make the form changed even if the user didn't input anything. Then the user keeps seeing annoying confirm dialog.
-
-In history, Gitea put ` ` in forms to bypass the autofill,
-but there were still many forms suffered the autofill problem.
-
-Now we improve it.
-
-Solutions which do NOT work:
-1. Adding `autocomplete=off` doesn't help. New Chrome completely ignores it.
-2. Use a JavaScript to run in a few seconds later after the page is loaded to process the autofilled inputs, it doesn't work.
-Because for security reason, the inputs won't be filled before the user makes an interaction in the page.
-So we can not predict the correct time to run the JavaScript code.
-
-Solutions which work:
-1. Some hacky methods like: https://github.com/matteobad/detect-autofill
-2. This solution: use invisible inputs. Be aware of:
-(a) The inputs must be at the beginning of the form, and can not be hidden.
-(b) The input for username must have a valid name.
-(c) There should be no negative word (eg: fake) in the `name` attribute.
-(d) Chrome seems to use a weighted algorithm to choose an input to fill text, so the using "username" as input name is better than using "user".
-We make the names of these dummy inputs begin with an underline to indicate it is for special usage,
-and these dummy form values won't be used by backend code.
-*/}}
-
-
-
-
diff --git a/base/footer.tmpl b/base/footer.tmpl
deleted file mode 100644
index fed426a..0000000
--- a/base/footer.tmpl
+++ /dev/null
@@ -1,20 +0,0 @@
-{{if false}}
- {{/* to make html structure "likely" complete to prevent IDE warnings */}}
-
-
-
-{{end}}
-
- {{template "custom/body_inner_post" .}}
-
-
-
- {{template "custom/body_outer_post" .}}
-
- {{template "base/footer_content" .}}
-
-
-
- {{template "custom/footer" .}}
-
-
diff --git a/base/head.tmpl b/base/head.tmpl
deleted file mode 100644
index 174267f..0000000
--- a/base/head.tmpl
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
- {{if .Title}}{{.Title}} - {{end}}{{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}
- {{if .ManifestData}} {{end}}
-
-
-
-
-{{if .GoGetImport}}
-
-
-{{end}}
-{{if and .EnableFeed .FeedURL}}
-
-
-{{end}}
-
-
- {{template "base/head_script" .}}
-
-
-
- {{template "base/head_opengraph" .}}
- {{template "base/head_style" .}}
- {{template "custom/header" .}}
-
-
- {{template "custom/body_outer_pre" .}}
-
-
- {{ctx.Locale.Tr "enable_javascript"}}
-
- {{template "custom/body_inner_pre" .}}
-
- {{if not .PageIsInstall}}
- {{template "base/head_navbar" .}}
- {{end}}
-
-{{if false}}
- {{/* to make html structure "likely" complete to prevent IDE warnings */}}
-
-
-
-{{end}}
diff --git a/base/head_opengraph.tmpl b/base/head_opengraph.tmpl
deleted file mode 100644
index f1f3899..0000000
--- a/base/head_opengraph.tmpl
+++ /dev/null
@@ -1,47 +0,0 @@
-{{- /* og:description - a one to two sentence description of your object, maybe it only needs at most 300 bytes */ -}}
-{{if .PageIsUserProfile}}
-
-
-
-
- {{if .ContextUser.Description}}
-
- {{end}}
-{{else if .Repository}}
- {{if .Issue}}
-
-
- {{if .Issue.Content}}
-
- {{end}}
- {{else if or .PageIsDiff .IsViewFile}}
-
-
- {{if and .PageIsDiff .Commit}}
- {{- $commitMessageParts := StringUtils.Cut .Commit.Message "\n" -}}
- {{- $commitMessageBody := index $commitMessageParts 1 -}}
- {{- if $commitMessageBody -}}
-
- {{- end -}}
- {{end}}
- {{else}}
-
-
- {{if .Repository.Description}}
-
- {{end}}
- {{end}}
-
- {{if (.Repository.AvatarLink ctx)}}
-
- {{else}}
-
- {{end}}
-{{else}}
-
-
-
-
-
-{{end}}
-
diff --git a/base/head_script.tmpl b/base/head_script.tmpl
deleted file mode 100644
index 22e08e9..0000000
--- a/base/head_script.tmpl
+++ /dev/null
@@ -1,50 +0,0 @@
-{{/*
-==== DO NOT EDIT ====
-If you are customizing Gitea, please do not change this file.
-If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly.
-*/}}
-
-
diff --git a/base/head_style.tmpl b/base/head_style.tmpl
deleted file mode 100644
index f97e188..0000000
--- a/base/head_style.tmpl
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/base/markup_codepreview.tmpl b/base/markup_codepreview.tmpl
deleted file mode 100644
index a1a4f26..0000000
--- a/base/markup_codepreview.tmpl
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
- {{- range $idx, $line := .HighlightLines -}}
-
-
- {{- if $.EscapeStatus.Escaped -}}
- {{- $lineEscapeStatus := index $.LineEscapeStatus $idx -}}
- {{if $lineEscapeStatus.Escaped}} {{end}}
- {{- end}}
- {{$line.FormattedContent}}
{{/* only div works, span generates incorrect HTML structure */}}
-
- {{- end -}}
-
-
-
diff --git a/base/modal_actions_confirm.tmpl b/base/modal_actions_confirm.tmpl
deleted file mode 100644
index 9f7eb4a..0000000
--- a/base/modal_actions_confirm.tmpl
+++ /dev/null
@@ -1,27 +0,0 @@
-{{/*
-Two buttons (negative, positive):
-* ModalButtonTypes: "yes" (default) or "confirm"
-* ModalButtonCancelText
-* ModalButtonOkText
-
-Single danger button (GitHub-like):
-* ModalButtonDangerText "This action will destroy your data"
-
-The ".ok.button" and ".cancel.button" selectors are also used by Fomantic Modal internally
-*/}}
-
- {{if .ModalButtonDangerText}}
- {{.ModalButtonDangerText}}
- {{else}}
- {{$textNegitive := ctx.Locale.Tr "modal.no"}}
- {{$textPositive := ctx.Locale.Tr "modal.yes"}}
- {{if eq .ModalButtonTypes "confirm"}}
- {{$textNegitive = ctx.Locale.Tr "modal.cancel"}}
- {{$textPositive = ctx.Locale.Tr "modal.confirm"}}
- {{end}}
- {{if .ModalButtonCancelText}}{{$textNegitive = .ModalButtonCancelText}}{{end}}
- {{if .ModalButtonOkText}}{{$textPositive = .ModalButtonOkText}}{{end}}
- {{svg "octicon-x"}} {{$textNegitive}}
- {{svg "octicon-check"}} {{$textPositive}}
- {{end}}
-
diff --git a/base/paginate.tmpl b/base/paginate.tmpl
deleted file mode 100644
index 9a7a632..0000000
--- a/base/paginate.tmpl
+++ /dev/null
@@ -1,34 +0,0 @@
-{{$paginationParams := .Page.GetParams}}
-{{$paginationLink := $.Link}}
-{{if eq $paginationLink AppSubUrl}}{{$paginationLink = print $paginationLink "/"}}{{end}}
-{{with .Page.Paginater}}
- {{if gt .TotalPages 1}}
-
-
-
- {{end}}
-{{end}}
diff --git a/custom/body_inner_post.tmpl b/custom/body_inner_post.tmpl
deleted file mode 100644
index e69de29..0000000
diff --git a/custom/body_inner_pre.tmpl b/custom/body_inner_pre.tmpl
deleted file mode 100644
index e69de29..0000000
diff --git a/custom/body_outer_post.tmpl b/custom/body_outer_post.tmpl
deleted file mode 100644
index e69de29..0000000
diff --git a/custom/body_outer_pre.tmpl b/custom/body_outer_pre.tmpl
deleted file mode 100644
index e69de29..0000000
diff --git a/custom/extra_links.tmpl b/custom/extra_links.tmpl
deleted file mode 100644
index e69de29..0000000
diff --git a/custom/extra_links_footer.tmpl b/custom/extra_links_footer.tmpl
deleted file mode 100644
index e69de29..0000000
diff --git a/custom/extra_tabs.tmpl b/custom/extra_tabs.tmpl
deleted file mode 100644
index e69de29..0000000
diff --git a/custom/footer.tmpl b/custom/footer.tmpl
deleted file mode 100644
index e69de29..0000000
diff --git a/custom/header.tmpl b/custom/header.tmpl
deleted file mode 100644
index e69de29..0000000
diff --git a/devtest/fetch-action.tmpl b/devtest/fetch-action.tmpl
deleted file mode 100644
index 66f41fc..0000000
--- a/devtest/fetch-action.tmpl
+++ /dev/null
@@ -1,44 +0,0 @@
-{{template "base/head" .}}
-
- {{template "base/alert" .}}
-
-
link-action
-
- Use "window.fetch" to send a request to backend, the request is defined in an "A" or "BUTTON" element.
- It might be renamed to "link-fetch-action" to match the "form-fetch-action".
-
-
- test action
- test with confirm
- test with risky confirm
-
-
-
-
form-fetch-action
-
Use "window.fetch" to send a form request to backend
-
-
- submit get
-
-
-
- check
- submit post
-
-
- bad action url
- submit test
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/devtest/flex-list.tmpl b/devtest/flex-list.tmpl
deleted file mode 100644
index 015ab1e..0000000
--- a/devtest/flex-list.tmpl
+++ /dev/null
@@ -1,115 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
Flex List (standalone)
-
-
-
-
- {{svg "octicon-info" 32}}
-
-
-
- Flex Item
-
- with label
-
-
-
- consists of leading/main/trailing part
-
-
- main part contains title and (multiple) body lines
-
-
-
-
- {{svg "octicon-alert" 14}} CJK文本测试
-
-
- {{svg "octicon-info" 14}} Button
-
-
- Button with long text
-
-
-
-
-
-
- {{svg "octicon-info" 32}}
-
-
-
- Very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong title
-
-
- consists of leading/main/trailing part
-
-
- Very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong content
- Truncate very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong content
-
-
-
-
- {{svg "octicon-alert" 12}} CJK文本测试
-
-
-
-
-
-
- {{svg "octicon-repo" 32}}
-
-
-
-
- when inside header, the trailing part will wrap below the title
-
-
-
-
-
-
-
-
Flex List (with "ui segment")
-
-
-
Flex List (with "ui segment")
-
-
-
-
If parent provides the padding/margin space:
-
-
-
item 1 (no padding top)
-
item 2 (no padding bottom)
-
-
-
-
-{{template "base/footer" .}}
diff --git a/devtest/fomantic-dropdown.tmpl b/devtest/fomantic-dropdown.tmpl
deleted file mode 100644
index 57a7c13..0000000
--- a/devtest/fomantic-dropdown.tmpl
+++ /dev/null
@@ -1,109 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
Dropdown
-
-
- search-input & flex-item in menu
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
- search ...
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
- {{svg "octicon-x" 14 "remove icon"}}
-
-
-
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
- {{svg "octicon-x" 14 "remove icon"}}
-
empty multiple dropdown
-
-
-
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
- {{svg "octicon-x" 14 "remove icon"}}
-
clearable search dropdown
-
-
-
-
-
-
Selection
-
- {{/* the "selection" class is optional, it will be added by JS automatically */}}
-
- a
- abcdefuvwxyz
- loooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
-
-
- loooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
- abcdefuvwxyz
- a
-
-
-
Dropdown Button (demo only without menu)
-
-
- mini dropdown
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
- tiny dropdown
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
- button dropdown
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- mini compact
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
- tiny compact
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
- button compact
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
-
Other button align with ...
-
- ... Dropdown Button
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/devtest/fomantic-modal.tmpl b/devtest/fomantic-modal.tmpl
deleted file mode 100644
index f31cdc1..0000000
--- a/devtest/fomantic-modal.tmpl
+++ /dev/null
@@ -1,73 +0,0 @@
-{{template "base/head" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- very long aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-
- {{template "base/modal_actions_confirm"}}
-
-
-
-
-
hello, this is the modal dialog content
- {{template "base/modal_actions_confirm" (dict "ModalButtonTypes" "confirm")}}
-
-
-
- {{svg "octicon-x" 16 "inside close"}}
-
-
hello, this is the modal dialog content, this is a dangerous operation
- {{template "base/modal_actions_confirm" (dict "ModalButtonDangerText" "I know and must do this is dangerous operation")}}
-
-
-{{template "base/footer" .}}
diff --git a/devtest/gitea-ui.tmpl b/devtest/gitea-ui.tmpl
deleted file mode 100644
index ea293fd..0000000
--- a/devtest/gitea-ui.tmpl
+++ /dev/null
@@ -1,207 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
-
Buttons
-
1 2 3
-
1 2 3
-
1 2 3
-
1 2 3
-
-
-
-
Tooltip
-
text with tooltip
-
text with interactive tooltip
-
-
-
-
Loading
-
loading ...
-
-
loading ...
-
loading ...
-
loading ...
-
loading ...
-
-
-
-
-
-
-
<overflow-menu>
-
-
-
-
-
GiteaAbsoluteDate
-
-
-
-
-
-
relative-time:
-
-
-
-
LocaleNumber
-
{{ctx.Locale.PrettyNumber 1}}
-
{{ctx.Locale.PrettyNumber 12}}
-
{{ctx.Locale.PrettyNumber 123}}
-
{{ctx.Locale.PrettyNumber 1234}}
-
{{ctx.Locale.PrettyNumber 12345}}
-
{{ctx.Locale.PrettyNumber 123456}}
-
{{ctx.Locale.PrettyNumber 1234567}}
-
-
-
-
TimeSince
-
Now: {{TimeSince .TimeNow ctx.Locale}}
-
5s past: {{TimeSince .TimePast5s ctx.Locale}}
-
5s future: {{TimeSince .TimeFuture5s ctx.Locale}}
-
2m past: {{TimeSince .TimePast2m ctx.Locale}}
-
2m future: {{TimeSince .TimeFuture2m ctx.Locale}}
-
1y past: {{TimeSince .TimePast1y ctx.Locale}}
-
1y future: {{TimeSince .TimeFuture1y ctx.Locale}}
-
-
-
-
SVG alignment
-
-
Text with SVG
-
{{svg "octicon-alert"}} {{svg "octicon-x"}} text (block)
-
{{svg "octicon-alert"}} {{svg "octicon-x"}} text
(inline)
-
-
{{svg "octicon-alert"}} flex item with very very very very very very very very long content
-
-
-
{{svg "octicon-alert"}} flex every line
-
{{svg "octicon-alert"}} flex every item
-
{{svg "octicon-alert"}} flex item with very very very very very very very very long content
-
-
-
Button with SVG
-
-
{{svg "octicon-alert" 24}} {{svg "octicon-x" 24}} text
-
-
{{svg "octicon-x" 16}} button with very very very very very very very very long text
-
-
-
Input with SVG
-
-
- {{svg "octicon-search"}}
-
-
-
-
-
-
-
Toast
-
- Show Info Toast
- Show Warning Toast
- Show Error Toast
-
-
-
-
-
ComboMarkdownEditor
-
ps: no JS code attached, so just a layout
- {{template "shared/combomarkdowneditor" .}}
-
-
-
Tailwind CSS Demo
-
- Button
-
-
-
-
-{{template "base/footer" .}}
diff --git a/devtest/label.tmpl b/devtest/label.tmpl
deleted file mode 100644
index c4b52a3..0000000
--- a/devtest/label.tmpl
+++ /dev/null
@@ -1,27 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
Label
-
- simple label
- red label
- green label
-
-
- basic label
- basic red label
- basic green label
-
-
- long content must be in a non-flex "gt-ellipsis" element, otherwise it won't get ellipsis. very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label
-
-
- very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label
-
-
- very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label
-
-
-
-{{template "base/footer" .}}
diff --git a/devtest/list.tmpl b/devtest/list.tmpl
deleted file mode 100644
index 90b1fcc..0000000
--- a/devtest/list.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-{{template "base/head" .}}
-
-
- {{range .SubNames}}
- {{.}}
- {{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/devtest/tmplerr-sub.tmpl b/devtest/tmplerr-sub.tmpl
deleted file mode 100644
index f7974eb..0000000
--- a/devtest/tmplerr-sub.tmpl
+++ /dev/null
@@ -1,3 +0,0 @@
-sub template triggers an executing error
-
- {{ctx.Locale.NoSuch "asdf"}}
diff --git a/devtest/tmplerr.tmpl b/devtest/tmplerr.tmpl
deleted file mode 100644
index dd938c8..0000000
--- a/devtest/tmplerr.tmpl
+++ /dev/null
@@ -1,12 +0,0 @@
-{{template "base/head" .}}
-
-
-
- hello hello hello hello hello hello hello hello hello hello
-
-
- {{template "devtest/tmplerr-sub" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/explore/code.tmpl b/explore/code.tmpl
deleted file mode 100644
index 039933f..0000000
--- a/explore/code.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{template "base/head" .}}
-
- {{template "explore/navbar" .}}
-
- {{template "shared/search/code/search" .}}
-
-
-{{template "base/footer" .}}
diff --git a/explore/navbar.tmpl b/explore/navbar.tmpl
deleted file mode 100644
index a157cd4..0000000
--- a/explore/navbar.tmpl
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/explore/repos.tmpl b/explore/repos.tmpl
deleted file mode 100644
index 53742bf..0000000
--- a/explore/repos.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{template "base/head" .}}
-
- {{template "explore/navbar" .}}
-
- {{template "shared/repo_search" .}}
- {{template "explore/repo_list" .}}
- {{template "base/paginate" .}}
-
-
-{{template "base/footer" .}}
diff --git a/explore/search.tmpl b/explore/search.tmpl
deleted file mode 100644
index 1d984a2..0000000
--- a/explore/search.tmpl
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
diff --git a/explore/user_list.tmpl b/explore/user_list.tmpl
deleted file mode 100644
index f2cf939..0000000
--- a/explore/user_list.tmpl
+++ /dev/null
@@ -1,33 +0,0 @@
-
- {{range .Users}}
-
-
- {{ctx.AvatarUtils.Avatar . 48}}
-
-
-
- {{template "shared/user/name" .}}
- {{if .Visibility.IsPrivate}}
- {{ctx.Locale.Tr "repo.desc.private"}}
- {{end}}
-
-
- {{if .Location}}
-
{{svg "octicon-location"}}{{.Location}}
- {{end}}
- {{if and .Email (or (and $.ShowUserEmail $.IsSigned (not .KeepEmailPrivate)) $.PageIsAdminUsers)}}
-
- {{svg "octicon-mail"}}
- {{.Email}}
-
- {{end}}
-
{{svg "octicon-calendar"}}{{ctx.Locale.Tr "user.joined_on" (DateTime "short" .CreatedUnix)}}
-
-
-
- {{else}}
-
- {{ctx.Locale.Tr "search.no_results"}}
-
- {{end}}
-
diff --git a/explore/users.tmpl b/explore/users.tmpl
deleted file mode 100644
index e904612..0000000
--- a/explore/users.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{template "base/head" .}}
-
- {{template "explore/navbar" .}}
-
- {{template "explore/search" .}}
- {{template "explore/user_list" .}}
- {{template "base/paginate" .}}
-
-
-{{template "base/footer" .}}
diff --git a/install.tmpl b/install.tmpl
deleted file mode 100644
index 965e57f..0000000
--- a/install.tmpl
+++ /dev/null
@@ -1,353 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
- {{template "base/alert" .}}
-
-
{{ctx.Locale.Tr "install.docker_helper" "https://docs.gitea.com/installation/install-with-docker"}}
-
-
-
-
- {{ctx.Locale.Tr "install.require_db_desc"}}
-
-
{{ctx.Locale.Tr "install.db_type"}}
-
-
-
{{.CurDbType}}
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "install.ssl_mode"}}
-
-
-
disable
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
- {{ctx.Locale.Tr "install.db_schema"}}
-
- {{ctx.Locale.Tr "install.db_schema_helper"}}
-
-
-
-
-
- {{ctx.Locale.Tr "install.path"}}
-
- {{ctx.Locale.Tr "install.sqlite_helper"}}
-
-
-
- {{if .Err_DbInstalledBefore}}
-
-
{{ctx.Locale.Tr "install.reinstall_confirm_message"}}
-
-
- {{ctx.Locale.Tr "install.reinstall_confirm_check_1"}}
-
-
-
-
-
- {{ctx.Locale.Tr "install.reinstall_confirm_check_2"}}
-
-
-
-
-
- {{ctx.Locale.Tr "install.reinstall_confirm_check_3"}}
-
-
-
-
- {{end}}
-
-
-
-
- {{ctx.Locale.Tr "install.app_name"}}
-
- {{ctx.Locale.Tr "install.app_name_helper"}}
-
-
- {{ctx.Locale.Tr "install.repo_path"}}
-
- {{ctx.Locale.Tr "install.repo_path_helper"}}
-
-
- {{ctx.Locale.Tr "install.lfs_path"}}
-
- {{ctx.Locale.Tr "install.lfs_path_helper"}}
-
-
- {{ctx.Locale.Tr "install.run_user"}}
-
- {{ctx.Locale.Tr "install.run_user_helper"}}
-
-
- {{ctx.Locale.Tr "install.domain"}}
-
- {{ctx.Locale.Tr "install.domain_helper"}}
-
-
- {{ctx.Locale.Tr "install.ssh_port"}}
-
- {{ctx.Locale.Tr "install.ssh_port_helper"}}
-
-
- {{ctx.Locale.Tr "install.http_port"}}
-
- {{ctx.Locale.Tr "install.http_port_helper"}}
-
-
- {{ctx.Locale.Tr "install.app_url"}}
-
- {{ctx.Locale.Tr "install.app_url_helper"}}
-
-
- {{ctx.Locale.Tr "install.log_root_path"}}
-
- {{ctx.Locale.Tr "install.log_root_path_helper"}}
-
-
-
- {{ctx.Locale.Tr "install.enable_update_checker"}}
-
-
-
{{ctx.Locale.Tr "install.enable_update_checker_helper"}}
-
-
-
-
-
-
-
-
- {{if .EnvConfigKeys}}
-
-
-
-
- {{ctx.Locale.Tr "install.env_config_keys_prompt"}}
-
-
- {{range .EnvConfigKeys}}{{.}} {{end}}
-
-
- {{end}}
-
-
-
- These configuration options will be written into: {{.CustomConfFile}}
-
-
- {{ctx.Locale.Tr "install.install_btn_confirm"}}
-
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/mail/auth/activate.tmpl b/mail/auth/activate.tmpl
deleted file mode 100644
index b1bb4cb..0000000
--- a/mail/auth/activate.tmpl
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
- {{.locale.Tr "mail.activate_account.title" (.DisplayName|DotEscape)}}
-
-
-{{$activate_url := printf "%suser/activate?code=%s" AppUrl (QueryEscape .Code)}}
-
- {{.locale.Tr "mail.activate_account.text_1" (.DisplayName|DotEscape) AppName}}
- {{.locale.Tr "mail.activate_account.text_2" .ActiveCodeLives}}
{{$activate_url}}
- {{.locale.Tr "mail.link_not_working_do_paste"}}
-
- © {{AppName}}
-
-
diff --git a/mail/auth/activate_email.tmpl b/mail/auth/activate_email.tmpl
deleted file mode 100644
index 3d32f80..0000000
--- a/mail/auth/activate_email.tmpl
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
- {{.locale.Tr "mail.activate_email.title" (.DisplayName|DotEscape)}}
-
-
-{{$activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl (QueryEscape .Code) (QueryEscape .Email)}}
-
- {{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}
- {{.locale.Tr "mail.activate_email.text" .ActiveCodeLives}}
{{$activate_url}}
- {{.locale.Tr "mail.link_not_working_do_paste"}}
-
- © {{AppName}}
-
-
diff --git a/mail/auth/register_notify.tmpl b/mail/auth/register_notify.tmpl
deleted file mode 100644
index 62dbf7d..0000000
--- a/mail/auth/register_notify.tmpl
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
- {{.locale.Tr "mail.register_notify.title" (.DisplayName|DotEscape) AppName}}
-
-
-{{$set_pwd_url := printf "%[1]suser/forgot_password" AppUrl}}
-
- {{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}
- {{.locale.Tr "mail.register_notify.text_1" AppName}}
- {{.locale.Tr "mail.register_notify.text_2" .Username}}
{{AppUrl}}user/login
- {{.locale.Tr "mail.register_notify.text_3" $set_pwd_url}}
-
- © {{AppName}}
-
-
diff --git a/mail/auth/reset_passwd.tmpl b/mail/auth/reset_passwd.tmpl
deleted file mode 100644
index 55b1ece..0000000
--- a/mail/auth/reset_passwd.tmpl
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
- {{.locale.Tr "mail.reset_password.title" (.DisplayName|DotEscape)}}
-
-
-{{$recover_url := printf "%suser/recover_account?code=%s" AppUrl (QueryEscape .Code)}}
-
- {{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}
- {{.locale.Tr "mail.reset_password.text" .ResetPwdCodeLives}}
{{$recover_url}}
- {{.locale.Tr "mail.link_not_working_do_paste"}}
-
- © {{AppName}}
-
-
diff --git a/mail/issue/assigned.tmpl b/mail/issue/assigned.tmpl
deleted file mode 100644
index 5720319..0000000
--- a/mail/issue/assigned.tmpl
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
- {{.Subject}}
-
-
-{{$repo_url := HTMLFormat "%s " .Issue.Repo.HTMLURL .Issue.Repo.FullName}}
-{{$link := HTMLFormat "#%d " .Link .Issue.Index}}
-
-
- {{if .IsPull}}
- {{.locale.Tr "mail.issue_assigned.pull" .Doer.Name $link $repo_url}}
- {{else}}
- {{.locale.Tr "mail.issue_assigned.issue" .Doer.Name $link $repo_url}}
- {{end}}
-
-
-
-
diff --git a/mail/issue/default.tmpl b/mail/issue/default.tmpl
deleted file mode 100644
index 395b118..0000000
--- a/mail/issue/default.tmpl
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-
-
- {{.Subject}}
-
-
-
-
-
-
- {{if .IsMention}}{{.locale.Tr "mail.issue.x_mentioned_you" .Doer.Name}}
{{end}}
- {{if eq .ActionName "push"}}
-
- {{if .Comment.IsForcePush}}
- {{$oldCommitUrl := printf "%s/commit/%s" .Comment.Issue.PullRequest.BaseRepo.HTMLURL .Comment.OldCommit}}
- {{$oldShortSha := ShortSha .Comment.OldCommit}}
- {{$oldCommitLink := HTMLFormat "%[2]s " $oldCommitUrl $oldShortSha}}
-
- {{$newCommitUrl := printf "%s/commit/%s" .Comment.Issue.PullRequest.BaseRepo.HTMLURL .Comment.NewCommit}}
- {{$newShortSha := ShortSha .Comment.NewCommit}}
- {{$newCommitLink := HTMLFormat "%[2]s " $newCommitUrl $newShortSha}}
-
- {{.locale.Tr "mail.issue.action.force_push" .Doer.Name .Comment.Issue.PullRequest.HeadBranch $oldCommitLink $newCommitLink}}
- {{else}}
- {{.locale.TrN (len .Comment.Commits) "mail.issue.action.push_1" "mail.issue.action.push_n" .Doer.Name .Comment.Issue.PullRequest.HeadBranch (len .Comment.Commits)}}
- {{end}}
-
- {{end}}
-
- {{if eq .ActionName "close"}}
- {{.locale.Tr "mail.issue.action.close" .Doer.Name .Issue.Index}}
- {{else if eq .ActionName "reopen"}}
- {{.locale.Tr "mail.issue.action.reopen" .Doer.Name .Issue.Index}}
- {{else if eq .ActionName "merge"}}
- {{.locale.Tr "mail.issue.action.merge" .Doer.Name .Issue.Index .Issue.PullRequest.BaseBranch}}
- {{else if eq .ActionName "approve"}}
- {{.locale.Tr "mail.issue.action.approve" .Doer.Name}}
- {{else if eq .ActionName "reject"}}
- {{.locale.Tr "mail.issue.action.reject" .Doer.Name}}
- {{else if eq .ActionName "review"}}
- {{.locale.Tr "mail.issue.action.review" .Doer.Name}}
- {{else if eq .ActionName "review_dismissed"}}
- {{.locale.Tr "mail.issue.action.review_dismissed" .Doer.Name .Comment.Review.Reviewer.Name}}
- {{else if eq .ActionName "ready_for_review"}}
- {{.locale.Tr "mail.issue.action.ready_for_review" .Doer.Name}}
- {{end}}
-
- {{- if eq .Body ""}}
- {{if eq .ActionName "new"}}
- {{.locale.Tr "mail.issue.action.new" .Doer.Name .Issue.Index}}
- {{end}}
- {{else}}
- {{.Body}}
- {{end -}}
- {{- range .ReviewComments}}
-
- {{$.locale.Tr "mail.issue.in_tree_path" .TreePath}}
-
-
{{.Patch}}
-
{{.RenderedContent}}
-
- {{end -}}
- {{if eq .ActionName "push"}}
-
- {{end}}
-
-
-
-
diff --git a/mail/notify/collaborator.tmpl b/mail/notify/collaborator.tmpl
deleted file mode 100644
index 9810c70..0000000
--- a/mail/notify/collaborator.tmpl
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
- {{.Subject}}
-
-
-
- {{.locale.Tr "mail.repo.collaborator.added.text"}} {{.RepoName}}
-
-
-
diff --git a/mail/notify/repo_transfer.tmpl b/mail/notify/repo_transfer.tmpl
deleted file mode 100644
index 8c8b276..0000000
--- a/mail/notify/repo_transfer.tmpl
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
- {{.Subject}}
-
-
-{{$url := HTMLFormat "%[2]s " .Link .Repo}}
-
- {{.Subject}}.
- {{.locale.Tr "mail.repo.transfer.body" $url}}
-
-
- ---
-
- {{.locale.Tr "mail.view_it_on" AppName}} .
-
-
-
diff --git a/mail/release.tmpl b/mail/release.tmpl
deleted file mode 100644
index 90a3caa..0000000
--- a/mail/release.tmpl
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
- {{.Subject}}
-
-
-
-
-
-{{$release_url := HTMLFormat "%s " .Release.HTMLURL .Release.TagName}}
-{{$repo_url := HTMLFormat "%s " .Release.Repo.HTMLURL .Release.Repo.FullName}}
-
-
- {{.locale.Tr "mail.release.new.text" .Release.Publisher.Name $release_url $repo_url}}
-
- {{.locale.Tr "mail.release.title" .Release.Title}}
-
- {{.locale.Tr "mail.release.note"}}
- {{- if eq .Release.RenderedNote ""}}
- {{else}}
- {{.Release.RenderedNote}}
- {{end -}}
-
-
-
- ---
-
- {{.locale.Tr "mail.release.downloads"}}
-
-
-
-
-
diff --git a/mail/team_invite.tmpl b/mail/team_invite.tmpl
deleted file mode 100644
index cb0c0c0..0000000
--- a/mail/team_invite.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
- {{.locale.Tr "mail.team_invite.text_1" (DotEscape .Inviter.DisplayName) (DotEscape .Team.Name) (DotEscape .Organization.DisplayName)}}
- {{.locale.Tr "mail.team_invite.text_2"}}
{{.InviteURL}}
- {{.locale.Tr "mail.link_not_working_do_paste"}}
- {{.locale.Tr "mail.team_invite.text_3" .Invite.Email}}
-
- © {{AppName}}
-
-
diff --git a/org/create.tmpl b/org/create.tmpl
deleted file mode 100644
index 004cd9b..0000000
--- a/org/create.tmpl
+++ /dev/null
@@ -1,57 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "org.org_name_holder"}}
-
- {{ctx.Locale.Tr "org.org_name_helper"}}
-
-
-
-
{{ctx.Locale.Tr "org.settings.visibility"}}
-
-
-
-
-
{{ctx.Locale.Tr "org.settings.permission"}}
-
-
-
- {{ctx.Locale.Tr "org.settings.repoadminchangeteam"}}
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "org.create_org"}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/org/follow_unfollow.tmpl b/org/follow_unfollow.tmpl
deleted file mode 100644
index ba0bd01..0000000
--- a/org/follow_unfollow.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-
- {{if $.IsFollowing}}
- {{ctx.Locale.Tr "user.unfollow"}}
- {{else}}
- {{ctx.Locale.Tr "user.follow"}}
- {{end}}
-
diff --git a/org/header.tmpl b/org/header.tmpl
deleted file mode 100644
index 7361df9..0000000
--- a/org/header.tmpl
+++ /dev/null
@@ -1,32 +0,0 @@
-
- {{ctx.AvatarUtils.Avatar .Org 100 "org-avatar"}}
-
-
- {{if .RenderedDescription}}
{{.RenderedDescription}}
{{end}}
-
- {{if .Org.Location}}
{{svg "octicon-location"}} {{.Org.Location}}
{{end}}
- {{if .Org.Website}}
{{svg "octicon-link"}}
{{.Org.Website}} {{end}}
- {{if .IsSigned}}
- {{if .Org.Email}}
{{svg "octicon-mail"}}
{{.Org.Email}} {{end}}
- {{end}}
-
-
-
-
-{{template "org/menu" .}}
diff --git a/org/member/members.tmpl b/org/member/members.tmpl
deleted file mode 100644
index 4388dc9..0000000
--- a/org/member/members.tmpl
+++ /dev/null
@@ -1,90 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
- {{template "base/alert" .}}
-
-
- {{range .Members}}
- {{$isPublic := index $.MembersIsPublicMember .ID}}
-
-
-
-
- {{template "shared/user/name" .}}
- {{if not $isPublic}}
- {{ctx.Locale.Tr "org.members.private"}}
- {{end}}
-
- {{if not $.PublicOnly}}
-
- {{ctx.Locale.Tr "org.members.member_role"}}
- {{if index $.MembersIsUserOrgOwner .ID}}{{svg "octicon-shield-lock"}} {{ctx.Locale.Tr "org.members.owner"}}{{else}}{{ctx.Locale.Tr "org.members.member"}}{{end}}
-
- {{if $.IsOrganizationOwner}}
-
- {{ctx.Locale.Tr "admin.users.2fa"}}
-
- {{if index $.MembersTwoFaStatus .ID}}
- {{svg "octicon-check"}}
- {{else}}
- {{svg "octicon-x"}}
- {{end}}
-
-
- {{end}}
- {{end}}
-
-
-
- {{end}}
-
-
- {{template "base/paginate" .}}
-
-
-
-
-
-
{{ctx.Locale.Tr "org.members.leave.detail" (` `|SafeHTML)}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-
-
-
{{ctx.Locale.Tr "org.members.remove.detail" (` `|SafeHTML) (` `|SafeHTML)}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-{{template "base/footer" .}}
diff --git a/org/menu.tmpl b/org/menu.tmpl
deleted file mode 100644
index 698a955..0000000
--- a/org/menu.tmpl
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
diff --git a/org/projects/list.tmpl b/org/projects/list.tmpl
deleted file mode 100644
index 80dde1c..0000000
--- a/org/projects/list.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-{{template "base/head" .}}
-{{if .ContextUser.IsOrganization}}
-
- {{template "org/header" .}}
-
- {{template "projects/list" .}}
-
-
-{{else}}
-
-
-
-
- {{template "shared/user/profile_big_avatar" .}}
-
-
- {{template "user/overview/header" .}}
- {{template "projects/list" .}}
-
-
-
-
-{{end}}
-{{template "base/footer" .}}
diff --git a/org/projects/new.tmpl b/org/projects/new.tmpl
deleted file mode 100644
index fc52130..0000000
--- a/org/projects/new.tmpl
+++ /dev/null
@@ -1,9 +0,0 @@
-{{template "base/head" .}}
-
- {{template "shared/user/org_profile_avatar" .}}
-
- {{template "user/overview/header" .}}
- {{template "projects/new" .}}
-
-
-{{template "base/footer" .}}
diff --git a/org/projects/view.tmpl b/org/projects/view.tmpl
deleted file mode 100644
index e1ab81c..0000000
--- a/org/projects/view.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{template "base/head" .}}
-
- {{template "shared/user/org_profile_avatar" .}}
-
- {{template "user/overview/header" .}}
-
-
- {{template "projects/view" .}}
-
-
-{{template "base/footer" .}}
diff --git a/org/settings/actions.tmpl b/org/settings/actions.tmpl
deleted file mode 100644
index abb9c98..0000000
--- a/org/settings/actions.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings actions")}}
-
- {{if eq .PageType "runners"}}
- {{template "shared/actions/runner_list" .}}
- {{else if eq .PageType "secrets"}}
- {{template "shared/secrets/add_list" .}}
- {{else if eq .PageType "variables"}}
- {{template "shared/variables/variable_list" .}}
- {{end}}
-
-{{template "org/settings/layout_footer" .}}
diff --git a/org/settings/applications.tmpl b/org/settings/applications.tmpl
deleted file mode 100644
index df5f4e9..0000000
--- a/org/settings/applications.tmpl
+++ /dev/null
@@ -1,9 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings options")}}
-
-
-
- {{template "user/settings/applications_oauth2_list" .}}
-
-{{template "org/settings/layout_footer" .}}
diff --git a/org/settings/applications_oauth2_edit.tmpl b/org/settings/applications_oauth2_edit.tmpl
deleted file mode 100644
index 987803a..0000000
--- a/org/settings/applications_oauth2_edit.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings options")}}
-
- {{template "user/settings/applications_oauth2_edit_form" .}}
-
-{{template "org/settings/layout_footer" .}}
diff --git a/org/settings/blocked_users.tmpl b/org/settings/blocked_users.tmpl
deleted file mode 100644
index eab5ec0..0000000
--- a/org/settings/blocked_users.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings blocked_users")}}
-
- {{template "shared/user/blocked_users" .}}
-
-{{template "org/settings/layout_footer" .}}
diff --git a/org/settings/delete.tmpl b/org/settings/delete.tmpl
deleted file mode 100644
index e1ef471..0000000
--- a/org/settings/delete.tmpl
+++ /dev/null
@@ -1,35 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings delete")}}
-
-
-
-
-
-
{{svg "octicon-alert"}} {{ctx.Locale.Tr "org.settings.delete_prompt"}}
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "org.org_name_holder"}}
-
-
-
- {{ctx.Locale.Tr "org.settings.confirm_delete_account"}}
-
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "org.settings.delete_org_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-{{template "org/settings/layout_footer" .}}
diff --git a/org/settings/hook_new.tmpl b/org/settings/hook_new.tmpl
deleted file mode 100644
index f89ee5f..0000000
--- a/org/settings/hook_new.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings new webhook")}}
-
- {{$CustomHeaderTitle := ctx.Locale.Tr "repo.settings.update_webhook"}}
- {{if .PageIsSettingsHooksNew}}{{$CustomHeaderTitle = ctx.Locale.Tr "repo.settings.add_webhook"}}{{end}}
- {{template "webhook/new" (dict "ctxData" . "CustomHeaderTitle" $CustomHeaderTitle)}}
-
-{{template "org/settings/layout_footer" .}}
diff --git a/org/settings/hooks.tmpl b/org/settings/hooks.tmpl
deleted file mode 100644
index 9f30796..0000000
--- a/org/settings/hooks.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings webhooks")}}
-
- {{template "repo/settings/webhook/list" .}}
-
-{{template "org/settings/layout_footer" .}}
diff --git a/org/settings/labels.tmpl b/org/settings/labels.tmpl
deleted file mode 100644
index 25a562c..0000000
--- a/org/settings/labels.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings labels")}}
-
-
-
- {{ctx.Locale.Tr "org.settings.labels_desc"}}
-
-
{{ctx.Locale.Tr "repo.issues.new_label"}}
-
-
- {{template "repo/issue/labels/label_new" .}}
- {{template "repo/issue/labels/label_list" .}}
-
-{{template "repo/issue/labels/edit_delete_label" .}}
-{{template "org/settings/layout_footer" .}}
-
diff --git a/org/settings/layout_footer.tmpl b/org/settings/layout_footer.tmpl
deleted file mode 100644
index 09d88c0..0000000
--- a/org/settings/layout_footer.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{if false}}{{/* to make html structure "likely" complete to prevent IDE warnings */}}
-
-
-
- {{/* block: org-setting-content */}}
-{{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/org/settings/layout_head.tmpl b/org/settings/layout_head.tmpl
deleted file mode 100644
index 31dad2c..0000000
--- a/org/settings/layout_head.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-{{template "base/head" .ctxData}}
-
- {{template "org/header" .ctxData}}
-
- {{template "org/settings/navbar" .ctxData}}
-
- {{template "base/alert" .ctxData}}
- {{/* block: org-setting-content */}}
-
-{{if false}}{{/* to make html structure "likely" complete to prevent IDE warnings */}}
-
-
-
-{{end}}
diff --git a/org/settings/navbar.tmpl b/org/settings/navbar.tmpl
deleted file mode 100644
index ce792f6..0000000
--- a/org/settings/navbar.tmpl
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
diff --git a/org/settings/options.tmpl b/org/settings/options.tmpl
deleted file mode 100644
index 62debfc..0000000
--- a/org/settings/options.tmpl
+++ /dev/null
@@ -1,102 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings options")}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "org.org_name_holder"}}
-
- {{ctx.Locale.Tr "org.settings.change_orgname_prompt"}} {{ctx.Locale.Tr "org.settings.change_orgname_redirect_prompt"}}
-
-
-
-
-
- {{ctx.Locale.Tr "org.org_full_name_holder"}}
-
-
-
- {{ctx.Locale.Tr "org.settings.email"}}
-
-
-
- {{ctx.Locale.Tr "org.org_desc"}}
- {{.Org.Description}}
-
-
- {{ctx.Locale.Tr "org.settings.website"}}
-
-
-
- {{ctx.Locale.Tr "org.settings.location"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "org.settings.visibility"}}
-
-
-
- {{ctx.Locale.Tr "org.settings.visibility.public"}}
-
-
-
-
-
- {{ctx.Locale.Tr "org.settings.visibility.limited"}}
-
-
-
-
-
- {{ctx.Locale.Tr "org.settings.visibility.private"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "org.settings.permission"}}
-
-
-
- {{ctx.Locale.Tr "org.settings.repoadminchangeteam"}}
-
-
-
-
- {{if .SignedUser.IsAdmin}}
-
-
-
-
{{ctx.Locale.Tr "admin.users.max_repo_creation"}}
-
-
{{ctx.Locale.Tr "admin.users.max_repo_creation_desc"}}
-
- {{end}}
-
-
- {{ctx.Locale.Tr "org.settings.update_settings"}}
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "settings.choose_new_avatar"}}
-
-
-
-
- {{ctx.Locale.Tr "settings.update_avatar"}}
- {{ctx.Locale.Tr "settings.delete_current_avatar"}}
-
-
-
-
-{{template "org/settings/layout_footer" .}}
diff --git a/org/settings/packages.tmpl b/org/settings/packages.tmpl
deleted file mode 100644
index 91106c3..0000000
--- a/org/settings/packages.tmpl
+++ /dev/null
@@ -1,6 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings packages")}}
-
- {{template "package/shared/cleanup_rules/list" .}}
- {{template "package/shared/cargo" .}}
-
-{{template "org/settings/layout_footer" .}}
diff --git a/org/settings/packages_cleanup_rules_edit.tmpl b/org/settings/packages_cleanup_rules_edit.tmpl
deleted file mode 100644
index ff4c2dd..0000000
--- a/org/settings/packages_cleanup_rules_edit.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings packages")}}
-
- {{template "package/shared/cleanup_rules/edit" .}}
-
-{{template "org/settings/layout_footer" .}}
diff --git a/org/settings/packages_cleanup_rules_preview.tmpl b/org/settings/packages_cleanup_rules_preview.tmpl
deleted file mode 100644
index 5a2f061..0000000
--- a/org/settings/packages_cleanup_rules_preview.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings packages")}}
-
- {{template "package/shared/cleanup_rules/preview" .}}
-
-{{template "org/settings/layout_footer" .}}
diff --git a/org/settings/runners_edit.tmpl b/org/settings/runners_edit.tmpl
deleted file mode 100644
index acd67a4..0000000
--- a/org/settings/runners_edit.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings runners")}}
-
- {{template "shared/actions/runner_edit" .}}
-
-{{template "org/settings/layout_footer" .}}
diff --git a/org/team/invite.tmpl b/org/team/invite.tmpl
deleted file mode 100644
index 1167828..0000000
--- a/org/team/invite.tmpl
+++ /dev/null
@@ -1,23 +0,0 @@
-{{template "base/head" .}}
-
-
- {{template "base/alert" .}}
-
-
- {{ctx.AvatarUtils.Avatar .Organization 140}}
-
-
-
-
{{ctx.Locale.Tr "org.teams.invite.by" .Inviter.Name}}
-
{{ctx.Locale.Tr "org.teams.invite.description"}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/org/team/members.tmpl b/org/team/members.tmpl
deleted file mode 100644
index 5433f01..0000000
--- a/org/team/members.tmpl
+++ /dev/null
@@ -1,88 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
- {{template "base/alert" .}}
-
- {{template "org/team/sidebar" .}}
-
- {{template "org/team/navbar" .}}
- {{if .IsOrganizationOwner}}
-
-
- {{.CsrfTokenHtml}}
-
-
- {{ctx.Locale.Tr "org.teams.add_team_member"}}
-
-
- {{end}}
-
-
- {{range .Team.Members}}
-
-
-
-
- {{template "shared/user/name" .}}
-
-
-
- {{if and $.IsOrganizationOwner (not (and ($.Team.IsOwnerTeam) (eq (len $.Team.Members) 1)))}}
-
- {{ctx.Locale.Tr "org.members.remove"}}
-
- {{end}}
-
-
- {{else}}
-
- {{ctx.Locale.Tr "org.teams.members.none"}}
-
- {{end}}
-
-
- {{if and .Invites $.IsOrganizationOwner}}
-
-
-
- {{range .Invites}}
-
-
- {{.Email}}
-
-
-
- {{$.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "org.members.remove"}}
-
-
-
- {{end}}
-
-
- {{end}}
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "org.members.remove.detail" (` `|SafeHTML) (` `|SafeHTML)}}
-
- {{template "base/modal_actions_confirm" .}}
-
-{{template "base/footer" .}}
diff --git a/org/team/navbar.tmpl b/org/team/navbar.tmpl
deleted file mode 100644
index 9704f63..0000000
--- a/org/team/navbar.tmpl
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/org/team/new.tmpl b/org/team/new.tmpl
deleted file mode 100644
index 9608eac..0000000
--- a/org/team/new.tmpl
+++ /dev/null
@@ -1,161 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "org.team_name"}}
- {{if eq .Team.LowerName "owners"}}
-
- {{end}}
-
- {{ctx.Locale.Tr "org.team_name_helper"}}
-
-
- {{ctx.Locale.Tr "org.team_desc"}}
-
- {{ctx.Locale.Tr "org.team_desc_helper"}}
-
- {{if not (eq .Team.LowerName "owners")}}
-
-
{{ctx.Locale.Tr "org.team_access_desc"}}
-
-
-
-
- {{ctx.Locale.Tr "org.teams.specific_repositories"}}
- {{ctx.Locale.Tr "org.teams.specific_repositories_helper"}}
-
-
-
-
-
- {{ctx.Locale.Tr "org.teams.all_repositories"}}
- {{ctx.Locale.Tr "org.teams.all_repositories_helper"}}
-
-
-
-
-
- {{ctx.Locale.Tr "org.teams.can_create_org_repo"}}
-
- {{ctx.Locale.Tr "org.teams.can_create_org_repo_helper"}}
-
-
-
-
-
{{ctx.Locale.Tr "org.team_permission_desc"}}
-
-
-
-
- {{ctx.Locale.Tr "org.teams.general_access"}}
- {{ctx.Locale.Tr "org.teams.general_access_helper"}}
-
-
-
-
-
- {{ctx.Locale.Tr "org.teams.admin_access"}}
- {{ctx.Locale.Tr "org.teams.admin_access_helper"}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "org.team_unit_desc"}}
-
- {{range $t, $unit := $.Units}}
- {{if lt $unit.MaxPerm 2}}
-
-
-
- {{ctx.Locale.Tr $unit.NameKey}}{{if $unit.Type.UnitGlobalDisabled}} {{ctx.Locale.Tr "org.team_unit_disabled"}}{{end}}
- {{ctx.Locale.Tr $unit.DescKey}}
-
-
- {{end}}
- {{end}}
-
- {{end}}
-
-
- {{if .PageIsOrgTeamsNew}}
- {{ctx.Locale.Tr "org.create_team"}}
- {{else}}
- {{ctx.Locale.Tr "org.teams.update_settings"}}
- {{if not (eq .Team.LowerName "owners")}}
- {{ctx.Locale.Tr "org.teams.delete_team"}}
- {{end}}
- {{end}}
-
-
-
-
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "org.teams.delete_team_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-{{template "base/footer" .}}
diff --git a/org/team/repositories.tmpl b/org/team/repositories.tmpl
deleted file mode 100644
index 502cf97..0000000
--- a/org/team/repositories.tmpl
+++ /dev/null
@@ -1,61 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
- {{template "base/alert" .}}
-
- {{template "org/team/sidebar" .}}
-
- {{template "org/team/navbar" .}}
- {{$canAddRemove := and $.IsOrganizationOwner (not $.Team.IncludesAllRepositories)}}
- {{if $canAddRemove}}
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "add"}}
-
-
- {{ctx.Locale.Tr "add_all"}}
- {{ctx.Locale.Tr "remove_all"}}
-
-
- {{end}}
-
-
- {{range .Team.Repos}}
-
-
- {{template "repo/icon" .}}
-
-
-
- {{if $canAddRemove}}
-
- {{$.CsrfTokenHtml}}
- {{ctx.Locale.Tr "remove"}}
-
- {{end}}
-
-
- {{else}}
-
- {{ctx.Locale.Tr "org.teams.repos.none"}}
-
- {{end}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/org/team/sidebar.tmpl b/org/team/sidebar.tmpl
deleted file mode 100644
index ac41cda..0000000
--- a/org/team/sidebar.tmpl
+++ /dev/null
@@ -1,94 +0,0 @@
-
-
-
-
- {{if .Team.Description}}
- {{.Team.Description}}
- {{else}}
- {{ctx.Locale.Tr "org.teams.no_desc"}}
- {{end}}
-
- {{if eq .Team.LowerName "owners"}}
-
- {{ctx.Locale.Tr "org.teams.owners_permission_desc"}}
-
- {{else}}
-
-
{{ctx.Locale.Tr "org.team_access_desc"}}
-
- {{if .Team.IncludesAllRepositories}}
- {{ctx.Locale.Tr "org.teams.all_repositories"}}
- {{else}}
- {{ctx.Locale.Tr "org.teams.specific_repositories"}}
- {{end}}
- {{if .Team.CanCreateOrgRepo}}
- {{ctx.Locale.Tr "org.teams.can_create_org_repo"}}
- {{end}}
-
- {{if (eq .Team.AccessMode 2)}}
-
{{ctx.Locale.Tr "org.settings.permission"}}
- {{ctx.Locale.Tr "org.teams.write_permission_desc"}}
- {{else if (eq .Team.AccessMode 3)}}
-
{{ctx.Locale.Tr "org.settings.permission"}}
- {{ctx.Locale.Tr "org.teams.admin_permission_desc"}}
- {{else}}
-
-
-
- {{ctx.Locale.Tr "units.unit"}}
- {{ctx.Locale.Tr "org.team_permission_desc"}}
-
-
-
- {{range $t, $unit := $.Units}}
- {{if (not $unit.Type.UnitGlobalDisabled)}}
-
- {{ctx.Locale.Tr $unit.NameKey}}
- {{if eq ($.Team.UnitAccessMode $.Context $unit.Type) 0 -}}
- {{ctx.Locale.Tr "org.teams.none_access"}}
- {{- else if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $.Context $unit.Type) 1) -}}
- {{ctx.Locale.Tr "org.teams.read_access"}}
- {{- else if eq ($.Team.UnitAccessMode $.Context $unit.Type) 2 -}}
- {{ctx.Locale.Tr "org.teams.write_access"}}
- {{- end}}
-
- {{end}}
- {{end}}
-
-
- {{end}}
-
- {{end}}
-
- {{if .IsOrganizationOwner}}
-
- {{end}}
-
-
diff --git a/org/team/teams.tmpl b/org/team/teams.tmpl
deleted file mode 100644
index 53c909e..0000000
--- a/org/team/teams.tmpl
+++ /dev/null
@@ -1,56 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
- {{template "base/alert" .}}
- {{if .IsOrganizationOwner}}
-
-
- {{end}}
-
-
- {{range .Teams}}
-
-
-
- {{range .Members}}
- {{template "shared/user/avatarlink" dict "user" .}}
- {{end}}
-
-
-
- {{end}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "org.teams.leave.detail" (` `|SafeHTML)}}
-
- {{template "base/modal_actions_confirm" .}}
-
-{{template "base/footer" .}}
diff --git a/package/content/alpine.tmpl b/package/content/alpine.tmpl
deleted file mode 100644
index 5c144b9..0000000
--- a/package/content/alpine.tmpl
+++ /dev/null
@@ -1,52 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "alpine"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "packages.alpine.repository.branches"}}
- {{StringUtils.Join .Branches ", "}}
-
-
- {{ctx.Locale.Tr "packages.alpine.repository.repositories"}}
- {{StringUtils.Join .Repositories ", "}}
-
-
- {{ctx.Locale.Tr "packages.alpine.repository.architectures"}}
- {{StringUtils.Join .Architectures ", "}}
-
-
-
-
-
- {{if .PackageDescriptor.Metadata.Description}}
-
-
- {{.PackageDescriptor.Metadata.Description}}
-
- {{end}}
-{{end}}
diff --git a/package/content/cargo.tmpl b/package/content/cargo.tmpl
deleted file mode 100644
index 7fd88a2..0000000
--- a/package/content/cargo.tmpl
+++ /dev/null
@@ -1,63 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "cargo"}}
-
-
-
- {{if or .PackageDescriptor.Metadata.Description .PackageDescriptor.Metadata.Readme}}
-
- {{if .PackageDescriptor.Metadata.Description}}{{.PackageDescriptor.Metadata.Description}}
{{end}}
- {{if .PackageDescriptor.Metadata.Readme}}{{RenderMarkdownToHtml $.Context .PackageDescriptor.Metadata.Readme}}
{{end}}
- {{end}}
-
- {{if .PackageDescriptor.Metadata.Dependencies}}
-
-
-
-
-
- {{ctx.Locale.Tr "packages.dependency.id"}}
- {{ctx.Locale.Tr "packages.dependency.version"}}
-
-
-
- {{range .PackageDescriptor.Metadata.Dependencies}}
-
- {{.Name}}
- {{.Req}}
-
- {{end}}
-
-
-
- {{end}}
-
- {{if .PackageDescriptor.Metadata.Keywords}}
-
-
- {{range .PackageDescriptor.Metadata.Keywords}}
- {{.}}
- {{end}}
-
- {{end}}
-{{end}}
diff --git a/package/content/chef.tmpl b/package/content/chef.tmpl
deleted file mode 100644
index 03ce9f8..0000000
--- a/package/content/chef.tmpl
+++ /dev/null
@@ -1,48 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "chef"}}
-
-
-
- {{if or .PackageDescriptor.Metadata.Description .PackageDescriptor.Metadata.LongDescription}}
-
-
- {{if .PackageDescriptor.Metadata.Description}}
{{.PackageDescriptor.Metadata.Description}}
{{end}}
- {{if .PackageDescriptor.Metadata.LongDescription}}{{RenderMarkdownToHtml $.Context .PackageDescriptor.Metadata.LongDescription}}{{end}}
-
- {{end}}
-
- {{if .PackageDescriptor.Metadata.Dependencies}}
-
-
-
-
-
- {{ctx.Locale.Tr "packages.dependency.id"}}
- {{ctx.Locale.Tr "packages.dependency.version"}}
-
-
-
- {{range $dependency, $version := .PackageDescriptor.Metadata.Dependencies}}
-
- {{$dependency}}
- {{$version}}
-
- {{end}}
-
-
-
- {{end}}
-{{end}}
diff --git a/package/content/composer.tmpl b/package/content/composer.tmpl
deleted file mode 100644
index c2dc634..0000000
--- a/package/content/composer.tmpl
+++ /dev/null
@@ -1,50 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "composer"}}
-
-
-
- {{if .PackageDescriptor.Metadata.Description}}
-
-
- {{.PackageDescriptor.Metadata.Description}}
-
- {{end}}
-
- {{if or .PackageDescriptor.Metadata.Require .PackageDescriptor.Metadata.RequireDev}}
-
-
-
- {{template "package/content/composer_dependencies" dict "root" $ "dependencies" .PackageDescriptor.Metadata.Require "title" (ctx.Locale.Tr "packages.composer.dependencies")}}
- {{template "package/content/composer_dependencies" dict "root" $ "dependencies" .PackageDescriptor.Metadata.RequireDev "title" (ctx.Locale.Tr "packages.composer.dependencies.development")}}
-
-
- {{end}}
-
- {{if or .PackageDescriptor.Metadata.Keywords}}
-
-
- {{range .PackageDescriptor.Metadata.Keywords}}
- {{.}}
- {{end}}
-
- {{end}}
-{{end}}
diff --git a/package/content/composer_dependencies.tmpl b/package/content/composer_dependencies.tmpl
deleted file mode 100644
index dba4575..0000000
--- a/package/content/composer_dependencies.tmpl
+++ /dev/null
@@ -1,19 +0,0 @@
-{{if .dependencies}}
-{{.title}}
-
-
-
- {{ctx.Locale.Tr "packages.dependency.id"}}
- {{ctx.Locale.Tr "packages.dependency.version"}}
-
-
-
- {{range $dependency, $version := .dependencies}}
-
- {{$dependency}}
- {{$version}}
-
- {{end}}
-
-
-{{end}}
diff --git a/package/content/conan.tmpl b/package/content/conan.tmpl
deleted file mode 100644
index b68a45f..0000000
--- a/package/content/conan.tmpl
+++ /dev/null
@@ -1,34 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "conan"}}
-
-
-
- {{if .PackageDescriptor.Metadata.Description}}
-
-
- {{if .PackageDescriptor.Metadata.Description}}{{.PackageDescriptor.Metadata.Description}}{{end}}
-
- {{end}}
-
- {{if or .PackageDescriptor.Metadata.Keywords}}
-
-
- {{range .PackageDescriptor.Metadata.Keywords}}
- {{.}}
- {{end}}
-
- {{end}}
-{{end}}
diff --git a/package/content/conda.tmpl b/package/content/conda.tmpl
deleted file mode 100644
index 031b51a..0000000
--- a/package/content/conda.tmpl
+++ /dev/null
@@ -1,30 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "conda"}}
-
-
-
- {{if or .PackageDescriptor.Metadata.Description .PackageDescriptor.Metadata.Summary}}
-
-
- {{if .PackageDescriptor.Metadata.Description}}{{.PackageDescriptor.Metadata.Description}}{{else}}{{.PackageDescriptor.Metadata.Summary}}{{end}}
-
- {{end}}
-{{end}}
diff --git a/package/content/container.tmpl b/package/content/container.tmpl
deleted file mode 100644
index fe393f4..0000000
--- a/package/content/container.tmpl
+++ /dev/null
@@ -1,90 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "container"}}
-
-
- {{if .PackageDescriptor.Metadata.Manifests}}
-
-
-
-
-
- {{ctx.Locale.Tr "packages.container.digest"}}
- {{ctx.Locale.Tr "packages.container.multi_arch"}}
- {{ctx.Locale.Tr "admin.packages.size"}}
-
-
-
- {{range .PackageDescriptor.Metadata.Manifests}}
-
- {{.Digest}}
- {{.Platform}}
- {{FileSize .Size}}
-
- {{end}}
-
-
-
- {{end}}
- {{if .PackageDescriptor.Metadata.Description}}
-
-
- {{.PackageDescriptor.Metadata.Description}}
-
- {{end}}
- {{if .PackageDescriptor.Metadata.ImageLayers}}
-
-
-
-
- {{range .PackageDescriptor.Metadata.ImageLayers}}
-
- {{.}}
-
- {{end}}
-
-
-
- {{end}}
- {{if .PackageDescriptor.Metadata.Labels}}
-
-
-
-
-
- {{ctx.Locale.Tr "packages.container.labels.key"}}
- {{ctx.Locale.Tr "packages.container.labels.value"}}
-
-
-
- {{range $key, $value := .PackageDescriptor.Metadata.Labels}}
-
- {{$key}}
- {{$value}}
-
- {{end}}
-
-
-
- {{end}}
-{{end}}
diff --git a/package/content/cran.tmpl b/package/content/cran.tmpl
deleted file mode 100644
index ae58e6f..0000000
--- a/package/content/cran.tmpl
+++ /dev/null
@@ -1,59 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "cran"}}
-
-
-
- {{if or .PackageDescriptor.Metadata.Description .PackageDescriptor.Metadata.Title}}
-
-
- {{if .PackageDescriptor.Metadata.Description}}{{.PackageDescriptor.Metadata.Description}}{{.PackageDescriptor.Metadata.Title}}{{else}}{{end}}
-
- {{end}}
-
- {{if or .PackageDescriptor.Metadata.Imports .PackageDescriptor.Metadata.Depends .PackageDescriptor.Metadata.LinkingTo .PackageDescriptor.Metadata.Suggests}}
-
-
-
-
- {{if .PackageDescriptor.Metadata.Imports}}
-
- Imports
- {{StringUtils.Join .PackageDescriptor.Metadata.Imports ", "}}
-
- {{end}}
- {{if .PackageDescriptor.Metadata.Depends}}
-
- Depends
- {{StringUtils.Join .PackageDescriptor.Metadata.Depends ", "}}
-
- {{end}}
- {{if .PackageDescriptor.Metadata.LinkingTo}}
-
- LinkingTo
- {{StringUtils.Join .PackageDescriptor.Metadata.LinkingTo ", "}}
-
- {{end}}
- {{if .PackageDescriptor.Metadata.Suggests}}
-
- Suggests
- {{StringUtils.Join .PackageDescriptor.Metadata.Suggests ", "}}
-
- {{end}}
-
-
-
- {{end}}
-{{end}}
diff --git a/package/content/debian.tmpl b/package/content/debian.tmpl
deleted file mode 100644
index 73b8257..0000000
--- a/package/content/debian.tmpl
+++ /dev/null
@@ -1,65 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "debian"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "packages.debian.repository.distributions"}}
- {{StringUtils.Join .Distributions ", "}}
-
-
- {{ctx.Locale.Tr "packages.debian.repository.components"}}
- {{StringUtils.Join .Components ", "}}
-
-
- {{ctx.Locale.Tr "packages.debian.repository.architectures"}}
- {{StringUtils.Join .Architectures ", "}}
-
-
-
-
-
- {{if .PackageDescriptor.Metadata.Description}}
-
-
- {{.PackageDescriptor.Metadata.Description}}
-
- {{end}}
-
- {{if .PackageDescriptor.Metadata.Dependencies}}
-
-
-
-
- {{range .PackageDescriptor.Metadata.Dependencies}}
-
- {{.}}
-
- {{end}}
-
-
-
- {{end}}
-{{end}}
diff --git a/package/content/generic.tmpl b/package/content/generic.tmpl
deleted file mode 100644
index 2fd9521..0000000
--- a/package/content/generic.tmpl
+++ /dev/null
@@ -1,18 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "generic"}}
-
-
-{{end}}
diff --git a/package/content/go.tmpl b/package/content/go.tmpl
deleted file mode 100644
index 80d1ab2..0000000
--- a/package/content/go.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "go"}}
-
-
-{{end}}
diff --git a/package/content/helm.tmpl b/package/content/helm.tmpl
deleted file mode 100644
index da846e9..0000000
--- a/package/content/helm.tmpl
+++ /dev/null
@@ -1,57 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "helm"}}
-
-
-
- {{if .PackageDescriptor.Metadata.Description}}
-
-
- {{.PackageDescriptor.Metadata.Description}}
-
- {{end}}
-
- {{if .PackageDescriptor.Metadata.Dependencies}}
-
-
-
-
-
- {{ctx.Locale.Tr "packages.dependency.id"}}
- {{ctx.Locale.Tr "packages.dependency.version"}}
-
-
-
- {{range .PackageDescriptor.Metadata.Dependencies}}
-
- {{.Name}}
- {{.Version}}
-
- {{end}}
-
-
-
- {{end}}
-
- {{if .PackageDescriptor.Metadata.Keywords}}
-
-
- {{range .PackageDescriptor.Metadata.Keywords}}
- {{.}}
- {{end}}
-
- {{end}}
-{{end}}
diff --git a/package/content/maven.tmpl b/package/content/maven.tmpl
deleted file mode 100644
index f56595a..0000000
--- a/package/content/maven.tmpl
+++ /dev/null
@@ -1,75 +0,0 @@
-{{if and (eq .PackageDescriptor.Package.Type "maven") (not .PackageDescriptor.Metadata)}}
-
- {{ctx.Locale.Tr "packages.no_metadata"}}
-{{end}}
-{{if and (eq .PackageDescriptor.Package.Type "maven") .PackageDescriptor.Metadata}}
-
-
-
- {{if .PackageDescriptor.Metadata.Description}}
-
-
- {{.PackageDescriptor.Metadata.Description}}
-
- {{end}}
-
- {{if .PackageDescriptor.Metadata.Dependencies}}
-
-
-
- {{range .PackageDescriptor.Metadata.Dependencies}}
-
-
{{svg "octicon-package-dependencies" 16 ""}}
-
-
- {{end}}
-
-
- {{end}}
-{{end}}
diff --git a/package/content/npm.tmpl b/package/content/npm.tmpl
deleted file mode 100644
index a78a07d..0000000
--- a/package/content/npm.tmpl
+++ /dev/null
@@ -1,56 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "npm"}}
-
-
-
- {{if or .PackageDescriptor.Metadata.Description .PackageDescriptor.Metadata.Readme}}
-
-
- {{if .PackageDescriptor.Metadata.Readme}}
-
- {{RenderMarkdownToHtml $.Context .PackageDescriptor.Metadata.Readme}}
-
- {{else if .PackageDescriptor.Metadata.Description}}
- {{.PackageDescriptor.Metadata.Description}}
- {{end}}
-
- {{end}}
-
- {{if or .PackageDescriptor.Metadata.Dependencies .PackageDescriptor.Metadata.DevelopmentDependencies .PackageDescriptor.Metadata.PeerDependencies .PackageDescriptor.Metadata.OptionalDependencies}}
-
-
-
- {{template "package/content/npm_dependencies" dict "root" $ "dependencies" .PackageDescriptor.Metadata.Dependencies "title" (ctx.Locale.Tr "packages.npm.dependencies")}}
- {{template "package/content/npm_dependencies" dict "root" $ "dependencies" .PackageDescriptor.Metadata.DevelopmentDependencies "title" (ctx.Locale.Tr "packages.npm.dependencies.development")}}
- {{template "package/content/npm_dependencies" dict "root" $ "dependencies" .PackageDescriptor.Metadata.PeerDependencies "title" (ctx.Locale.Tr "packages.npm.dependencies.peer")}}
- {{template "package/content/npm_dependencies" dict "root" $ "dependencies" .PackageDescriptor.Metadata.OptionalDependencies "title" (ctx.Locale.Tr "packages.npm.dependencies.optional")}}
-
-
- {{end}}
-
- {{if .PackageDescriptor.Metadata.Keywords}}
-
-
- {{range .PackageDescriptor.Metadata.Keywords}}
- {{.}}
- {{end}}
-
- {{end}}
-{{end}}
diff --git a/package/content/npm_dependencies.tmpl b/package/content/npm_dependencies.tmpl
deleted file mode 100644
index dba4575..0000000
--- a/package/content/npm_dependencies.tmpl
+++ /dev/null
@@ -1,19 +0,0 @@
-{{if .dependencies}}
-{{.title}}
-
-
-
- {{ctx.Locale.Tr "packages.dependency.id"}}
- {{ctx.Locale.Tr "packages.dependency.version"}}
-
-
-
- {{range $dependency, $version := .dependencies}}
-
- {{$dependency}}
- {{$version}}
-
- {{end}}
-
-
-{{end}}
diff --git a/package/content/nuget.tmpl b/package/content/nuget.tmpl
deleted file mode 100644
index f1fe420..0000000
--- a/package/content/nuget.tmpl
+++ /dev/null
@@ -1,51 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "nuget"}}
-
-
-
- {{if or .PackageDescriptor.Metadata.Description .PackageDescriptor.Metadata.ReleaseNotes .PackageDescriptor.Metadata.Readme}}
-
- {{if .PackageDescriptor.Metadata.Description}}{{RenderMarkdownToHtml $.Context .PackageDescriptor.Metadata.Description}}
{{end}}
- {{if .PackageDescriptor.Metadata.Readme}}{{RenderMarkdownToHtml $.Context .PackageDescriptor.Metadata.Readme}}
{{end}}
- {{if .PackageDescriptor.Metadata.ReleaseNotes}}{{RenderMarkdownToHtml $.Context .PackageDescriptor.Metadata.ReleaseNotes}}
{{end}}
- {{end}}
-
- {{if .PackageDescriptor.Metadata.Dependencies}}
-
-
-
-
-
- {{ctx.Locale.Tr "packages.dependency.id"}}
- {{ctx.Locale.Tr "packages.dependency.version"}}
- {{ctx.Locale.Tr "packages.nuget.dependency.framework"}}
-
-
-
- {{range $framework, $dependencies := .PackageDescriptor.Metadata.Dependencies}}
- {{range $dependencies}}
-
- {{.ID}}
- {{.Version}}
- {{$framework}}
-
- {{end}}
- {{end}}
-
-
-
- {{end}}
-{{end}}
diff --git a/package/content/pub.tmpl b/package/content/pub.tmpl
deleted file mode 100644
index f2c7ac9..0000000
--- a/package/content/pub.tmpl
+++ /dev/null
@@ -1,19 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "pub"}}
-
-
- {{if or .PackageDescriptor.Metadata.Description .PackageDescriptor.Metadata.Readme}}
-
- {{if .PackageDescriptor.Metadata.Description}}{{.PackageDescriptor.Metadata.Description}}
{{end}}
- {{if .PackageDescriptor.Metadata.Readme}}{{RenderMarkdownToHtml $.Context .PackageDescriptor.Metadata.Readme}}
{{end}}
- {{end}}
-{{end}}
diff --git a/package/content/pypi.tmpl b/package/content/pypi.tmpl
deleted file mode 100644
index 817fced..0000000
--- a/package/content/pypi.tmpl
+++ /dev/null
@@ -1,31 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "pypi"}}
-
-
- {{if or .PackageDescriptor.Metadata.Description .PackageDescriptor.Metadata.LongDescription .PackageDescriptor.Metadata.Summary}}
-
-
-
{{if .PackageDescriptor.Metadata.Summary}}{{.PackageDescriptor.Metadata.Summary}}{{end}}
- {{if .PackageDescriptor.Metadata.LongDescription}}
- {{RenderMarkdownToHtml $.Context .PackageDescriptor.Metadata.LongDescription}}
- {{else if .PackageDescriptor.Metadata.Description}}
- {{RenderMarkdownToHtml $.Context .PackageDescriptor.Metadata.Description}}
- {{end}}
-
- {{end}}
- {{if .PackageDescriptor.Metadata.RequiresPython}}
-
-
- {{ctx.Locale.Tr "packages.pypi.requires"}}: {{.PackageDescriptor.Metadata.RequiresPython}}
-
- {{end}}
-{{end}}
diff --git a/package/content/rpm.tmpl b/package/content/rpm.tmpl
deleted file mode 100644
index 3faa8a0..0000000
--- a/package/content/rpm.tmpl
+++ /dev/null
@@ -1,56 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "rpm"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "packages.rpm.repository.architectures"}}
- {{StringUtils.Join .Architectures ", "}}
-
-
-
-
-
- {{if or .PackageDescriptor.Metadata.Summary .PackageDescriptor.Metadata.Description}}
-
- {{if .PackageDescriptor.Metadata.Summary}}{{.PackageDescriptor.Metadata.Summary}}
{{end}}
- {{if .PackageDescriptor.Metadata.Description}}{{.PackageDescriptor.Metadata.Description}}
{{end}}
- {{end}}
-{{end}}
diff --git a/package/content/rubygems.tmpl b/package/content/rubygems.tmpl
deleted file mode 100644
index 610dfc7..0000000
--- a/package/content/rubygems.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "rubygems"}}
-
-
- {{if .PackageDescriptor.Metadata.Description}}
-
- {{.PackageDescriptor.Metadata.Description}}
- {{end}}
- {{if or .PackageDescriptor.Metadata.RequiredRubyVersion .PackageDescriptor.Metadata.RequiredRubygemsVersion}}
-
-
- {{if .PackageDescriptor.Metadata.RequiredRubyVersion}}
{{ctx.Locale.Tr "packages.rubygems.required.ruby"}}: {{range $i, $v := .PackageDescriptor.Metadata.RequiredRubyVersion}}{{if gt $i 0}}, {{end}}{{$v.Restriction}}{{$v.Version}}{{end}}
{{end}}
- {{if .PackageDescriptor.Metadata.RequiredRubygemsVersion}}
{{ctx.Locale.Tr "packages.rubygems.required.rubygems"}}: {{range $i, $v := .PackageDescriptor.Metadata.RequiredRubygemsVersion}}{{if gt $i 0}}, {{end}}{{$v.Restriction}}{{$v.Version}}{{end}}
{{end}}
-
- {{end}}
- {{if or .PackageDescriptor.Metadata.RuntimeDependencies .PackageDescriptor.Metadata.DevelopmentDependencies}}
-
-
-
- {{template "package/content/rubygems_dependencies" dict "root" $ "dependencies" .PackageDescriptor.Metadata.RuntimeDependencies "title" (ctx.Locale.Tr "packages.rubygems.dependencies.runtime")}}
- {{template "package/content/rubygems_dependencies" dict "root" $ "dependencies" .PackageDescriptor.Metadata.DevelopmentDependencies "title" (ctx.Locale.Tr "packages.rubygems.dependencies.development")}}
-
-
- {{end}}
-{{end}}
diff --git a/package/content/rubygems_dependencies.tmpl b/package/content/rubygems_dependencies.tmpl
deleted file mode 100644
index 2c42dce..0000000
--- a/package/content/rubygems_dependencies.tmpl
+++ /dev/null
@@ -1,19 +0,0 @@
-{{if .dependencies}}
-{{.title}}
-
-
-
- {{ctx.Locale.Tr "packages.dependency.id"}}
- {{ctx.Locale.Tr "packages.dependency.version"}}
-
-
-
- {{range .dependencies}}
-
- {{.Name}}
- {{range $i, $v := .Version}}{{if gt $i 0}}, {{end}}{{$v.Restriction}}{{$v.Version}}{{end}}
-
- {{end}}
-
-
-{{end}}
diff --git a/package/content/swift.tmpl b/package/content/swift.tmpl
deleted file mode 100644
index aacbc83..0000000
--- a/package/content/swift.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "swift"}}
-
-
-
- {{if .PackageDescriptor.Metadata.Description}}
-
-
- {{if .PackageDescriptor.Metadata.Description}}{{.PackageDescriptor.Metadata.Description}}{{end}}
-
- {{end}}
-
- {{if .PackageDescriptor.Metadata.Keywords}}
-
-
- {{range .PackageDescriptor.Metadata.Keywords}}
- {{.}}
- {{end}}
-
- {{end}}
-{{end}}
diff --git a/package/content/vagrant.tmpl b/package/content/vagrant.tmpl
deleted file mode 100644
index 7666284..0000000
--- a/package/content/vagrant.tmpl
+++ /dev/null
@@ -1,18 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "vagrant"}}
-
-
- {{if .PackageDescriptor.Metadata.Description}}
-
- {{.PackageDescriptor.Metadata.Description}}
- {{end}}
-{{end}}
diff --git a/package/metadata/alpine.tmpl b/package/metadata/alpine.tmpl
deleted file mode 100644
index 3e7f10f..0000000
--- a/package/metadata/alpine.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "alpine"}}
- {{if .PackageDescriptor.Metadata.Maintainer}}{{svg "octicon-person" 16 "mr-3"}} {{.PackageDescriptor.Metadata.Maintainer}}
{{end}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
- {{if .PackageDescriptor.Metadata.License}}{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}
{{end}}
-{{end}}
diff --git a/package/metadata/cargo.tmpl b/package/metadata/cargo.tmpl
deleted file mode 100644
index 5ad3c20..0000000
--- a/package/metadata/cargo.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "cargo"}}
- {{range .PackageDescriptor.Metadata.Authors}}{{svg "octicon-person" 16 "tw-mr-2"}} {{.}}
{{end}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
- {{if .PackageDescriptor.Metadata.RepositoryURL}}{{end}}
- {{if .PackageDescriptor.Metadata.DocumentationURL}}{{end}}
- {{if .PackageDescriptor.Metadata.License}}{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}
{{end}}
-{{end}}
diff --git a/package/metadata/chef.tmpl b/package/metadata/chef.tmpl
deleted file mode 100644
index 23a9ce3..0000000
--- a/package/metadata/chef.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "chef"}}
- {{if .PackageDescriptor.Metadata.Author}}{{svg "octicon-person" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Author}}
{{end}}
- {{if .PackageDescriptor.Metadata.RepositoryURL}}{{end}}
- {{if .PackageDescriptor.Metadata.License}}{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}
{{end}}
-{{end}}
diff --git a/package/metadata/composer.tmpl b/package/metadata/composer.tmpl
deleted file mode 100644
index 0f6ff9d..0000000
--- a/package/metadata/composer.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "composer"}}
- {{range .PackageDescriptor.Metadata.Authors}}{{svg "octicon-person" 16 "tw-mr-2"}} {{.Name}}
{{end}}
- {{if .PackageDescriptor.Metadata.Homepage}}{{end}}
- {{range .PackageDescriptor.Metadata.License}}{{svg "octicon-law" 16 "tw-mr-2"}} {{.}}
{{end}}
-{{end}}
diff --git a/package/metadata/conan.tmpl b/package/metadata/conan.tmpl
deleted file mode 100644
index 4e05ec2..0000000
--- a/package/metadata/conan.tmpl
+++ /dev/null
@@ -1,6 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "conan"}}
- {{if .PackageDescriptor.Metadata.Author}}{{svg "octicon-person" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Author}}
{{end}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
- {{if .PackageDescriptor.Metadata.License}}{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}
{{end}}
- {{if .PackageDescriptor.Metadata.RepositoryURL}}{{end}}
-{{end}}
diff --git a/package/metadata/conda.tmpl b/package/metadata/conda.tmpl
deleted file mode 100644
index 3628686..0000000
--- a/package/metadata/conda.tmpl
+++ /dev/null
@@ -1,6 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "conda"}}
- {{if .PackageDescriptor.Metadata.License}}{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}
{{end}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
- {{if .PackageDescriptor.Metadata.RepositoryURL}}{{end}}
- {{if .PackageDescriptor.Metadata.DocumentationURL}}{{end}}
-{{end}}
diff --git a/package/metadata/container.tmpl b/package/metadata/container.tmpl
deleted file mode 100644
index f5abb7e..0000000
--- a/package/metadata/container.tmpl
+++ /dev/null
@@ -1,9 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "container"}}
- {{svg "octicon-package" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Type.Name}}
- {{if .PackageDescriptor.Metadata.Platform}}{{svg "octicon-cpu" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Platform}}
{{end}}
- {{range .PackageDescriptor.Metadata.Authors}}{{svg "octicon-person" 16 "tw-mr-2"}} {{.}}
{{end}}
- {{if .PackageDescriptor.Metadata.Licenses}}{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Licenses}}
{{end}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
- {{if .PackageDescriptor.Metadata.RepositoryURL}}{{end}}
- {{if .PackageDescriptor.Metadata.DocumentationURL}}{{end}}
-{{end}}
diff --git a/package/metadata/cran.tmpl b/package/metadata/cran.tmpl
deleted file mode 100644
index 1d5a11e..0000000
--- a/package/metadata/cran.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "cran"}}
- {{if .PackageDescriptor.Metadata.License}}{{svg "octicon-law" 16 "mr-3"}} {{.PackageDescriptor.Metadata.License}}
{{end}}
- {{range .PackageDescriptor.Metadata.Authors}}{{svg "octicon-person" 16 "mr-3"}} {{.}}
{{end}}
- {{range .PackageDescriptor.Metadata.ProjectURL}}{{end}}
-{{end}}
diff --git a/package/metadata/debian.tmpl b/package/metadata/debian.tmpl
deleted file mode 100644
index 3cd845c..0000000
--- a/package/metadata/debian.tmpl
+++ /dev/null
@@ -1,4 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "debian"}}
- {{if .PackageDescriptor.Metadata.Maintainer}}{{svg "octicon-person" 16 "mr-3"}} {{.PackageDescriptor.Metadata.Maintainer}}
{{end}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
-{{end}}
diff --git a/package/metadata/generic.tmpl b/package/metadata/generic.tmpl
deleted file mode 100644
index e69de29..0000000
diff --git a/package/metadata/helm.tmpl b/package/metadata/helm.tmpl
deleted file mode 100644
index 50ea484..0000000
--- a/package/metadata/helm.tmpl
+++ /dev/null
@@ -1,4 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "helm"}}
- {{range .PackageDescriptor.Metadata.Maintainers}}{{svg "octicon-person" 16 "tw-mr-2"}} {{.Name}}
{{end}}
- {{if .PackageDescriptor.Metadata.Home}}{{end}}
-{{end}}
diff --git a/package/metadata/maven.tmpl b/package/metadata/maven.tmpl
deleted file mode 100644
index 3641272..0000000
--- a/package/metadata/maven.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{if and (eq .PackageDescriptor.Package.Type "maven") (not .PackageDescriptor.Metadata)}}
- {{svg "octicon-note" 16 "tw-mr-2"}} {{ctx.Locale.Tr "packages.no_metadata"}}
-{{end}}
-{{if and (eq .PackageDescriptor.Package.Type "maven") .PackageDescriptor.Metadata}}
- {{if .PackageDescriptor.Metadata.Name}}{{svg "octicon-note" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Name}}
{{end}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
- {{range .PackageDescriptor.Metadata.Licenses}}{{svg "octicon-law" 16 "tw-mr-2"}} {{.}}
{{end}}
-{{end}}
diff --git a/package/metadata/npm.tmpl b/package/metadata/npm.tmpl
deleted file mode 100644
index df37504..0000000
--- a/package/metadata/npm.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "npm"}}
- {{if .PackageDescriptor.Metadata.Author}}{{svg "octicon-person" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Author}}
{{end}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
- {{if .PackageDescriptor.Metadata.License}}{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}
{{end}}
- {{range .PackageDescriptor.VersionProperties}}
- {{if eq .Name "npm.tag"}}{{svg "octicon-versions" 16 "tw-mr-2"}} {{.Value}}
{{end}}
- {{end}}
-{{end}}
diff --git a/package/metadata/nuget.tmpl b/package/metadata/nuget.tmpl
deleted file mode 100644
index 5534577..0000000
--- a/package/metadata/nuget.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "nuget"}}
- {{if .PackageDescriptor.Metadata.Authors}}{{svg "octicon-person" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Authors}}
{{end}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
- {{if .PackageDescriptor.Metadata.RepositoryURL}}{{end}}
-{{end}}
diff --git a/package/metadata/pub.tmpl b/package/metadata/pub.tmpl
deleted file mode 100644
index 16f7cec..0000000
--- a/package/metadata/pub.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "pub"}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
- {{if .PackageDescriptor.Metadata.RepositoryURL}}{{end}}
- {{if .PackageDescriptor.Metadata.DocumentationURL}}{{end}}
-{{end}}
diff --git a/package/metadata/pypi.tmpl b/package/metadata/pypi.tmpl
deleted file mode 100644
index 3d9b213..0000000
--- a/package/metadata/pypi.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "pypi"}}
- {{if .PackageDescriptor.Metadata.Author}}{{svg "octicon-person" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Author}}
{{end}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
- {{if .PackageDescriptor.Metadata.License}}{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}
{{end}}
-{{end}}
diff --git a/package/metadata/rpm.tmpl b/package/metadata/rpm.tmpl
deleted file mode 100644
index eda8a48..0000000
--- a/package/metadata/rpm.tmpl
+++ /dev/null
@@ -1,4 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "rpm"}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
- {{if .PackageDescriptor.Metadata.License}}{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}
{{end}}
-{{end}}
diff --git a/package/metadata/rubygems.tmpl b/package/metadata/rubygems.tmpl
deleted file mode 100644
index 9b11287..0000000
--- a/package/metadata/rubygems.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "rubygems"}}
- {{range .PackageDescriptor.Metadata.Authors}}{{svg "octicon-person" 16 "tw-mr-2"}} {{.}}
{{end}}
- {{if .PackageDescriptor.Metadata.ProjectURL}} {{end}}
- {{range .PackageDescriptor.Metadata.Licenses}}{{svg "octicon-law" 16 "tw-mr-2"}} {{.}}
{{end}}
-{{end}}
diff --git a/package/metadata/swift.tmpl b/package/metadata/swift.tmpl
deleted file mode 100644
index fdffb6d..0000000
--- a/package/metadata/swift.tmpl
+++ /dev/null
@@ -1,4 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "swift"}}
- {{if .PackageDescriptor.Metadata.Author.String}}{{svg "octicon-person" 16 "mr-3"}} {{.PackageDescriptor.Metadata.Author}}
{{end}}
- {{if .PackageDescriptor.Metadata.RepositoryURL}}{{end}}
-{{end}}
diff --git a/package/metadata/vagrant.tmpl b/package/metadata/vagrant.tmpl
deleted file mode 100644
index 4628a2d..0000000
--- a/package/metadata/vagrant.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{if eq .PackageDescriptor.Package.Type "vagrant"}}
- {{if .PackageDescriptor.Metadata.Author}}{{svg "octicon-person" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Author}}
{{end}}
- {{if .PackageDescriptor.Metadata.ProjectURL}}{{end}}
- {{if .PackageDescriptor.Metadata.RepositoryURL}}{{end}}
-{{end}}
diff --git a/package/settings.tmpl b/package/settings.tmpl
deleted file mode 100644
index 9424baf..0000000
--- a/package/settings.tmpl
+++ /dev/null
@@ -1,77 +0,0 @@
-{{template "base/head" .}}
-
- {{if .ContextUser.IsOrganization}}
- {{template "org/header" .}}
- {{else}}
- {{template "shared/user/org_profile_avatar" .}}
- {{end}}
-
- {{if not .ContextUser.IsOrganization}}
- {{template "user/overview/header" .}}
- {{end}}
- {{template "base/alert" .}}
-
{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}}) / {{ctx.Locale.Tr "repo.settings"}}
-
-
-
{{ctx.Locale.Tr "packages.settings.link.description"}}
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
-
-
- {{$repoID := 0}}
- {{if .PackageDescriptor.Repository}}
- {{$repoID = .PackageDescriptor.Repository.ID}}
- {{end}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
{{ctx.Locale.Tr "packages.settings.link.select"}}
-
-
-
-
- {{ctx.Locale.Tr "packages.settings.link.button"}}
-
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "packages.settings.delete"}}
-
{{ctx.Locale.Tr "packages.settings.delete.description"}}
-
-
- {{ctx.Locale.Tr "packages.settings.delete"}}
-
-
-
-
-
- {{ctx.Locale.Tr "packages.settings.delete.notice" .PackageDescriptor.Package.Name .PackageDescriptor.Version.Version}}
-
-
- {{.CsrfTokenHtml}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/package/shared/cargo.tmpl b/package/shared/cargo.tmpl
deleted file mode 100644
index 7652231..0000000
--- a/package/shared/cargo.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
diff --git a/package/shared/cleanup_rules/edit.tmpl b/package/shared/cleanup_rules/edit.tmpl
deleted file mode 100644
index 138a907..0000000
--- a/package/shared/cleanup_rules/edit.tmpl
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "enabled"}}
-
-
-
-
- {{ctx.Locale.Tr "packages.filter.type"}}
-
- {{range $type := .AvailableTypes}}
- {{$type.Name}}
- {{end}}
-
-
-
-
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.pattern_full_match"}}
-
-
-
-
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.title"}}
-
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count"}}:
-
-
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count.1"}}
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count.n" 5}}
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count.n" 10}}
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count.n" 25}}
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count.n" 50}}
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count.n" 100}}
-
-
-
-
{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.pattern"}}:
-
-
{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.pattern.container"}}
-
-
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.remove.title"}}
-
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.remove.days"}}:
-
-
- {{ctx.Locale.Tr "tool.days" 7}}
- {{ctx.Locale.Tr "tool.days" 14}}
- {{ctx.Locale.Tr "tool.days" 30}}
- {{ctx.Locale.Tr "tool.days" 60}}
- {{ctx.Locale.Tr "tool.days" 90}}
- {{ctx.Locale.Tr "tool.days" 180}}
-
-
-
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.remove.pattern"}}:
-
-
-
-
-
diff --git a/package/shared/cleanup_rules/list.tmpl b/package/shared/cleanup_rules/list.tmpl
deleted file mode 100644
index 6505c8f..0000000
--- a/package/shared/cleanup_rules/list.tmpl
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
- {{range .CleanupRules}}
-
-
- {{svg .Type.SVGName 32}}
-
-
-
-
- {{if .Enabled}}{{ctx.Locale.Tr "enabled"}}{{else}}{{ctx.Locale.Tr "disabled"}}{{end}}
-
- {{if .KeepCount}}
-
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count"}}: {{if eq .KeepCount 1}}{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count.1"}}{{else}}{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count.n" .KeepCount}}{{end}}
-
- {{end}}
- {{if .KeepPattern}}
-
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.pattern"}}: {{StringUtils.EllipsisString .KeepPattern 100}}
-
- {{end}}
- {{if .RemoveDays}}
-
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.remove.days"}}: {{ctx.Locale.Tr "tool.days" .RemoveDays}}
-
- {{end}}
- {{if .RemovePattern}}
-
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.remove.pattern"}}: {{StringUtils.EllipsisString .RemovePattern 100}}
-
- {{end}}
-
-
-
- {{svg "octicon-kebab-horizontal"}}
-
-
-
-
- {{else}}
-
{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.none"}}
- {{end}}
-
-
diff --git a/package/shared/cleanup_rules/preview.tmpl b/package/shared/cleanup_rules/preview.tmpl
deleted file mode 100644
index cff8e82..0000000
--- a/package/shared/cleanup_rules/preview.tmpl
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.preview.overview" (len .VersionsToRemove)}}
-
-
-
-
-
- {{ctx.Locale.Tr "admin.packages.type"}}
- {{ctx.Locale.Tr "admin.packages.name"}}
- {{ctx.Locale.Tr "admin.packages.version"}}
- {{ctx.Locale.Tr "admin.packages.creator"}}
- {{ctx.Locale.Tr "admin.packages.size"}}
- {{ctx.Locale.Tr "admin.packages.published"}}
-
-
-
- {{range .VersionsToRemove}}
-
- {{.Package.Type.Name}}
- {{.Package.Name}}
- {{.Version.Version}}
- {{.Creator.Name}}
- {{FileSize .CalculateBlobSize}}
- {{DateTime "short" .Version.CreatedUnix}}
-
- {{else}}
-
- {{ctx.Locale.Tr "packages.owner.settings.cleanuprules.preview.none"}}
-
- {{end}}
-
-
-
diff --git a/package/shared/list.tmpl b/package/shared/list.tmpl
deleted file mode 100644
index e4e8eca..0000000
--- a/package/shared/list.tmpl
+++ /dev/null
@@ -1,57 +0,0 @@
-{{template "base/alert" .}}
-{{if .HasPackages}}
-
-
- {{template "shared/search/input" dict "Value" .Query "Placeholder" (ctx.Locale.Tr "search.package_kind")}}
-
- {{ctx.Locale.Tr "packages.filter.type"}}
- {{ctx.Locale.Tr "packages.filter.type.all"}}
- {{range $type := .AvailableTypes}}
- {{$type.Name}}
- {{end}}
-
- {{template "shared/search/button"}}
-
-
-{{end}}
-
- {{range .PackageDescriptors}}
-
-
-
-
-
- {{$timeStr := TimeSinceUnix .Version.CreatedUnix ctx.Locale}}
- {{$hasRepositoryAccess := false}}
- {{if .Repository}}
- {{$hasRepositoryAccess = index $.RepositoryAccessMap .Repository.ID}}
- {{end}}
- {{if $hasRepositoryAccess}}
- {{ctx.Locale.Tr "packages.published_by_in" $timeStr .Creator.HomeLink .Creator.GetDisplayName .Repository.Link .Repository.FullName}}
- {{else}}
- {{ctx.Locale.Tr "packages.published_by" $timeStr .Creator.HomeLink .Creator.GetDisplayName}}
- {{end}}
-
-
-
-
- {{else}}
- {{if not .HasPackages}}
-
- {{svg "octicon-package" 48}}
-
{{ctx.Locale.Tr "packages.empty"}}
- {{if and .Repository .CanWritePackages}}
- {{$packagesUrl := URLJoin .Owner.HomeLink "-" "packages"}}
-
{{ctx.Locale.Tr "packages.empty.repo" $packagesUrl}}
- {{end}}
-
{{ctx.Locale.Tr "packages.empty.documentation" "https://docs.gitea.com/usage/packages/overview/"}}
-
- {{else}}
-
{{ctx.Locale.Tr "packages.filter.no_result"}}
- {{end}}
- {{end}}
- {{template "base/paginate" .}}
-
diff --git a/package/shared/versionlist.tmpl b/package/shared/versionlist.tmpl
deleted file mode 100644
index e5c568e..0000000
--- a/package/shared/versionlist.tmpl
+++ /dev/null
@@ -1,37 +0,0 @@
-{{.PackageDescriptor.Package.Name}} / {{ctx.Locale.Tr "packages.versions"}}
-
-
- {{template "shared/search/input" dict "Value" .Query "Placeholder" (ctx.Locale.Tr "search.package_kind")}}
-
- {{ctx.Locale.Tr "filter.string.asc"}}
- {{ctx.Locale.Tr "filter.string.desc"}}
- {{ctx.Locale.Tr "repo.issues.filter_sort.oldest"}}
- {{ctx.Locale.Tr "repo.issues.filter_sort.latest"}}
-
- {{if eq .PackageDescriptor.Package.Type "container"}}
-
- {{$isTagged := or (eq .Tagged "") (eq .Tagged "tagged")}}
- {{ctx.Locale.Tr "packages.filter.container.tagged"}}
- {{ctx.Locale.Tr "packages.filter.container.untagged"}}
-
- {{end}}
- {{template "shared/search/button"}}
-
-
-
- {{range .PackageDescriptors}}
-
-
-
-
{{.Version.LowerVersion}}
-
- {{ctx.Locale.Tr "packages.published_by" (TimeSinceUnix .Version.CreatedUnix ctx.Locale) .Creator.HomeLink .Creator.GetDisplayName}}
-
-
-
-
- {{else}}
-
{{ctx.Locale.Tr "packages.filter.no_result"}}
- {{end}}
- {{template "base/paginate" .}}
-
diff --git a/package/view.tmpl b/package/view.tmpl
deleted file mode 100644
index 6beb249..0000000
--- a/package/view.tmpl
+++ /dev/null
@@ -1,114 +0,0 @@
-{{template "base/head" .}}
-
- {{template "shared/user/org_profile_avatar" .}}
-
- {{template "user/overview/header" .}}
-
-
-
- {{template "package/content/alpine" .}}
- {{template "package/content/cargo" .}}
- {{template "package/content/chef" .}}
- {{template "package/content/composer" .}}
- {{template "package/content/conan" .}}
- {{template "package/content/conda" .}}
- {{template "package/content/container" .}}
- {{template "package/content/cran" .}}
- {{template "package/content/debian" .}}
- {{template "package/content/generic" .}}
- {{template "package/content/go" .}}
- {{template "package/content/helm" .}}
- {{template "package/content/maven" .}}
- {{template "package/content/npm" .}}
- {{template "package/content/nuget" .}}
- {{template "package/content/pub" .}}
- {{template "package/content/pypi" .}}
- {{template "package/content/rpm" .}}
- {{template "package/content/rubygems" .}}
- {{template "package/content/swift" .}}
- {{template "package/content/vagrant" .}}
-
-
-
{{ctx.Locale.Tr "packages.details"}}
-
-
{{svg .PackageDescriptor.Package.Type.SVGName 16 "tw-mr-2"}} {{.PackageDescriptor.Package.Type.Name}}
- {{if .HasRepositoryAccess}}
-
- {{end}}
-
{{svg "octicon-calendar" 16 "tw-mr-2"}} {{TimeSinceUnix .PackageDescriptor.Version.CreatedUnix ctx.Locale}}
-
{{svg "octicon-download" 16 "tw-mr-2"}} {{.PackageDescriptor.Version.DownloadCount}}
- {{template "package/metadata/alpine" .}}
- {{template "package/metadata/cargo" .}}
- {{template "package/metadata/chef" .}}
- {{template "package/metadata/composer" .}}
- {{template "package/metadata/conan" .}}
- {{template "package/metadata/conda" .}}
- {{template "package/metadata/container" .}}
- {{template "package/metadata/cran" .}}
- {{template "package/metadata/debian" .}}
- {{template "package/metadata/generic" .}}
- {{template "package/metadata/helm" .}}
- {{template "package/metadata/maven" .}}
- {{template "package/metadata/npm" .}}
- {{template "package/metadata/nuget" .}}
- {{template "package/metadata/pub" .}}
- {{template "package/metadata/pypi" .}}
- {{template "package/metadata/rpm" .}}
- {{template "package/metadata/rubygems" .}}
- {{template "package/metadata/swift" .}}
- {{template "package/metadata/vagrant" .}}
- {{if not (and (eq .PackageDescriptor.Package.Type "container") .PackageDescriptor.Metadata.Manifests)}}
-
{{svg "octicon-database" 16 "tw-mr-2"}} {{FileSize .PackageDescriptor.CalculateBlobSize}}
- {{end}}
-
- {{if not (eq .PackageDescriptor.Package.Type "container")}}
-
-
{{ctx.Locale.Tr "packages.assets"}} ({{len .PackageDescriptor.Files}})
-
- {{range .PackageDescriptor.Files}}
-
- {{end}}
-
- {{end}}
-
-
{{ctx.Locale.Tr "packages.versions"}} ({{.TotalVersionCount}})
-
{{ctx.Locale.Tr "packages.versions.view_all"}}
-
- {{range .LatestVersions}}
-
- {{end}}
-
- {{if or .CanWritePackages .HasRepositoryAccess}}
-
-
- {{if .HasRepositoryAccess}}
-
- {{end}}
- {{if .CanWritePackages}}
-
- {{end}}
-
- {{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/post-install.tmpl b/post-install.tmpl
deleted file mode 100644
index fb23400..0000000
--- a/post-install.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/projects/list.tmpl b/projects/list.tmpl
deleted file mode 100644
index b2f48fe..0000000
--- a/projects/list.tmpl
+++ /dev/null
@@ -1,93 +0,0 @@
-{{if and $.CanWriteProjects (not $.Repository.IsArchived)}}
-
-{{end}}
-
-{{template "base/alert" .}}
-
-
-
-
- {{range .Projects}}
-
-
- {{svg .IconName 16}}
- {{.Title}}
-
-
- {{if .Description}}
-
- {{.RenderedContent}}
-
- {{end}}
-
- {{end}}
-
- {{template "base/paginate" .}}
-
-
-{{if and $.CanWriteProjects (not $.Repository.IsArchived)}}
-
-
-
-
{{ctx.Locale.Tr "repo.projects.deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-{{end}}
diff --git a/projects/new.tmpl b/projects/new.tmpl
deleted file mode 100644
index 92ee36c..0000000
--- a/projects/new.tmpl
+++ /dev/null
@@ -1,66 +0,0 @@
-
-{{template "base/alert" .}}
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "repo.projects.title"}}
-
-
-
- {{ctx.Locale.Tr "repo.projects.description"}}
- {{.content}}
-
-
- {{if not .PageIsEditProjects}}
-
-
{{ctx.Locale.Tr "repo.projects.template.desc"}}
-
-
-
{{ctx.Locale.Tr "repo.projects.template.desc_helper"}}
-
-
-
- {{end}}
-
-
-
{{ctx.Locale.Tr "repo.projects.card_type.desc"}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
- {{range $element := .CardTypes}}
- {{if or (eq $.card_type $element.CardType) (and (not $.PageIsEditProjects) (eq $element.CardType 1))}}
-
-
{{ctx.Locale.Tr $element.Translation}}
- {{end}}
- {{end}}
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.milestones.cancel"}}
-
-
- {{if .PageIsEditProjects}}{{ctx.Locale.Tr "repo.projects.modify"}}{{else}}{{ctx.Locale.Tr "repo.projects.create"}}{{end}}
-
-
-
diff --git a/projects/view.tmpl b/projects/view.tmpl
deleted file mode 100644
index 6d331ca..0000000
--- a/projects/view.tmpl
+++ /dev/null
@@ -1,176 +0,0 @@
-{{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}}
-
-
-
-
{{.Project.Title}}
- {{if $canWriteProject}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.projects.column.new_title"}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.projects.column.color"}}
-
-
- {{template "repo/issue/label_precolors"}}
-
-
-
-
- {{ctx.Locale.Tr "settings.cancel"}}
- {{ctx.Locale.Tr "repo.projects.column.new_submit"}}
-
-
-
-
- {{end}}
-
-
-
{{$.Project.RenderedContent}}
-
-
-
-
-
-
- {{range .Columns}}
-
-
-
- {{.NumIssues ctx}}
-
-
{{.Title}}
- {{if $canWriteProject}}
-
- {{svg "octicon-kebab-horizontal"}}
-
-
- {{end}}
-
-
-
- {{range (index $.IssuesMap .ID)}}
-
- {{template "repo/issue/card" (dict "Issue" . "Page" $)}}
-
- {{end}}
-
-
- {{end}}
-
-
-
-{{if .CanWriteProjects}}
-
-
-
-
{{ctx.Locale.Tr "repo.projects.deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-{{end}}
diff --git a/repo/actions/list.tmpl b/repo/actions/list.tmpl
deleted file mode 100644
index b66d0e3..0000000
--- a/repo/actions/list.tmpl
+++ /dev/null
@@ -1,87 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
- {{if .HasWorkflowsOrRuns}}
-
-
-
-
-
-
- {{template "repo/actions/runs_list" .}}
-
-
- {{else}}
- {{template "repo/actions/no_workflows" .}}
- {{end}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/actions/no_workflows.tmpl b/repo/actions/no_workflows.tmpl
deleted file mode 100644
index 0093135..0000000
--- a/repo/actions/no_workflows.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-
- {{svg "octicon-no-entry" 48}}
-
{{ctx.Locale.Tr "actions.runs.no_workflows"}}
- {{if and .CanWriteCode .CanWriteActions}}
-
{{ctx.Locale.Tr "actions.runs.no_workflows.quick_start" "https://docs.gitea.com/usage/actions/quickstart/"}}
- {{end}}
-
{{ctx.Locale.Tr "actions.runs.no_workflows.documentation" "https://docs.gitea.com/usage/actions/overview/"}}
-
diff --git a/repo/actions/runs_list.tmpl b/repo/actions/runs_list.tmpl
deleted file mode 100644
index 09a25ce..0000000
--- a/repo/actions/runs_list.tmpl
+++ /dev/null
@@ -1,43 +0,0 @@
-
- {{if not .Runs}}
-
- {{svg "octicon-no-entry" 48}}
-
{{if $.IsFiltered}}{{ctx.Locale.Tr "actions.runs.no_results"}}{{else}}{{ctx.Locale.Tr "actions.runs.no_runs"}}{{end}}
-
- {{end}}
- {{range .Runs}}
-
- {{end}}
-
-{{template "base/paginate" .}}
diff --git a/repo/actions/status.tmpl b/repo/actions/status.tmpl
deleted file mode 100644
index a0e02cf..0000000
--- a/repo/actions/status.tmpl
+++ /dev/null
@@ -1,29 +0,0 @@
-
-{{- $size := 16 -}}
-{{- if .size -}}
-{{- $size = .size -}}
-{{- end -}}
-
-{{- $className := "" -}}
-{{- if .className -}}
-{{- $className = .className -}}
-{{- end -}}
-
-
-{{if eq .status "success"}}
- {{svg "octicon-check-circle-fill" $size (printf "text green %s" $className)}}
-{{else if eq .status "skipped"}}
- {{svg "octicon-skip" $size (printf "text grey %s" $className)}}
-{{else if eq .status "waiting"}}
- {{svg "octicon-clock" $size (printf "text yellow %s" $className)}}
-{{else if eq .status "blocked"}}
- {{svg "octicon-blocked" $size (printf "text yellow %s" $className)}}
-{{else if eq .status "running"}}
- {{svg "octicon-meter" $size (printf "text yellow job-status-rotate %s" $className)}}
-{{else if or (eq .status "failure") or (eq .status "cancelled") or (eq .status "unknown")}}
- {{svg "octicon-x-circle-fill" $size (printf "text red %s" $className)}}
-{{end}}
-
diff --git a/repo/actions/view.tmpl b/repo/actions/view.tmpl
deleted file mode 100644
index f7b0360..0000000
--- a/repo/actions/view.tmpl
+++ /dev/null
@@ -1,34 +0,0 @@
-{{template "base/head" .}}
-
-
- {{template "repo/header" .}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/activity.tmpl b/repo/activity.tmpl
deleted file mode 100644
index a19fb66..0000000
--- a/repo/activity.tmpl
+++ /dev/null
@@ -1,17 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{template "repo/navbar" .}}
-
-
- {{if .PageIsPulse}}{{template "repo/pulse" .}}{{end}}
- {{if .PageIsContributors}}{{template "repo/contributors" .}}{{end}}
- {{if .PageIsCodeFrequency}}{{template "repo/code_frequency" .}}{{end}}
- {{if .PageIsRecentCommits}}{{template "repo/recent_commits" .}}{{end}}
-
-
-
-{{template "base/footer" .}}
-
diff --git a/repo/blame.tmpl b/repo/blame.tmpl
deleted file mode 100644
index 091196b..0000000
--- a/repo/blame.tmpl
+++ /dev/null
@@ -1,90 +0,0 @@
-{{if or .UsesIgnoreRevs .FaultyIgnoreRevsFile}}
- {{$revsFileLink := URLJoin .RepoLink "src" .BranchNameSubURL "/.git-blame-ignore-revs"}}
- {{if .UsesIgnoreRevs}}
-
-
{{ctx.Locale.Tr "repo.blame.ignore_revs" $revsFileLink "?bypass-blame-ignore=true"}}
-
- {{else}}
-
-
{{ctx.Locale.Tr "repo.blame.ignore_revs.failed" $revsFileLink}}
-
- {{end}}
-{{end}}
-
-
-
-
- {{if .IsFileTooLarge}}
- {{template "shared/filetoolarge" dict "RawFileLink" .RawFileLink}}
- {{else}}
-
-
- {{range $row := .BlameRows}}
-
-
-
-
-
- {{$row.Avatar}}
-
-
-
- {{$row.CommitSince}}
-
-
-
-
-
- {{if $row.PreviousSha}}
-
- {{svg "octicon-versions"}}
-
- {{end}}
-
-
-
-
- {{if $.EscapeStatus.Escaped}}
-
- {{if $row.EscapeStatus.Escaped}}
-
- {{end}}
-
- {{end}}
-
- {{$row.Code}}
-
-
- {{end}}
-
-
- {{end}}{{/* end if .IsFileTooLarge */}}
-
-
-
-
diff --git a/repo/branch/list.tmpl b/repo/branch/list.tmpl
deleted file mode 100644
index dcfe082..0000000
--- a/repo/branch/list.tmpl
+++ /dev/null
@@ -1,256 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
- {{template "repo/sub_menu" .}}
- {{if .DefaultBranchBranch}}
-
-
-
-
-
-
-
-
- {{if .DefaultBranchBranch.IsProtected}}{{svg "octicon-shield-lock"}}{{end}}
-
{{.DefaultBranchBranch.DBBranch.Name}}
-
{{svg "octicon-copy" 14}}
- {{template "repo/commit_statuses" dict "Status" (index $.CommitStatus .DefaultBranchBranch.DBBranch.CommitID) "Statuses" (index $.CommitStatuses .DefaultBranchBranch.DBBranch.CommitID)}}
-
- {{svg "octicon-git-commit" 16 "tw-mr-1"}}{{ShortSha .DefaultBranchBranch.DBBranch.CommitID}} · {{RenderCommitMessage $.Context .DefaultBranchBranch.DBBranch.CommitMessage (.Repository.ComposeMetas ctx)}} · {{ctx.Locale.Tr "org.repo_updated"}} {{TimeSince .DefaultBranchBranch.DBBranch.CommitTime.AsTime ctx.Locale}}{{if .DefaultBranchBranch.DBBranch.Pusher}} {{template "shared/user/avatarlink" dict "user" .DefaultBranchBranch.DBBranch.Pusher}}{{template "shared/user/namelink" .DefaultBranchBranch.DBBranch.Pusher}}{{end}}
-
-
- {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}}
-
- {{svg "octicon-git-branch"}}
-
- {{end}}
- {{if .EnableFeed}}
- {{svg "octicon-rss"}}
- {{end}}
- {{if not $.DisableDownloadSourceArchives}}
-
- {{svg "octicon-download"}}
-
-
- {{end}}
- {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted) (not $.IsMirror)}}
-
- {{svg "octicon-pencil"}}
-
- {{end}}
-
-
-
-
-
- {{end}}
-
-
-
-
-
- {{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.branch_kind")}}
-
-
-
-
- {{template "base/paginate" .}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.branch.delete_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.branch.create_new_branch"}}
-
-
-
- {{ctx.Locale.Tr "repo.branch.name"}}
-
-
-
- {{template "base/modal_actions_confirm" (dict "ModalButtonTypes" "confirm")}}
-
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.branch.warning_rename_default_branch"}}
-
-
-
-
-
-
-
-
-
- {{template "base/modal_actions_confirm" (dict "ModalButtonTypes" "confirm")}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/branch_dropdown.tmpl b/repo/branch_dropdown.tmpl
deleted file mode 100644
index c4f7387..0000000
--- a/repo/branch_dropdown.tmpl
+++ /dev/null
@@ -1,89 +0,0 @@
-{{/* Attributes:
-* root
-* ContainerClasses
-* (TODO: search "branch_dropdown" in the template directory)
-*/}}
-{{$defaultSelectedRefName := $.root.BranchName}}
-{{if and .root.IsViewTag (not .noTag)}}
- {{$defaultSelectedRefName = .root.TagName}}
-{{end}}
-{{if eq $defaultSelectedRefName ""}}
- {{$defaultSelectedRefName = $.root.Repository.DefaultBranch}}
-{{end}}
-
-{{$type := ""}}
-{{if and .root.IsViewTag (not .noTag)}}
- {{$type = "tag"}}
-{{else if .root.IsViewBranch}}
- {{$type = "branch"}}
-{{else}}
- {{$type = "tree"}}
-{{end}}
-
-{{$showBranchesInDropdown := not .root.HideBranchesInDropdown}}
-
-
-
-
- {{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}}
-
-
-
- {{if .release}}
- {{ctx.Locale.Tr "repo.release.compare"}}
- {{else}}
- {{if eq $type "tag"}}
- {{svg "octicon-tag"}}
- {{else}}
- {{svg "octicon-git-branch"}}
- {{end}}
- {{if and .root.IsViewTag (not .noTag)}}{{.root.TagName}}{{else if .root.IsViewBranch}}{{.root.BranchName}}{{else}}{{ShortSha .root.CommitID}}{{end}}
- {{end}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
diff --git a/repo/cite/cite_buttons.tmpl b/repo/cite/cite_buttons.tmpl
deleted file mode 100644
index 426ca38..0000000
--- a/repo/cite/cite_buttons.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-
-APA
-
-
-BibTeX
-
-
-
-
- {{svg "octicon-copy"}}
-
diff --git a/repo/cite/cite_modal.tmpl b/repo/cite/cite_modal.tmpl
deleted file mode 100644
index fb25144..0000000
--- a/repo/cite/cite_modal.tmpl
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "cancel"}}
-
-
-
diff --git a/repo/clone_script.tmpl b/repo/clone_script.tmpl
deleted file mode 100644
index 40dae76..0000000
--- a/repo/clone_script.tmpl
+++ /dev/null
@@ -1,50 +0,0 @@
-
diff --git a/repo/code/recently_pushed_new_branches.tmpl b/repo/code/recently_pushed_new_branches.tmpl
deleted file mode 100644
index 025cc1a..0000000
--- a/repo/code/recently_pushed_new_branches.tmpl
+++ /dev/null
@@ -1,12 +0,0 @@
-{{range .RecentlyPushedNewBranches}}
-
-
- {{$timeSince := TimeSince .CommitTime.AsTime ctx.Locale}}
- {{$branchLink := HTMLFormat `
%s ` .BranchLink .BranchDisplayName}}
- {{ctx.Locale.Tr "repo.pulls.recently_pushed_new_branches" $branchLink $timeSince}}
-
-
- {{ctx.Locale.Tr "repo.pulls.compare_changes"}}
-
-
-{{end}}
diff --git a/repo/code_frequency.tmpl b/repo/code_frequency.tmpl
deleted file mode 100644
index 79b45d4..0000000
--- a/repo/code_frequency.tmpl
+++ /dev/null
@@ -1,9 +0,0 @@
-{{if .Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
-
-
-{{end}}
diff --git a/repo/commit_load_branches_and_tags.tmpl b/repo/commit_load_branches_and_tags.tmpl
deleted file mode 100644
index ffa0e53..0000000
--- a/repo/commit_load_branches_and_tags.tmpl
+++ /dev/null
@@ -1,20 +0,0 @@
-{{if not .PageIsWiki}}
-
-
...
-
-
-
{{ctx.Locale.Tr "repo.commit.contained_in"}}
-
-
{{svg "octicon-git-branch"}}
-
-
-
-
{{svg "octicon-tag"}}
-
-
-
-
-{{end}}
diff --git a/repo/commit_page.tmpl b/repo/commit_page.tmpl
deleted file mode 100644
index b8195ac..0000000
--- a/repo/commit_page.tmpl
+++ /dev/null
@@ -1,285 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{$class := ""}}
- {{if .Commit.Signature}}
- {{$class = (print $class " isSigned")}}
- {{if .Verification.Verified}}
- {{if eq .Verification.TrustStatus "trusted"}}
- {{$class = (print $class " isVerified")}}
- {{else if eq .Verification.TrustStatus "untrusted"}}
- {{$class = (print $class " isVerifiedUntrusted")}}
- {{else}}
- {{$class = (print $class " isVerifiedUnmatched")}}
- {{end}}
- {{else if .Verification.Warning}}
- {{$class = (print $class " isWarning")}}
- {{end}}
- {{end}}
-
-
- {{if .Commit.Signature}}
-
- {{end}}
- {{if .NoteRendered}}
-
-
-
{{.NoteRendered | SanitizeHTML}}
-
- {{end}}
- {{template "repo/diff/box" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/commit_status.tmpl b/repo/commit_status.tmpl
deleted file mode 100644
index eb700ab..0000000
--- a/repo/commit_status.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-
-{{if eq .State "pending"}}
- {{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}}
-{{end}}
-{{if eq .State "success"}}
- {{svg "octicon-check" 18 "commit-status icon text green"}}
-{{end}}
-{{if eq .State "error"}}
- {{svg "gitea-exclamation" 18 "commit-status icon text red"}}
-{{end}}
-{{if eq .State "failure"}}
- {{svg "octicon-x" 18 "commit-status icon text red"}}
-{{end}}
-{{if eq .State "warning"}}
- {{svg "gitea-exclamation" 18 "commit-status icon text yellow"}}
-{{end}}
diff --git a/repo/commit_statuses.tmpl b/repo/commit_statuses.tmpl
deleted file mode 100644
index f451ac0..0000000
--- a/repo/commit_statuses.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-{{if .Statuses}}
- {{if and (eq (len .Statuses) 1) .Status.TargetURL}}
-
- {{template "repo/commit_status" .Status}}
-
- {{else}}
-
- {{template "repo/commit_status" .Status}}
-
- {{end}}
-
- {{template "repo/pulls/status" (dict "CommitStatuses" .Statuses "CommitStatus" .Status)}}
-
-{{end}}
diff --git a/repo/commits.tmpl b/repo/commits.tmpl
deleted file mode 100644
index e6efe1f..0000000
--- a/repo/commits.tmpl
+++ /dev/null
@@ -1,18 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "repo/sub_menu" .}}
-
- {{template "repo/commits_table" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/commits_list.tmpl b/repo/commits_list.tmpl
deleted file mode 100644
index bb5d2a0..0000000
--- a/repo/commits_list.tmpl
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
-
-
- {{ctx.Locale.Tr "repo.commits.author"}}
- {{StringUtils.ToUpper $.Repository.ObjectFormatName}}
- {{ctx.Locale.Tr "repo.commits.message"}}
- {{ctx.Locale.Tr "repo.commits.date"}}
-
-
-
-
- {{$commitRepoLink := $.RepoLink}}{{if $.CommitRepoLink}}{{$commitRepoLink = $.CommitRepoLink}}{{end}}
- {{range .Commits}}
-
-
-
- {{$userName := .Author.Name}}
- {{if .User}}
- {{if and .User.FullName DefaultShowFullName}}
- {{$userName = .User.FullName}}
- {{end}}
- {{ctx.AvatarUtils.Avatar .User 28 "tw-mr-2"}}
{{$userName}}
- {{else}}
- {{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 28 "tw-mr-2"}}
-
{{$userName}}
- {{end}}
-
-
-
- {{$class := "ui sha label"}}
- {{if .Signature}}
- {{$class = (print $class " isSigned")}}
- {{if .Verification.Verified}}
- {{if eq .Verification.TrustStatus "trusted"}}
- {{$class = (print $class " isVerified")}}
- {{else if eq .Verification.TrustStatus "untrusted"}}
- {{$class = (print $class " isVerifiedUntrusted")}}
- {{else}}
- {{$class = (print $class " isVerifiedUnmatched")}}
- {{end}}
- {{else if .Verification.Warning}}
- {{$class = (print $class " isWarning")}}
- {{end}}
- {{end}}
- {{$commitShaLink := ""}}
- {{if $.PageIsWiki}}
- {{$commitShaLink = (printf "%s/wiki/commit/%s" $commitRepoLink (PathEscape .ID.String))}}
- {{else if $.PageIsPullCommits}}
- {{$commitShaLink = (printf "%s/pulls/%d/commits/%s" $commitRepoLink $.Issue.Index (PathEscape .ID.String))}}
- {{else if $.Reponame}}
- {{$commitShaLink = (printf "%s/commit/%s" $commitRepoLink (PathEscape .ID.String))}}
- {{end}}
-
- {{ShortSha .ID.String}}
- {{if .Signature}}{{template "repo/shabox_badge" dict "root" $ "verification" .Verification}}{{end}}
-
-
-
-
- {{if $.PageIsWiki}}
- {{.Summary | RenderEmoji $.Context}}
- {{else}}
- {{$commitLink:= printf "%s/commit/%s" $commitRepoLink (PathEscape .ID.String)}}
- {{RenderCommitMessageLinkSubject $.Context .Message $commitLink ($.Repository.ComposeMetas ctx)}}
- {{end}}
-
- {{if IsMultilineCommitMessage .Message}}
- ...
- {{end}}
- {{template "repo/commit_statuses" dict "Status" .Status "Statuses" .Statuses}}
- {{if IsMultilineCommitMessage .Message}}
- {{RenderCommitBody $.Context .Message ($.Repository.ComposeMetas ctx)}}
- {{end}}
-
- {{if .Committer}}
- {{TimeSince .Committer.When ctx.Locale}}
- {{else}}
- {{TimeSince .Author.When ctx.Locale}}
- {{end}}
-
- {{svg "octicon-copy"}}
- {{if not $.PageIsWiki}}{{/* at the moment, wiki doesn't support "view at history point*/}}
- {{$viewCommitLink := printf "%s/src/commit/%s" $commitRepoLink (PathEscape .ID.String)}}
- {{if $.FileName}}{{$viewCommitLink = printf "%s/%s" $viewCommitLink (PathEscapeSegments $.FileName)}}{{end}}
- {{svg "octicon-file-code"}}
- {{end}}
-
-
- {{end}}
-
-
-
diff --git a/repo/commits_list_small.tmpl b/repo/commits_list_small.tmpl
deleted file mode 100644
index 4c67319..0000000
--- a/repo/commits_list_small.tmpl
+++ /dev/null
@@ -1,55 +0,0 @@
-{{$index := 0}}
-
-{{range .comment.Commits}}
- {{$tag := printf "%s-%d" $.comment.HashTag $index}}
- {{$index = Eval $index "+" 1}}
-
-
{{svg "octicon-git-commit"}}
- {{if .User}}
-
{{ctx.AvatarUtils.Avatar .User 20}}
- {{else}}
- {{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 20}}
- {{end}}
-
- {{$commitLink:= printf "%s/commit/%s" $.comment.Issue.PullRequest.BaseRepo.Link (PathEscape .ID.String)}}
-
-
- {{- RenderCommitMessageLinkSubject $.root.Context .Message $commitLink ($.comment.Issue.PullRequest.BaseRepo.ComposeMetas ctx) -}}
-
-
- {{if IsMultilineCommitMessage .Message}}
-
...
- {{end}}
-
-
- {{template "repo/commit_statuses" dict "Status" .Status "Statuses" .Statuses}}
- {{$class := "ui sha label"}}
- {{if .Signature}}
- {{$class = (print $class " isSigned")}}
- {{if .Verification.Verified}}
- {{if eq .Verification.TrustStatus "trusted"}}
- {{$class = (print $class " isVerified")}}
- {{else if eq .Verification.TrustStatus "untrusted"}}
- {{$class = (print $class " isVerifiedUntrusted")}}
- {{else}}
- {{$class = (print $class " isVerifiedUnmatched")}}
- {{end}}
- {{else if .Verification.Warning}}
- {{$class = (print $class " isWarning")}}
- {{end}}
- {{end}}
-
- {{ShortSha .ID.String}}
- {{if .Signature}}
- {{template "repo/shabox_badge" dict "root" $.root "verification" .Verification}}
- {{end}}
-
-
-
- {{if IsMultilineCommitMessage .Message}}
-
- {{- RenderCommitBody $.root.Context .Message ($.comment.Issue.PullRequest.BaseRepo.ComposeMetas ctx) -}}
-
- {{end}}
-{{end}}
-
diff --git a/repo/commits_search_dropdown.tmpl b/repo/commits_search_dropdown.tmpl
deleted file mode 100644
index 5aa3f4f..0000000
--- a/repo/commits_search_dropdown.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
{{if .All}}{{ctx.Locale.Tr "repo.commits.search_all"}}{{else}}{{ctx.Locale.Tr "repo.commits.search_branch"}}{{end}}
-
-
diff --git a/repo/commits_table.tmpl b/repo/commits_table.tmpl
deleted file mode 100644
index 91fc1c2..0000000
--- a/repo/commits_table.tmpl
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-{{if .PageIsCommits}}
-
-
-
- {{template "shared/search/input" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.commit_kind")}}
- {{template "repo/commits_search_dropdown" .}}
- {{template "shared/search/button" dict "Tooltip" (ctx.Locale.Tr "repo.commits.search.tooltip")}}
-
-
-
-{{end}}
-
-{{if and .Commits (gt .CommitCount 0)}}
- {{template "repo/commits_list" .}}
-{{end}}
-
-{{template "base/paginate" .}}
diff --git a/repo/contributors.tmpl b/repo/contributors.tmpl
deleted file mode 100644
index 6b8a63f..0000000
--- a/repo/contributors.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-{{if .Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
-
-
-{{end}}
diff --git a/repo/course_view_list.tmpl b/repo/course_view_list.tmpl
new file mode 100644
index 0000000..9e87dee
--- /dev/null
+++ b/repo/course_view_list.tmpl
@@ -0,0 +1,151 @@
+
+{{if .ReadmeExist}}
+ {{template "repo/view_file" .}}
+{{end}}
+
diff --git a/repo/create.tmpl b/repo/create.tmpl
deleted file mode 100644
index 2e1de24..0000000
--- a/repo/create.tmpl
+++ /dev/null
@@ -1,221 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
- {{template "repo/create_helper" .}}
-
- {{if not .CanCreateRepo}}
-
-
{{ctx.Locale.TrN .MaxCreationLimit "repo.form.reach_limit_of_creation_1" "repo.form.reach_limit_of_creation_n" .MaxCreationLimit}}
-
- {{end}}
-
-
{{ctx.Locale.Tr "repo.owner"}}
-
-
-
- {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
- {{.ContextUser.ShortName 40}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
{{ctx.Locale.Tr "repo.owner_helper"}}
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
- {{ctx.Locale.Tr "repo.repo_name_helper"}}
-
-
-
- {{ctx.Locale.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
{{ctx.Locale.Tr "repo.template"}}
-
-
-
{{.repo_template_name}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.template.items"}}
-
-
- {{ctx.Locale.Tr "repo.template.git_content"}}
-
-
-
- {{ctx.Locale.Tr "repo.template.git_hooks"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.template.webhooks"}}
-
-
-
- {{ctx.Locale.Tr "repo.template.topics"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.template.avatar"}}
-
-
-
- {{ctx.Locale.Tr "repo.template.issue_labels"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.protected_branch"}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.issue_labels"}}
-
-
-
{{ctx.Locale.Tr "repo.issue_labels_helper"}}
-
-
-
-
-
-
-
-
.gitignore
-
-
-
{{ctx.Locale.Tr "repo.repo_gitignore_helper"}}
-
-
-
{{ctx.Locale.Tr "repo.repo_gitignore_helper_desc"}}
-
-
-
{{ctx.Locale.Tr "repo.license"}}
-
-
-
{{ctx.Locale.Tr "repo.license_helper"}}
-
-
-
{{ctx.Locale.Tr "repo.license_helper_desc" "https://choosealicense.com/"}}
-
-
-
-
{{ctx.Locale.Tr "repo.readme"}}
-
-
-
{{ctx.Locale.Tr "repo.readme_helper"}}
-
-
-
{{ctx.Locale.Tr "repo.readme_helper_desc"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.auto_init"}}
-
-
-
- {{ctx.Locale.Tr "repo.default_branch"}}
-
- {{ctx.Locale.Tr "repo.default_branch_helper"}}
-
-
-
{{ctx.Locale.Tr "repo.object_format"}}
-
-
-
{{.DefaultObjectFormat.Name}}
-
-
-
{{ctx.Locale.Tr "repo.object_format_helper"}}
-
-
-
{{ctx.Locale.Tr "repo.template"}}
-
-
- {{ctx.Locale.Tr "repo.template_helper"}}
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.create_repo"}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/create_helper.tmpl b/repo/create_helper.tmpl
deleted file mode 100644
index 70c28b7..0000000
--- a/repo/create_helper.tmpl
+++ /dev/null
@@ -1,3 +0,0 @@
-{{if not $.DisableMigrations}}
- {{ctx.Locale.Tr "repo.new_repo_helper" (print AppSubUrl "/repo/migrate")}}
-{{end}}
diff --git a/repo/diff/blob_excerpt.tmpl b/repo/diff/blob_excerpt.tmpl
deleted file mode 100644
index cc22370..0000000
--- a/repo/diff/blob_excerpt.tmpl
+++ /dev/null
@@ -1,82 +0,0 @@
-{{if $.IsSplitStyle}}
- {{range $k, $line := $.section.Lines}}
-
- {{if eq .GetType 4}}
- {{$expandDirection := $line.GetExpandDirection}}
-
-
- {{if or (eq $expandDirection 3) (eq $expandDirection 5)}}
-
- {{svg "octicon-fold-down"}}
-
- {{end}}
- {{if or (eq $expandDirection 3) (eq $expandDirection 4)}}
-
- {{svg "octicon-fold-up"}}
-
- {{end}}
- {{if eq $expandDirection 2}}
-
- {{svg "octicon-fold"}}
-
- {{end}}
-
-
- {{$inlineDiff := $.section.GetComputedInlineDiffFor $line ctx.Locale}}{{/*
- */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}
- {{else}}
- {{$inlineDiff := $.section.GetComputedInlineDiffFor $line ctx.Locale}}
-
- {{if and $line.LeftIdx $inlineDiff.EscapeStatus.Escaped}} {{end}}
- {{if $line.LeftIdx}} {{end}}
- {{/*
- */}}{{if $line.LeftIdx}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{else}}{{/*
- */}}
{{/*
- */}}{{end}}{{/*
- */}}
-
- {{if and $line.RightIdx $inlineDiff.EscapeStatus.Escaped}} {{end}}
- {{if $line.RightIdx}} {{end}}
- {{/*
- */}}{{if $line.RightIdx}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{else}}{{/*
- */}}
{{/*
- */}}{{end}}{{/*
- */}}
- {{end}}
-
- {{end}}
-{{else}}
- {{range $k, $line := $.section.Lines}}
-
- {{if eq .GetType 4}}
- {{$expandDirection := $line.GetExpandDirection}}
-
-
- {{if or (eq $expandDirection 3) (eq $expandDirection 5)}}
-
- {{svg "octicon-fold-down"}}
-
- {{end}}
- {{if or (eq $expandDirection 3) (eq $expandDirection 4)}}
-
- {{svg "octicon-fold-up"}}
-
- {{end}}
- {{if eq $expandDirection 2}}
-
- {{svg "octicon-fold"}}
-
- {{end}}
-
-
- {{else}}
-
-
- {{end}}
- {{$inlineDiff := $.section.GetComputedInlineDiffFor $line ctx.Locale}}
- {{if $inlineDiff.EscapeStatus.Escaped}} {{end}}
-
- {{$inlineDiff.Content}}
-
- {{end}}
-{{end}}
diff --git a/repo/diff/box.tmpl b/repo/diff/box.tmpl
deleted file mode 100644
index bbca613..0000000
--- a/repo/diff/box.tmpl
+++ /dev/null
@@ -1,261 +0,0 @@
-{{$showFileTree := (and (not .DiffNotAvailable) (gt .Diff.NumFiles 1))}}
-
-
-
- {{if $showFileTree}}
-
- {{/* the icon meaning is reversed here, "octicon-sidebar-collapse" means show the file tree */}}
- {{svg "octicon-sidebar-collapse" 20 "icon tw-hidden"}}
- {{svg "octicon-sidebar-expand" 20 "icon tw-hidden"}}
-
-
- {{end}}
- {{if not .DiffNotAvailable}}
-
- {{svg "octicon-diff" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion}}
-
- {{end}}
-
-
- {{if and .PageIsPullFiles $.SignedUserID (not .IsArchived) (not .DiffNotAvailable)}}
-
-
- {{ctx.Locale.Tr "repo.pulls.viewed_files_label" .Diff.NumViewedFiles .Diff.NumFiles}}
-
-
-
- {{end}}
- {{template "repo/diff/whitespace_dropdown" .}}
- {{template "repo/diff/options_dropdown" .}}
- {{if .PageIsPullFiles}}
-
- {{/*
- the following will be replaced by vue component
- but this avoids any loading artifacts till the vue component is initialized
- */}}
-
- {{svg "octicon-git-commit"}}
-
-
- {{end}}
- {{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}}
- {{template "repo/diff/new_review" .}}
- {{end}}
-
-
- {{if not .DiffNotAvailable}}
- {{if and .IsShowingOnlySingleCommit .PageIsPullFiles}}
-
- {{else if and (not .IsShowingAllCommits) .PageIsPullFiles}}
-
- {{end}}
-
-
- {{end}}
-
- {{if $showFileTree}}
-
-
- {{end}}
- {{if .DiffNotAvailable}}
-
{{ctx.Locale.Tr "repo.diff.data_not_available"}}
- {{else}}
-
- {{range $i, $file := .Diff.Files}}
- {{/*notice: the index of Diff.Files should not be used for element ID, because the index will be restarted from 0 when doing load-more for PRs with a lot of files*/}}
- {{$blobBase := call $.GetBlobByPathForCommit $.BeforeCommit $file.OldName}}
- {{$blobHead := call $.GetBlobByPathForCommit $.HeadCommit $file.Name}}
- {{$sniffedTypeBase := call $.GetSniffedTypeForBlob $blobBase}}
- {{$sniffedTypeHead := call $.GetSniffedTypeForBlob $blobHead}}
- {{$isImage:= or (call $.IsSniffedTypeAnImage $sniffedTypeBase) (call $.IsSniffedTypeAnImage $sniffedTypeHead)}}
- {{$isCsv := (call $.IsCsvFile $file)}}
- {{$showFileViewToggle := or $isImage (and (not $file.IsIncomplete) $isCsv)}}
- {{$isExpandable := or (gt $file.Addition 0) (gt $file.Deletion 0) $file.IsBin}}
- {{$isReviewFile := and $.IsSigned $.PageIsPullFiles (not $.IsArchived) $.IsShowingAllCommits}}
-
-
-
-
- {{if or $file.IsIncomplete $file.IsBin}}
-
- {{if $file.IsIncomplete}}
- {{if $file.IsIncompleteLineTooLong}}
- {{ctx.Locale.Tr "repo.diff.file_suppressed_line_too_long"}}
- {{else}}
- {{ctx.Locale.Tr "repo.diff.file_suppressed"}}
-
{{ctx.Locale.Tr "repo.diff.load"}}
- {{end}}
- {{else}}
- {{ctx.Locale.Tr "repo.diff.bin_not_shown"}}
- {{end}}
-
- {{else}}
-
- {{if $.IsSplitStyle}}
- {{template "repo/diff/section_split" dict "file" . "root" $}}
- {{else}}
- {{template "repo/diff/section_unified" dict "file" . "root" $}}
- {{end}}
-
- {{end}}
-
- {{if $showFileViewToggle}}
- {{/* for image or CSV, it can have a horizontal scroll bar, there won't be review comment context menu (position absolute) which would be clipped by "overflow" */}}
-
-
- {{if $isImage}}
- {{template "repo/diff/image_diff" dict "file" . "root" $ "blobBase" $blobBase "blobHead" $blobHead "sniffedTypeBase" $sniffedTypeBase "sniffedTypeHead" $sniffedTypeHead}}
- {{else}}
- {{template "repo/diff/csv_diff" dict "file" . "root" $ "blobBase" $blobBase "blobHead" $blobHead "sniffedTypeBase" $sniffedTypeBase "sniffedTypeHead" $sniffedTypeHead}}
- {{end}}
-
-
- {{end}}
-
-
- {{end}}
-
- {{if .Diff.IsIncomplete}}
-
-
-
- {{end}}
-
- {{end}}
-
-
- {{if and (not $.Repository.IsArchived) (not .DiffNotAvailable)}}
-
- {{end}}
- {{if (not .DiffNotAvailable)}}
- {{template "repo/issue/view_content/reference_issue_dialog" .}}
- {{template "shared/user/block_user_dialog" .}}
- {{end}}
-
diff --git a/repo/diff/comment_form.tmpl b/repo/diff/comment_form.tmpl
deleted file mode 100644
index 856b3da..0000000
--- a/repo/diff/comment_form.tmpl
+++ /dev/null
@@ -1,49 +0,0 @@
-{{if and $.root.SignedUserID (not $.Repository.IsArchived)}}
-
-{{end}}
diff --git a/repo/diff/comment_form_datahandler.tmpl b/repo/diff/comment_form_datahandler.tmpl
deleted file mode 100644
index d0e4934..0000000
--- a/repo/diff/comment_form_datahandler.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-{{if $.comment}}
- {{template "repo/diff/comment_form" dict "root" $.root "hidden" $.hidden "reply" $.reply "Line" $.comment.UnsignedLine "File" $.comment.TreePath "Side" $.comment.DiffSide "HasComments" true}}
-{{else if $.root}}
- {{template "repo/diff/comment_form" $}}
-{{else}}
- {{template "repo/diff/comment_form" dict "root" $}}
-{{end}}
diff --git a/repo/diff/comments.tmpl b/repo/diff/comments.tmpl
deleted file mode 100644
index c7f4337..0000000
--- a/repo/diff/comments.tmpl
+++ /dev/null
@@ -1,75 +0,0 @@
-{{range .comments}}
-
-{{$createdStr:= TimeSinceUnix .CreatedUnix ctx.Locale}}
-
-{{end}}
diff --git a/repo/diff/compare.tmpl b/repo/diff/compare.tmpl
deleted file mode 100644
index f927501..0000000
--- a/repo/diff/compare.tmpl
+++ /dev/null
@@ -1,230 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{$showDiffBox := false}}
-
-
- {{$BaseCompareName := $.BaseName -}}
- {{- $HeadCompareName := $.HeadRepo.OwnerName -}}
- {{- if and (eq $.BaseName $.HeadRepo.OwnerName) (ne $.Repository.Name $.HeadRepo.Name) -}}
- {{- $HeadCompareName = printf "%s/%s" $.HeadRepo.OwnerName $.HeadRepo.Name -}}
- {{- end -}}
- {{- $OwnForkCompareName := "" -}}
- {{- if .OwnForkRepo -}}
- {{- $OwnForkCompareName = .OwnForkRepo.OwnerName -}}
- {{- end -}}
- {{- $RootRepoCompareName := "" -}}
- {{- if .RootRepo -}}
- {{- $RootRepoCompareName = .RootRepo.OwnerName -}}
- {{- if eq $.HeadRepo.OwnerName .RootRepo.OwnerName -}}
- {{- $HeadCompareName = printf "%s/%s" $.HeadRepo.OwnerName $.HeadRepo.Name -}}
- {{- end -}}
- {{- end -}}
-
-
{{svg "octicon-git-compare"}}
-
-
- {{if $.PageIsComparePull}}{{ctx.Locale.Tr "repo.pulls.compare_base"}}{{else}}{{ctx.Locale.Tr "repo.compare.compare_base"}}{{end}}: {{$BaseCompareName}}:{{$.BaseBranch}}
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
{{svg "octicon-arrow-left" 16}}{{.CompareSeparator}}
-
-
- {{if $.PageIsComparePull}}{{ctx.Locale.Tr "repo.pulls.compare_compare"}}{{else}}{{ctx.Locale.Tr "repo.compare.compare_head"}}{{end}}: {{$HeadCompareName}}:{{$.HeadBranch}}
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- {{if .IsNothingToCompare}}
- {{if and $.IsSigned $.AllowEmptyPr (not .Repository.IsArchived) .PageIsComparePull}}
-
{{ctx.Locale.Tr "repo.pulls.nothing_to_compare_and_allow_empty_pr"}}
-
- {{ctx.Locale.Tr "repo.pulls.new"}}
-
-
- {{template "repo/issue/new_form" .}}
-
- {{else if and .HeadIsBranch .BaseIsBranch}}
-
{{ctx.Locale.Tr "repo.pulls.nothing_to_compare"}}
- {{else}}
-
{{ctx.Locale.Tr "repo.pulls.nothing_to_compare_have_tag"}}
- {{end}}
- {{else if and .PageIsComparePull (gt .CommitCount 0)}}
- {{if .HasPullRequest}}
-
- {{template "shared/issueicon" .}}
-
- {{RenderIssueTitle $.Context .PullRequest.Issue.Title ($.Repository.ComposeMetas ctx) | RenderCodeBlock}}
- #{{.PullRequest.Issue.Index}}
-
-
- {{ctx.Locale.Tr "repo.pulls.view"}}
-
-
- {{else}}
- {{if and $.IsSigned (not .Repository.IsArchived)}}
-
- {{ctx.Locale.Tr "repo.pulls.new"}}
-
- {{else if .Repository.IsArchived}}
-
- {{if .Repository.ArchivedUnix.IsZero}}
- {{ctx.Locale.Tr "repo.archive.title"}}
- {{else}}
- {{ctx.Locale.Tr "repo.archive.title_date" (DateTime "long" .Repository.ArchivedUnix)}}
- {{end}}
-
- {{end}}
- {{if $.IsSigned}}
-
- {{template "repo/issue/new_form" .}}
-
- {{end}}
- {{$showDiffBox = true}}
- {{end}}
- {{else if not .IsNothingToCompare}}
- {{$showDiffBox = true}}
- {{end}}
-
-
- {{if $showDiffBox}}
-
- {{template "repo/commits_table" .}}
- {{template "repo/diff/box" .}}
-
- {{end}}
-
-{{template "base/footer" .}}
diff --git a/repo/diff/conversation.tmpl b/repo/diff/conversation.tmpl
deleted file mode 100644
index 08f6064..0000000
--- a/repo/diff/conversation.tmpl
+++ /dev/null
@@ -1,72 +0,0 @@
-{{if len .comments}}
- {{$comment := index .comments 0}}
- {{$resolved := $comment.IsResolved}}
- {{$invalid := $comment.Invalidated}}
- {{$resolveDoer := $comment.ResolveDoer}}
- {{$hasReview := and $comment.Review}}
- {{$isReviewPending := and $hasReview (eq $comment.Review.Type 0)}}
- {{$referenceUrl := printf "%s#%s" $.Issue.Link $comment.HashTag}}
-
- {{if $resolved}}
-
- {{end}}
-
-
-{{else}}
- {{template "repo/diff/conversation_outdated"}}
-{{end}}
diff --git a/repo/diff/conversation_outdated.tmpl b/repo/diff/conversation_outdated.tmpl
deleted file mode 100644
index c6a4bf1..0000000
--- a/repo/diff/conversation_outdated.tmpl
+++ /dev/null
@@ -1,3 +0,0 @@
-
- {{ctx.Locale.Tr "repo.issues.review.outdated_description"}}
-
diff --git a/repo/diff/csv_diff.tmpl b/repo/diff/csv_diff.tmpl
deleted file mode 100644
index 0f46da3..0000000
--- a/repo/diff/csv_diff.tmpl
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
- {{$result := call .root.CreateCsvDiff .file .blobBase .blobHead}}
- {{if $result.Error}}
- {{$result.Error}}
- {{else if $result.Sections}}
-
- {{range $i, $section := $result.Sections}}
-
- {{range $j, $row := $section.Rows}}
-
- {{if and (eq $i 0) (eq $j 0)}}
- {{.RowIdx}}
- {{range $j, $cell := $row.Cells}}
- {{if not $cell}}
-
- {{else if eq $cell.Type 2}}
- {{.LeftCell}} {{.RightCell}}
- {{else if eq $cell.Type 3}}
- {{.RightCell}}
- {{else if eq $cell.Type 4}}
- {{.LeftCell}}
- {{else if eq $cell.Type 5}}
- {{.RightCell}}
- {{else if eq $cell.Type 6}}
- {{.LeftCell}} {{.RightCell}}
- {{else}}
- {{.RightCell}}
- {{end}}
- {{end}}
- {{else}}
- {{if .RowIdx}}{{.RowIdx}}{{end}}
- {{range $j, $cell := $row.Cells}}
- {{if not $cell}}
-
- {{else if eq $cell.Type 2}}
- {{.LeftCell}} {{.RightCell}}
- {{else if eq $cell.Type 3}}
- {{.RightCell}}
- {{else if eq $cell.Type 4}}
- {{.LeftCell}}
- {{else if eq $cell.Type 5}}
- {{.RightCell}}
- {{else if eq $cell.Type 6}}
- {{.LeftCell}} {{.RightCell}}
- {{else}}
- {{.RightCell}}
- {{end}}
- {{end}}
- {{end}}
-
- {{end}}
-
- {{end}}
-
- {{end}}
-
-
diff --git a/repo/diff/escape_title.tmpl b/repo/diff/escape_title.tmpl
deleted file mode 100644
index e70f402..0000000
--- a/repo/diff/escape_title.tmpl
+++ /dev/null
@@ -1,2 +0,0 @@
-{{if .diff.EscapeStatus.HasInvisible}}{{ctx.Locale.Tr "repo.invisible_runes_line"}} {{end}}{{/*
-*/}}{{if .diff.EscapeStatus.HasAmbiguous}}{{ctx.Locale.Tr "repo.ambiguous_runes_line"}}{{end}}
diff --git a/repo/diff/image_diff.tmpl b/repo/diff/image_diff.tmpl
deleted file mode 100644
index 9ad7916..0000000
--- a/repo/diff/image_diff.tmpl
+++ /dev/null
@@ -1,83 +0,0 @@
-{{if or .blobBase .blobHead}}
-
-
-
-
-
-
-
- {{if .blobBase}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.diff.file_image_width"}}:
- |
- {{ctx.Locale.Tr "repo.diff.file_image_height"}}:
- |
-
- {{ctx.Locale.Tr "repo.diff.file_byte_size"}}: {{FileSize .blobBase.Size}}
-
-
- {{end}}
- {{if .blobHead}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.diff.file_image_width"}}:
- |
- {{ctx.Locale.Tr "repo.diff.file_image_height"}}:
- |
-
- {{ctx.Locale.Tr "repo.diff.file_byte_size"}}: {{FileSize .blobHead.Size}}
-
-
- {{end}}
-
-
- {{if and .blobBase .blobHead}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{end}}
-
-
-
-
-{{end}}
diff --git a/repo/diff/new_comment.tmpl b/repo/diff/new_comment.tmpl
deleted file mode 100644
index 6a71539..0000000
--- a/repo/diff/new_comment.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
diff --git a/repo/diff/new_review.tmpl b/repo/diff/new_review.tmpl
deleted file mode 100644
index 1b74a23..0000000
--- a/repo/diff/new_review.tmpl
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
- {{ctx.Locale.Tr "repo.diff.review"}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
- {{if $.IsShowingAllCommits}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{template "shared/combomarkdowneditor" (dict
- "MarkdownPreviewUrl" (print .Repository.Link "/markup")
- "MarkdownPreviewContext" .RepoLink
- "TextareaName" "content"
- "TextareaPlaceholder" (ctx.Locale.Tr "repo.diff.review.placeholder")
- "DropzoneParentContainer" "form"
- )}}
-
- {{if .IsAttachmentEnabled}}
-
- {{template "repo/upload" .}}
-
- {{end}}
-
- {{$showSelfTooltip := (and $.IsSigned ($.Issue.IsPoster $.SignedUser.ID))}}
- {{if not $.Issue.IsClosed}}
- {{if $showSelfTooltip}}
-
- {{ctx.Locale.Tr "repo.diff.review.approve"}}
-
- {{else}}
- {{ctx.Locale.Tr "repo.diff.review.approve"}}
- {{end}}
- {{end}}
- {{ctx.Locale.Tr "repo.diff.review.comment"}}
- {{if not $.Issue.IsClosed}}
- {{if $showSelfTooltip}}
-
- {{ctx.Locale.Tr "repo.diff.review.reject"}}
-
- {{else}}
- {{ctx.Locale.Tr "repo.diff.review.reject"}}
- {{end}}
- {{end}}
-
-
-
- {{end}}
-
diff --git a/repo/diff/options_dropdown.tmpl b/repo/diff/options_dropdown.tmpl
deleted file mode 100644
index 09b7b80..0000000
--- a/repo/diff/options_dropdown.tmpl
+++ /dev/null
@@ -1,33 +0,0 @@
-
- {{svg "octicon-kebab-horizontal"}}
-
-
diff --git a/repo/diff/section_code.tmpl b/repo/diff/section_code.tmpl
deleted file mode 100644
index 3e8303e..0000000
--- a/repo/diff/section_code.tmpl
+++ /dev/null
@@ -1 +0,0 @@
-{{.diff.Content}}
diff --git a/repo/diff/section_split.tmpl b/repo/diff/section_split.tmpl
deleted file mode 100644
index 37b42bc..0000000
--- a/repo/diff/section_split.tmpl
+++ /dev/null
@@ -1,157 +0,0 @@
-{{$file := .file}}
-{{$blobExcerptRepoLink := or ctx.RootData.CommitRepoLink ctx.RootData.RepoLink}}
-
-
-
-
-
-
-
-
-
-
-{{range $j, $section := $file.Sections}}
- {{range $k, $line := $section.Lines}}
- {{$hasmatch := ne $line.Match -1}}
- {{if or (ne .GetType 2) (not $hasmatch)}}
-
- {{if eq .GetType 4}}
- {{$expandDirection := $line.GetExpandDirection}}
-
-
- {{if or (eq $expandDirection 3) (eq $expandDirection 5)}}
-
- {{svg "octicon-fold-down"}}
-
- {{end}}
- {{if or (eq $expandDirection 3) (eq $expandDirection 4)}}
-
- {{svg "octicon-fold-up"}}
-
- {{end}}
- {{if eq $expandDirection 2}}
-
- {{svg "octicon-fold"}}
-
- {{end}}
-
- {{$inlineDiff := $section.GetComputedInlineDiffFor $line ctx.Locale}}
- {{if $inlineDiff.EscapeStatus.Escaped}} {{end}}
- {{/*
- */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{/*
- */}}
- {{else if and (eq .GetType 3) $hasmatch}}{{/* DEL */}}
- {{$match := index $section.Lines $line.Match}}
- {{- $leftDiff := ""}}{{if $line.LeftIdx}}{{$leftDiff = $section.GetComputedInlineDiffFor $line ctx.Locale}}{{end}}
- {{- $rightDiff := ""}}{{if $match.RightIdx}}{{$rightDiff = $section.GetComputedInlineDiffFor $match ctx.Locale}}{{end}}
-
- {{if $line.LeftIdx}}{{if $leftDiff.EscapeStatus.Escaped}} {{end}}{{end}}
-
- {{/*
- */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles}}{{/*
- */}}{{/*
- */}}{{end}}{{/*
- */}}{{if $line.LeftIdx}}{{/*
- */}}{{template "repo/diff/section_code" dict "diff" $leftDiff}}{{/*
- */}}{{else}}{{/*
- */}}
{{/*
- */}}{{end}}{{/*
- */}}
-
- {{if $match.RightIdx}}{{if $rightDiff.EscapeStatus.Escaped}} {{end}}{{end}}
- {{if $match.RightIdx}} {{end}}
- {{/*
- */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles}}{{/*
- */}}{{/*
- */}}{{end}}{{/*
- */}}{{if $match.RightIdx}}{{/*
- */}}{{template "repo/diff/section_code" dict "diff" $rightDiff}}{{/*
- */}}{{else}}{{/*
- */}}
{{/*
- */}}{{end}}{{/*
- */}}
- {{else}}
- {{$inlineDiff := $section.GetComputedInlineDiffFor $line ctx.Locale}}
-
- {{if $line.LeftIdx}}{{if $inlineDiff.EscapeStatus.Escaped}} {{end}}{{end}}
- {{if $line.LeftIdx}} {{end}}
- {{/*
- */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles (not (eq .GetType 2))}}{{/*
- */}}{{/*
- */}}{{end}}{{/*
- */}}{{if $line.LeftIdx}}{{/*
- */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{/*
- */}}{{else}}{{/*
- */}}
{{/*
- */}}{{end}}{{/*
- */}}
-
- {{if $line.RightIdx}}{{if $inlineDiff.EscapeStatus.Escaped}} {{end}}{{end}}
- {{if $line.RightIdx}} {{end}}
- {{/*
- */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles (not (eq .GetType 3))}}{{/*
- */}}{{/*
- */}}{{end}}{{/*
- */}}{{if $line.RightIdx}}{{/*
- */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{/*
- */}}{{else}}{{/*
- */}}
{{/*
- */}}{{end}}{{/*
- */}}
- {{end}}
-
- {{if and (eq .GetType 3) $hasmatch}}
- {{$match := index $section.Lines $line.Match}}
- {{if or $line.Comments $match.Comments}}
-
- {{end}}
- {{else if $line.Comments}}
-
- {{end}}
- {{end}}
- {{end}}
-{{end}}
diff --git a/repo/diff/section_unified.tmpl b/repo/diff/section_unified.tmpl
deleted file mode 100644
index 708b333..0000000
--- a/repo/diff/section_unified.tmpl
+++ /dev/null
@@ -1,73 +0,0 @@
-{{$file := .file}}
-{{$blobExcerptRepoLink := or ctx.RootData.CommitRepoLink ctx.RootData.RepoLink}}
-
-
-
-
-
-
-
-{{range $j, $section := $file.Sections}}
- {{range $k, $line := $section.Lines}}
-
- {{if eq .GetType 4}}
- {{if $.root.AfterCommitID}}
- {{$expandDirection := $line.GetExpandDirection}}
-
-
- {{if or (eq $expandDirection 3) (eq $expandDirection 5)}}
-
- {{svg "octicon-fold-down"}}
-
- {{end}}
- {{if or (eq $expandDirection 3) (eq $expandDirection 4)}}
-
- {{svg "octicon-fold-up"}}
-
- {{end}}
- {{if eq $expandDirection 2}}
-
- {{svg "octicon-fold"}}
-
- {{end}}
-
-
- {{else}}
- {{/* for code file preview page or comment diffs on pull comment pages, do not show the expansion arrows */}}
-
- {{end}}
- {{else}}
-
-
- {{end}}
- {{$inlineDiff := $section.GetComputedInlineDiffFor $line ctx.Locale -}}
-
- {{- if $inlineDiff.EscapeStatus.Escaped -}}
-
- {{- end -}}
-
-
- {{if eq .GetType 4}}
- {{/*
- */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{/*
- */}}
- {{else}}
- {{/*
- */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles}}{{/*
- */}}{{/*
- */}}{{end}}{{/*
- */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{/*
- */}}
- {{end}}
-
- {{if $line.Comments}}
-
- {{end}}
- {{end}}
-{{end}}
diff --git a/repo/diff/stats.tmpl b/repo/diff/stats.tmpl
deleted file mode 100644
index d0dff1b..0000000
--- a/repo/diff/stats.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{Eval .file.Addition "+" .file.Deletion}}
-
- {{/* if the denominator is zero, then the float result is "width: NaNpx", as before, it just works */}}
-
-
diff --git a/repo/diff/whitespace_dropdown.tmpl b/repo/diff/whitespace_dropdown.tmpl
deleted file mode 100644
index c54de16..0000000
--- a/repo/diff/whitespace_dropdown.tmpl
+++ /dev/null
@@ -1,30 +0,0 @@
-
- {{svg "gitea-whitespace"}}
-
-
-{{if .IsSplitStyle}}{{svg "gitea-join"}}{{else}}{{svg "gitea-split"}}{{end}}
diff --git a/repo/editor/cherry_pick.tmpl b/repo/editor/cherry_pick.tmpl
deleted file mode 100644
index f9c9eef..0000000
--- a/repo/editor/cherry_pick.tmpl
+++ /dev/null
@@ -1,30 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
- {{.CsrfTokenHtml}}
-
-
-
-
- {{template "repo/editor/commit_form" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/editor/commit_form.tmpl b/repo/editor/commit_form.tmpl
deleted file mode 100644
index 21ef632..0000000
--- a/repo/editor/commit_form.tmpl
+++ /dev/null
@@ -1,74 +0,0 @@
-
diff --git a/repo/editor/delete.tmpl b/repo/editor/delete.tmpl
deleted file mode 100644
index 2c0c2fc..0000000
--- a/repo/editor/delete.tmpl
+++ /dev/null
@@ -1,13 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
- {{.CsrfTokenHtml}}
-
- {{template "repo/editor/commit_form" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/editor/diff_preview.tmpl b/repo/editor/diff_preview.tmpl
deleted file mode 100644
index fd543a5..0000000
--- a/repo/editor/diff_preview.tmpl
+++ /dev/null
@@ -1,17 +0,0 @@
-{{if .File}}
-
-
-
-
-
- {{template "repo/diff/section_unified" dict "file" .File "root" $}}
-
-
-
-
-
-{{else}}
-
- {{ctx.Locale.Tr "repo.editor.no_changes_to_show"}}
-
-{{end}}
diff --git a/repo/editor/edit.tmpl b/repo/editor/edit.tmpl
deleted file mode 100644
index e990177..0000000
--- a/repo/editor/edit.tmpl
+++ /dev/null
@@ -1,78 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
- {{.CsrfTokenHtml}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "loading"}}
-
-
-
-
- {{template "repo/editor/commit_form" .}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.editor.commit_empty_file_text"}}
-
-
-
- {{svg "octicon-x"}}
- {{ctx.Locale.Tr "repo.editor.cancel"}}
-
-
- {{svg "fontawesome-save"}}
- {{ctx.Locale.Tr "repo.editor.commit_changes"}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/editor/patch.tmpl b/repo/editor/patch.tmpl
deleted file mode 100644
index a29021f..0000000
--- a/repo/editor/patch.tmpl
+++ /dev/null
@@ -1,57 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
- {{.CsrfTokenHtml}}
-
-
-
-
- {{template "repo/editor/commit_form" .}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.editor.commit_empty_file_text"}}
-
-
-
- {{svg "octicon-x"}}
- {{ctx.Locale.Tr "repo.editor.cancel"}}
-
-
- {{svg "fontawesome-save"}}
- {{ctx.Locale.Tr "repo.editor.commit_changes"}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/editor/upload.tmpl b/repo/editor/upload.tmpl
deleted file mode 100644
index 5725020..0000000
--- a/repo/editor/upload.tmpl
+++ /dev/null
@@ -1,33 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/empty.tmpl b/repo/empty.tmpl
deleted file mode 100644
index cb2a5ba..0000000
--- a/repo/empty.tmpl
+++ /dev/null
@@ -1,82 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
- {{template "base/alert" .}}
- {{if .Repository.IsArchived}}
-
- {{if .Repository.ArchivedUnix.IsZero}}
- {{ctx.Locale.Tr "repo.archive.title"}}
- {{else}}
- {{ctx.Locale.Tr "repo.archive.title_date" (DateTime "long" .Repository.ArchivedUnix)}}
- {{end}}
-
- {{end}}
- {{if .Repository.IsBroken}}
-
- {{ctx.Locale.Tr "repo.broken_message"}}
-
- {{else if .CanWriteCode}}
-
-
-
-
{{ctx.Locale.Tr "repo.clone_this_repo"}} {{ctx.Locale.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository"}}
-
-
-
-
- {{if not .Repository.IsArchived}}
-
-
-
-
{{ctx.Locale.Tr "repo.create_new_repo_command"}}
-
-
touch README.md
-git init
-{{if ne .Repository.DefaultBranch "master"}}git checkout -b {{.Repository.DefaultBranch}}{{end}}
-git add README.md
-git commit -m "first commit"
-git remote add origin {{$.CloneButtonOriginLink.HTTPS}}
-git push -u origin {{.Repository.DefaultBranch}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.push_exist_repo"}}
-
-
git remote add origin {{$.CloneButtonOriginLink.HTTPS}}
-git push -u origin {{.Repository.DefaultBranch}}
-
-
- {{end}}
- {{else}}
-
- {{ctx.Locale.Tr "repo.empty_message"}}
-
- {{end}}
- {{template "repo/clone_script" .}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/file_info.tmpl b/repo/file_info.tmpl
deleted file mode 100644
index 823cf1b..0000000
--- a/repo/file_info.tmpl
+++ /dev/null
@@ -1,48 +0,0 @@
-
- {{if .FileIsSymlink}}
-
- {{ctx.Locale.Tr "repo.symbolic_link"}}
-
- {{end}}
- {{if .NumLinesSet}}{{/* Explicit attribute needed to show 0 line changes */}}
-
- {{.NumLines}} {{ctx.Locale.TrN .NumLines "repo.line" "repo.lines"}}
-
- {{end}}
- {{if .FileSize}}
-
- {{FileSize .FileSize}}{{if .IsLFSFile}} ({{ctx.Locale.Tr "repo.stored_lfs"}}){{end}}
-
- {{end}}
- {{if .LFSLock}}
-
- {{svg "octicon-lock" 16 "tw-mr-1"}}
-
{{.LFSLockOwner}}
-
- {{end}}
- {{if .LexerName}}
-
- {{.LexerName}}
-
- {{end}}
- {{if .IsExecutable}}
-
- {{ctx.Locale.Tr "repo.executable_file"}}
-
- {{end}}
- {{if .IsVendored}}
-
- {{ctx.Locale.Tr "repo.vendored"}}
-
- {{end}}
- {{if .IsGenerated}}
-
- {{ctx.Locale.Tr "repo.generated"}}
-
- {{end}}
- {{if .ImageSize}}
-
- {{.ImageSize}}
-
- {{end}}
-
diff --git a/repo/find/files.tmpl b/repo/find/files.tmpl
deleted file mode 100644
index 548ce2f..0000000
--- a/repo/find/files.tmpl
+++ /dev/null
@@ -1,21 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.find_file.no_matching"}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/forks.tmpl b/repo/forks.tmpl
deleted file mode 100644
index 412c59b..0000000
--- a/repo/forks.tmpl
+++ /dev/null
@@ -1,18 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{range .Forks}}
-
- {{end}}
-
-
- {{template "base/paginate" .}}
-
-{{template "base/footer" .}}
diff --git a/repo/graph.tmpl b/repo/graph.tmpl
deleted file mode 100644
index 9eb4bd4..0000000
--- a/repo/graph.tmpl
+++ /dev/null
@@ -1,62 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
-
-
- {{template "repo/graph/svgcontainer" .}}
- {{template "repo/graph/commits" .}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/graph/commits.tmpl b/repo/graph/commits.tmpl
deleted file mode 100644
index a90c530..0000000
--- a/repo/graph/commits.tmpl
+++ /dev/null
@@ -1,79 +0,0 @@
-
diff --git a/repo/graph/div.tmpl b/repo/graph/div.tmpl
deleted file mode 100644
index c0bd4e2..0000000
--- a/repo/graph/div.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-
- {{template "repo/graph/svgcontainer" .}}
- {{template "repo/graph/commits" .}}
-
-
diff --git a/repo/graph/svgcontainer.tmpl b/repo/graph/svgcontainer.tmpl
deleted file mode 100644
index 99c3c87..0000000
--- a/repo/graph/svgcontainer.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
- {{range $flowid, $flow := .Graph.Flows}}
-
-
- {{range $flow.Commits}}
-
- {{end}}
-
- {{end}}
-
-
diff --git a/repo/icon.tmpl b/repo/icon.tmpl
deleted file mode 100644
index e5e0bd6..0000000
--- a/repo/icon.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{$avatarLink := (.RelAvatarLink ctx)}}
-{{if $avatarLink}}
-
-{{else if $.IsMirror}}
- {{svg "octicon-mirror" 24}}
-{{else if $.IsFork}}
- {{svg "octicon-repo-forked" 24}}
-{{else}}
- {{svg "octicon-repo" 24}}
-{{end}}
diff --git a/repo/issue/branch_selector_field.tmpl b/repo/issue/branch_selector_field.tmpl
deleted file mode 100644
index 5793a8b..0000000
--- a/repo/issue/branch_selector_field.tmpl
+++ /dev/null
@@ -1,49 +0,0 @@
-{{if and (not .Issue.IsPull) (not .PageIsComparePull)}}
-
-
-
- {{if .Reference}}{{$.RefEndName}}{{else}}{{ctx.Locale.Tr "repo.issues.no_ref"}}{{end}}
- {{if .HasIssuesOrPullsWritePermission}}{{svg "octicon-triangle-down" 14 "dropdown icon"}}{{end}}
-
-
-
-
-
-{{end}}
diff --git a/repo/issue/card.tmpl b/repo/issue/card.tmpl
deleted file mode 100644
index 4c22c28..0000000
--- a/repo/issue/card.tmpl
+++ /dev/null
@@ -1,78 +0,0 @@
-{{with .Issue}}
- {{if eq $.Page.Project.CardType 1}}{{/* Images and Text*/}}
- {{$attachments := index $.Page.issuesAttachmentMap .ID}}
- {{if $attachments}}
-
- {{range $attachments}}
-
- {{end}}
-
- {{end}}
- {{end}}
-
-
-
-
- {{if not $.Page.Repository}}{{.Repo.FullName}}{{end}}#{{.Index}}
- {{$timeStr := TimeSinceUnix .GetLastEventTimestamp ctx.Locale}}
- {{if .OriginalAuthor}}
- {{ctx.Locale.Tr .GetLastEventLabelFake $timeStr .OriginalAuthor}}
- {{else if gt .Poster.ID 0}}
- {{ctx.Locale.Tr .GetLastEventLabel $timeStr .Poster.HomeLink .Poster.GetDisplayName}}
- {{else}}
- {{ctx.Locale.Tr .GetLastEventLabelFake $timeStr .Poster.GetDisplayName}}
- {{end}}
-
-
- {{if .MilestoneID}}
-
- {{end}}
- {{if $.Page.LinkedPRs}}
- {{range index $.Page.LinkedPRs .ID}}
-
- {{end}}
- {{end}}
- {{$tasks := .GetTasks}}
- {{if gt $tasks 0}}
-
- {{svg "octicon-checklist" 16 "tw-mr-1 tw-align-middle"}}
- {{.GetTasksDone}} / {{$tasks}}
-
- {{end}}
-
-
- {{if or .Labels .Assignees}}
-
- {{end}}
-{{end}}
diff --git a/repo/issue/choose.tmpl b/repo/issue/choose.tmpl
deleted file mode 100644
index 38cf9e4..0000000
--- a/repo/issue/choose.tmpl
+++ /dev/null
@@ -1,59 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
- {{template "repo/issue/navbar" .}}
-
-
- {{range .IssueTemplates}}
-
-
-
- {{.Name}}
- {{.About}}
-
-
-
-
- {{end}}
- {{range .IssueConfig.ContactLinks}}
-
-
-
- {{.Name}}
- {{.About}}
-
-
-
-
- {{end}}
- {{if .IssueConfig.BlankIssuesEnabled}}
-
-
-
- {{ctx.Locale.Tr "repo.issues.choose.blank"}}
- {{ctx.Locale.Tr "repo.issues.choose.blank_about"}}
-
-
-
-
- {{end}}
- {{- if .IssueConfigError}}{{/* normal warning flash makes problems here*/}}
-
-
-
{{ctx.Locale.Tr "repo.issues.choose.invalid_config"}}
-
{{.IssueConfigError}}
-
-
- {{end}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/issue/comment_tab.tmpl b/repo/issue/comment_tab.tmpl
deleted file mode 100644
index 4197ea4..0000000
--- a/repo/issue/comment_tab.tmpl
+++ /dev/null
@@ -1,21 +0,0 @@
-{{$textareaContent := .BodyQuery}}
-{{if not $textareaContent}}{{$textareaContent = .IssueTemplate}}{{end}}
-{{if not $textareaContent}}{{$textareaContent = .PullRequestTemplate}}{{end}}
-{{if not $textareaContent}}{{$textareaContent = .content}}{{end}}
-
-
- {{template "shared/combomarkdowneditor" (dict
- "MarkdownPreviewUrl" (print .Repository.Link "/markup")
- "MarkdownPreviewContext" .RepoLink
- "TextareaName" "content"
- "TextareaContent" $textareaContent
- "TextareaPlaceholder" (ctx.Locale.Tr "repo.diff.comment.placeholder")
- "DropzoneParentContainer" "form, .ui.form"
- )}}
-
-
-{{if .IsAttachmentEnabled}}
-
- {{template "repo/upload" .}}
-
-{{end}}
diff --git a/repo/issue/fields/checkboxes.tmpl b/repo/issue/fields/checkboxes.tmpl
deleted file mode 100644
index 531f401..0000000
--- a/repo/issue/fields/checkboxes.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/repo/issue/fields/dropdown.tmpl b/repo/issue/fields/dropdown.tmpl
deleted file mode 100644
index 26505f5..0000000
--- a/repo/issue/fields/dropdown.tmpl
+++ /dev/null
@@ -1,17 +0,0 @@
-
diff --git a/repo/issue/fields/header.tmpl b/repo/issue/fields/header.tmpl
deleted file mode 100644
index 6034fed..0000000
--- a/repo/issue/fields/header.tmpl
+++ /dev/null
@@ -1,6 +0,0 @@
-{{if .item.Attributes.label}}
- {{.item.Attributes.label}}{{if .item.Validations.required}} {{end}}
-{{end}}
-{{if .item.Attributes.description}}
- {{RenderMarkdownToHtml .Context .item.Attributes.description}}
-{{end}}
diff --git a/repo/issue/fields/input.tmpl b/repo/issue/fields/input.tmpl
deleted file mode 100644
index 039f9a9..0000000
--- a/repo/issue/fields/input.tmpl
+++ /dev/null
@@ -1,4 +0,0 @@
-
- {{template "repo/issue/fields/header" .}}
-
-
diff --git a/repo/issue/fields/markdown.tmpl b/repo/issue/fields/markdown.tmpl
deleted file mode 100644
index 934699e..0000000
--- a/repo/issue/fields/markdown.tmpl
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/repo/issue/fields/textarea.tmpl b/repo/issue/fields/textarea.tmpl
deleted file mode 100644
index 3ad69e1..0000000
--- a/repo/issue/fields/textarea.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-{{$useMarkdownEditor := not .item.Attributes.render}}
-
diff --git a/repo/issue/filter_actions.tmpl b/repo/issue/filter_actions.tmpl
deleted file mode 100644
index f23ca36..0000000
--- a/repo/issue/filter_actions.tmpl
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
diff --git a/repo/issue/filter_list.tmpl b/repo/issue/filter_list.tmpl
deleted file mode 100644
index c6de497..0000000
--- a/repo/issue/filter_list.tmpl
+++ /dev/null
@@ -1,206 +0,0 @@
-
-
-
- {{ctx.Locale.Tr "repo.issues.filter_label"}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-{{if not .Milestone}}
-
-
-
- {{ctx.Locale.Tr "repo.issues.filter_milestone"}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-{{end}}
-
-
-
-
- {{ctx.Locale.Tr "repo.issues.filter_project"}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.issues.filter_poster"}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.issues.filter_assignee"}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-{{if .IsSigned}}
-
-
-
- {{ctx.Locale.Tr "repo.issues.filter_type"}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-{{end}}
-
-
-
diff --git a/repo/issue/filters.tmpl b/repo/issue/filters.tmpl
deleted file mode 100644
index 06e7c1a..0000000
--- a/repo/issue/filters.tmpl
+++ /dev/null
@@ -1,26 +0,0 @@
-
diff --git a/repo/issue/label_precolors.tmpl b/repo/issue/label_precolors.tmpl
deleted file mode 100644
index 8000766..0000000
--- a/repo/issue/label_precolors.tmpl
+++ /dev/null
@@ -1,22 +0,0 @@
-
diff --git a/repo/issue/labels.tmpl b/repo/issue/labels.tmpl
deleted file mode 100644
index 230777e..0000000
--- a/repo/issue/labels.tmpl
+++ /dev/null
@@ -1,22 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{template "repo/issue/navbar" .}}
- {{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}}
- {{ctx.Locale.Tr "repo.issues.new_label"}}
- {{end}}
-
- {{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}}
- {{template "repo/issue/labels/label_new" .}}
- {{end}}
- {{template "base/alert" .}}
- {{template "repo/issue/labels/label_list" .}}
-
-
-
-{{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}}
- {{template "repo/issue/labels/edit_delete_label" .}}
-{{end}}
-{{template "base/footer" .}}
diff --git a/repo/issue/labels/edit_delete_label.tmpl b/repo/issue/labels/edit_delete_label.tmpl
deleted file mode 100644
index fcf6921..0000000
--- a/repo/issue/labels/edit_delete_label.tmpl
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-
-
{{ctx.Locale.Tr "repo.issues.label_deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
{{ctx.Locale.Tr "repo.issues.label_title"}}
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.issues.label_description"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.issues.label_color"}}
-
-
- {{template "repo/issue/label_precolors"}}
-
-
-
-
-
-
- {{svg "octicon-x"}}
- {{ctx.Locale.Tr "cancel"}}
-
-
- {{svg "fontawesome-save"}}
- {{ctx.Locale.Tr "save"}}
-
-
-
diff --git a/repo/issue/labels/label.tmpl b/repo/issue/labels/label.tmpl
deleted file mode 100644
index 3651ba1..0000000
--- a/repo/issue/labels/label.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-
- {{- RenderLabel $.Context ctx.Locale .label -}}
-
diff --git a/repo/issue/labels/label_archived.tmpl b/repo/issue/labels/label_archived.tmpl
deleted file mode 100644
index feaf77e..0000000
--- a/repo/issue/labels/label_archived.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{if .IsArchived}}
-
- {{ctx.Locale.Tr "archived"}}
-
-{{end}}
diff --git a/repo/issue/labels/label_list.tmpl b/repo/issue/labels/label_list.tmpl
deleted file mode 100644
index 413d640..0000000
--- a/repo/issue/labels/label_list.tmpl
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
- {{if and (not $.PageIsOrgSettingsLabels) (or $.CanWriteIssues $.CanWritePulls) (eq .NumLabels 0) (not $.Repository.IsArchived)}}
- {{template "repo/issue/labels/label_load_template" .}}
-
- {{else if and ($.PageIsOrgSettingsLabels) (eq .NumLabels 0)}}
- {{template "repo/issue/labels/label_load_template" .}}
-
- {{end}}
-
-
- {{range .Labels}}
-
-
- {{RenderLabel $.Context ctx.Locale .}}
- {{if .Description}}{{.Description | RenderEmoji $.Context}} {{end}}
-
-
-
- {{template "repo/issue/labels/label_archived" .}}
-
-
-
- {{end}}
-
- {{if and (not .PageIsOrgSettingsLabels) (.OrgLabels)}}
-
-
-
-
- {{range .OrgLabels}}
-
-
- {{RenderLabel $.Context ctx.Locale .}}
- {{if .Description}}{{.Description | RenderEmoji $.Context}} {{end}}
-
-
-
- {{template "repo/issue/labels/label_archived" .}}
-
-
- {{end}}
- {{end}}
-
-
diff --git a/repo/issue/labels/label_load_template.tmpl b/repo/issue/labels/label_load_template.tmpl
deleted file mode 100644
index 3cb2442..0000000
--- a/repo/issue/labels/label_load_template.tmpl
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
{{ctx.Locale.Tr "repo.issues.label_templates.info"}}
-
- {{.CsrfTokenHtml}}
-
-
-
-
{{ctx.Locale.Tr "repo.issues.label_templates.helper"}}
-
- {{svg "octicon-triangle-down" 18 "dropdown icon"}}
-
-
- {{ctx.Locale.Tr "repo.issues.label_templates.use"}}
-
-
-
diff --git a/repo/issue/labels/label_new.tmpl b/repo/issue/labels/label_new.tmpl
deleted file mode 100644
index 32fd8e7..0000000
--- a/repo/issue/labels/label_new.tmpl
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
{{ctx.Locale.Tr "repo.issues.label_title"}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.issues.label_description"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.issues.label_color"}}
-
-
- {{template "repo/issue/label_precolors"}}
-
-
-
-
-
-
-
- {{svg "octicon-x"}}
- {{ctx.Locale.Tr "cancel"}}
-
-
- {{svg "octicon-check"}}
- {{ctx.Locale.Tr "repo.issues.create_label"}}
-
-
-
diff --git a/repo/issue/labels/labels_selector_field.tmpl b/repo/issue/labels/labels_selector_field.tmpl
deleted file mode 100644
index e5f15ca..0000000
--- a/repo/issue/labels/labels_selector_field.tmpl
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
- {{ctx.Locale.Tr "repo.issues.new.labels"}}
- {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}
- {{svg "octicon-gear" 16 "tw-ml-1"}}
- {{end}}
-
-
-
diff --git a/repo/issue/labels/labels_sidebar.tmpl b/repo/issue/labels/labels_sidebar.tmpl
deleted file mode 100644
index 0b7b9b8..0000000
--- a/repo/issue/labels/labels_sidebar.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- {{ctx.Locale.Tr "repo.issues.new.no_label"}}
- {{range .root.Labels}}
- {{template "repo/issue/labels/label" dict "root" $.root "label" .}}
- {{end}}
- {{range .root.OrgLabels}}
- {{template "repo/issue/labels/label" dict "root" $.root "label" .}}
- {{end}}
-
-
diff --git a/repo/issue/list.tmpl b/repo/issue/list.tmpl
deleted file mode 100644
index 30edf82..0000000
--- a/repo/issue/list.tmpl
+++ /dev/null
@@ -1,55 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
- {{if .PinnedIssues}}
-
- {{range .PinnedIssues}}
-
- {{template "repo/issue/card" (dict "Issue" . "Page" $ "isPinnedIssueCard" true)}}
-
- {{end}}
-
- {{end}}
-
-
-
- {{template "repo/issue/filters" .}}
-
-
- {{template "shared/issuelist" dict "." . "listType" "repo"}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/issue/milestone/filter_list.tmpl b/repo/issue/milestone/filter_list.tmpl
deleted file mode 100644
index 45f9866..0000000
--- a/repo/issue/milestone/filter_list.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
diff --git a/repo/issue/milestone/select_menu.tmpl b/repo/issue/milestone/select_menu.tmpl
deleted file mode 100644
index 9b0492c..0000000
--- a/repo/issue/milestone/select_menu.tmpl
+++ /dev/null
@@ -1,38 +0,0 @@
-{{if or .OpenMilestones .ClosedMilestones}}
-
- {{svg "octicon-search" 16}}
-
-
-
-{{end}}
-{{ctx.Locale.Tr "repo.issues.new.clear_milestone"}}
-{{if and (not .OpenMilestones) (not .ClosedMilestones)}}
-
- {{ctx.Locale.Tr "repo.issues.new.no_items"}}
-
-{{else}}
- {{if .OpenMilestones}}
-
-
- {{range .OpenMilestones}}
-
- {{svg "octicon-milestone" 16 "tw-mr-1"}}
- {{.Name}}
-
- {{end}}
- {{end}}
- {{if .ClosedMilestones}}
-
-
- {{range .ClosedMilestones}}
-
- {{svg "octicon-milestone" 16 "tw-mr-1"}}
- {{.Name}}
-
- {{end}}
- {{end}}
-{{end}}
diff --git a/repo/issue/milestone_issues.tmpl b/repo/issue/milestone_issues.tmpl
deleted file mode 100644
index 5bae6fc..0000000
--- a/repo/issue/milestone_issues.tmpl
+++ /dev/null
@@ -1,65 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
-
{{.Milestone.Name}}
- {{if not .Repository.IsArchived}}
-
- {{end}}
-
- {{if .Milestone.RenderedContent}}
-
- {{.Milestone.RenderedContent}}
-
- {{end}}
-
-
-
-
- {{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix ctx.Locale}}
- {{if .IsClosed}}
- {{svg "octicon-clock"}} {{ctx.Locale.Tr "repo.milestones.closed" $closedDate}}
- {{else}}
-
- {{if .Milestone.DeadlineString}}
-
- {{svg "octicon-calendar"}}
- {{DateTime "short" .Milestone.DeadlineString}}
-
- {{else}}
- {{svg "octicon-calendar"}}
- {{ctx.Locale.Tr "repo.milestones.no_due_date"}}
- {{end}}
- {{end}}
-
-
{{ctx.Locale.Tr "repo.milestones.completeness" .Milestone.Completeness}}
- {{if .TotalTrackedTime}}
-
- {{svg "octicon-clock"}}
- {{.TotalTrackedTime | Sec2Time}}
-
- {{end}}
-
-
-
-
- {{template "repo/issue/filters" .}}
-
- {{template "shared/issuelist" dict "." . "listType" "milestone"}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/issue/milestone_new.tmpl b/repo/issue/milestone_new.tmpl
deleted file mode 100644
index 9f32df0..0000000
--- a/repo/issue/milestone_new.tmpl
+++ /dev/null
@@ -1,59 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{template "repo/issue/navbar" .}}
- {{if and (or .CanWriteIssues .CanWritePulls) .PageIsEditMilestone}}
-
- {{end}}
-
-
-
- {{template "base/alert" .}}
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.milestones.title"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.milestones.desc"}}
- {{.content}}
-
-
-
- {{if .PageIsEditMilestone}}
-
- {{ctx.Locale.Tr "repo.milestones.cancel"}}
-
-
- {{ctx.Locale.Tr "repo.milestones.modify"}}
-
- {{else}}
-
- {{ctx.Locale.Tr "repo.milestones.create"}}
-
- {{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/issue/milestones.tmpl b/repo/issue/milestones.tmpl
deleted file mode 100644
index bce7ad8..0000000
--- a/repo/issue/milestones.tmpl
+++ /dev/null
@@ -1,108 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
-
-
- {{template "repo/issue/filters" .}}
-
-
-
- {{range .Milestones}}
-
-
-
- {{if .Content}}
-
- {{.RenderedContent}}
-
- {{end}}
-
- {{end}}
-
- {{template "base/paginate" .}}
-
-
-
-
-{{if or .CanWriteIssues .CanWritePulls}}
-
-
-
-
{{ctx.Locale.Tr "repo.milestones.deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-{{end}}
-{{template "base/footer" .}}
diff --git a/repo/issue/navbar.tmpl b/repo/issue/navbar.tmpl
deleted file mode 100644
index 30e42c7..0000000
--- a/repo/issue/navbar.tmpl
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/repo/issue/new.tmpl b/repo/issue/new.tmpl
deleted file mode 100644
index ccd45fd..0000000
--- a/repo/issue/new.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "repo/issue/new_form" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/issue/new_form.tmpl b/repo/issue/new_form.tmpl
deleted file mode 100644
index 88a6c39..0000000
--- a/repo/issue/new_form.tmpl
+++ /dev/null
@@ -1,190 +0,0 @@
-{{if .Flash}}
-{{template "base/alert" .}}
-{{end}}
-
diff --git a/repo/issue/openclose.tmpl b/repo/issue/openclose.tmpl
deleted file mode 100644
index eb2d6e0..0000000
--- a/repo/issue/openclose.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/repo/issue/search.tmpl b/repo/issue/search.tmpl
deleted file mode 100644
index 769387b..0000000
--- a/repo/issue/search.tmpl
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/repo/issue/view.tmpl b/repo/issue/view.tmpl
deleted file mode 100644
index 1ef9e73..0000000
--- a/repo/issue/view.tmpl
+++ /dev/null
@@ -1,12 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "repo/issue/view_title" .}}
- {{if .Issue.IsPull}}
- {{template "repo/pulls/tab_menu" .}}
- {{end}}
- {{template "repo/issue/view_content" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/issue/view_content.tmpl b/repo/issue/view_content.tmpl
deleted file mode 100644
index d40134e..0000000
--- a/repo/issue/view_content.tmpl
+++ /dev/null
@@ -1,190 +0,0 @@
-
-
-
-
-
-
-
-
- {{$createdStr:= TimeSinceUnix .Issue.CreatedUnix ctx.Locale}}
-
-
- {{template "repo/issue/view_content/sidebar" .}}
-
-
-
-
-{{template "repo/issue/view_content/reference_issue_dialog" .}}
-{{template "shared/user/block_user_dialog" .}}
-
-
- {{ctx.Locale.Tr "repo.issues.no_content"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.branch.delete_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
diff --git a/repo/issue/view_content/add_reaction.tmpl b/repo/issue/view_content/add_reaction.tmpl
deleted file mode 100644
index 6baded8..0000000
--- a/repo/issue/view_content/add_reaction.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{if ctx.RootData.IsSigned}}
-
-{{end}}
diff --git a/repo/issue/view_content/attachments.tmpl b/repo/issue/view_content/attachments.tmpl
deleted file mode 100644
index 2155f78..0000000
--- a/repo/issue/view_content/attachments.tmpl
+++ /dev/null
@@ -1,42 +0,0 @@
-
- {{if .Attachments}}
-
- {{end}}
- {{$hasThumbnails := false}}
- {{- range .Attachments -}}
-
-
-
- {{.Size | FileSize}}
-
-
- {{end -}}
-
- {{if $hasThumbnails}}
-
-
- {{- range .Attachments -}}
- {{if FilenameIsImage .Name}}
- {{if not (StringUtils.Contains (StringUtils.ToString $.RenderedContent) .UUID)}}
-
-
-
- {{end}}
- {{end}}
- {{end -}}
-
- {{end}}
-
-
diff --git a/repo/issue/view_content/comments.tmpl b/repo/issue/view_content/comments.tmpl
deleted file mode 100644
index acc04e4..0000000
--- a/repo/issue/view_content/comments.tmpl
+++ /dev/null
@@ -1,685 +0,0 @@
-{{template "base/alert"}}
-{{range .Issue.Comments}}
- {{if call $.ShouldShowCommentType .Type}}
- {{$createdStr:= TimeSinceUnix .CreatedUnix ctx.Locale}}
-
-
- {{if eq .Type 0}}
-
- {{else if eq .Type 1}}
-
- {{svg "octicon-dot-fill"}}
- {{if not .OriginalAuthor}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
- {{end}}
-
- {{template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" .}}
- {{if .Issue.IsPull}}
- {{ctx.Locale.Tr "repo.pulls.reopened_at" .EventTag $createdStr}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.reopened_at" .EventTag $createdStr}}
- {{end}}
-
-
- {{else if eq .Type 2}}
-
- {{svg "octicon-circle-slash"}}
- {{if not .OriginalAuthor}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
- {{end}}
-
- {{template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" .}}
- {{if .Issue.IsPull}}
- {{ctx.Locale.Tr "repo.pulls.closed_at" .EventTag $createdStr}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.closed_at" .EventTag $createdStr}}
- {{end}}
-
-
- {{else if eq .Type 28}}
-
-
{{svg "octicon-git-merge"}}
- {{if not .OriginalAuthor}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
- {{end}}
-
- {{template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" .}}
- {{$link := printf "%s/commit/%s" $.Repository.Link ($.Issue.PullRequest.MergedCommitID|PathEscape)}}
- {{if eq $.Issue.PullRequest.Status 3}}
- {{ctx.Locale.Tr "repo.issues.comment_manually_pull_merged_at" (HTMLFormat `%[2]s ` $link (ShortSha $.Issue.PullRequest.MergedCommitID)) (HTMLFormat "%[1]s " $.BaseTarget) $createdStr}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.comment_pull_merged_at" (HTMLFormat `%[2]s ` $link (ShortSha $.Issue.PullRequest.MergedCommitID)) (HTMLFormat "%[1]s " $.BaseTarget) $createdStr}}
- {{end}}
-
-
- {{else if eq .Type 3 5 6}}
- {{$refFrom:= ""}}
- {{if ne .RefRepoID .Issue.RepoID}}
- {{$refFrom = ctx.Locale.Tr "repo.issues.ref_from" .RefRepo.FullName}}
- {{end}}
- {{$refTr := "repo.issues.ref_issue_from"}}
- {{if .Issue.IsPull}}
- {{$refTr = "repo.issues.ref_pull_from"}}
- {{else if eq .RefAction 1}}
- {{$refTr = "repo.issues.ref_closing_from"}}
- {{else if eq .RefAction 2}}
- {{$refTr = "repo.issues.ref_reopening_from"}}
- {{end}}
- {{$createdStr:= TimeSinceUnix .CreatedUnix ctx.Locale}}
-
-
{{svg "octicon-bookmark"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
- {{if eq .RefAction 3}}
{{end}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr $refTr .EventTag $createdStr (.RefCommentLink ctx) $refFrom}}
-
- {{if eq .RefAction 3}}{{end}}
-
-
-
- {{else if eq .Type 4}}
-
-
{{svg "octicon-bookmark"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.commit_ref_at" .EventTag $createdStr}}
-
-
- {{svg "octicon-git-commit"}}
- {{.Content | SanitizeHTML}}
-
-
- {{else if eq .Type 7}}
- {{if or .AddedLabels .RemovedLabels}}
-
- {{svg "octicon-tag"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{if and .AddedLabels (not .RemovedLabels)}}
- {{ctx.Locale.TrN (len .AddedLabels) "repo.issues.add_label" "repo.issues.add_labels" (RenderLabels ctx ctx.Locale .AddedLabels $.RepoLink .Issue) $createdStr}}
- {{else if and (not .AddedLabels) .RemovedLabels}}
- {{ctx.Locale.TrN (len .RemovedLabels) "repo.issues.remove_label" "repo.issues.remove_labels" (RenderLabels ctx ctx.Locale .RemovedLabels $.RepoLink .Issue) $createdStr}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.add_remove_labels" (RenderLabels ctx ctx.Locale .AddedLabels $.RepoLink .Issue) (RenderLabels ctx ctx.Locale .RemovedLabels $.RepoLink .Issue) $createdStr}}
- {{end}}
-
-
- {{end}}
- {{else if eq .Type 8}}
-
- {{svg "octicon-milestone"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{if gt .OldMilestoneID 0}}{{if gt .MilestoneID 0}}{{ctx.Locale.Tr "repo.issues.change_milestone_at" .OldMilestone.Name .Milestone.Name $createdStr}}{{else}}{{ctx.Locale.Tr "repo.issues.remove_milestone_at" .OldMilestone.Name $createdStr}}{{end}}{{else if gt .MilestoneID 0}}{{ctx.Locale.Tr "repo.issues.add_milestone_at" .Milestone.Name $createdStr}}{{end}}
-
-
- {{else if and (eq .Type 9) (gt .AssigneeID 0)}}
-
- {{svg "octicon-person"}}
- {{if .RemovedAssignee}}
- {{template "shared/user/avatarlink" dict "user" .Assignee}}
-
- {{template "shared/user/authorlink" .Assignee}}
- {{if eq .Poster.ID .Assignee.ID}}
- {{ctx.Locale.Tr "repo.issues.remove_self_assignment" $createdStr}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.remove_assignee_at" .Poster.GetDisplayName $createdStr}}
- {{end}}
-
- {{else}}
- {{template "shared/user/avatarlink" dict "user" .Assignee}}
-
- {{template "shared/user/authorlink" .Assignee}}
- {{if eq .Poster.ID .AssigneeID}}
- {{ctx.Locale.Tr "repo.issues.self_assign_at" $createdStr}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.add_assignee_at" .Poster.GetDisplayName $createdStr}}
- {{end}}
-
- {{end}}
-
- {{else if eq .Type 10}}
-
- {{svg "octicon-pencil"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.change_title_at" (.OldTitle|RenderEmoji $.Context) (.NewTitle|RenderEmoji $.Context) $createdStr}}
-
-
- {{else if eq .Type 11}}
-
- {{svg "octicon-git-branch"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.delete_branch_at" .OldRef $createdStr}}
-
-
- {{else if eq .Type 12}}
-
- {{svg "octicon-clock"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.start_tracking_history" $createdStr}}
-
-
- {{else if eq .Type 13}}
-
-
{{svg "octicon-clock"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.stop_tracking_history" $createdStr}}
-
- {{template "repo/issue/view_content/comments_delete_time" dict "ctxData" $ "comment" .}}
-
- {{svg "octicon-clock"}}
- {{if .RenderedContent}}
- {{/* compatibility with time comments made before v1.21 */}}
- {{.RenderedContent}}
- {{else}}
- {{.Content|Sec2Time}}
- {{end}}
-
-
- {{else if eq .Type 14}}
-
-
{{svg "octicon-clock"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.add_time_history" $createdStr}}
-
- {{template "repo/issue/view_content/comments_delete_time" dict "ctxData" $ "comment" .}}
-
- {{svg "octicon-clock"}}
- {{if .RenderedContent}}
- {{/* compatibility with time comments made before v1.21 */}}
- {{.RenderedContent}}
- {{else}}
- {{.Content|Sec2Time}}
- {{end}}
-
-
- {{else if eq .Type 15}}
-
- {{svg "octicon-clock"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.cancel_tracking_history" $createdStr}}
-
-
- {{else if eq .Type 16}}
-
- {{svg "octicon-clock"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.due_date_added" (DateTime "long" .Content) $createdStr}}
-
-
- {{else if eq .Type 17}}
-
- {{svg "octicon-clock"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{$parsedDeadline := StringUtils.Split .Content "|"}}
- {{if eq (len $parsedDeadline) 2}}
- {{$from := DateTime "long" (index $parsedDeadline 1)}}
- {{$to := DateTime "long" (index $parsedDeadline 0)}}
- {{ctx.Locale.Tr "repo.issues.due_date_modified" $to $from $createdStr}}
- {{end}}
-
-
- {{else if eq .Type 18}}
-
- {{svg "octicon-clock"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.due_date_remove" (DateTime "long" .Content) $createdStr}}
-
-
- {{else if eq .Type 19}}
-
-
{{svg "octicon-package-dependents"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.dependency.added_dependency" $createdStr}}
-
- {{if .DependentIssue}}
-
- {{end}}
-
- {{else if eq .Type 20}}
-
-
{{svg "octicon-package-dependents"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.dependency.removed_dependency" $createdStr}}
-
- {{if .DependentIssue}}
-
- {{end}}
-
- {{else if eq .Type 22}}
-
-
- {{$reviewType := -1}}
- {{if .Review}}{{$reviewType = .Review.Type}}{{end}}
- {{if not .OriginalAuthor}}
- {{/* Some timeline avatars need a offset to correctly align with their speech bubble.
- The condition depends on whether the comment has contents/attachments or reviews */}}
-
- {{ctx.AvatarUtils.Avatar .Poster 40}}
-
- {{end}}
-
- {{if .Review}}{{svg (printf "octicon-%s" .Review.Type.Icon)}}{{end}}
-
-
- {{template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" .}}
- {{if eq $reviewType 1}}
- {{ctx.Locale.Tr "repo.issues.review.approve" $createdStr}}
- {{else if eq $reviewType 2}}
- {{ctx.Locale.Tr "repo.issues.review.comment" $createdStr}}
- {{else if eq $reviewType 3}}
- {{ctx.Locale.Tr "repo.issues.review.reject" $createdStr}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.review.comment" $createdStr}}
- {{end}}
- {{if and .Review .Review.Dismissed}}
- {{ctx.Locale.Tr "repo.issues.review.dismissed_label"}}
- {{end}}
-
-
- {{if or .Content .Attachments}}
-
- {{end}}
-
- {{if and .Review .Review.CodeComments}}
-
- {{range $filename, $lines := .Review.CodeComments}}
- {{range $line, $comms := $lines}}
- {{template "repo/issue/view_content/conversation" dict "." $ "comments" $comms}}
- {{end}}
- {{end}}
-
- {{end}}
-
- {{else if eq .Type 23}}
-
- {{svg "octicon-lock"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
- {{if .Content}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.lock_with_reason" .Content $createdStr}}
-
- {{else}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.lock_no_reason" $createdStr}}
-
- {{end}}
-
- {{else if eq .Type 24}}
-
- {{svg "octicon-key"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{ctx.Locale.Tr "repo.issues.unlock_comment" $createdStr}}
-
-
- {{else if eq .Type 25}}
-
- {{svg "octicon-git-branch"}}
- {{if not .OriginalAuthor}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
- {{end}}
-
- {{template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" .}}
- {{ctx.Locale.Tr "repo.pulls.change_target_branch_at" .OldRef .NewRef $createdStr}}
-
-
- {{else if eq .Type 26}}
-
-
{{svg "octicon-clock"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
-
- {{ctx.Locale.Tr "repo.issues.del_time_history" $createdStr}}
-
-
- {{svg "octicon-clock"}}
- {{if .RenderedContent}}
- {{/* compatibility with time comments made before v1.21 */}}
- {{.RenderedContent}}
- {{else}}
- - {{.Content|Sec2Time}}
- {{end}}
-
-
- {{else if eq .Type 27}}
-
- {{svg "octicon-eye"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{if (gt .AssigneeID 0)}}
- {{if .RemovedAssignee}}
- {{if eq .PosterID .AssigneeID}}
- {{ctx.Locale.Tr "repo.issues.review.remove_review_request_self" $createdStr}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.review.remove_review_request" .Assignee.GetDisplayName $createdStr}}
- {{end}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.review.add_review_request" .Assignee.GetDisplayName $createdStr}}
- {{end}}
- {{else}}
-
- {{$teamName := "Ghost Team"}}
- {{if .AssigneeTeam}}
- {{$teamName = .AssigneeTeam.Name}}
- {{end}}
- {{if .RemovedAssignee}}
- {{ctx.Locale.Tr "repo.issues.review.remove_review_request" $teamName $createdStr}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.review.add_review_request" $teamName $createdStr}}
- {{end}}
- {{end}}
-
-
- {{else if and (eq .Type 29) (or (gt .CommitsNum 0) .IsForcePush)}}
-
- {{if and .Issue.IsClosed (gt .ID $.LatestCloseCommentID)}}
- {{continue}}
- {{end}}
-
-
{{svg "octicon-repo-push"}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{if .IsForcePush}}
- {{ctx.Locale.Tr "repo.issues.force_push_codes" $.Issue.PullRequest.HeadBranch (ShortSha .OldCommit) ($.Issue.Repo.CommitLink .OldCommit) (ShortSha .NewCommit) ($.Issue.Repo.CommitLink .NewCommit) $createdStr}}
- {{else}}
- {{ctx.Locale.TrN (len .Commits) "repo.issues.push_commit_1" "repo.issues.push_commits_n" (len .Commits) $createdStr}}
- {{end}}
-
- {{if and .IsForcePush $.Issue.PullRequest.BaseRepo.Name}}
-
- {{ctx.Locale.Tr "repo.issues.force_push_compare"}}
-
- {{end}}
-
- {{if not .IsForcePush}}
- {{template "repo/commits_list_small" dict "comment" . "root" $}}
- {{end}}
- {{else if eq .Type 30}}
- {{if not $.UnitProjectsGlobalDisabled}}
-
- {{svg "octicon-project"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{$oldProjectDisplayHtml := "Unknown Project"}}
- {{if .OldProject}}
- {{$trKey := printf "projects.type-%d.display_name" .OldProject.Type}}
- {{$oldProjectDisplayHtml = HTMLFormat `%s ` (ctx.Locale.Tr $trKey) .OldProject.Title}}
- {{end}}
- {{$newProjectDisplayHtml := "Unknown Project"}}
- {{if .Project}}
- {{$trKey := printf "projects.type-%d.display_name" .Project.Type}}
- {{$newProjectDisplayHtml = HTMLFormat `%s ` (ctx.Locale.Tr $trKey) .Project.Title}}
- {{end}}
- {{if and (gt .OldProjectID 0) (gt .ProjectID 0)}}
- {{ctx.Locale.Tr "repo.issues.change_project_at" $oldProjectDisplayHtml $newProjectDisplayHtml $createdStr}}
- {{else if gt .OldProjectID 0}}
- {{ctx.Locale.Tr "repo.issues.remove_project_at" $oldProjectDisplayHtml $createdStr}}
- {{else if gt .ProjectID 0}}
- {{ctx.Locale.Tr "repo.issues.add_project_at" $newProjectDisplayHtml $createdStr}}
- {{end}}
-
-
- {{end}}
- {{else if eq .Type 32}}
-
-
-
-
-
-
{{svg "octicon-x" 16}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{$reviewerName := ""}}
- {{if .Review}}
- {{if eq .Review.OriginalAuthor ""}}
- {{$reviewerName = .Review.Reviewer.Name}}
- {{else}}
- {{$reviewerName = .Review.OriginalAuthor}}
- {{end}}
- {{end}}
- {{ctx.Locale.Tr "repo.issues.review.dismissed" $reviewerName $createdStr}}
-
-
- {{if .Content}}
-
- {{end}}
-
- {{else if eq .Type 33}}
-
- {{svg "octicon-git-branch"}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{if and .OldRef .NewRef}}
- {{ctx.Locale.Tr "repo.issues.change_ref_at" .OldRef .NewRef $createdStr}}
- {{else if .OldRef}}
- {{ctx.Locale.Tr "repo.issues.remove_ref_at" .OldRef $createdStr}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.add_ref_at" .NewRef $createdStr}}
- {{end}}
-
-
- {{else if or (eq .Type 34) (eq .Type 35)}}
-
- {{svg "octicon-git-merge" 16}}
-
- {{template "repo/issue/view_content/comments_authorlink" dict "ctxData" $ "comment" .}}
- {{if eq .Type 34}}{{ctx.Locale.Tr "repo.pulls.auto_merge_newly_scheduled_comment" $createdStr}}
- {{else}}{{ctx.Locale.Tr "repo.pulls.auto_merge_canceled_schedule_comment" $createdStr}}{{end}}
-
-
- {{else if or (eq .Type 36) (eq .Type 37)}}
-
- {{svg "octicon-pin" 16}}
- {{template "shared/user/avatarlink" dict "user" .Poster}}
-
- {{template "shared/user/authorlink" .Poster}}
- {{if eq .Type 36}}{{ctx.Locale.Tr "repo.issues.pin_comment" $createdStr}}
- {{else}}{{ctx.Locale.Tr "repo.issues.unpin_comment" $createdStr}}{{end}}
-
-
- {{end}}
- {{end}}
-{{end}}
diff --git a/repo/issue/view_content/comments_authorlink.tmpl b/repo/issue/view_content/comments_authorlink.tmpl
deleted file mode 100644
index f652a0b..0000000
--- a/repo/issue/view_content/comments_authorlink.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{if .comment.OriginalAuthor}}
-
- {{svg (MigrationIcon .ctxData.Repository.GetOriginalURLHostname)}}
- {{.comment.OriginalAuthor}}
-
- {{if .ctxData.Repository.OriginalURL}}
- ({{ctx.Locale.Tr "repo.migrated_from" .ctxData.Repository.OriginalURL .ctxData.Repository.GetOriginalURLHostname}})
- {{end}}
-{{else}}
- {{template "shared/user/authorlink" .comment.Poster}}
-{{end}}
diff --git a/repo/issue/view_content/comments_delete_time.tmpl b/repo/issue/view_content/comments_delete_time.tmpl
deleted file mode 100644
index 2377e7c..0000000
--- a/repo/issue/view_content/comments_delete_time.tmpl
+++ /dev/null
@@ -1,18 +0,0 @@
-{{if and .comment.Time (.ctxData.Repository.IsTimetrackerEnabled ctx)}} {{/* compatibility with time comments made before v1.14 */}}
- {{if (not .comment.Time.Deleted)}}
- {{if (or .ctxData.IsAdmin (and .ctxData.IsSigned (eq .ctxData.SignedUserID .comment.PosterID)))}}
-
-
-
- {{.ctxData.CsrfTokenHtml}}
-
-
- {{template "base/modal_actions_confirm"}}
-
-
- {{svg "octicon-trash"}}
-
-
- {{end}}
- {{end}}
-{{end}}
diff --git a/repo/issue/view_content/context_menu.tmpl b/repo/issue/view_content/context_menu.tmpl
deleted file mode 100644
index 17556d4..0000000
--- a/repo/issue/view_content/context_menu.tmpl
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
diff --git a/repo/issue/view_content/conversation.tmpl b/repo/issue/view_content/conversation.tmpl
deleted file mode 100644
index ac32a2d..0000000
--- a/repo/issue/view_content/conversation.tmpl
+++ /dev/null
@@ -1,143 +0,0 @@
-{{if len .comments}}
- {{$comment := index .comments 0}}
- {{$invalid := $comment.Invalidated}}
- {{$resolved := $comment.IsResolved}}
- {{$resolveDoer := $comment.ResolveDoer}}
- {{$hasReview := and $comment.Review}}
- {{$isReviewPending := and $hasReview (eq $comment.Review.Type 0)}}
-
-
- {{$diff := (CommentMustAsDiff ctx $comment)}}
- {{if $diff}}
- {{$file := (index $diff.Files 0)}}
-
- {{end}}
-
-
-{{else}}
- {{template "repo/diff/conversation_outdated"}}
-{{end}}
diff --git a/repo/issue/view_content/pull.tmpl b/repo/issue/view_content/pull.tmpl
deleted file mode 100644
index 77378ef..0000000
--- a/repo/issue/view_content/pull.tmpl
+++ /dev/null
@@ -1,396 +0,0 @@
-{{if and .Issue.PullRequest.HasMerged (not .IsPullBranchDeletable)}}
-{{/* Then the merge box will not be displayed because this page already contains enough information */}}
-{{else}}
-
-{{end}}
diff --git a/repo/issue/view_content/pull_merge_instruction.tmpl b/repo/issue/view_content/pull_merge_instruction.tmpl
deleted file mode 100644
index bb59b49..0000000
--- a/repo/issue/view_content/pull_merge_instruction.tmpl
+++ /dev/null
@@ -1,49 +0,0 @@
-
- {{ctx.Locale.Tr "repo.pulls.cmd_instruction_hint"}}
-
-
{{ctx.Locale.Tr "repo.pulls.cmd_instruction_checkout_title"}} {{ctx.Locale.Tr "repo.pulls.cmd_instruction_checkout_desc"}}
- {{$localBranch := .PullRequest.HeadBranch}}
- {{if ne .PullRequest.HeadRepo.ID .PullRequest.BaseRepo.ID}}
- {{$localBranch = print .PullRequest.HeadRepo.OwnerName "-" .PullRequest.HeadBranch}}
- {{end}}
-
- {{if eq .PullRequest.Flow 0}}
-
git fetch -u {{if ne .PullRequest.HeadRepo.ID .PullRequest.BaseRepo.ID}} {{else}}origin{{end}} {{.PullRequest.HeadBranch}}:{{$localBranch}}
- {{else}}
-
git fetch -u origin {{.PullRequest.GetGitRefName}}:{{$localBranch}}
- {{end}}
-
git checkout {{$localBranch}}
-
- {{if .ShowMergeInstructions}}
-
{{ctx.Locale.Tr "repo.pulls.cmd_instruction_merge_title"}} {{ctx.Locale.Tr "repo.pulls.cmd_instruction_merge_desc"}}
-
-
-
git checkout {{.PullRequest.BaseBranch}}
-
git merge --no-ff {{$localBranch}}
-
-
-
git checkout {{.PullRequest.BaseBranch}}
-
git merge --ff-only {{$localBranch}}
-
-
-
git checkout {{$localBranch}}
-
git rebase {{.PullRequest.BaseBranch}}
-
git checkout {{.PullRequest.BaseBranch}}
-
git merge --no-ff {{$localBranch}}
-
-
-
git checkout {{.PullRequest.BaseBranch}}
-
git merge --squash {{$localBranch}}
-
-
-
git checkout {{.PullRequest.BaseBranch}}
-
git merge --ff-only {{$localBranch}}
-
-
-
git checkout {{.PullRequest.BaseBranch}}
-
git merge {{$localBranch}}
-
-
git push origin {{.PullRequest.BaseBranch}}
-
- {{end}}
-
diff --git a/repo/issue/view_content/reactions.tmpl b/repo/issue/view_content/reactions.tmpl
deleted file mode 100644
index 0011efe..0000000
--- a/repo/issue/view_content/reactions.tmpl
+++ /dev/null
@@ -1,17 +0,0 @@
-
-{{range $key, $value := .Reactions}}
- {{$hasReacted := $value.HasUser ctx.RootData.SignedUserID}}
-
-{{end}}
-{{if AllowedReactions}}
- {{template "repo/issue/view_content/add_reaction" dict "ActionURL" .ActionURL}}
-{{end}}
-
diff --git a/repo/issue/view_content/reference_issue_dialog.tmpl b/repo/issue/view_content/reference_issue_dialog.tmpl
deleted file mode 100644
index d6c9081..0000000
--- a/repo/issue/view_content/reference_issue_dialog.tmpl
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
{{ctx.Locale.Tr "repository"}}
-
-
{{.Repository.FullName}}
-
-
-
-
- {{ctx.Locale.Tr "repo.milestones.title"}}
-
-
-
- {{ctx.Locale.Tr "repo.issues.reference_issue.body"}}
-
-
-
- {{ctx.Locale.Tr "repo.issues.create"}}
-
-
-
-
diff --git a/repo/issue/view_content/show_role.tmpl b/repo/issue/view_content/show_role.tmpl
deleted file mode 100644
index 40c8b67..0000000
--- a/repo/issue/view_content/show_role.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{if and .ShowRole.IsPoster (not .IgnorePoster)}}
-
- {{ctx.Locale.Tr "repo.issues.author"}}
-
-{{end}}
-{{if .ShowRole.RoleInRepo}}
-
- {{.ShowRole.RoleInRepo.LocaleString ctx.Locale}}
-
-{{end}}
diff --git a/repo/issue/view_content/sidebar.tmpl b/repo/issue/view_content/sidebar.tmpl
deleted file mode 100644
index bb0bb2c..0000000
--- a/repo/issue/view_content/sidebar.tmpl
+++ /dev/null
@@ -1,691 +0,0 @@
-
- {{template "repo/issue/branch_selector_field" .}}
- {{if .Issue.IsPull}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.issues.new.no_reviewers"}}
-
- {{range .PullReviewers}}
-
-
- {{if .User}}
-
- {{else if .Team}}
- {{svg "octicon-people" 20 "tw-mr-2"}}{{$.Issue.Repo.OwnerName}}/{{.Team.Name}}
- {{end}}
-
-
- {{if (and $.Permission.IsAdmin (or (eq .Review.Type 1) (eq .Review.Type 3)) (not $.Issue.IsClosed) (not $.Issue.PullRequest.HasMerged))}}
-
- {{svg "octicon-x" 20}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.issues.dismiss_review_warning"}}
-
-
- {{$.CsrfTokenHtml}}
-
-
- {{ctx.Locale.Tr "action.review_dismissed_reason"}}
-
-
-
- {{ctx.Locale.Tr "settings.cancel"}}
- {{ctx.Locale.Tr "ok"}}
-
-
-
-
- {{end}}
- {{if .Review.Stale}}
-
- {{svg "octicon-hourglass" 16}}
-
- {{end}}
- {{if and .CanChange (or .Checked (and (not $.Issue.IsClosed) (not $.Issue.PullRequest.HasMerged)))}}
-
{{if .Checked}}{{svg "octicon-trash"}}{{else}}{{svg "octicon-sync"}}{{end}}
- {{end}}
- {{svg (printf "octicon-%s" .Review.Type.Icon) 16 (printf "text %s" (.Review.HTMLTypeColorName))}}
-
-
- {{end}}
- {{range .OriginalReviews}}
-
-
-
- {{svg (printf "octicon-%s" .Type.Icon) 16 (printf "text %s" (.HTMLTypeColorName))}}
-
-
- {{end}}
-
-
- {{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .HasMerged) (not .Issue.IsClosed) (not .IsPullWorkInProgress)}}
-
- {{end}}
-
- {{end}}
-
- {{template "repo/issue/labels/labels_selector_field" .}}
- {{template "repo/issue/labels/labels_sidebar" dict "root" $}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.issues.new.no_milestone"}}
-
- {{if .Issue.Milestone}}
-
- {{end}}
-
-
-
- {{if .IsProjectsEnabled}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.issues.new.no_projects"}}
-
- {{if .Issue.Project}}
-
- {{end}}
-
-
- {{end}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.issues.new.no_assignees"}}
-
- {{range .Issue.Assignees}}
-
-
-
- {{end}}
-
-
-
-
-
- {{if .Participants}}
-
{{ctx.Locale.Tr "repo.issues.num_participants" .NumParticipants}}
-
- {{end}}
-
- {{if and $.IssueWatch (not .Repository.IsArchived)}}
-
-
-
-
{{ctx.Locale.Tr "notification.notifications"}}
-
- {{template "repo/issue/view_content/watching" .}}
-
-
- {{end}}
- {{if .Repository.IsTimetrackerEnabled $.Context}}
- {{if and .CanUseTimetracker (not .Repository.IsArchived)}}
-
-
-
{{ctx.Locale.Tr "repo.issues.tracker"}}
-
-
- {{$.CsrfTokenHtml}}
-
-
- {{$.CsrfTokenHtml}}
-
- {{if $.IsStopwatchRunning}}
-
- {{svg "octicon-stopwatch" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "repo.issues.stop_tracking"}}
-
-
- {{svg "octicon-trash" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "repo.issues.cancel_tracking"}}
-
- {{else}}
- {{if .HasUserStopwatch}}
-
- {{ctx.Locale.Tr "repo.issues.tracking_already_started" .OtherStopwatchURL}}
-
- {{end}}
-
- {{svg "octicon-stopwatch" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "repo.issues.start_tracking_short"}}
-
-
-
- {{svg "octicon-plus" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "repo.issues.add_time_short"}}
-
- {{end}}
-
-
- {{end}}
- {{if .WorkingUsers}}
-
-
- {{end}}
- {{end}}
-
-
-
{{ctx.Locale.Tr "repo.issues.due_date"}}
-
-
- {{if .Repository.IsDependenciesEnabled $.Context}}
-
-
-
- {{if (and (not .BlockedByDependencies) (not .BlockedByDependenciesNotPermitted) (not .BlockingDependencies) (not .BlockingDependenciesNotPermitted))}}
-
{{ctx.Locale.Tr "repo.issues.dependency.title"}}
-
-
- {{if .Issue.IsPull}}
- {{ctx.Locale.Tr "repo.issues.dependency.pr_no_dependencies"}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.dependency.issue_no_dependencies"}}
- {{end}}
-
- {{end}}
-
- {{if or .BlockingDependencies .BlockingDependenciesNotPermitted}}
-
- {{ctx.Locale.Tr "repo.issues.dependency.blocks_short"}}
-
-
- {{range .BlockingDependencies}}
-
- {{end}}
- {{if .BlockingDependenciesNotPermitted}}
-
- {{ctx.Locale.TrN (len .BlockingDependenciesNotPermitted) "repo.issues.dependency.no_permission_1" "repo.issues.dependency.no_permission_n" (len .BlockingDependenciesNotPermitted)}}
-
- {{end}}
-
- {{end}}
-
- {{if or .BlockedByDependencies .BlockedByDependenciesNotPermitted}}
-
- {{ctx.Locale.Tr "repo.issues.dependency.blocked_by_short"}}
-
-
- {{range .BlockedByDependencies}}
-
- {{end}}
- {{if $.CanCreateIssueDependencies}}
- {{range .BlockedByDependenciesNotPermitted}}
-
-
-
- {{svg "octicon-lock" 16}}
-
- #{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}
-
-
-
- {{.Repository.OwnerName}}/{{.Repository.Name}}
-
-
-
-
- {{end}}
- {{else if .BlockedByDependenciesNotPermitted}}
-
- {{ctx.Locale.TrN (len .BlockedByDependenciesNotPermitted) "repo.issues.dependency.no_permission_1" "repo.issues.dependency.no_permission_n" (len .BlockedByDependenciesNotPermitted)}}
-
- {{end}}
-
- {{end}}
-
- {{if and .CanCreateIssueDependencies (not .Repository.IsArchived)}}
-
-
- {{$.CsrfTokenHtml}}
-
-
-
- {{end}}
-
-
- {{if and .CanCreateIssueDependencies (not .Repository.IsArchived)}}
-
-
-
-
-
-
- {{$.CsrfTokenHtml}}
-
-
-
-
{{if .Issue.IsPull}}
- {{ctx.Locale.Tr "repo.issues.dependency.pr_remove_text"}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.dependency.issue_remove_text"}}
- {{end}}
-
- {{$ModalButtonCancelText := ctx.Locale.Tr "repo.issues.dependency.cancel"}}
- {{$ModalButtonOkText := ctx.Locale.Tr "repo.issues.dependency.remove"}}
- {{template "base/modal_actions_confirm" (dict "." . "ModalButtonCancelText" $ModalButtonCancelText "ModalButtonOkText" $ModalButtonOkText)}}
-
- {{end}}
- {{end}}
-
-
-
- {{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
-
- {{ctx.Locale.Tr "repo.issues.reference_link" $issueReferenceLink}}
- {{svg "octicon-copy" 14}}
-
-
-
- {{if and .IsRepoAdmin (not .Repository.IsArchived)}}
-
-
- {{if or .PinEnabled .Issue.IsPinned}}
-
- {{$.CsrfTokenHtml}}
-
- {{if not .Issue.IsPinned}}
- {{svg "octicon-pin" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "pin"}}
- {{else}}
- {{svg "octicon-pin-slash" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "unpin"}}
- {{end}}
-
-
- {{end}}
-
-
- {{if .Issue.IsLocked}}
- {{svg "octicon-key"}}
- {{ctx.Locale.Tr "repo.issues.unlock"}}
- {{else}}
- {{svg "octicon-lock"}}
- {{ctx.Locale.Tr "repo.issues.lock"}}
- {{end}}
-
-
-
-
-
- {{if .Issue.IsLocked}}
- {{ctx.Locale.Tr "repo.issues.unlock.notice_1"}}
- {{ctx.Locale.Tr "repo.issues.unlock.notice_2"}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.lock.notice_1"}}
- {{ctx.Locale.Tr "repo.issues.lock.notice_2"}}
- {{ctx.Locale.Tr "repo.issues.lock.notice_3"}}
- {{end}}
-
-
-
- {{.CsrfTokenHtml}}
-
- {{if not .Issue.IsLocked}}
-
- {{ctx.Locale.Tr "repo.issues.lock.reason"}}
-
-
-
-
-
-
-
- {{range .LockReasons}}
- {{.}}
- {{end}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
-
- {{end}}
-
-
- {{ctx.Locale.Tr "settings.cancel"}}
-
- {{if .Issue.IsLocked}}
- {{ctx.Locale.Tr "repo.issues.unlock_confirm"}}
- {{else}}
- {{ctx.Locale.Tr "repo.issues.lock_confirm"}}
- {{end}}
-
-
-
-
-
-
- {{svg "octicon-trash"}}
- {{ctx.Locale.Tr "repo.issues.delete"}}
-
-
- {{end}}
-
- {{if and .Issue.IsPull .IsIssuePoster (not .Issue.IsClosed) .Issue.PullRequest.HeadRepo}}
- {{if and (not (eq .Issue.PullRequest.HeadRepo.FullName .Issue.PullRequest.BaseRepo.FullName)) .CanWriteToHeadRepo}}
-
-
-
- {{ctx.Locale.Tr "repo.pulls.allow_edits_from_maintainers"}}
-
-
-
- {{end}}
- {{end}}
-
diff --git a/repo/issue/view_content/update_branch_by_merge.tmpl b/repo/issue/view_content/update_branch_by_merge.tmpl
deleted file mode 100644
index adce052..0000000
--- a/repo/issue/view_content/update_branch_by_merge.tmpl
+++ /dev/null
@@ -1,37 +0,0 @@
-{{if and (gt $.Issue.PullRequest.CommitsBehind 0) (not $.Issue.IsClosed) (not $.Issue.PullRequest.IsChecking) (not $.IsPullFilesConflicted) (not $.IsPullRequestBroken)}}
-
-
-
- {{svg "octicon-alert"}}
- {{ctx.Locale.Tr "repo.pulls.outdated_with_base_branch"}}
-
-
- {{if and $.UpdateAllowed $.UpdateByRebaseAllowed}}
-
- {{end}}
- {{if and $.UpdateAllowed (not $.UpdateByRebaseAllowed)}}
-
- {{$.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.pulls.update_branch"}}
-
-
- {{end}}
-
-
-{{end}}
diff --git a/repo/issue/view_content/watching.tmpl b/repo/issue/view_content/watching.tmpl
deleted file mode 100644
index 05936d0..0000000
--- a/repo/issue/view_content/watching.tmpl
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
- {{if $.IssueWatch.IsWatching}}
- {{svg "octicon-mute" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "repo.issues.unsubscribe"}}
- {{else}}
- {{svg "octicon-unmute" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "repo.issues.subscribe"}}
- {{end}}
-
-
diff --git a/repo/issue/view_title.tmpl b/repo/issue/view_title.tmpl
deleted file mode 100644
index 58d3759..0000000
--- a/repo/issue/view_title.tmpl
+++ /dev/null
@@ -1,124 +0,0 @@
-{{if .Flash}}
-
- {{template "base/alert" .}}
-
-{{end}}
-
diff --git a/repo/latest_commit.tmpl b/repo/latest_commit.tmpl
deleted file mode 100644
index 8bacb42..0000000
--- a/repo/latest_commit.tmpl
+++ /dev/null
@@ -1,31 +0,0 @@
-{{if not .LatestCommit}}
- …
-{{else}}
- {{if .LatestCommitUser}}
- {{ctx.AvatarUtils.Avatar .LatestCommitUser 24 "tw-mr-1"}}
- {{if and .LatestCommitUser.FullName DefaultShowFullName}}
- {{.LatestCommitUser.FullName}}
- {{else}}
- {{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}
- {{end}}
- {{else}}
- {{if .LatestCommit.Author}}
- {{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24 "tw-mr-1"}}
- {{.LatestCommit.Author.Name}}
- {{end}}
- {{end}}
-
- {{ShortSha .LatestCommit.ID.String}}
- {{if .LatestCommit.Signature}}
- {{template "repo/shabox_badge" dict "root" $ "verification" .LatestCommitVerification}}
- {{end}}
-
- {{template "repo/commit_statuses" dict "Status" .LatestCommitStatus "Statuses" .LatestCommitStatuses}}
- {{$commitLink:= printf "%s/commit/%s" .RepoLink (PathEscape .LatestCommit.ID.String)}}
- {{RenderCommitMessageLinkSubject $.Context .LatestCommit.Message $commitLink ($.Repository.ComposeMetas ctx)}}
- {{if IsMultilineCommitMessage .LatestCommit.Message}}
- ...
- {{RenderCommitBody $.Context .LatestCommit.Message ($.Repository.ComposeMetas ctx)}}
- {{end}}
-
-{{end}}
diff --git a/repo/migrate/codebase.tmpl b/repo/migrate/codebase.tmpl
deleted file mode 100644
index c8059b7..0000000
--- a/repo/migrate/codebase.tmpl
+++ /dev/null
@@ -1,116 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "repo.migrate.clone_address"}}
-
-
- {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
-
-
-
-
- {{ctx.Locale.Tr "username"}}
-
-
-
- {{ctx.Locale.Tr "password"}}
-
-
-
- {{template "repo/migrate/options" .}}
-
-
-
-
{{ctx.Locale.Tr "repo.migrate_items"}}
-
-
- {{ctx.Locale.Tr "repo.migrate_items_milestones"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_labels"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_issues"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_merge_requests"}}
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.owner"}}
-
-
-
- {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
- {{.ContextUser.ShortName 40}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_repo"}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/migrate/git.tmpl b/repo/migrate/git.tmpl
deleted file mode 100644
index 9c5f0d7..0000000
--- a/repo/migrate/git.tmpl
+++ /dev/null
@@ -1,90 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "repo.migrate.clone_address"}}
-
-
- {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
-
-
-
- {{ctx.Locale.Tr "username"}}
-
-
-
- {{ctx.Locale.Tr "password"}}
-
-
-
- {{template "repo/migrate/options" .}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.owner"}}
-
-
-
- {{ctx.AvatarUtils.Avatar .ContextUser}}
- {{.ContextUser.ShortName 40}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_repo"}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/migrate/gitbucket.tmpl b/repo/migrate/gitbucket.tmpl
deleted file mode 100644
index b667fa8..0000000
--- a/repo/migrate/gitbucket.tmpl
+++ /dev/null
@@ -1,132 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "repo.migrate.clone_address"}}
-
-
- {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
-
-
-
-
- {{ctx.Locale.Tr "username"}}
-
-
-
- {{ctx.Locale.Tr "password"}}
-
-
-
- {{template "repo/migrate/options" .}}
-
-
-
{{ctx.Locale.Tr "repo.migrate_items"}}
-
-
- {{ctx.Locale.Tr "repo.migrate_items_wiki"}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_labels"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_issues"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_releases"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_milestones"}}
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.owner"}}
-
-
-
- {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
- {{.ContextUser.ShortName 40}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_repo"}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/migrate/gitea.tmpl b/repo/migrate/gitea.tmpl
deleted file mode 100644
index 3b8f377..0000000
--- a/repo/migrate/gitea.tmpl
+++ /dev/null
@@ -1,128 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "repo.migrate.clone_address"}}
-
-
- {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
-
-
-
-
-
- {{template "repo/migrate/options" .}}
-
-
-
{{ctx.Locale.Tr "repo.migrate_items"}}
-
-
- {{ctx.Locale.Tr "repo.migrate_items_wiki"}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_labels"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_issues"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_releases"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_milestones"}}
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.owner"}}
-
-
-
- {{ctx.AvatarUtils.Avatar .ContextUser}}
- {{.ContextUser.ShortName 40}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_repo"}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/migrate/github.tmpl b/repo/migrate/github.tmpl
deleted file mode 100644
index 3535edd..0000000
--- a/repo/migrate/github.tmpl
+++ /dev/null
@@ -1,130 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "repo.migrate.clone_address"}}
-
-
- {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}
-
-
-
-
-
- {{template "repo/migrate/options" .}}
-
-
-
{{ctx.Locale.Tr "repo.migrate_items"}}
-
-
- {{ctx.Locale.Tr "repo.migrate_items_wiki"}}
-
-
-
-
{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_labels"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_issues"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_releases"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_milestones"}}
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.owner"}}
-
-
-
- {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
- {{.ContextUser.ShortName 40}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_repo"}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/migrate/gitlab.tmpl b/repo/migrate/gitlab.tmpl
deleted file mode 100644
index f705fb3..0000000
--- a/repo/migrate/gitlab.tmpl
+++ /dev/null
@@ -1,127 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "repo.migrate.clone_address"}}
-
-
- {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
-
-
-
-
-
- {{template "repo/migrate/options" .}}
-
-
-
{{ctx.Locale.Tr "repo.migrate_items"}}
-
-
- {{ctx.Locale.Tr "repo.migrate_items_wiki"}}
-
-
-
-
{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_labels"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_issues"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_merge_requests"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_releases"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_milestones"}}
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.owner"}}
-
-
-
- {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
- {{.ContextUser.ShortName 40}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_repo"}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/migrate/gogs.tmpl b/repo/migrate/gogs.tmpl
deleted file mode 100644
index eca83b1..0000000
--- a/repo/migrate/gogs.tmpl
+++ /dev/null
@@ -1,130 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "repo.migrate.clone_address"}}
-
-
- {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
-
-
-
-
- {{ctx.Locale.Tr "access_token"}}
-
-
-
-
- {{template "repo/migrate/options" .}}
-
-
-
{{ctx.Locale.Tr "repo.migrate_items"}}
-
-
- {{ctx.Locale.Tr "repo.migrate_items_wiki"}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_labels"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_issues"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_milestones"}}
-
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.owner"}}
-
-
-
- {{ctx.AvatarUtils.Avatar .ContextUser}}
- {{.ContextUser.ShortName 40}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_repo"}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/migrate/helper.tmpl b/repo/migrate/helper.tmpl
deleted file mode 100644
index e69de29..0000000
diff --git a/repo/migrate/migrate.tmpl b/repo/migrate/migrate.tmpl
deleted file mode 100644
index c5c697e..0000000
--- a/repo/migrate/migrate.tmpl
+++ /dev/null
@@ -1,32 +0,0 @@
-{{template "base/head" .}}
-
-
-
- {{template "repo/migrate/helper" .}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/migrate/migrating.tmpl b/repo/migrate/migrating.tmpl
deleted file mode 100644
index ed03db2..0000000
--- a/repo/migrate/migrating.tmpl
+++ /dev/null
@@ -1,101 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
- {{template "base/alert" .}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.migrate.migrating" .CloneAddr}}
-
-
-
- {{if .CloneAddr}}
-
{{ctx.Locale.Tr "repo.migrate.migrating_failed" .CloneAddr}}
- {{else}}
-
{{ctx.Locale.Tr "repo.migrate.migrating_failed_no_addr"}}
- {{end}}
-
-
- {{if .Permission.IsAdmin}}
-
-
- {{if .Failed}}
- {{ctx.Locale.Tr "repo.settings.delete"}}
- {{else}}
- {{ctx.Locale.Tr "cancel"}}
- {{end}}
- {{ctx.Locale.Tr "retry"}}
-
- {{end}}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.delete_notices_1"}}
- {{ctx.Locale.Tr "repo.settings.delete_notices_2" .Repository.FullName}}
- {{if .Repository.NumForks}}
- {{ctx.Locale.Tr "repo.settings.delete_notices_fork_1"}}
- {{end}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.transfer_form_title"}}
- {{.Repository.Name}}
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "settings.cancel"}}
- {{ctx.Locale.Tr "repo.settings.confirm_delete"}}
-
-
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.migrate.cancel_migrating_confirm"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/migrate/onedev.tmpl b/repo/migrate/onedev.tmpl
deleted file mode 100644
index e1aad96..0000000
--- a/repo/migrate/onedev.tmpl
+++ /dev/null
@@ -1,116 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "repo.migrate.clone_address"}}
-
-
- {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
-
-
-
-
- {{ctx.Locale.Tr "username"}}
-
-
-
- {{ctx.Locale.Tr "password"}}
-
-
-
- {{template "repo/migrate/options" .}}
-
-
-
-
{{ctx.Locale.Tr "repo.migrate_items"}}
-
-
- {{ctx.Locale.Tr "repo.migrate_items_milestones"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_labels"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_issues"}}
-
-
-
- {{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.owner"}}
-
-
-
- {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
- {{.ContextUser.ShortName 40}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.migrate_repo"}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/migrate/options.tmpl b/repo/migrate/options.tmpl
deleted file mode 100644
index 8a46e57..0000000
--- a/repo/migrate/options.tmpl
+++ /dev/null
@@ -1,26 +0,0 @@
-{{if not .DisableNewPullMirrors}}
-
-
{{ctx.Locale.Tr "repo.migrate_options"}}
-
-
- {{ctx.Locale.Tr "repo.migrate_options_mirror_helper"}}
-
-
-{{end}}
-{{if .LFSActive}}
-
-
-
{{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.description" "https://github.com/git-lfs/git-lfs/blob/main/docs/api/server-discovery.md#server-discovery"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.description.local"}}{{end}}
-
- {{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.label"}}
-
-
-
-{{end}}
diff --git a/repo/navbar.tmpl b/repo/navbar.tmpl
deleted file mode 100644
index b2471dc..0000000
--- a/repo/navbar.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/repo/packages.tmpl b/repo/packages.tmpl
deleted file mode 100644
index 14e32c1..0000000
--- a/repo/packages.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "package/shared/list" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/projects/list.tmpl b/repo/projects/list.tmpl
deleted file mode 100644
index 9eae401..0000000
--- a/repo/projects/list.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "projects/list" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/projects/new.tmpl b/repo/projects/new.tmpl
deleted file mode 100644
index e70f3bc..0000000
--- a/repo/projects/new.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "projects/new" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/projects/view.tmpl b/repo/projects/view.tmpl
deleted file mode 100644
index 05ad726..0000000
--- a/repo/projects/view.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{template "projects/view" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/pulls/commits.tmpl b/repo/pulls/commits.tmpl
deleted file mode 100644
index bf6e812..0000000
--- a/repo/pulls/commits.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "repo/issue/view_title" .}}
- {{template "repo/pulls/tab_menu" .}}
- {{template "repo/commits_table" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/pulls/files.tmpl b/repo/pulls/files.tmpl
deleted file mode 100644
index 402bec8..0000000
--- a/repo/pulls/files.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
- {{template "repo/header" .}}
-
- {{template "repo/issue/view_title" .}}
- {{template "repo/pulls/tab_menu" .}}
- {{template "repo/diff/box" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/pulls/fork.tmpl b/repo/pulls/fork.tmpl
deleted file mode 100644
index 2cf0a85..0000000
--- a/repo/pulls/fork.tmpl
+++ /dev/null
@@ -1,90 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
-
{{ctx.Locale.Tr "repo.owner"}}
-
-
-
- {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
- {{.ContextUser.ShortName 40}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
{{ctx.Locale.Tr "repo.visibility"}}
-
-
- {{ctx.Locale.Tr "repo.visibility_helper"}}
-
-
{{ctx.Locale.Tr "repo.fork_visibility_helper"}}
-
-
-
{{ctx.Locale.Tr "repo.fork_branch"}}
-
-
-
- {{ctx.Locale.Tr "repo.all_branches"}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.fork_repo"}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/pulls/status.tmpl b/repo/pulls/status.tmpl
deleted file mode 100644
index e8636ba..0000000
--- a/repo/pulls/status.tmpl
+++ /dev/null
@@ -1,59 +0,0 @@
-{{/*
-Template Attributes:
-* CommitStatus: summary of all commit status state
-* CommitStatuses: all commit status elements
-* MissingRequiredChecks: commit check contexts that are required by branch protection but not present
-* ShowHideChecks: whether use a button to show/hide the checks
-* is_context_required: Used in pull request commit status check table
-*/}}
-
-{{if .CommitStatus}}
-
-
-
-
- {{range .CommitStatuses}}
-
- {{template "repo/commit_status" .}}
-
{{.Context}} {{.Description}}
-
-
- {{end}}
- {{range .MissingRequiredChecks}}
-
- {{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}}
-
{{.}}
-
{{ctx.Locale.Tr "repo.pulls.status_checks_requested"}}
-
- {{end}}
-
-
-{{end}}
diff --git a/repo/pulls/tab_menu.tmpl b/repo/pulls/tab_menu.tmpl
deleted file mode 100644
index 8b192c4..0000000
--- a/repo/pulls/tab_menu.tmpl
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/repo/pulse.tmpl b/repo/pulse.tmpl
deleted file mode 100644
index e68109b..0000000
--- a/repo/pulse.tmpl
+++ /dev/null
@@ -1,231 +0,0 @@
-
-
-{{if (or (.Permission.CanRead ctx.Consts.RepoUnitTypeIssues) (.Permission.CanRead ctx.Consts.RepoUnitTypePullRequests))}}
-
-
- {{if .Permission.CanRead ctx.Consts.RepoUnitTypePullRequests}}
-
- {{if gt .Activity.ActivePRCount 0}}
-
- {{if gt .Activity.MergedPRPerc 0}}
-
- {{end}}
-
-
- {{else}}
-
- {{end}}
- {{ctx.Locale.TrN .Activity.ActivePRCount "repo.activity.active_prs_count_1" "repo.activity.active_prs_count_n" .Activity.ActivePRCount}}
-
- {{end}}
- {{if .Permission.CanRead ctx.Consts.RepoUnitTypeIssues}}
-
- {{if gt .Activity.ActiveIssueCount 0}}
-
- {{if gt .Activity.ClosedIssuePerc 0}}
-
- {{end}}
-
-
- {{else}}
-
- {{end}}
- {{ctx.Locale.TrN .Activity.ActiveIssueCount "repo.activity.active_issues_count_1" "repo.activity.active_issues_count_n" .Activity.ActiveIssueCount}}
-
- {{end}}
-
-
-{{end}}
-
-{{if .Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
- {{if eq .Activity.Code.CommitCountInAllBranches 0}}
-
-
-
- {{end}}
- {{if gt .Activity.Code.CommitCountInAllBranches 0}}
-
-
- {{ctx.Locale.Tr "repo.activity.git_stats_exclude_merges"}}
- {{ctx.Locale.TrN .Activity.Code.AuthorCount "repo.activity.git_stats_author_1" "repo.activity.git_stats_author_n" .Activity.Code.AuthorCount}}
- {{ctx.Locale.TrN .Activity.Code.AuthorCount "repo.activity.git_stats_pushed_1" "repo.activity.git_stats_pushed_n"}}
- {{ctx.Locale.TrN .Activity.Code.CommitCount "repo.activity.git_stats_commit_1" "repo.activity.git_stats_commit_n" .Activity.Code.CommitCount}}
- {{ctx.Locale.Tr "repo.activity.git_stats_push_to_branch" .Repository.DefaultBranch}}
- {{ctx.Locale.TrN .Activity.Code.CommitCountInAllBranches "repo.activity.git_stats_commit_1" "repo.activity.git_stats_commit_n" .Activity.Code.CommitCountInAllBranches}}
- {{ctx.Locale.Tr "repo.activity.git_stats_push_to_all_branches"}}
- {{ctx.Locale.Tr "repo.activity.git_stats_on_default_branch" .Repository.DefaultBranch}}
- {{ctx.Locale.TrN .Activity.Code.ChangedFiles "repo.activity.git_stats_file_1" "repo.activity.git_stats_file_n" .Activity.Code.ChangedFiles}}
- {{ctx.Locale.TrN .Activity.Code.ChangedFiles "repo.activity.git_stats_files_changed_1" "repo.activity.git_stats_files_changed_n"}}
- {{ctx.Locale.Tr "repo.activity.git_stats_additions"}}
- {{ctx.Locale.TrN .Activity.Code.Additions "repo.activity.git_stats_addition_1" "repo.activity.git_stats_addition_n" .Activity.Code.Additions}}
- {{ctx.Locale.Tr "repo.activity.git_stats_and_deletions"}}
- {{ctx.Locale.TrN .Activity.Code.Deletions "repo.activity.git_stats_deletion_1" "repo.activity.git_stats_deletion_n" .Activity.Code.Deletions}} .
-
-
-
- {{end}}
-{{end}}
-
-{{if gt .Activity.PublishedReleaseCount 0}}
-
- {{svg "octicon-tag" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "repo.activity.title.releases_published_by"
- (ctx.Locale.TrN .Activity.PublishedReleaseCount "repo.activity.title.releases_1" "repo.activity.title.releases_n" .Activity.PublishedReleaseCount)
- (ctx.Locale.TrN .Activity.PublishedReleaseAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.PublishedReleaseAuthorCount)
- }}
-
-
-{{end}}
-
-{{if gt .Activity.MergedPRCount 0}}
-
- {{svg "octicon-git-pull-request" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "repo.activity.title.prs_merged_by"
- (ctx.Locale.TrN .Activity.MergedPRCount "repo.activity.title.prs_1" "repo.activity.title.prs_n" .Activity.MergedPRCount)
- (ctx.Locale.TrN .Activity.MergedPRAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.MergedPRAuthorCount)
- }}
-
-
-{{end}}
-
-{{if gt .Activity.OpenedPRCount 0}}
-
- {{svg "octicon-git-branch" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "repo.activity.title.prs_opened_by"
- (ctx.Locale.TrN .Activity.OpenedPRCount "repo.activity.title.prs_1" "repo.activity.title.prs_n" .Activity.OpenedPRCount)
- (ctx.Locale.TrN .Activity.OpenedPRAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.OpenedPRAuthorCount)
- }}
-
-
-{{end}}
-
-{{if gt .Activity.ClosedIssueCount 0}}
-
- {{svg "octicon-issue-closed" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "repo.activity.title.issues_closed_from"
- (ctx.Locale.TrN .Activity.ClosedIssueCount "repo.activity.title.issues_1" "repo.activity.title.issues_n" .Activity.ClosedIssueCount)
- (ctx.Locale.TrN .Activity.ClosedIssueAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.ClosedIssueAuthorCount)
- }}
-
-
-{{end}}
-
-{{if gt .Activity.OpenedIssueCount 0}}
-
- {{svg "octicon-issue-opened" 16 "tw-mr-2"}}
- {{ctx.Locale.Tr "repo.activity.title.issues_created_by"
- (ctx.Locale.TrN .Activity.OpenedIssueCount "repo.activity.title.issues_1" "repo.activity.title.issues_n" .Activity.OpenedIssueCount)
- (ctx.Locale.TrN .Activity.OpenedIssueAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.OpenedIssueAuthorCount)
- }}
-
-
-{{end}}
-
-{{if gt .Activity.UnresolvedIssueCount 0}}
-
- {{svg "octicon-comment-discussion" 16 "tw-mr-2"}}
- {{ctx.Locale.TrN .Activity.UnresolvedIssueCount "repo.activity.title.unresolved_conv_1" "repo.activity.title.unresolved_conv_n" .Activity.UnresolvedIssueCount}}
-
-
-{{end}}
diff --git a/repo/recent_commits.tmpl b/repo/recent_commits.tmpl
deleted file mode 100644
index cfa8fab..0000000
--- a/repo/recent_commits.tmpl
+++ /dev/null
@@ -1,9 +0,0 @@
-{{if .Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
-
-
-{{end}}
diff --git a/repo/release/list.tmpl b/repo/release/list.tmpl
deleted file mode 100644
index 3454867..0000000
--- a/repo/release/list.tmpl
+++ /dev/null
@@ -1,114 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
- {{template "repo/release_tag_header" .}}
-
- {{range $idx, $info := .Releases}}
- {{$release := $info.Release}}
-
-
-
-
-
- {{if $.PageIsSingleTag}}{{$release.Title}}{{else}}{{$release.Title}} {{end}}
- {{template "repo/commit_statuses" dict "Status" $info.CommitStatus "Statuses" $info.CommitStatuses "AdditionalClasses" "tw-flex"}}
- {{if $release.IsDraft}}
- {{ctx.Locale.Tr "repo.release.draft"}}
- {{else if $release.IsPrerelease}}
- {{ctx.Locale.Tr "repo.release.prerelease"}}
- {{else if (not $release.IsTag)}}
- {{ctx.Locale.Tr "repo.release.stable"}}
- {{end}}
-
-
-
-
-
- {{if $release.OriginalAuthor}}
- {{svg (MigrationIcon $release.Repo.GetOriginalURLHostname) 20 "tw-mr-1"}}{{$release.OriginalAuthor}}
- {{else if $release.Publisher}}
- {{ctx.AvatarUtils.Avatar $release.Publisher 20 "tw-mr-1"}}
- {{$release.Publisher.GetDisplayName}}
- {{else}}
- Ghost
- {{end}}
-
-
- {{ctx.Locale.Tr "repo.released_this"}}
-
- {{if $release.CreatedUnix}}
- {{TimeSinceUnix $release.CreatedUnix ctx.Locale}}
- {{end}}
- {{if and (not $release.IsDraft) ($.Permission.CanRead ctx.Consts.RepoUnitTypeCode)}}
- | {{ctx.Locale.Tr "repo.release.ahead.commits" $release.NumCommitsBehind}} {{ctx.Locale.Tr "repo.release.ahead.target" $release.TargetBehind}}
- {{end}}
-
-
- {{$release.RenderedNote}}
-
-
-
-
- {{ctx.Locale.Tr "repo.release.downloads"}}
-
-
-
-
-
- {{end}}
-
-
- {{template "base/paginate" .}}
-
-
-
-{{if (and ($.Permission.CanWrite ctx.Consts.RepoUnitTypeCode) .PageIsTagList)}}
-
-
-
-
{{ctx.Locale.Tr "repo.release.deletion_tag_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-{{end}}
-
-{{template "base/footer" .}}
diff --git a/repo/release/new.tmpl b/repo/release/new.tmpl
deleted file mode 100644
index c01f9a4..0000000
--- a/repo/release/new.tmpl
+++ /dev/null
@@ -1,150 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{template "base/alert" .}}
-
- {{.CsrfTokenHtml}}
-
-
- {{if .PageIsEditRelease}}
-
{{.tag_name}} @ {{.tag_target}}
- {{else}}
-
-
-
-
@
-
-
- {{svg "octicon-git-branch"}}
-
- {{ctx.Locale.Tr "repo.release.target"}} :
- {{.Repository.DefaultBranch}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.release.tag_helper"}}
-
- {{end}}
-
-
-
-
-
-
-
- {{template "shared/combomarkdowneditor" (dict
- "MarkdownPreviewUrl" (print .Repository.Link "/markup")
- "MarkdownPreviewContext" .RepoLink
- "TextareaName" "content"
- "TextareaContent" .content
- "TextareaPlaceholder" (ctx.Locale.Tr "repo.release.message")
- "TextareaAriaLabel" (ctx.Locale.Tr "repo.release.message")
- "DropzoneParentContainer" "form"
- )}}
-
- {{range .attachments}}
-
-
-
-
- {{.Size | FileSize}}
-
- {{svg "octicon-info"}}
-
-
-
- {{ctx.Locale.Tr "remove"}}
-
-
- {{end}}
- {{if .IsAttachmentEnabled}}
-
- {{template "repo/upload" .}}
-
- {{end}}
-
-
-
-
- {{if not .PageIsEditRelease}}
-
-
-
- {{ctx.Locale.Tr "repo.release.add_tag_msg"}}
-
-
- {{else}}
-
- {{end}}
-
-
-
- {{ctx.Locale.Tr "repo.release.prerelease_desc"}}
-
-
-
{{ctx.Locale.Tr "repo.release.prerelease_helper"}}
-
-
- {{if .PageIsEditRelease}}
-
- {{ctx.Locale.Tr "repo.release.cancel"}}
-
-
- {{ctx.Locale.Tr "repo.release.delete_release"}}
-
- {{if .IsDraft}}
-
{{ctx.Locale.Tr "repo.release.save_draft"}}
-
- {{ctx.Locale.Tr "repo.release.publish"}}
-
- {{else}}
-
- {{ctx.Locale.Tr "repo.release.edit_release"}}
-
- {{end}}
- {{else}}
- {{if not .tag_name}}
-
{{ctx.Locale.Tr "repo.release.add_tag"}}
- {{end}}
-
{{ctx.Locale.Tr "repo.release.save_draft"}}
-
- {{ctx.Locale.Tr "repo.release.publish"}}
-
- {{end}}
-
-
-
-
-
-
-
-{{if .PageIsEditRelease}}
-
-
-
-
{{ctx.Locale.Tr "repo.release.deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-{{end}}
-{{template "base/footer" .}}
diff --git a/repo/release_tag_header.tmpl b/repo/release_tag_header.tmpl
deleted file mode 100644
index f96c768..0000000
--- a/repo/release_tag_header.tmpl
+++ /dev/null
@@ -1,29 +0,0 @@
-{{$canReadReleases := $.Permission.CanRead ctx.Consts.RepoUnitTypeReleases}}
-{{$canReadCode := $.Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
-
-{{if $canReadReleases}}
-
-
-{{else if $canReadCode}}
- {{/* if the "repo.releases" unit is disabled, only show the "commits / branches / tags" sub menu */}}
- {{template "repo/sub_menu" .}}
-{{end}}
diff --git a/repo/search.tmpl b/repo/search.tmpl
deleted file mode 100644
index 3f5b22b..0000000
--- a/repo/search.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "shared/search/code/search" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/search_name.tmpl b/repo/search_name.tmpl
deleted file mode 100644
index 951f168..0000000
--- a/repo/search_name.tmpl
+++ /dev/null
@@ -1 +0,0 @@
-{{.Name}}{{if DefaultShowFullName}} {{.FullName}} {{end}}
diff --git a/repo/settings/actions.tmpl b/repo/settings/actions.tmpl
deleted file mode 100644
index f38ab5b..0000000
--- a/repo/settings/actions.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings actions")}}
-
- {{if eq .PageType "runners"}}
- {{template "shared/actions/runner_list" .}}
- {{else if eq .PageType "secrets"}}
- {{template "shared/secrets/add_list" .}}
- {{else if eq .PageType "variables"}}
- {{template "shared/variables/variable_list" .}}
- {{end}}
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/branches.tmpl b/repo/settings/branches.tmpl
deleted file mode 100644
index 52c0c2c..0000000
--- a/repo/settings/branches.tmpl
+++ /dev/null
@@ -1,78 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}}
-
- {{if .Repository.IsArchived}}
-
- {{ctx.Locale.Tr "repo.settings.archive.branchsettings_unavailable"}}
-
- {{else}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.default_branch_desc"}}
-
-
- {{.CsrfTokenHtml}}
-
- {{if not .Repository.IsEmpty}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
{{.Repository.DefaultBranch}}
-
-
- {{ctx.Locale.Tr "repo.settings.branches.update_default_branch"}}
- {{end}}
-
-
-
-
-
-
-
- {{range .ProtectedBranches}}
-
- {{else}}
-
- {{ctx.Locale.Tr "repo.settings.no_protected_branch"}}
-
- {{end}}
-
-
- {{end}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protected_branch_deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/collaboration.tmpl b/repo/settings/collaboration.tmpl
deleted file mode 100644
index 8028642..0000000
--- a/repo/settings/collaboration.tmpl
+++ /dev/null
@@ -1,117 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings collaboration")}}
-
-
- {{if .Collaborators}}
-
-
- {{range .Collaborators}}
-
-
-
-
- {{template "shared/user/name" .}}
-
-
-
-
- {{svg "octicon-shield-lock"}}
-
-
{{if eq .Collaboration.Mode 1}}{{ctx.Locale.Tr "repo.settings.collaboration.read"}}{{else if eq .Collaboration.Mode 2}}{{ctx.Locale.Tr "repo.settings.collaboration.write"}}{{else if eq .Collaboration.Mode 3}}{{ctx.Locale.Tr "repo.settings.collaboration.admin"}}{{else}}{{ctx.Locale.Tr "repo.settings.collaboration.undefined"}}{{end}}
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.delete_collaborator"}}
-
-
-
- {{end}}
-
-
- {{end}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.add_collaborator"}}
-
-
-
- {{if .RepoOwnerIsOrganization}}
-
- {{$allowedToChangeTeams := (or (.Org.RepoAdminChangeTeamAccess) (.Permission.IsOwner))}}
- {{if .Teams}}
-
-
- {{range $t, $team := .Teams}}
-
-
-
- {{.Name}}
-
-
- {{svg "octicon-shield-lock"}}
- {{if eq .AccessMode 1}}{{ctx.Locale.Tr "repo.settings.collaboration.read"}}{{else if eq .AccessMode 2}}{{ctx.Locale.Tr "repo.settings.collaboration.write"}}{{else if eq .AccessMode 3}}{{ctx.Locale.Tr "repo.settings.collaboration.admin"}}{{else if eq .AccessMode 4}}{{ctx.Locale.Tr "repo.settings.collaboration.owner"}}{{else}}{{ctx.Locale.Tr "repo.settings.collaboration.undefined"}}{{end}}
-
- {{if or (eq .AccessMode 1) (eq .AccessMode 2)}}
- {{$first := true}}
-
- Sections: {{range $u, $unit := $.Units}}{{if and ($.Repo.UnitEnabled $.Context $unit.Type) ($team.UnitEnabled $.Context $unit.Type)}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{ctx.Locale.Tr $unit.NameKey}}{{end}}{{end}} {{if $first}}None{{end}}
-
- {{end}}
-
- {{if $allowedToChangeTeams}}
-
-
- {{ctx.Locale.Tr "repo.settings.delete_collaborator"}}
-
-
- {{end}}
-
- {{end}}
-
-
- {{end}}
-
- {{if $allowedToChangeTeams}}
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.add_team"}}
-
- {{else}}
-
- {{ctx.Locale.Tr "repo.settings.change_team_access_not_allowed"}}
-
- {{end}}
-
- {{end}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.collaborator_deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/deploy_keys.tmpl b/repo/settings/deploy_keys.tmpl
deleted file mode 100644
index 190ca1a..0000000
--- a/repo/settings/deploy_keys.tmpl
+++ /dev/null
@@ -1,86 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings")}}
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.deploy_key_desc"}}
-
-
- {{ctx.Locale.Tr "repo.settings.title"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.deploy_key_content"}}
- {{.content}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.is_writable"}}
-
- {{ctx.Locale.Tr "repo.settings.is_writable_info"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.add_deploy_key"}}
-
-
- {{ctx.Locale.Tr "cancel"}}
-
-
-
- {{if .Deploykeys}}
-
- {{range .Deploykeys}}
-
-
- {{svg "octicon-key" 32}}
-
-
-
{{.Name}}
-
- {{.Fingerprint}}
-
-
- {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix)}} — {{svg "octicon-info"}} {{if .HasUsed}}{{ctx.Locale.Tr "settings.last_used"}} {{DateTime "short" .UpdatedUnix}} {{else}}{{ctx.Locale.Tr "settings.no_activity"}}{{end}} - {{ctx.Locale.Tr "settings.can_read_info"}}{{if not .IsReadOnly}} / {{ctx.Locale.Tr "settings.can_write_info"}} {{end}}
-
-
-
-
- {{ctx.Locale.Tr "settings.delete_key"}}
-
-
-
- {{end}}
-
- {{else}}
- {{ctx.Locale.Tr "repo.settings.no_deploy_keys"}}
- {{end}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.deploy_key_deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/githook_edit.tmpl b/repo/settings/githook_edit.tmpl
deleted file mode 100644
index e20f51b..0000000
--- a/repo/settings/githook_edit.tmpl
+++ /dev/null
@@ -1,27 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit githook")}}
-
-
-
-
{{ctx.Locale.Tr "repo.settings.githook_edit_desc"}}
-
- {{.CsrfTokenHtml}}
- {{with .Hook}}
-
- {{ctx.Locale.Tr "repo.settings.githook_name"}}
- {{.Name}}
-
-
-
{{ctx.Locale.Tr "repo.settings.githook_content"}}
-
{{if .IsActive}}{{.Content}}{{else}}{{.Sample}}{{end}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.update_githook"}}
-
- {{end}}
-
-
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/githooks.tmpl b/repo/settings/githooks.tmpl
deleted file mode 100644
index 1a603f9..0000000
--- a/repo/settings/githooks.tmpl
+++ /dev/null
@@ -1,23 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings githooks")}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.githooks_desc"}}
-
- {{range .Hooks}}
-
- {{end}}
-
-
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/layout_footer.tmpl b/repo/settings/layout_footer.tmpl
deleted file mode 100644
index 60cad3f..0000000
--- a/repo/settings/layout_footer.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{if false}}{{/* to make html structure "likely" complete to prevent IDE warnings */}}
-
-
-
- {{/* block: repo-setting-content */}}
-{{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/settings/layout_head.tmpl b/repo/settings/layout_head.tmpl
deleted file mode 100644
index efec9bf..0000000
--- a/repo/settings/layout_head.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-{{template "base/head" .ctxData}}
-
- {{template "repo/header" .ctxData}}
-
- {{template "repo/settings/navbar" .ctxData}}
-
- {{template "base/alert" .ctxData}}
- {{/* block: repo-setting-content */}}
-
-{{if false}}{{/* to make html structure "likely" complete to prevent IDE warnings */}}
-
-
-
-{{end}}
diff --git a/repo/settings/lfs.tmpl b/repo/settings/lfs.tmpl
deleted file mode 100644
index bc92b48..0000000
--- a/repo/settings/lfs.tmpl
+++ /dev/null
@@ -1,53 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings lfs")}}
-
-
-
- {{template "base/paginate" .}}
- {{range .LFSFiles}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.lfs_delete_warning"}}
-
-
- {{$.CsrfTokenHtml}}
- {{template "base/modal_actions_confirm"}}
-
-
-
- {{end}}
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/lfs_file.tmpl b/repo/settings/lfs_file.tmpl
deleted file mode 100644
index a015cc8..0000000
--- a/repo/settings/lfs_file.tmpl
+++ /dev/null
@@ -1,55 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings lfs")}}
-
-
-
-
- {{template "repo/unicode_escape_prompt" dict "EscapeStatus" .EscapeStatus "root" $}}
-
- {{if .IsFileTooLarge}}
- {{template "shared/filetoolarge" dict "RawFileLink" .RawFileLink}}
- {{else if .IsMarkup}}
- {{if .FileContent}}{{.FileContent | SafeHTML}}{{end}}
- {{else if .IsPlainText}}
-
{{if .FileContent}}{{.FileContent | SafeHTML}}{{end}}
- {{else if not .IsTextFile}}
-
- {{if .IsImageFile}}
-
- {{else if .IsVideoFile}}
-
- {{ctx.Locale.Tr "repo.video_not_supported_in_browser"}}
-
- {{else if .IsAudioFile}}
-
- {{ctx.Locale.Tr "repo.audio_not_supported_in_browser"}}
-
- {{else if .IsPDFFile}}
-
- {{else}}
-
{{ctx.Locale.Tr "repo.file_view_raw"}}
- {{end}}
-
- {{else if .FileSize}}
-
-
-
- {{.LineNums}}
- {{.FileContent}}
-
-
-
- {{end}}
-
-
-
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/lfs_file_find.tmpl b/repo/settings/lfs_file_find.tmpl
deleted file mode 100644
index 809a028..0000000
--- a/repo/settings/lfs_file_find.tmpl
+++ /dev/null
@@ -1,46 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings lfs")}}
-
-
-
-
-
- {{range .Results}}
-
-
- {{svg "octicon-file"}}
- {{.Name}}
-
-
-
-
- {{.Summary | RenderEmoji $.Context}}
-
-
-
-
- {{svg "octicon-git-branch"}}{{.BranchName}}
-
-
- {{if .ParentHashes}}
- {{ctx.Locale.Tr "repo.diff.parent"}}
- {{range .ParentHashes}}
- {{ShortSha .String}}
- {{end}}
- {{end}}
- {{ctx.Locale.Tr "repo.diff.commit"}}
- {{ShortSha .SHA}}
-
- {{TimeSince .When ctx.Locale}}
-
- {{else}}
-
- {{ctx.Locale.Tr "repo.settings.lfs_lfs_file_no_commits"}}
-
- {{end}}
-
-
-
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/lfs_locks.tmpl b/repo/settings/lfs_locks.tmpl
deleted file mode 100644
index 98f0e49..0000000
--- a/repo/settings/lfs_locks.tmpl
+++ /dev/null
@@ -1,56 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings lfs")}}
-
-
-
-
-
- {{$.CsrfTokenHtml}}
-
-
- {{ctx.Locale.Tr "repo.settings.lfs_lock"}}
-
-
-
-
-
- {{range $index, $lock := .LFSLocks}}
-
-
- {{if index $.Linkable $index}}
- {{svg "octicon-file"}}
- {{$lock.Path}}
- {{else}}
- {{svg "octicon-diff"}}
- {{$lock.Path}}
- {{end}}
- {{if not (index $.Lockables $index)}}
- {{svg "octicon-alert"}}
- {{end}}
-
-
-
- {{ctx.AvatarUtils.Avatar $.Owner}}
- {{$.Owner.DisplayName}}
-
-
- {{TimeSince .Created ctx.Locale}}
-
-
- {{$.CsrfTokenHtml}}
- {{svg "octicon-lock"}} {{ctx.Locale.Tr "repo.settings.lfs_force_unlock"}}
-
-
-
- {{else}}
-
- {{ctx.Locale.Tr "repo.settings.lfs_locks_no_locks"}}
-
- {{end}}
-
-
- {{template "base/paginate" .}}
-
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/lfs_pointers.tmpl b/repo/settings/lfs_pointers.tmpl
deleted file mode 100644
index 758aec6..0000000
--- a/repo/settings/lfs_pointers.tmpl
+++ /dev/null
@@ -1,56 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings lfs")}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.lfs_pointers.sha"}}
- {{ctx.Locale.Tr "repo.settings.lfs_pointers.oid"}}
- {{ctx.Locale.Tr "repo.settings.lfs_pointers.inRepo"}}
- {{ctx.Locale.Tr "repo.settings.lfs_pointers.exists"}}
- {{ctx.Locale.Tr "repo.settings.lfs_pointers.accessible"}}
-
-
-
-
- {{range .Pointers}}
-
-
-
- {{ShortSha .SHA}}
-
-
-
-
- {{ShortSha .Oid}}
-
-
- {{if .InRepo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{if .Exists}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
- {{if .Accessible}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
-
- {{ctx.Locale.Tr "repo.settings.lfs_findcommits"}}
-
-
- {{end}}
-
-
-
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/navbar.tmpl b/repo/settings/navbar.tmpl
deleted file mode 100644
index 414effb..0000000
--- a/repo/settings/navbar.tmpl
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
diff --git a/repo/settings/options.tmpl b/repo/settings/options.tmpl
deleted file mode 100644
index 3168384..0000000
--- a/repo/settings/options.tmpl
+++ /dev/null
@@ -1,1076 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings options")}}
-
-
-
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
- {{ctx.Locale.Tr "repo.repo_size"}}
- {{FileSize .Repository.Size}}
-
-
-
{{ctx.Locale.Tr "repo.template"}}
-
-
- {{ctx.Locale.Tr "repo.template_helper"}}
-
-
- {{if not .Repository.IsFork}}
-
- {{end}}
-
- {{ctx.Locale.Tr "repo.repo_desc"}}
- {{.Repository.Description}}
-
-
- {{ctx.Locale.Tr "repo.settings.site"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.update_settings"}}
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "settings.choose_new_avatar"}}
-
-
-
- {{ctx.Locale.Tr "settings.update_avatar"}}
- {{ctx.Locale.Tr "settings.delete_current_avatar"}}
-
-
-
-
- {{/* These variables exist to make the logic in the Settings window easier to comprehend and are not used later on. */}}
- {{$newMirrorsPartiallyEnabled := or (not .DisableNewPullMirrors) (not .DisableNewPushMirrors)}}
- {{/* .Repository.IsMirror is not always reliable if the repository is not actively acting as a mirror because of errors. */}}
- {{$showMirrorSettings := and (.Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeCode) (or $newMirrorsPartiallyEnabled .Repository.IsMirror .PullMirror .PushMirrors)}}
- {{$newMirrorsEntirelyEnabled := and (not .DisableNewPullMirrors) (not .DisableNewPushMirrors)}}
- {{$onlyNewPushMirrorsEnabled := and (not .DisableNewPushMirrors) .DisableNewPullMirrors}}
- {{$onlyNewPullMirrorsEnabled := and .DisableNewPushMirrors (not .DisableNewPullMirrors)}}
- {{$existingPushMirror := or .Repository.IsMirror .PushMirrors}}
- {{$modifyBrokenPullMirror := and .Repository.IsMirror (not .PullMirror)}}
- {{$isWorkingPullMirror := .PullMirror}}
-
- {{if $showMirrorSettings}}
-
-
- {{if .Repository.IsArchived}}
-
- {{ctx.Locale.Tr "repo.settings.archive.mirrors_unavailable"}}
-
- {{else}}
- {{if $newMirrorsEntirelyEnabled}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.docs"}}
-
{{ctx.Locale.Tr "repo.settings.mirror_settings.docs.doc_link_title"}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.pull_mirror_instructions"}}
-
{{ctx.Locale.Tr "repo.settings.mirror_settings.docs.doc_link_pull_section"}}
- {{else if $onlyNewPushMirrorsEnabled}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.disabled_pull_mirror.instructions"}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.more_information_if_disabled"}}
-
{{ctx.Locale.Tr "repo.settings.mirror_settings.docs.doc_link_title"}}
- {{else if $onlyNewPullMirrorsEnabled}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.disabled_push_mirror.instructions"}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.disabled_push_mirror.pull_mirror_warning"}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.more_information_if_disabled"}}
-
{{ctx.Locale.Tr "repo.settings.mirror_settings.docs.doc_link_title"}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.disabled_push_mirror.info"}}
- {{if $existingPushMirror}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.can_still_use"}}
- {{end}}
- {{else}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.no_new_mirrors"}} {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.can_still_use"}}
- {{end}}
-
- {{if .Repository.IsMirror}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.mirror_settings.mirrored_repository"}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.direction"}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.last_update"}}
-
-
-
- {{if $modifyBrokenPullMirror}}
- {{/* even if a repo is a pull mirror (IsMirror=true), the PullMirror might still be nil if the mirror migration is broken */}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.mirror_settings.direction.pull"}}: {{ctx.Locale.Tr "error.occurred"}}
-
-
-
- {{else if $isWorkingPullMirror}}
-
-
- {{.PullMirror.RemoteAddress}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.direction.pull"}}
- {{DateTime "full" .PullMirror.UpdatedUnix}}
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.sync_mirror"}}
-
-
-
-
-
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
-
-
{{ctx.Locale.Tr "repo.mirror_prune"}}
-
-
- {{ctx.Locale.Tr "repo.mirror_prune_desc"}}
-
-
-
- {{ctx.Locale.Tr "repo.mirror_interval" .MinimumMirrorInterval}}
-
-
- {{$address := MirrorRemoteAddress $.Context .Repository .PullMirror.GetRemoteName}}
-
-
{{ctx.Locale.Tr "repo.mirror_address"}}
-
-
{{ctx.Locale.Tr "repo.mirror_address_desc"}}
-
-
-
- {{ctx.Locale.Tr "repo.need_auth"}}
-
-
-
- {{ctx.Locale.Tr "username"}}
-
-
-
- {{ctx.Locale.Tr "password"}}
-
-
-
{{ctx.Locale.Tr "repo.mirror_password_help"}}
-
-
-
- {{if .LFSStartServer}}
-
-
{{ctx.Locale.Tr "repo.mirror_lfs"}}
-
-
- {{ctx.Locale.Tr "repo.mirror_lfs_desc"}}
-
-
-
-
{{ctx.Locale.Tr "repo.mirror_lfs_endpoint"}}
-
-
{{ctx.Locale.Tr "repo.mirror_lfs_endpoint_desc" "https://github.com/git-lfs/git-lfs/blob/main/docs/api/server-discovery.md#server-discovery"}}
-
- {{end}}
-
- {{ctx.Locale.Tr "repo.settings.update_mirror_settings"}}
-
-
-
-
-
- {{end}}{{/* end if: $modifyBrokenPullMirror / $isWorkingPullMirror */}}
-
- {{end}}{{/* end if .Repository.IsMirror */}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.mirror_settings.pushed_repository"}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.direction"}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.last_update"}}
-
-
-
-
- {{range .PushMirrors}}
-
- {{.RemoteAddress}}
- {{ctx.Locale.Tr "repo.settings.mirror_settings.direction.push"}}
- {{if .LastUpdateUnix}}{{DateTime "full" .LastUpdateUnix}}{{else}}{{ctx.Locale.Tr "never"}}{{end}} {{if .LastError}}{{ctx.Locale.Tr "error"}}
{{end}}
-
-
- {{svg "octicon-pencil" 14}}
-
-
- {{$.CsrfTokenHtml}}
-
-
- {{svg "octicon-sync" 14}}
-
-
- {{$.CsrfTokenHtml}}
-
-
- {{svg "octicon-trash" 14}}
-
-
-
- {{else}}
-
- {{ctx.Locale.Tr "repo.settings.mirror_settings.push_mirror.none"}}
-
- {{end}}
- {{if (not .DisableNewPushMirrors)}}
-
-
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
-
-
{{ctx.Locale.Tr "repo.settings.mirror_settings.push_mirror.remote_url"}}
-
-
{{ctx.Locale.Tr "repo.mirror_address_desc"}}
-
-
-
- {{ctx.Locale.Tr "repo.need_auth"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.mirror_sync_on_commit"}}
-
-
-
- {{ctx.Locale.Tr "repo.mirror_interval" .MinimumMirrorInterval}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.mirror_settings.push_mirror.add"}}
-
-
-
-
- {{end}}
-
-
- {{end}}
-
- {{end}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{$isCodeEnabled := .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeCode}}
- {{$isCodeGlobalDisabled := ctx.Consts.RepoUnitTypeCode.UnitGlobalDisabled}}
-
-
{{ctx.Locale.Tr "repo.code"}}
-
-
- {{ctx.Locale.Tr "repo.code.desc"}}
-
-
-
- {{$isInternalWikiEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeWiki}}
- {{$isExternalWikiEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeExternalWiki}}
- {{$isWikiEnabled := or $isInternalWikiEnabled $isExternalWikiEnabled}}
- {{$isWikiGlobalDisabled := ctx.Consts.RepoUnitTypeWiki.UnitGlobalDisabled}}
- {{$isExternalWikiGlobalDisabled := ctx.Consts.RepoUnitTypeExternalWiki.UnitGlobalDisabled}}
- {{$isBothWikiGlobalDisabled := and $isWikiGlobalDisabled $isExternalWikiGlobalDisabled}}
-
-
{{ctx.Locale.Tr "repo.wiki"}}
-
-
- {{ctx.Locale.Tr "repo.settings.wiki_desc"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.use_internal_wiki"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.default_wiki_branch_name"}}
-
-
-
- {{$unitInternalWiki := .Repository.MustGetUnit ctx ctx.Consts.RepoUnitTypeWiki}}
- {{ctx.Locale.Tr "repo.settings.default_wiki_everyone_access"}}
-
- {{/* everyone access mode is different from others, none means it is unset and won't be applied */}}
- {{ctx.Locale.Tr "settings.permission_not_set"}}
- {{ctx.Locale.Tr "settings.permission_read"}}
- {{ctx.Locale.Tr "settings.permission_write"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.use_external_wiki"}}
-
-
-
-
{{ctx.Locale.Tr "repo.settings.external_wiki_url"}}
-
-
{{ctx.Locale.Tr "repo.settings.external_wiki_url_desc"}}
-
-
-
-
-
- {{$isIssuesEnabled := or (.Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeIssues) (.Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeExternalTracker)}}
- {{$isIssuesGlobalDisabled := ctx.Consts.RepoUnitTypeIssues.UnitGlobalDisabled}}
- {{$isExternalTrackerGlobalDisabled := ctx.Consts.RepoUnitTypeExternalTracker.UnitGlobalDisabled}}
- {{$isIssuesAndExternalGlobalDisabled := and $isIssuesGlobalDisabled $isExternalTrackerGlobalDisabled}}
-
-
{{ctx.Locale.Tr "repo.issues"}}
-
-
- {{ctx.Locale.Tr "repo.settings.issues_desc"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.use_internal_issue_tracker"}}
-
-
-
- {{if .Repository.CanEnableTimetracker}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.enable_timetracker"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.allow_only_contributors_to_track_time"}}
-
-
- {{end}}
-
-
-
- {{ctx.Locale.Tr "repo.issues.dependency.setting"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.admin_enable_close_issues_via_commit_in_any_branch"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.use_external_issue_tracker"}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.external_tracker_url"}}
-
-
{{ctx.Locale.Tr "repo.settings.external_tracker_url_desc"}}
-
-
-
{{ctx.Locale.Tr "repo.settings.tracker_url_format"}}
-
-
{{ctx.Locale.Tr "repo.settings.tracker_url_format_desc"}}
-
-
-
{{ctx.Locale.Tr "repo.settings.tracker_issue_style"}}
-
-
- {{$externalTracker := (.Repository.MustGetUnit $.Context ctx.Consts.RepoUnitTypeExternalTracker)}}
- {{$externalTrackerStyle := $externalTracker.ExternalTrackerConfig.ExternalTrackerStyle}}
-
- {{ctx.Locale.Tr "repo.settings.tracker_issue_style.numeric"}} #1234
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.tracker_issue_style.alphanumeric"}} ABC-123 , DEFG-234
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.tracker_issue_style.regexp"}} (ISSUE-\d+) , ISSUE-(\d+)
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.tracker_issue_style.regexp_pattern"}}
-
-
{{ctx.Locale.Tr "repo.settings.tracker_issue_style.regexp_pattern_desc"}}
-
-
-
-
-
-
- {{$isProjectsEnabled := .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeProjects}}
- {{$isProjectsGlobalDisabled := ctx.Consts.RepoUnitTypeProjects.UnitGlobalDisabled}}
- {{$projectsUnit := .Repository.MustGetUnit $.Context ctx.Consts.RepoUnitTypeProjects}}
-
-
{{ctx.Locale.Tr "repo.project_board"}}
-
-
- {{ctx.Locale.Tr "repo.settings.projects_desc"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.projects_mode_desc"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.projects_mode_repo"}}
- {{ctx.Locale.Tr "repo.settings.projects_mode_owner"}}
- {{ctx.Locale.Tr "repo.settings.projects_mode_all"}}
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
- {{if (eq $projectsUnit.ProjectsConfig.GetProjectsMode "repo")}}
- {{ctx.Locale.Tr "repo.settings.projects_mode_repo"}}
- {{end}}
- {{if (eq $projectsUnit.ProjectsConfig.GetProjectsMode "owner")}}
- {{ctx.Locale.Tr "repo.settings.projects_mode_owner"}}
- {{end}}
- {{if (eq $projectsUnit.ProjectsConfig.GetProjectsMode "all")}}
- {{ctx.Locale.Tr "repo.settings.projects_mode_all"}}
- {{end}}
-
-
-
-
-
-
-
- {{$isReleasesEnabled := .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeReleases}}
- {{$isReleasesGlobalDisabled := ctx.Consts.RepoUnitTypeReleases.UnitGlobalDisabled}}
-
-
{{ctx.Locale.Tr "repo.releases"}}
-
-
- {{ctx.Locale.Tr "repo.settings.releases_desc"}}
-
-
-
- {{$isPackagesEnabled := .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypePackages}}
- {{$isPackagesGlobalDisabled := ctx.Consts.RepoUnitTypePackages.UnitGlobalDisabled}}
-
-
{{ctx.Locale.Tr "repo.packages"}}
-
-
- {{ctx.Locale.Tr "repo.settings.packages_desc"}}
-
-
-
- {{if .EnableActions}}
- {{$isActionsEnabled := .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeActions}}
- {{$isActionsGlobalDisabled := ctx.Consts.RepoUnitTypeActions.UnitGlobalDisabled}}
-
-
{{ctx.Locale.Tr "actions.actions"}}
-
-
- {{ctx.Locale.Tr "repo.settings.actions_desc"}}
-
-
- {{end}}
-
- {{if not .IsMirror}}
-
- {{$pullRequestEnabled := .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypePullRequests}}
- {{$pullRequestGlobalDisabled := ctx.Consts.RepoUnitTypePullRequests.UnitGlobalDisabled}}
- {{$prUnit := .Repository.MustGetUnit $.Context ctx.Consts.RepoUnitTypePullRequests}}
-
-
{{ctx.Locale.Tr "repo.pulls"}}
-
-
- {{ctx.Locale.Tr "repo.settings.pulls_desc"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.merge_style_desc"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.pulls.merge_pull_request"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.pulls.rebase_merge_pull_request"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.pulls.rebase_merge_commit_pull_request"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.pulls.squash_merge_pull_request"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.pulls.fast_forward_only_merge_pull_request"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.pulls.merge_manually"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.default_merge_style_desc"}}
-
-
-
- {{ctx.Locale.Tr "repo.pulls.merge_pull_request"}}
- {{ctx.Locale.Tr "repo.pulls.rebase_merge_pull_request"}}
- {{ctx.Locale.Tr "repo.pulls.rebase_merge_commit_pull_request"}}
- {{ctx.Locale.Tr "repo.pulls.squash_merge_pull_request"}}
- {{ctx.Locale.Tr "repo.pulls.fast_forward_only_merge_pull_request"}}
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
- {{if (eq $prUnit.PullRequestsConfig.DefaultMergeStyle "merge")}}
- {{ctx.Locale.Tr "repo.pulls.merge_pull_request"}}
- {{end}}
- {{if (eq $prUnit.PullRequestsConfig.DefaultMergeStyle "rebase")}}
- {{ctx.Locale.Tr "repo.pulls.rebase_merge_pull_request"}}
- {{end}}
- {{if (eq $prUnit.PullRequestsConfig.DefaultMergeStyle "rebase-merge")}}
- {{ctx.Locale.Tr "repo.pulls.rebase_merge_commit_pull_request"}}
- {{end}}
- {{if (eq $prUnit.PullRequestsConfig.DefaultMergeStyle "squash")}}
- {{ctx.Locale.Tr "repo.pulls.squash_merge_pull_request"}}
- {{end}}
- {{if (eq $prUnit.PullRequestsConfig.DefaultMergeStyle "fast-forward-only")}}
- {{ctx.Locale.Tr "repo.pulls.fast_forward_only_merge_pull_request"}}
- {{end}}
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.pulls.default_allow_edits_from_maintainers"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.pulls.allow_rebase_update"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.pulls.default_delete_branch_after_merge"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.pulls.enable_autodetect_manual_merge"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.pulls.ignore_whitespace"}}
-
-
-
- {{end}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.update_settings"}}
-
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
{{ctx.Locale.Tr "repo.settings.trust_model"}}
-
-
-
-
{{ctx.Locale.Tr "repo.settings.trust_model.default"}}
-
{{ctx.Locale.Tr "repo.settings.trust_model.default.desc"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.trust_model.collaborator.long"}}
-
{{ctx.Locale.Tr "repo.settings.trust_model.collaborator.desc"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.trust_model.committer.long"}}
-
{{ctx.Locale.Tr "repo.settings.trust_model.committer.desc"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.trust_model.collaboratorcommitter.long"}}
-
{{ctx.Locale.Tr "repo.settings.trust_model.collaboratorcommitter.desc"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.update_settings"}}
-
-
-
-
- {{if .IsAdmin}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.admin_enable_health_check"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.update_settings"}}
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{if .IsRepoIndexerEnabled}}
-
-
-
{{ctx.Locale.Tr "repo.settings.admin_indexer_commit_sha"}}
-
- {{if .CodeIndexerStatus}}
-
- {{ShortSha .CodeIndexerStatus.CommitSha}}
-
- {{else}}
- {{ctx.Locale.Tr "repo.settings.admin_indexer_unindexed"}}
- {{end}}
-
-
- {{ctx.Locale.Tr "repo.settings.reindex_button"}}
-
-
- {{end}}
-
-
- {{if and .StatsIndexerStatus .StatsIndexerStatus.CommitSha}}
-
{{ctx.Locale.Tr "repo.settings.admin_indexer_commit_sha"}}
- {{end}}
-
- {{if and .StatsIndexerStatus .StatsIndexerStatus.CommitSha}}
-
- {{ShortSha .StatsIndexerStatus.CommitSha}}
-
- {{else}}
- {{ctx.Locale.Tr "repo.settings.admin_indexer_unindexed"}}
- {{end}}
-
-
- {{ctx.Locale.Tr "repo.settings.reindex_button"}}
-
-
-
-
- {{end}}
-
- {{if .Permission.IsOwner}}
-
-
-
- {{if .Repository.IsMirror}}
-
-
-
{{ctx.Locale.Tr "repo.settings.convert"}}
-
{{ctx.Locale.Tr "repo.settings.convert_desc"}}
-
-
- {{ctx.Locale.Tr "repo.settings.convert"}}
-
-
- {{end}}
- {{if and .Repository.IsFork .Repository.Owner.CanCreateRepo}}
-
-
-
{{ctx.Locale.Tr "repo.settings.convert_fork"}}
-
{{ctx.Locale.Tr "repo.settings.convert_fork_desc"}}
-
-
- {{ctx.Locale.Tr "repo.settings.convert_fork"}}
-
-
- {{end}}
-
-
-
{{ctx.Locale.Tr "repo.settings.transfer"}}
-
- {{if .RepoTransfer}}
- {{ctx.Locale.Tr "repo.settings.transfer_started" .RepoTransfer.Recipient.DisplayName}}
- {{else}}
- {{ctx.Locale.Tr "repo.settings.transfer_desc"}}
- {{end}}
-
-
-
- {{if .RepoTransfer}}
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.transfer_abort"}}
-
- {{else}}
- {{ctx.Locale.Tr "repo.settings.transfer"}}
- {{end}}
-
-
- {{if .Permission.CanRead ctx.Consts.RepoUnitTypeWiki}}
-
-
-
{{ctx.Locale.Tr "repo.settings.wiki_delete"}}
-
{{ctx.Locale.Tr "repo.settings.wiki_delete_desc"}}
-
-
- {{ctx.Locale.Tr "repo.settings.wiki_delete"}}
-
-
- {{end}}
-
-
-
{{ctx.Locale.Tr "repo.settings.delete"}}
-
{{ctx.Locale.Tr "repo.settings.delete_desc"}}
-
-
- {{ctx.Locale.Tr "repo.settings.delete"}}
-
-
- {{if not .Repository.IsMirror}}
-
-
- {{if .Repository.IsArchived}}
-
{{ctx.Locale.Tr "repo.settings.unarchive.header"}}
-
{{ctx.Locale.Tr "repo.settings.unarchive.text"}}
- {{else}}
-
{{ctx.Locale.Tr "repo.settings.archive.header"}}
-
{{ctx.Locale.Tr "repo.settings.archive.text"}}
- {{end}}
-
-
-
- {{if .Repository.IsArchived}}
- {{ctx.Locale.Tr "repo.settings.unarchive.button"}}
- {{else}}
- {{ctx.Locale.Tr "repo.settings.archive.button"}}
- {{end}}
-
-
-
- {{end}}
-
-
- {{end}}
-
-{{template "repo/settings/layout_footer" .}}
-
-{{if .Permission.IsOwner}}
- {{if .Repository.IsMirror}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.convert_notices_1"}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.transfer_form_title"}}
- {{.Repository.Name}}
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "settings.cancel"}}
- {{ctx.Locale.Tr "repo.settings.convert_confirm"}}
-
-
-
-
- {{end}}
- {{if and .Repository.IsFork .Repository.Owner.CanCreateRepo}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.convert_fork_notices_1"}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.transfer_form_title"}}
- {{.Repository.Name}}
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "settings.cancel"}}
- {{ctx.Locale.Tr "repo.settings.convert_fork_confirm"}}
-
-
-
-
- {{end}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.transfer_notices_1"}}
- {{ctx.Locale.Tr "repo.settings.transfer_notices_2"}}
- {{ctx.Locale.Tr "repo.settings.transfer_notices_3"}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.transfer_form_title"}}
- {{.Repository.Name}}
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.transfer_owner"}}
-
-
-
-
- {{ctx.Locale.Tr "settings.cancel"}}
- {{ctx.Locale.Tr "repo.settings.transfer_perform"}}
-
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.delete_notices_1"}}
- {{ctx.Locale.Tr "repo.settings.delete_notices_2" .Repository.FullName}}
- {{if .Repository.NumForks}}
- {{ctx.Locale.Tr "repo.settings.delete_notices_fork_1"}}
- {{end}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.transfer_form_title"}}
- {{.Repository.Name}}
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "settings.cancel"}}
- {{ctx.Locale.Tr "repo.settings.confirm_delete"}}
-
-
-
-
-
- {{if .Repository.UnitEnabled $.Context ctx.Consts.RepoUnitTypeWiki}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.delete_notices_1"}}
- {{ctx.Locale.Tr "repo.settings.wiki_delete_notices_1" .Repository.Name}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.transfer_form_title"}}
- {{.Repository.Name}}
-
-
-
- {{ctx.Locale.Tr "repo.repo_name"}}
-
-
-
-
- {{ctx.Locale.Tr "settings.cancel"}}
- {{ctx.Locale.Tr "repo.settings.confirm_wiki_delete"}}
-
-
-
-
- {{end}}
-
- {{if not .Repository.IsMirror}}
-
-
-
-
- {{if .Repository.IsArchived}}
- {{ctx.Locale.Tr "repo.settings.unarchive.text"}}
- {{else}}
- {{ctx.Locale.Tr "repo.settings.archive.text"}}
- {{end}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/modal_actions_confirm" .}}
-
-
- {{end}}
-{{end}}
-
-{{template "repo/settings/push_mirror_sync_modal" .}}
diff --git a/repo/settings/protected_branch.tmpl b/repo/settings/protected_branch.tmpl
deleted file mode 100644
index fec4d7c..0000000
--- a/repo/settings/protected_branch.tmpl
+++ /dev/null
@@ -1,271 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings branches")}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_branch_name_pattern"}}
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_branch_name_pattern_desc"}}
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_protected_file_patterns"}}
-
-
{{ctx.Locale.Tr "repo.settings.protect_protected_file_patterns_desc"}}
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_unprotected_file_patterns"}}
-
-
{{ctx.Locale.Tr "repo.settings.protect_unprotected_file_patterns_desc"}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_disable_push"}}
-
{{ctx.Locale.Tr "repo.settings.protect_disable_push_desc"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_enable_push"}}
-
{{ctx.Locale.Tr "repo.settings.protect_enable_push_desc"}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_whitelist_committers"}}
-
{{ctx.Locale.Tr "repo.settings.protect_whitelist_committers_desc"}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_whitelist_users"}}
-
-
-
{{ctx.Locale.Tr "search.user_kind"}}
-
-
-
- {{if .Owner.IsOrganization}}
-
-
{{ctx.Locale.Tr "repo.settings.protect_whitelist_teams"}}
-
-
-
{{ctx.Locale.Tr "search.team_kind"}}
-
-
-
- {{end}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.protect_whitelist_deploy_keys"}}
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.require_signed_commits"}}
-
{{ctx.Locale.Tr "repo.settings.require_signed_commits_desc"}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_required_approvals"}}
-
-
{{ctx.Locale.Tr "repo.settings.protect_required_approvals_desc"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_approvals_whitelist_enabled"}}
-
{{ctx.Locale.Tr "repo.settings.protect_approvals_whitelist_enabled_desc"}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_approvals_whitelist_users"}}
-
-
-
{{ctx.Locale.Tr "search.user_kind"}}
-
-
-
- {{if .Owner.IsOrganization}}
-
-
{{ctx.Locale.Tr "repo.settings.protect_approvals_whitelist_teams"}}
-
-
-
{{ctx.Locale.Tr "search.team_kind"}}
-
-
-
- {{end}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.dismiss_stale_approvals"}}
-
{{ctx.Locale.Tr "repo.settings.dismiss_stale_approvals_desc"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.ignore_stale_approvals"}}
-
{{ctx.Locale.Tr "repo.settings.ignore_stale_approvals_desc"}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_check_status_contexts"}}
-
{{ctx.Locale.Tr "repo.settings.protect_check_status_contexts_desc"}}
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_status_check_patterns"}}
-
{{.status_check_contexts}}
-
{{ctx.Locale.Tr "repo.settings.protect_status_check_patterns_desc"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.protect_check_status_contexts_list"}}
-
-
-
- {{range $.recent_status_checks}}
-
-
- {{.}}
- {{ctx.Locale.Tr "repo.settings.protect_status_check_matched"}}
-
-
- {{else}}
- -
- {{end}}
-
-
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_enable_merge"}}
-
{{ctx.Locale.Tr "repo.settings.protect_enable_merge_desc"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_merge_whitelist_committers"}}
-
{{ctx.Locale.Tr "repo.settings.protect_merge_whitelist_committers_desc"}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.protect_merge_whitelist_users"}}
-
-
-
{{ctx.Locale.Tr "search.user_kind"}}
-
-
-
- {{if .Owner.IsOrganization}}
-
-
{{ctx.Locale.Tr "repo.settings.protect_merge_whitelist_teams"}}
-
-
-
{{ctx.Locale.Tr "search.team_kind"}}
-
-
-
- {{end}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.block_rejected_reviews"}}
-
{{ctx.Locale.Tr "repo.settings.block_rejected_reviews_desc"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.block_on_official_review_requests"}}
-
{{ctx.Locale.Tr "repo.settings.block_on_official_review_requests_desc"}}
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.block_outdated_branch"}}
-
{{ctx.Locale.Tr "repo.settings.block_outdated_branch_desc"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.protected_branch.save_rule"}}
-
-
-
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/push_mirror_sync_modal.tmpl b/repo/settings/push_mirror_sync_modal.tmpl
deleted file mode 100644
index e8dad61..0000000
--- a/repo/settings/push_mirror_sync_modal.tmpl
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
{{ctx.Locale.Tr "repo.settings.mirror_settings.mirrored_repository"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.mirror_interval" .MinimumMirrorInterval}}
-
-
-
-
- {{svg "octicon-x"}}
- {{ctx.Locale.Tr "cancel"}}
-
-
- {{svg "fontawesome-save"}}
- {{ctx.Locale.Tr "save"}}
-
-
-
-
-
diff --git a/repo/settings/runner_edit.tmpl b/repo/settings/runner_edit.tmpl
deleted file mode 100644
index 8b76aea..0000000
--- a/repo/settings/runner_edit.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings runners")}}
-
- {{template "shared/actions/runner_edit" .}}
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/secrets.tmpl b/repo/settings/secrets.tmpl
deleted file mode 100644
index 0b89639..0000000
--- a/repo/settings/secrets.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings")}}
-
- {{template "shared/secrets/add_list" .}}
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/tags.tmpl b/repo/settings/tags.tmpl
deleted file mode 100644
index c9efb7b..0000000
--- a/repo/settings/tags.tmpl
+++ /dev/null
@@ -1,126 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}}
-
- {{if .Repository.IsArchived}}
-
- {{ctx.Locale.Tr "repo.settings.archive.tagsettings_unavailable"}}
-
- {{else}}
-
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
{{ctx.Locale.Tr "repo.settings.tags.protection.pattern"}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.tags.protection.pattern.description"}}
-
-
-
-
{{ctx.Locale.Tr "repo.settings.tags.protection.allowed.users"}}
-
-
-
{{ctx.Locale.Tr "search.user_kind"}}
-
-
-
- {{if .Owner.IsOrganization}}
-
-
{{ctx.Locale.Tr "repo.settings.tags.protection.allowed.teams"}}
-
-
-
{{ctx.Locale.Tr "search.team_kind"}}
-
-
-
- {{end}}
-
- {{if .PageIsEditProtectedTag}}
-
- {{ctx.Locale.Tr "save"}}
-
-
- {{ctx.Locale.Tr "cancel"}}
-
- {{else}}
-
- {{ctx.Locale.Tr "repo.settings.tags.protection.create"}}
-
- {{end}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.tags.protection.pattern"}}
- {{ctx.Locale.Tr "repo.settings.tags.protection.allowed"}}
-
-
-
- {{range .ProtectedTags}}
-
- {{.NamePattern}}
-
- {{if or .AllowlistUserIDs (and $.Owner.IsOrganization .AllowlistTeamIDs)}}
- {{$userIDs := .AllowlistUserIDs}}
- {{range $.Users}}
- {{if SliceUtils.Contains $userIDs .ID}}
- {{ctx.AvatarUtils.Avatar . 26}} {{.GetDisplayName}}
- {{end}}
- {{end}}
- {{if $.Owner.IsOrganization}}
- {{$teamIDs := .AllowlistTeamIDs}}
- {{range $.Teams}}
- {{if SliceUtils.Contains $teamIDs .ID}}
- {{.Name}}
- {{end}}
- {{end}}
- {{end}}
- {{else}}
- {{ctx.Locale.Tr "repo.settings.tags.protection.allowed.noone"}}
- {{end}}
-
-
- {{ctx.Locale.Tr "edit"}}
-
- {{$.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "remove"}}
-
-
-
- {{else}}
- {{ctx.Locale.Tr "repo.settings.tags.protection.none"}}
- {{end}}
-
-
-
-
-
- {{end}}
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/webhook/base.tmpl b/repo/settings/webhook/base.tmpl
deleted file mode 100644
index d524722..0000000
--- a/repo/settings/webhook/base.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings webhooks")}}
-
- {{template "repo/settings/webhook/list" .}}
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/webhook/base_list.tmpl b/repo/settings/webhook/base_list.tmpl
deleted file mode 100644
index 36e75a7..0000000
--- a/repo/settings/webhook/base_list.tmpl
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
- {{.Description}}
-
- {{range .Webhooks}}
-
- {{end}}
-
-
diff --git a/repo/settings/webhook/delete_modal.tmpl b/repo/settings/webhook/delete_modal.tmpl
deleted file mode 100644
index 9955ed3..0000000
--- a/repo/settings/webhook/delete_modal.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
{{ctx.Locale.Tr "repo.settings.webhook_deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
diff --git a/repo/settings/webhook/dingtalk.tmpl b/repo/settings/webhook/dingtalk.tmpl
deleted file mode 100644
index 0ba99e9..0000000
--- a/repo/settings/webhook/dingtalk.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{if eq .HookType "dingtalk"}}
- {{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://dingtalk.com" (ctx.Locale.Tr "repo.settings.web_hook_name_dingtalk")}}
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.payload_url"}}
-
-
- {{template "repo/settings/webhook/settings" .}}
-
-{{end}}
diff --git a/repo/settings/webhook/discord.tmpl b/repo/settings/webhook/discord.tmpl
deleted file mode 100644
index 104346e..0000000
--- a/repo/settings/webhook/discord.tmpl
+++ /dev/null
@@ -1,19 +0,0 @@
-{{if eq .HookType "discord"}}
- {{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://discord.com" (ctx.Locale.Tr "repo.settings.web_hook_name_discord")}}
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.payload_url"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.discord_username"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.discord_icon_url"}}
-
-
- {{template "repo/settings/webhook/settings" .}}
-
-{{end}}
diff --git a/repo/settings/webhook/feishu.tmpl b/repo/settings/webhook/feishu.tmpl
deleted file mode 100644
index d80deab..0000000
--- a/repo/settings/webhook/feishu.tmpl
+++ /dev/null
@@ -1,12 +0,0 @@
-{{if eq .HookType "feishu"}}
- {{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://feishu.cn" (ctx.Locale.Tr "repo.settings.web_hook_name_feishu")}}
- {{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://larksuite.com" (ctx.Locale.Tr "repo.settings.web_hook_name_larksuite")}}
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.payload_url"}}
-
-
- {{template "repo/settings/webhook/settings" .}}
-
-{{end}}
diff --git a/repo/settings/webhook/gitea.tmpl b/repo/settings/webhook/gitea.tmpl
deleted file mode 100644
index e6eb61e..0000000
--- a/repo/settings/webhook/gitea.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-{{if eq .HookType "gitea"}}
- {{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://docs.gitea.com/usage/webhooks" (ctx.Locale.Tr "repo.settings.web_hook_name_gitea")}}
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.payload_url"}}
-
-
-
-
{{ctx.Locale.Tr "repo.settings.http_method"}}
-
-
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
{{ctx.Locale.Tr "repo.settings.content_type"}}
-
-
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.secret"}}
-
-
- {{template "repo/settings/webhook/settings" .}}
-
-{{end}}
diff --git a/repo/settings/webhook/gogs.tmpl b/repo/settings/webhook/gogs.tmpl
deleted file mode 100644
index e91a327..0000000
--- a/repo/settings/webhook/gogs.tmpl
+++ /dev/null
@@ -1,28 +0,0 @@
-{{if eq .HookType "gogs"}}
- {{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://docs.gitea.com/usage/webhooks" (ctx.Locale.Tr "repo.settings.web_hook_name_gogs")}}
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.payload_url"}}
-
-
-
-
{{ctx.Locale.Tr "repo.settings.content_type"}}
-
-
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.secret"}}
-
-
- {{template "repo/settings/webhook/settings" .}}
-
-{{end}}
diff --git a/repo/settings/webhook/history.tmpl b/repo/settings/webhook/history.tmpl
deleted file mode 100644
index 0e03b8e..0000000
--- a/repo/settings/webhook/history.tmpl
+++ /dev/null
@@ -1,92 +0,0 @@
-{{$isNew:=or .PageIsSettingsHooksNew .PageIsAdminDefaultHooksNew .PageIsAdminSystemHooksNew}}
-{{if .PageIsSettingsHooksEdit}}
-
-
-
- {{range .History}}
-
-
-
- {{if .IsSucceed}}
-
{{svg "octicon-check"}}
- {{else if not .IsDelivered}}
-
{{svg "octicon-stopwatch"}}
- {{else}}
-
{{svg "octicon-alert"}}
- {{end}}
-
{{.UUID}}
-
-
- {{TimeSince .Delivered.AsTime ctx.Locale}}
-
-
-
-
-
- {{if .RequestInfo}}
-
{{ctx.Locale.Tr "repo.settings.webhook.headers"}}
-
Request URL: {{.RequestInfo.URL}}
-Request method: {{if .RequestInfo.HTTPMethod}}{{.RequestInfo.HTTPMethod}}{{else}}POST{{end}}
-{{range $key, $val := .RequestInfo.Headers}}{{$key}}: {{$val}}
-{{end}}
-
{{ctx.Locale.Tr "repo.settings.webhook.payload"}}
-
{{or .RequestInfo.Body .PayloadContent}}
- {{else}}
- -
- {{end}}
-
-
- {{if .ResponseInfo}}
-
{{ctx.Locale.Tr "repo.settings.webhook.headers"}}
-
{{range $key, $val := .ResponseInfo.Headers}}{{$key}}: {{$val}}
-{{end}}
-
{{ctx.Locale.Tr "repo.settings.webhook.body"}}
-
{{.ResponseInfo.Body}}
- {{else}}
- -
- {{end}}
-
-
-
- {{end}}
-
-
-{{end}}
diff --git a/repo/settings/webhook/link_menu.tmpl b/repo/settings/webhook/link_menu.tmpl
deleted file mode 100644
index e2c86dc..0000000
--- a/repo/settings/webhook/link_menu.tmpl
+++ /dev/null
@@ -1,50 +0,0 @@
-{{$size := 20}}
-{{if .Size}}
- {{$size = .Size}}
-{{end}}
-
diff --git a/repo/settings/webhook/list.tmpl b/repo/settings/webhook/list.tmpl
deleted file mode 100644
index b24159f..0000000
--- a/repo/settings/webhook/list.tmpl
+++ /dev/null
@@ -1,4 +0,0 @@
-
-{{template "repo/settings/webhook/base_list" .}}
-
-{{template "repo/settings/webhook/delete_modal" .}}
diff --git a/repo/settings/webhook/matrix.tmpl b/repo/settings/webhook/matrix.tmpl
deleted file mode 100644
index 7f1c9f0..0000000
--- a/repo/settings/webhook/matrix.tmpl
+++ /dev/null
@@ -1,27 +0,0 @@
-{{if eq .HookType "matrix"}}
- {{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://matrix.org/" (ctx.Locale.Tr "repo.settings.web_hook_name_matrix")}}
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.matrix.homeserver_url"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.matrix.room_id"}}
-
-
-
-
{{ctx.Locale.Tr "repo.settings.matrix.message_type"}}
-
-
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
- {{template "repo/settings/webhook/settings" .}}
-
-{{end}}
diff --git a/repo/settings/webhook/msteams.tmpl b/repo/settings/webhook/msteams.tmpl
deleted file mode 100644
index 62ea24e..0000000
--- a/repo/settings/webhook/msteams.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{if eq .HookType "msteams"}}
- {{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://teams.microsoft.com" (ctx.Locale.Tr "repo.settings.web_hook_name_msteams")}}
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.payload_url"}}
-
-
- {{template "repo/settings/webhook/settings" .}}
-
-{{end}}
diff --git a/repo/settings/webhook/new.tmpl b/repo/settings/webhook/new.tmpl
deleted file mode 100644
index b04a442..0000000
--- a/repo/settings/webhook/new.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings new webhook")}}
-
- {{$CustomHeaderTitle := ctx.Locale.Tr "repo.settings.update_webhook"}}
- {{if .PageIsSettingsHooksNew}}{{$CustomHeaderTitle = ctx.Locale.Tr "repo.settings.add_webhook"}}{{end}}
- {{template "webhook/new" (dict "ctxData" . "CustomHeaderTitle" $CustomHeaderTitle)}}
-
-{{template "repo/settings/layout_footer" .}}
diff --git a/repo/settings/webhook/packagist.tmpl b/repo/settings/webhook/packagist.tmpl
deleted file mode 100644
index 25aba2a..0000000
--- a/repo/settings/webhook/packagist.tmpl
+++ /dev/null
@@ -1,19 +0,0 @@
-{{if eq .HookType "packagist"}}
- {{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://packagist.org" (ctx.Locale.Tr "repo.settings.web_hook_name_packagist")}}
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.packagist_username"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.packagist_api_token"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.packagist_package_url"}}
-
-
- {{template "repo/settings/webhook/settings" .}}
-
-{{end}}
diff --git a/repo/settings/webhook/settings.tmpl b/repo/settings/webhook/settings.tmpl
deleted file mode 100644
index 6862ce5..0000000
--- a/repo/settings/webhook/settings.tmpl
+++ /dev/null
@@ -1,288 +0,0 @@
-{{$isNew:=or .PageIsSettingsHooksNew .PageIsAdminDefaultHooksNew .PageIsAdminSystemHooksNew}}
-
-
{{ctx.Locale.Tr "repo.settings.event_desc"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_push_only"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_send_everything"}}
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_choose"}}
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_header_repository"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_create"}}
- {{ctx.Locale.Tr "repo.settings.event_create_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_delete"}}
- {{ctx.Locale.Tr "repo.settings.event_delete_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_fork"}}
- {{ctx.Locale.Tr "repo.settings.event_fork_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_push"}}
- {{ctx.Locale.Tr "repo.settings.event_push_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_repository"}}
- {{ctx.Locale.Tr "repo.settings.event_repository_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_release"}}
- {{ctx.Locale.Tr "repo.settings.event_release_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_package"}}
- {{ctx.Locale.Tr "repo.settings.event_package_desc"}}
-
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_wiki"}}
- {{ctx.Locale.Tr "repo.settings.event_wiki_desc"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_header_issue"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_issues"}}
- {{ctx.Locale.Tr "repo.settings.event_issues_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_issue_assign"}}
- {{ctx.Locale.Tr "repo.settings.event_issue_assign_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_issue_label"}}
- {{ctx.Locale.Tr "repo.settings.event_issue_label_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_issue_milestone"}}
- {{ctx.Locale.Tr "repo.settings.event_issue_milestone_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_issue_comment"}}
- {{ctx.Locale.Tr "repo.settings.event_issue_comment_desc"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_header_pull_request"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_pull_request"}}
- {{ctx.Locale.Tr "repo.settings.event_pull_request_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_pull_request_assign"}}
- {{ctx.Locale.Tr "repo.settings.event_pull_request_assign_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_pull_request_label"}}
- {{ctx.Locale.Tr "repo.settings.event_pull_request_label_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_pull_request_milestone"}}
- {{ctx.Locale.Tr "repo.settings.event_pull_request_milestone_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_pull_request_comment"}}
- {{ctx.Locale.Tr "repo.settings.event_pull_request_comment_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_pull_request_review"}}
- {{ctx.Locale.Tr "repo.settings.event_pull_request_review_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_pull_request_sync"}}
- {{ctx.Locale.Tr "repo.settings.event_pull_request_sync_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.event_pull_request_review_request"}}
- {{ctx.Locale.Tr "repo.settings.event_pull_request_review_request_desc"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.branch_filter"}}
-
- {{ctx.Locale.Tr "repo.settings.branch_filter_desc"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.authorization_header"}}
-
- {{if ne .HookType "matrix"}}{{/* Matrix doesn't make the authorization optional but it is implied by the help string, should be changed.*/}}
- {{ctx.Locale.Tr "repo.settings.authorization_header_desc" ("Bearer token123456
, Basic YWxhZGRpbjpvcGVuc2VzYW1l
" | SafeHTML)}}
- {{end}}
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.active"}}
- {{ctx.Locale.Tr "repo.settings.active_helper"}}
-
-
-
-
-{{template "repo/settings/webhook/delete_modal" .}}
diff --git a/repo/settings/webhook/slack.tmpl b/repo/settings/webhook/slack.tmpl
deleted file mode 100644
index e7cae92..0000000
--- a/repo/settings/webhook/slack.tmpl
+++ /dev/null
@@ -1,28 +0,0 @@
-{{if eq .HookType "slack"}}
- {{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://slack.com" (ctx.Locale.Tr "repo.settings.web_hook_name_slack")}}
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.payload_url"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.slack_channel"}}
-
-
-
-
- {{ctx.Locale.Tr "repo.settings.slack_username"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.slack_icon_url"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.slack_color"}}
-
-
- {{template "repo/settings/webhook/settings" .}}
-
-{{end}}
diff --git a/repo/settings/webhook/telegram.tmpl b/repo/settings/webhook/telegram.tmpl
deleted file mode 100644
index f92c2be..0000000
--- a/repo/settings/webhook/telegram.tmpl
+++ /dev/null
@@ -1,19 +0,0 @@
-{{if eq .HookType "telegram"}}
- {{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://core.telegram.org/bots" (ctx.Locale.Tr "repo.settings.web_hook_name_telegram")}}
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.bot_token"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.chat_id"}}
-
-
-
- {{ctx.Locale.Tr "repo.settings.thread_id"}}
-
-
- {{template "repo/settings/webhook/settings" .}}
-
-{{end}}
diff --git a/repo/settings/webhook/wechatwork.tmpl b/repo/settings/webhook/wechatwork.tmpl
deleted file mode 100644
index 78a1617..0000000
--- a/repo/settings/webhook/wechatwork.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{if eq .HookType "wechatwork"}}
- {{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://work.weixin.qq.com" (ctx.Locale.Tr "repo.settings.web_hook_name_wechatwork")}}
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "repo.settings.payload_url"}}
-
-
- {{template "repo/settings/webhook/settings" .}}
-
-{{end}}
diff --git a/repo/shabox_badge.tmpl b/repo/shabox_badge.tmpl
deleted file mode 100644
index 939292b..0000000
--- a/repo/shabox_badge.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/repo/star_unstar.tmpl b/repo/star_unstar.tmpl
deleted file mode 100644
index 0f09d8b..0000000
--- a/repo/star_unstar.tmpl
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
diff --git a/repo/tag/list.tmpl b/repo/tag/list.tmpl
deleted file mode 100644
index 354808e..0000000
--- a/repo/tag/list.tmpl
+++ /dev/null
@@ -1,80 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
- {{template "repo/release_tag_header" .}}
- {{if .Releases}}
-
- {{$canReadReleases := $.Permission.CanRead ctx.Consts.RepoUnitTypeReleases}}
-
- {{end}}
-
- {{template "base/paginate" .}}
-
-
-
-{{if $.Permission.CanWrite ctx.Consts.RepoUnitTypeCode}}
-
-
-
-
{{ctx.Locale.Tr "repo.release.deletion_tag_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-{{end}}
-
-{{template "base/footer" .}}
diff --git a/repo/unicode_escape_prompt.tmpl b/repo/unicode_escape_prompt.tmpl
deleted file mode 100644
index 8bceafa..0000000
--- a/repo/unicode_escape_prompt.tmpl
+++ /dev/null
@@ -1,22 +0,0 @@
-{{if .EscapeStatus}}
- {{if .EscapeStatus.HasInvisible}}
-
-
{{svg "octicon-x" 16 "close inside"}}
-
-
{{ctx.Locale.Tr "repo.invisible_runes_description"}}
- {{if .EscapeStatus.HasAmbiguous}}
-
{{ctx.Locale.Tr "repo.ambiguous_runes_description"}}
- {{end}}
-
- {{else if .EscapeStatus.HasAmbiguous}}
-
-
{{svg "octicon-x" 16 "close inside"}}
-
-
{{ctx.Locale.Tr "repo.ambiguous_runes_description"}}
-
- {{end}}
-{{end}}
diff --git a/repo/upload.tmpl b/repo/upload.tmpl
deleted file mode 100644
index eef5199..0000000
--- a/repo/upload.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/repo/user_cards.tmpl b/repo/user_cards.tmpl
deleted file mode 100644
index 5accc2c..0000000
--- a/repo/user_cards.tmpl
+++ /dev/null
@@ -1,29 +0,0 @@
-
- {{if .CardsTitle}}
-
- {{end}}
-
-
- {{template "base/paginate" .}}
-
diff --git a/repo/view_file.tmpl b/repo/view_file.tmpl
deleted file mode 100644
index 0a34b6c..0000000
--- a/repo/view_file.tmpl
+++ /dev/null
@@ -1,141 +0,0 @@
-
- {{- if .FileError}}
-
- {{end}}
- {{- if .FileWarning}}
-
- {{end}}
-
- {{if not .ReadmeInList}}
-
- {{end}}
-
-
-
- {{if not (or .IsMarkup .IsRenderedHTML)}}
- {{template "repo/unicode_escape_prompt" dict "EscapeStatus" .EscapeStatus "root" $}}
- {{end}}
-
- {{if .IsFileTooLarge}}
- {{template "shared/filetoolarge" dict "RawFileLink" .RawFileLink}}
- {{else if .IsMarkup}}
- {{if .FileContent}}{{.FileContent}}{{end}}
- {{else if .IsPlainText}}
-
{{if .FileContent}}{{.FileContent}}{{end}}
- {{else if not .IsTextSource}}
-
- {{if .IsImageFile}}
-
- {{else if .IsVideoFile}}
-
- {{ctx.Locale.Tr "repo.video_not_supported_in_browser"}}
-
- {{else if .IsAudioFile}}
-
- {{ctx.Locale.Tr "repo.audio_not_supported_in_browser"}}
-
- {{else if .IsPDFFile}}
-
- {{else}}
-
{{ctx.Locale.Tr "repo.file_view_raw"}}
- {{end}}
-
- {{else if .FileSize}}
-
-
- {{range $idx, $code := .FileContent}}
- {{$line := Eval $idx "+" 1}}
-
-
- {{if $.EscapeStatus.Escaped}}
- {{if (index $.LineEscapeStatus $idx).Escaped}} {{end}}
- {{end}}
- {{$code}}
-
- {{end}}
-
-
-
- {{end}}
-
-
-
diff --git a/repo/view_list.tmpl b/repo/view_list.tmpl
deleted file mode 100644
index 7ec9acc..0000000
--- a/repo/view_list.tmpl
+++ /dev/null
@@ -1,73 +0,0 @@
-
-{{if and .ReadmeExist (or .IsMarkup .IsPlainText)}}
- {{template "repo/view_file" .}}
-{{end}}
diff --git a/repo/watch_unwatch.tmpl b/repo/watch_unwatch.tmpl
deleted file mode 100644
index 465cd91..0000000
--- a/repo/watch_unwatch.tmpl
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
diff --git a/repo/watchers.tmpl b/repo/watchers.tmpl
deleted file mode 100644
index 1828544..0000000
--- a/repo/watchers.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "repo/user_cards" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/wiki/new.tmpl b/repo/wiki/new.tmpl
deleted file mode 100644
index 0f10e60..0000000
--- a/repo/wiki/new.tmpl
+++ /dev/null
@@ -1,45 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
- {{ctx.Locale.Tr "repo.wiki.page_name_desc"}}
-
-
- {{$content := .content}}
- {{if not .PageIsWikiEdit}}
- {{$content = ctx.Locale.Tr "repo.wiki.welcome"}}
- {{end}}
- {{template "shared/combomarkdowneditor" (dict
- "MarkdownPreviewUrl" (print .Repository.Link "/markup")
- "MarkdownPreviewContext" .RepoLink
- "TextareaName" "content"
- "TextareaPlaceholder" (ctx.Locale.Tr "repo.wiki.page_content")
- "TextareaAriaLabel" (ctx.Locale.Tr "repo.wiki.page_content")
- "TextareaContent" $content
- )}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "cancel"}}
-
{{ctx.Locale.Tr "repo.wiki.save_page"}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/wiki/pages.tmpl b/repo/wiki/pages.tmpl
deleted file mode 100644
index 52bf165..0000000
--- a/repo/wiki/pages.tmpl
+++ /dev/null
@@ -1,31 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{if .IsRepositoryAdmin}}
{{ctx.Locale.Tr "repo.default_branch"}}: {{.Repository.DefaultWikiBranch}}
{{end}}
-
-
- {{range .Pages}}
-
-
- {{svg "octicon-file"}}
- {{.Name}}
- {{svg "octicon-chevron-right"}}
-
- {{$timeSince := TimeSinceUnix .UpdatedUnix ctx.Locale}}
- {{ctx.Locale.Tr "repo.wiki.last_updated" $timeSince}}
-
- {{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/wiki/revision.tmpl b/repo/wiki/revision.tmpl
deleted file mode 100644
index 8e0060d..0000000
--- a/repo/wiki/revision.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{$title := .title}}
-
-
-
-
-
-
-
- {{template "repo/clone_buttons" .}}
- {{template "repo/clone_script" .}}
-
-
-
-
-
-
- {{if and .Commits (gt .CommitCount 0)}}
- {{template "repo/commits_list" .}}
- {{end}}
- {{template "base/paginate" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/wiki/start.tmpl b/repo/wiki/start.tmpl
deleted file mode 100644
index 1b3c3d5..0000000
--- a/repo/wiki/start.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/wiki/view.tmpl b/repo/wiki/view.tmpl
deleted file mode 100644
index 409de3f..0000000
--- a/repo/wiki/view.tmpl
+++ /dev/null
@@ -1,115 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{$title := .title}}
-
-
-
- {{if .FormatWarning}}
-
- {{end}}
-
-
- {{if .sidebarTocContent}}
-
- {{end}}
-
-
- {{template "repo/unicode_escape_prompt" dict "EscapeStatus" .EscapeStatus "root" $}}
- {{.content | SafeHTML}}
-
-
- {{if .sidebarPresent}}
-
- {{end}}
-
-
-
- {{if .footerPresent}}
-
- {{end}}
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "repo.wiki.delete_page_notice_1" $title}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-{{template "base/footer" .}}
diff --git a/shared/actions/runner_badge.tmpl b/shared/actions/runner_badge.tmpl
deleted file mode 100644
index 816e87e..0000000
--- a/shared/actions/runner_badge.tmpl
+++ /dev/null
@@ -1,25 +0,0 @@
-
- {{.Badge.Label.Text}}: {{.Badge.Message.Text}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{.Badge.Label.Text}} {{.Badge.Label.Text}} {{.Badge.Message.Text}} {{.Badge.Message.Text}}
-
diff --git a/shared/actions/runner_edit.tmpl b/shared/actions/runner_edit.tmpl
deleted file mode 100644
index d60f10b..0000000
--- a/shared/actions/runner_edit.tmpl
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
-
- {{template "base/disable_form_autofill"}}
- {{.CsrfTokenHtml}}
-
-
- {{ctx.Locale.Tr "actions.runners.status"}}
- {{.Runner.StatusLocaleName ctx.Locale}}
-
-
- {{ctx.Locale.Tr "actions.runners.last_online"}}
- {{if .Runner.LastOnline}}{{TimeSinceUnix .Runner.LastOnline ctx.Locale}}{{else}}{{ctx.Locale.Tr "never"}}{{end}}
-
-
- {{ctx.Locale.Tr "actions.runners.labels"}}
-
- {{range .Runner.AgentLabels}}
- {{.}}
- {{end}}
-
-
-
- {{ctx.Locale.Tr "actions.runners.owner_type"}}
- {{.Runner.BelongsToOwnerType.LocaleString ctx.Locale}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "actions.runners.description"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "actions.runners.update_runner"}}
-
- {{ctx.Locale.Tr "actions.runners.delete_runner"}}
-
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "actions.runners.task_list.run"}}
- {{ctx.Locale.Tr "actions.runners.task_list.status"}}
- {{ctx.Locale.Tr "actions.runners.task_list.repository"}}
- {{ctx.Locale.Tr "actions.runners.task_list.commit"}}
- {{ctx.Locale.Tr "actions.runners.task_list.done_at"}}
-
-
-
- {{range .Tasks}}
-
- {{.ID}}
- {{.Status.LocaleString ctx.Locale}}
- {{.GetRepoName}}
-
- {{ShortSha .CommitSHA}}
-
- {{if .IsStopped}}
- {{TimeSinceUnix .Stopped ctx.Locale}}
- {{else}}-{{end}}
-
- {{end}}
- {{if not .Tasks}}
-
- {{ctx.Locale.Tr "actions.runners.task_list.no_tasks"}}
-
- {{end}}
-
-
- {{template "base/paginate" .}}
-
-
-
-
-
{{ctx.Locale.Tr "actions.runners.delete_runner_notice"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
diff --git a/shared/actions/runner_list.tmpl b/shared/actions/runner_list.tmpl
deleted file mode 100644
index d3a86fe..0000000
--- a/shared/actions/runner_list.tmpl
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-
-
- {{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.runner_kind")}}
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "actions.runners.status"}}
- {{SortArrow "online" "offline" .SortType false}}
-
-
- {{ctx.Locale.Tr "actions.runners.id"}}
- {{SortArrow "oldest" "newest" .SortType false}}
-
-
- {{ctx.Locale.Tr "actions.runners.name"}}
- {{SortArrow "alphabetically" "reversealphabetically" .SortType false}}
-
- {{ctx.Locale.Tr "actions.runners.version"}}
- {{ctx.Locale.Tr "actions.runners.owner_type"}}
- {{ctx.Locale.Tr "actions.runners.labels"}}
- {{ctx.Locale.Tr "actions.runners.last_online"}}
- {{ctx.Locale.Tr "edit"}}
-
-
-
- {{if .Runners}}
- {{range .Runners}}
-
-
- {{.StatusLocaleName ctx.Locale}}
-
- {{.ID}}
- {{.Name}}
- {{if .Version}}{{.Version}}{{else}}{{ctx.Locale.Tr "unknown"}}{{end}}
- {{.BelongsToOwnerType.LocaleString ctx.Locale}}
-
- {{range .AgentLabels}}{{.}} {{end}}
-
- {{if .LastOnline}}{{TimeSinceUnix .LastOnline ctx.Locale}}{{else}}{{ctx.Locale.Tr "never"}}{{end}}
-
- {{if .Editable $.RunnerOwnerID $.RunnerRepoID}}
- {{svg "octicon-pencil"}}
- {{end}}
-
-
- {{end}}
- {{else}}
-
- {{ctx.Locale.Tr "actions.runners.none"}}
-
- {{end}}
-
-
-
-
- {{template "base/paginate" .}}
-
-
diff --git a/shared/combomarkdowneditor.tmpl b/shared/combomarkdowneditor.tmpl
deleted file mode 100644
index a0145ab..0000000
--- a/shared/combomarkdowneditor.tmpl
+++ /dev/null
@@ -1,59 +0,0 @@
-{{/*
-Template Attributes:
-* ContainerId: id attribute for the container element
-* ContainerClasses: additional classes for the container element
-* MarkdownPreviewUrl: preview url for the preview tab
-* MarkdownPreviewContext: preview context for the preview tab
-* TextareaName: name attribute for the textarea
-* TextareaContent: content for the textarea
-* TextareaPlaceholder: placeholder attribute for the textarea
-* TextareaAriaLabel: aria-label attribute for the textarea
-* DropzoneParentContainer: container for file upload (leave it empty if no upload)
-* DisableAutosize: whether to disable automatic height resizing
-*/}}
-
- {{if .MarkdownPreviewUrl}}
-
- {{end}}
-
-
-
- {{svg "octicon-heading"}}
- {{svg "octicon-bold"}}
- {{svg "octicon-italic"}}
-
-
- {{svg "octicon-quote"}}
- {{svg "octicon-code"}}
- {{svg "octicon-link"}}
-
-
- {{svg "octicon-list-unordered"}}
- {{svg "octicon-list-ordered"}}
- {{svg "octicon-tasklist"}}
-
-
- {{svg "octicon-mention"}}
- {{svg "octicon-cross-reference"}}
-
-
- {{svg "octicon-typography"}}
- {{svg "octicon-arrow-switch"}}
-
-
-
- {{.TextareaContent}}
-
-
-
-
- {{ctx.Locale.Tr "loading"}}
-
-
diff --git a/shared/filetoolarge.tmpl b/shared/filetoolarge.tmpl
deleted file mode 100644
index 8842fb1..0000000
--- a/shared/filetoolarge.tmpl
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/shared/issueicon.tmpl b/shared/issueicon.tmpl
deleted file mode 100644
index a62714e..0000000
--- a/shared/issueicon.tmpl
+++ /dev/null
@@ -1,25 +0,0 @@
-{{if .IsPull}}
- {{if not .PullRequest}}
- No PullRequest
- {{else}}
- {{if .IsClosed}}
- {{if .PullRequest.HasMerged}}
- {{svg "octicon-git-merge" 16 "text purple"}}
- {{else}}
- {{svg "octicon-git-pull-request" 16 "text red"}}
- {{end}}
- {{else}}
- {{if .PullRequest.IsWorkInProgress ctx}}
- {{svg "octicon-git-pull-request-draft" 16 "text grey"}}
- {{else}}
- {{svg "octicon-git-pull-request" 16 "text green"}}
- {{end}}
- {{end}}
- {{end}}
-{{else}}
- {{if .IsClosed}}
- {{svg "octicon-issue-closed" 16 "text red"}}
- {{else}}
- {{svg "octicon-issue-opened" 16 "text green"}}
- {{end}}
-{{end}}
diff --git a/shared/issuelist.tmpl b/shared/issuelist.tmpl
deleted file mode 100644
index 16c650e..0000000
--- a/shared/issuelist.tmpl
+++ /dev/null
@@ -1,163 +0,0 @@
-
- {{$approvalCounts := .ApprovalCounts}}
- {{range .Issues}}
-
-
-
- {{if $.CanWriteIssuesOrPulls}}
-
- {{end}}
- {{template "shared/issueicon" .}}
-
-
-
-
-
-
- {{if eq $.listType "dashboard"}}
- {{.Repo.FullName}}#{{.Index}}
- {{else}}
- #{{.Index}}
- {{end}}
-
- {{$timeStr := TimeSinceUnix .GetLastEventTimestamp ctx.Locale}}
- {{if .OriginalAuthor}}
- {{ctx.Locale.Tr .GetLastEventLabelFake $timeStr .OriginalAuthor}}
- {{else if gt .Poster.ID 0}}
- {{ctx.Locale.Tr .GetLastEventLabel $timeStr .Poster.HomeLink .Poster.GetDisplayName}}
- {{else}}
- {{ctx.Locale.Tr .GetLastEventLabelFake $timeStr .Poster.GetDisplayName}}
- {{end}}
- {{if .IsPull}}
-
-
- {{svg "gitea-double-chevron-left" 12}}
- {{if .PullRequest.HeadRepo}}
-
- {{end}}
-
- {{end}}
- {{if and .Milestone (ne $.listType "milestone")}}
-
- {{svg "octicon-milestone" 14}}
- {{.Milestone.Name}}
-
- {{end}}
- {{if .Project}}
-
- {{svg .Project.IconName 14}}
- {{.Project.Title}}
-
- {{end}}
- {{if .Ref}}
-
- {{svg "octicon-git-branch" 14}}
- {{index $.IssueRefEndNames .ID}}
-
- {{end}}
- {{$tasks := .GetTasks}}
- {{if gt $tasks 0}}
- {{$tasksDone := .GetTasksDone}}
-
- {{svg "octicon-checklist" 14}}{{$tasksDone}} / {{$tasks}}
-
-
- {{end}}
- {{if ne .DeadlineUnix 0}}
-
-
- {{svg "octicon-calendar" 14}}
- {{DateTime "short" (.DeadlineUnix.FormatDate)}}
-
-
- {{end}}
- {{if .IsPull}}
- {{$approveOfficial := call $approvalCounts .ID "approve"}}
- {{$rejectOfficial := call $approvalCounts .ID "reject"}}
- {{$waitingOfficial := call $approvalCounts .ID "waiting"}}
- {{if gt $approveOfficial 0}}
-
- {{svg "octicon-check" 14}}
- {{ctx.Locale.TrN $approveOfficial "repo.pulls.approve_count_1" "repo.pulls.approve_count_n" $approveOfficial}}
-
- {{end}}
- {{if gt $rejectOfficial 0}}
-
- {{svg "octicon-diff" 14}}
- {{ctx.Locale.TrN $rejectOfficial "repo.pulls.reject_count_1" "repo.pulls.reject_count_n" $rejectOfficial}}
-
- {{end}}
- {{if gt $waitingOfficial 0}}
-
- {{svg "octicon-eye" 14}}
- {{ctx.Locale.TrN $waitingOfficial "repo.pulls.waiting_count_1" "repo.pulls.waiting_count_n" $waitingOfficial}}
-
- {{end}}
- {{if and (not .PullRequest.HasMerged) .PullRequest.ConflictedFiles}}
-
- {{svg "octicon-x" 14}}
- {{ctx.Locale.TrN (len .PullRequest.ConflictedFiles) "repo.pulls.num_conflicting_files_1" "repo.pulls.num_conflicting_files_n" (len .PullRequest.ConflictedFiles)}}
-
- {{end}}
- {{end}}
-
-
-
- {{end}}
- {{if .IssueIndexerUnavailable}}
-
-
{{ctx.Locale.Tr "search.keyword_search_unavailable"}}
-
- {{end}}
-
-{{template "base/paginate" .}}
diff --git a/shared/misc/tabtitle.tmpl b/shared/misc/tabtitle.tmpl
deleted file mode 100644
index dea9d4d..0000000
--- a/shared/misc/tabtitle.tmpl
+++ /dev/null
@@ -1 +0,0 @@
-{{.}}
diff --git a/shared/repo_search.tmpl b/shared/repo_search.tmpl
deleted file mode 100644
index 7fcb5d2..0000000
--- a/shared/repo_search.tmpl
+++ /dev/null
@@ -1,64 +0,0 @@
-
-{{if and .PageIsExploreRepositories .OnlyShowRelevant}}
-
-
- {{ctx.Locale.Tr "explore.relevant_repositories" (printf "?only_show_relevant=0&sort=%s&q=%s&language=%s" $.SortType (QueryEscape $.Keyword) (QueryEscape $.Language))}}
-
-
-{{end}}
-
diff --git a/shared/search/button.tmpl b/shared/search/button.tmpl
deleted file mode 100644
index 7bb1662..0000000
--- a/shared/search/button.tmpl
+++ /dev/null
@@ -1,3 +0,0 @@
-{{/* Disable (optional) - if search button has to be disabled */}}
-{{/* Tooltip (optional) - a tooltip to be displayed on hover */}}
-{{svg "octicon-search"}}
diff --git a/shared/search/code/results.tmpl b/shared/search/code/results.tmpl
deleted file mode 100644
index a98a662..0000000
--- a/shared/search/code/results.tmpl
+++ /dev/null
@@ -1,36 +0,0 @@
-
- {{range $term := .SearchResultLanguages}}
-
-
- {{$term.Language}}
- {{$term.Count}}
-
- {{end}}
-
-
- {{range $result := .SearchResults}}
- {{$repo := or $.Repo (index $.RepoMaps .RepoID)}}
-
-
-
- {{template "shared/searchfile" dict "RepoLink" $repo.Link "SearchResult" .}}
-
- {{template "shared/searchbottom" dict "root" $ "result" .}}
-
- {{end}}
-
-{{template "base/paginate" .}}
diff --git a/shared/search/code/search.tmpl b/shared/search/code/search.tmpl
deleted file mode 100644
index e49ea47..0000000
--- a/shared/search/code/search.tmpl
+++ /dev/null
@@ -1,22 +0,0 @@
-
- {{template "shared/search/combo_fuzzy" dict "Value" .Keyword "Disabled" .CodeIndexerUnavailable "IsFuzzy" .IsFuzzy "Placeholder" (ctx.Locale.Tr "search.code_kind")}}
-
-
-
- {{if .CodeIndexerUnavailable}}
-
-
{{ctx.Locale.Tr "search.code_search_unavailable"}}
-
- {{else}}
- {{if not .IsRepoIndexerEnabled}}
-
-
{{ctx.Locale.Tr "search.code_search_by_git_grep"}}
-
- {{end}}
- {{if .SearchResults}}
- {{template "shared/search/code/results" .}}
- {{else if .Keyword}}
-
{{ctx.Locale.Tr "search.no_results"}}
- {{end}}
- {{end}}
-
diff --git a/shared/search/combo.tmpl b/shared/search/combo.tmpl
deleted file mode 100644
index 788db95..0000000
--- a/shared/search/combo.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{/* Value - value of the search field (for search results page) */}}
-{{/* Disabled (optional) - if search field/button has to be disabled */}}
-{{/* Placeholder (optional) - placeholder text to be used */}}
-{{/* Tooltip (optional) - a tooltip to be displayed on button hover */}}
-
- {{template "shared/search/input" dict "Value" .Value "Disabled" .Disabled "Placeholder" .Placeholder}}
- {{template "shared/search/button" dict "Disabled" .Disabled "Tooltip" .Tooltip}}
-
diff --git a/shared/search/combo_fuzzy.tmpl b/shared/search/combo_fuzzy.tmpl
deleted file mode 100644
index 3540a89..0000000
--- a/shared/search/combo_fuzzy.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{/* Value - value of the search field (for search results page) */}}
-{{/* Disabled (optional) - if search field/button has to be disabled */}}
-{{/* Placeholder (optional) - placeholder text to be used */}}
-{{/* IsFuzzy - state of the fuzzy search toggle */}}
-{{/* Tooltip (optional) - a tooltip to be displayed on button hover */}}
-
- {{template "shared/search/input" dict "Value" .Value "Disabled" .Disabled "Placeholder" .Placeholder}}
- {{template "shared/search/fuzzy" dict "Disabled" .Disabled "IsFuzzy" .IsFuzzy}}
- {{template "shared/search/button" dict "Disabled" .Disabled "Tooltip" .Tooltip}}
-
diff --git a/shared/search/fuzzy.tmpl b/shared/search/fuzzy.tmpl
deleted file mode 100644
index 5c09d3c..0000000
--- a/shared/search/fuzzy.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{/* Disabled (optional) - if dropdown has to be disabled */}}
-{{/* IsFuzzy - state of the fuzzy search toggle */}}
-
-
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
{{if .IsFuzzy}}{{ctx.Locale.Tr "search.fuzzy"}}{{else}}{{ctx.Locale.Tr "search.exact"}}{{end}}
-
-
diff --git a/shared/search/input.tmpl b/shared/search/input.tmpl
deleted file mode 100644
index 75bed07..0000000
--- a/shared/search/input.tmpl
+++ /dev/null
@@ -1,4 +0,0 @@
-{{/* Value - value of the search field (for search results page) */}}
-{{/* Disabled (optional) - if search field has to be disabled */}}
-{{/* Placeholder (optional) - placeholder text to be used */}}
-
diff --git a/shared/searchbottom.tmpl b/shared/searchbottom.tmpl
deleted file mode 100644
index bee0397..0000000
--- a/shared/searchbottom.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-{{if or .result.Language (not .result.UpdatedUnix.IsZero)}}
-
-
- {{if .result.Language}}
- {{.result.Language}}
- {{end}}
-
-
- {{if not .result.UpdatedUnix.IsZero}}
- {{ctx.Locale.Tr "explore.code_last_indexed_at" (TimeSinceUnix .result.UpdatedUnix ctx.Locale)}}
- {{end}}
-
-
-{{end}}
diff --git a/shared/searchfile.tmpl b/shared/searchfile.tmpl
deleted file mode 100644
index 280584e..0000000
--- a/shared/searchfile.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- {{range .SearchResult.Lines}}
-
-
- {{.Num}}
-
- {{.FormattedContent}}
-
- {{end}}
-
-
-
diff --git a/shared/secrets/add_list.tmpl b/shared/secrets/add_list.tmpl
deleted file mode 100644
index ea59459..0000000
--- a/shared/secrets/add_list.tmpl
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
- {{if .Secrets}}
-
- {{range .Secrets}}
-
-
- {{svg "octicon-key" 32}}
-
-
-
- {{.Name}}
-
-
- ******
-
-
-
-
- {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix)}}
-
-
- {{svg "octicon-trash"}}
-
-
-
- {{end}}
-
- {{else}}
- {{ctx.Locale.Tr "secrets.none"}}
- {{end}}
-
-
-{{/* Add secret dialog */}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "secrets.description"}}
-
-
- {{ctx.Locale.Tr "name"}}
-
-
-
- {{ctx.Locale.Tr "value"}}
-
-
-
- {{template "base/modal_actions_confirm" (dict "ModalButtonTypes" "confirm")}}
-
-
diff --git a/shared/user/authorlink.tmpl b/shared/user/authorlink.tmpl
deleted file mode 100644
index d57a635..0000000
--- a/shared/user/authorlink.tmpl
+++ /dev/null
@@ -1 +0,0 @@
-{{.GetDisplayName}} {{if .IsBot}}bot {{end}}
diff --git a/shared/user/avatarlink.tmpl b/shared/user/avatarlink.tmpl
deleted file mode 100644
index 5e3ed7a..0000000
--- a/shared/user/avatarlink.tmpl
+++ /dev/null
@@ -1 +0,0 @@
-{{ctx.AvatarUtils.Avatar .user}}
diff --git a/shared/user/block_user_dialog.tmpl b/shared/user/block_user_dialog.tmpl
deleted file mode 100644
index c6db4ca..0000000
--- a/shared/user/block_user_dialog.tmpl
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
{{ctx.Locale.Tr "user.block.info"}}
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "user.block.user_to_block"}}:
-
-
-
{{ctx.Locale.Tr "user.block.note.title"}}
-
-
{{ctx.Locale.Tr "user.block.note.info"}}
-
-
- {{ctx.Locale.Tr "cancel"}}
- {{ctx.Locale.Tr "user.block.block"}}
-
-
-
-
diff --git a/shared/user/blocked_users.tmpl b/shared/user/blocked_users.tmpl
deleted file mode 100644
index e83a039..0000000
--- a/shared/user/blocked_users.tmpl
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-
{{ctx.Locale.Tr "user.block.info_1"}}
-
- {{ctx.Locale.Tr "user.block.info_2"}}
- {{ctx.Locale.Tr "user.block.info_3"}}
- {{ctx.Locale.Tr "user.block.info_4"}}
- {{ctx.Locale.Tr "user.block.info_5"}}
- {{ctx.Locale.Tr "user.block.info_6"}}
- {{ctx.Locale.Tr "user.block.info_7"}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "user.block.block"}}
-
-
-
{{ctx.Locale.Tr "user.block.note.title"}}
-
-
{{ctx.Locale.Tr "user.block.note.info"}}
-
-
-
-
-
-
- {{range .UserBlocks}}
-
-
- {{ctx.AvatarUtils.Avatar .Blockee}}
-
-
-
- {{if .Note}}
-
- {{ctx.Locale.Tr "user.block.note"}}: {{.Note}}
-
- {{end}}
-
-
- {{ctx.Locale.Tr "user.block.note.edit"}}
-
- {{$.CsrfTokenHtml}}
-
-
- {{ctx.Locale.Tr "user.block.unblock"}}
-
-
-
- {{else}}
-
{{ctx.Locale.Tr "user.block.list.none"}}
- {{end}}
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
{{ctx.Locale.Tr "user.block.note.title"}}
-
-
{{ctx.Locale.Tr "user.block.note.info"}}
-
-
- {{ctx.Locale.Tr "cancel"}}
- {{ctx.Locale.Tr "save"}}
-
-
-
-
diff --git a/shared/user/name.tmpl b/shared/user/name.tmpl
deleted file mode 100644
index 896349f..0000000
--- a/shared/user/name.tmpl
+++ /dev/null
@@ -1 +0,0 @@
-{{.Name}}{{if .FullName}} ({{.FullName}}){{end}}
diff --git a/shared/user/namelink.tmpl b/shared/user/namelink.tmpl
deleted file mode 100644
index a122f4f..0000000
--- a/shared/user/namelink.tmpl
+++ /dev/null
@@ -1 +0,0 @@
-{{.GetDisplayName}}
diff --git a/shared/user/org_profile_avatar.tmpl b/shared/user/org_profile_avatar.tmpl
deleted file mode 100644
index d67f133..0000000
--- a/shared/user/org_profile_avatar.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-{{with .ContextUser}}
-
-{{end}}
diff --git a/shared/user/profile_big_avatar.tmpl b/shared/user/profile_big_avatar.tmpl
deleted file mode 100644
index 868f8d5..0000000
--- a/shared/user/profile_big_avatar.tmpl
+++ /dev/null
@@ -1,143 +0,0 @@
-
-
-{{template "shared/user/block_user_dialog" .}}
diff --git a/shared/variables/variable_list.tmpl b/shared/variables/variable_list.tmpl
deleted file mode 100644
index 06c71c0..0000000
--- a/shared/variables/variable_list.tmpl
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
- {{if .Variables}}
-
- {{range .Variables}}
-
-
- {{svg "octicon-pencil" 32}}
-
-
-
- {{.Name}}
-
-
- {{.Data}}
-
-
-
-
- {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix)}}
-
-
- {{svg "octicon-pencil"}}
-
-
- {{svg "octicon-trash"}}
-
-
-
- {{end}}
-
- {{else}}
- {{ctx.Locale.Tr "actions.variables.none"}}
- {{end}}
-
-
-{{/** Edit variable dialog */}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "actions.variables.description"}}
-
-
- {{ctx.Locale.Tr "name"}}
-
-
-
- {{ctx.Locale.Tr "value"}}
-
-
-
- {{template "base/modal_actions_confirm" (dict "ModalButtonTypes" "confirm")}}
-
-
-
diff --git a/shared/webhook/icon.tmpl b/shared/webhook/icon.tmpl
deleted file mode 100644
index 0f80787..0000000
--- a/shared/webhook/icon.tmpl
+++ /dev/null
@@ -1,27 +0,0 @@
-{{$size := 26}}
-{{if .Size}}
- {{$size = .Size}}
-{{end}}
-{{if eq .HookType "gitea"}}
- {{svg "gitea-gitea" $size "img"}}
-{{else if eq .HookType "gogs"}}
-
-{{else if eq .HookType "slack"}}
-
-{{else if eq .HookType "discord"}}
-
-{{else if eq .HookType "dingtalk"}}
-
-{{else if eq .HookType "telegram"}}
-
-{{else if eq .HookType "msteams"}}
-
-{{else if eq .HookType "feishu"}}
-
-{{else if eq .HookType "matrix"}}
- {{svg "gitea-matrix" $size "img"}}
-{{else if eq .HookType "wechatwork"}}
-
-{{else if eq .HookType "packagist"}}
-
-{{end}}
diff --git a/status/404.tmpl b/status/404.tmpl
deleted file mode 100644
index 78f149e..0000000
--- a/status/404.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{template "base/head" .}}
-
- {{if .IsRepo}}{{template "repo/header" .}}{{end}}
-
-
-
{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404"}}{{end}}
- {{if .NotFoundGoBackURL}}
{{ctx.Locale.Tr "go_back"}} {{end}}
-
-
-{{template "base/footer" .}}
diff --git a/status/500.tmpl b/status/500.tmpl
deleted file mode 100644
index 566fddc..0000000
--- a/status/500.tmpl
+++ /dev/null
@@ -1,68 +0,0 @@
-{{/* This page should only depend the minimal template functions/variables, to avoid triggering new panics.
-* base template functions: AppName, AssetUrlPrefix, AssetVersion, AppSubUrl, UserThemeName
-* ctx.Locale
-* .Flash
-* .ErrorMsg
-* .SignedUser (optional)
-*/}}
-
-
-
-
- Internal Server Error - {{AppName}}
-
-
- {{template "base/head_style" .}}
-
-
-
-
-
-
-
-
- {{template "base/alert" .}}
-
-
-
-
- {{if .ErrorMsg}}
-
{{ctx.Locale.Tr "error.occurred"}}:
-
{{.ErrorMsg}}
- {{end}}
-
- {{if or .SignedUser.IsAdmin .ShowFooterVersion}}
{{ctx.Locale.Tr "admin.config.app_ver"}}: {{AppVer}}
{{end}}
- {{if .SignedUser.IsAdmin}}
{{ctx.Locale.Tr "error.report_message"}}
{{end}}
-
-
-
-
-
- {{/* When a sub-template triggers an 500 error, its parent template has been partially rendered, then the 500 page
- will be rendered after that partially rendered page, the HTML/JS are totally broken. Use this inline script to try to move it to main viewport.
- And this page shouldn't include any other JS file, avoid duplicate JS execution (still due to the partial rendering).*/}}
-
-
-
diff --git a/swagger/ui.tmpl b/swagger/ui.tmpl
deleted file mode 100644
index 9935ab9..0000000
--- a/swagger/ui.tmpl
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
- Gitea API
-
-
-
- {{svg "octicon-reply"}}{{ctx.Locale.Tr "return_to_gitea"}}
-
-
-
-
diff --git a/swagger/v1_json.tmpl b/swagger/v1_json.tmpl
deleted file mode 100644
index fb117ea..0000000
--- a/swagger/v1_json.tmpl
+++ /dev/null
@@ -1,25728 +0,0 @@
-{
- "consumes": [
- "application/json",
- "text/plain"
- ],
- "produces": [
- "application/json",
- "text/html"
- ],
- "schemes": [
- "https",
- "http"
- ],
- "swagger": "2.0",
- "info": {
- "description": "This documentation describes the Gitea API.",
- "title": "Gitea API",
- "license": {
- "name": "MIT",
- "url": "http://opensource.org/licenses/MIT"
- },
- "version": "{{AppVer | JSEscape}}"
- },
- "basePath": "{{AppSubUrl | JSEscape}}/api/v1",
- "paths": {
- "/activitypub/user-id/{user-id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "activitypub"
- ],
- "summary": "Returns the Person actor for a user",
- "operationId": "activitypubPerson",
- "parameters": [
- {
- "type": "integer",
- "description": "user ID of the user",
- "name": "user-id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ActivityPub"
- }
- }
- }
- },
- "/activitypub/user-id/{user-id}/inbox": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "activitypub"
- ],
- "summary": "Send to the inbox",
- "operationId": "activitypubPersonInbox",
- "parameters": [
- {
- "type": "integer",
- "description": "user ID of the user",
- "name": "user-id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- }
- }
- }
- },
- "/admin/cron": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "List cron tasks",
- "operationId": "adminCronList",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/CronList"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- }
- }
- }
- },
- "/admin/cron/{task}": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Run cron task",
- "operationId": "adminCronRun",
- "parameters": [
- {
- "type": "string",
- "description": "task to run",
- "name": "task",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/admin/emails": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "List all emails",
- "operationId": "adminGetAllEmails",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/EmailList"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- }
- }
- }
- },
- "/admin/emails/search": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Search all emails",
- "operationId": "adminSearchEmails",
- "parameters": [
- {
- "type": "string",
- "description": "keyword",
- "name": "q",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/EmailList"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- }
- }
- }
- },
- "/admin/hooks": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "List system's webhooks",
- "operationId": "adminListHooks",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/HookList"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Create a hook",
- "operationId": "adminCreateHook",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CreateHookOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Hook"
- }
- }
- }
- },
- "/admin/hooks/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Get a hook",
- "operationId": "adminGetHook",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the hook to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Hook"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Delete a hook",
- "operationId": "adminDeleteHook",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the hook to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Update a hook",
- "operationId": "adminEditHook",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the hook to update",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditHookOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Hook"
- }
- }
- }
- },
- "/admin/orgs": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "List all organizations",
- "operationId": "adminGetAllOrgs",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/OrganizationList"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- }
- }
- }
- },
- "/admin/runners/registration-token": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Get an global actions runner registration token",
- "operationId": "adminGetRunnerRegistrationToken",
- "responses": {
- "200": {
- "$ref": "#/responses/RegistrationToken"
- }
- }
- }
- },
- "/admin/unadopted": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "List unadopted repositories",
- "operationId": "adminUnadoptedList",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- },
- {
- "type": "string",
- "description": "pattern of repositories to search for",
- "name": "pattern",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/StringSlice"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- }
- }
- }
- },
- "/admin/unadopted/{owner}/{repo}": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Adopt unadopted files as a repository",
- "operationId": "adminAdoptRepository",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Delete unadopted files",
- "operationId": "adminDeleteUnadoptedRepository",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- }
- }
- }
- },
- "/admin/users": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Search users according filter conditions",
- "operationId": "adminSearchUsers",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "ID of the user's login source to search for",
- "name": "source_id",
- "in": "query"
- },
- {
- "type": "string",
- "description": "user's login name to search for",
- "name": "login_name",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Create a user",
- "operationId": "adminCreateUser",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateUserOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/User"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/admin/users/{username}": {
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Delete a user",
- "operationId": "adminDeleteUser",
- "parameters": [
- {
- "type": "string",
- "description": "username of user to delete",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "boolean",
- "description": "purge the user from the system completely",
- "name": "purge",
- "in": "query"
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Edit an existing user",
- "operationId": "adminEditUser",
- "parameters": [
- {
- "type": "string",
- "description": "username of user to edit",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditUserOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/User"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/admin/users/{username}/badges": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "List a user's badges",
- "operationId": "adminListUserBadges",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/BadgeList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Add a badge to a user",
- "operationId": "adminAddUserBadges",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/UserBadgeOption"
- }
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Remove a badge from a user",
- "operationId": "adminDeleteUserBadges",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/UserBadgeOption"
- }
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/admin/users/{username}/keys": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Add a public key on behalf of a user",
- "operationId": "adminCreatePublicKey",
- "parameters": [
- {
- "type": "string",
- "description": "username of the user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "name": "key",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateKeyOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/PublicKey"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/admin/users/{username}/keys/{id}": {
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Delete a user's public key",
- "operationId": "adminDeleteUserPublicKey",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the key to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/admin/users/{username}/orgs": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Create an organization",
- "operationId": "adminCreateOrg",
- "parameters": [
- {
- "type": "string",
- "description": "username of the user that will own the created organization",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "name": "organization",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CreateOrgOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Organization"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/admin/users/{username}/rename": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Rename a user",
- "operationId": "adminRenameUser",
- "parameters": [
- {
- "type": "string",
- "description": "existing username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/RenameUserOption"
- }
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/admin/users/{username}/repos": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Create a repository on behalf of a user",
- "operationId": "adminCreateRepo",
- "parameters": [
- {
- "type": "string",
- "description": "username of the user. This user will own the created repository",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "name": "repository",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CreateRepoOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Repository"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "409": {
- "$ref": "#/responses/error"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/gitignore/templates": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "miscellaneous"
- ],
- "summary": "Returns a list of all gitignore templates",
- "operationId": "listGitignoresTemplates",
- "responses": {
- "200": {
- "$ref": "#/responses/GitignoreTemplateList"
- }
- }
- }
- },
- "/gitignore/templates/{name}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "miscellaneous"
- ],
- "summary": "Returns information about a gitignore template",
- "operationId": "getGitignoreTemplateInfo",
- "parameters": [
- {
- "type": "string",
- "description": "name of the template",
- "name": "name",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/GitignoreTemplateInfo"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/label/templates": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "miscellaneous"
- ],
- "summary": "Returns a list of all label templates",
- "operationId": "listLabelTemplates",
- "responses": {
- "200": {
- "$ref": "#/responses/LabelTemplateList"
- }
- }
- }
- },
- "/label/templates/{name}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "miscellaneous"
- ],
- "summary": "Returns all labels in a template",
- "operationId": "getLabelTemplateInfo",
- "parameters": [
- {
- "type": "string",
- "description": "name of the template",
- "name": "name",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/LabelTemplateInfo"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/licenses": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "miscellaneous"
- ],
- "summary": "Returns a list of all license templates",
- "operationId": "listLicenseTemplates",
- "responses": {
- "200": {
- "$ref": "#/responses/LicenseTemplateList"
- }
- }
- }
- },
- "/licenses/{name}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "miscellaneous"
- ],
- "summary": "Returns information about a license template",
- "operationId": "getLicenseTemplateInfo",
- "parameters": [
- {
- "type": "string",
- "description": "name of the license",
- "name": "name",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/LicenseTemplateInfo"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/markdown": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "text/html"
- ],
- "tags": [
- "miscellaneous"
- ],
- "summary": "Render a markdown document as HTML",
- "operationId": "renderMarkdown",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/MarkdownOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/MarkdownRender"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/markdown/raw": {
- "post": {
- "consumes": [
- "text/plain"
- ],
- "produces": [
- "text/html"
- ],
- "tags": [
- "miscellaneous"
- ],
- "summary": "Render raw markdown as HTML",
- "operationId": "renderMarkdownRaw",
- "parameters": [
- {
- "description": "Request body to render",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/MarkdownRender"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/markup": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "text/html"
- ],
- "tags": [
- "miscellaneous"
- ],
- "summary": "Render a markup document as HTML",
- "operationId": "renderMarkup",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/MarkupOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/MarkupRender"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/nodeinfo": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "miscellaneous"
- ],
- "summary": "Returns the nodeinfo of the Gitea application",
- "operationId": "getNodeInfo",
- "responses": {
- "200": {
- "$ref": "#/responses/NodeInfo"
- }
- }
- }
- },
- "/notifications": {
- "get": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "notification"
- ],
- "summary": "List users's notification threads",
- "operationId": "notifyGetList",
- "parameters": [
- {
- "type": "boolean",
- "description": "If true, show notifications marked as read. Default value is false",
- "name": "all",
- "in": "query"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- },
- "collectionFormat": "multi",
- "description": "Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread \u0026 pinned.",
- "name": "status-types",
- "in": "query"
- },
- {
- "type": "array",
- "items": {
- "enum": [
- "issue",
- "pull",
- "commit",
- "repository"
- ],
- "type": "string"
- },
- "collectionFormat": "multi",
- "description": "filter notifications by subject type",
- "name": "subject-type",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show notifications updated after the given time. This is a timestamp in RFC 3339 format",
- "name": "since",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show notifications updated before the given time. This is a timestamp in RFC 3339 format",
- "name": "before",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/NotificationThreadList"
- }
- }
- },
- "put": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "notification"
- ],
- "summary": "Mark notification threads as read, pinned or unread",
- "operationId": "notifyReadList",
- "parameters": [
- {
- "type": "string",
- "format": "date-time",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated.",
- "name": "last_read_at",
- "in": "query"
- },
- {
- "type": "string",
- "description": "If true, mark all notifications on this repo. Default value is false",
- "name": "all",
- "in": "query"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- },
- "collectionFormat": "multi",
- "description": "Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread.",
- "name": "status-types",
- "in": "query"
- },
- {
- "type": "string",
- "description": "Status to mark notifications as, Defaults to read.",
- "name": "to-status",
- "in": "query"
- }
- ],
- "responses": {
- "205": {
- "$ref": "#/responses/NotificationThreadList"
- }
- }
- }
- },
- "/notifications/new": {
- "get": {
- "tags": [
- "notification"
- ],
- "summary": "Check if unread notifications exist",
- "operationId": "notifyNewAvailable",
- "responses": {
- "200": {
- "$ref": "#/responses/NotificationCount"
- }
- }
- }
- },
- "/notifications/threads/{id}": {
- "get": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "notification"
- ],
- "summary": "Get notification thread by ID",
- "operationId": "notifyGetThread",
- "parameters": [
- {
- "type": "string",
- "description": "id of notification thread",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/NotificationThread"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "notification"
- ],
- "summary": "Mark notification thread as read by ID",
- "operationId": "notifyReadThread",
- "parameters": [
- {
- "type": "string",
- "description": "id of notification thread",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "default": "read",
- "description": "Status to mark notifications as",
- "name": "to-status",
- "in": "query"
- }
- ],
- "responses": {
- "205": {
- "$ref": "#/responses/NotificationThread"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/org/{org}/repos": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Create a repository in an organization",
- "operationId": "createOrgRepoDeprecated",
- "deprecated": true,
- "parameters": [
- {
- "type": "string",
- "description": "name of organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateRepoOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Repository"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/orgs": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Get list of organizations",
- "operationId": "orgGetAll",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/OrganizationList"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Create an organization",
- "operationId": "orgCreate",
- "parameters": [
- {
- "name": "organization",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CreateOrgOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Organization"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/orgs/{org}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Get an organization",
- "operationId": "orgGet",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization to get",
- "name": "org",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Organization"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Delete an organization",
- "operationId": "orgDelete",
- "parameters": [
- {
- "type": "string",
- "description": "organization that is to be deleted",
- "name": "org",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Edit an organization",
- "operationId": "orgEdit",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization to edit",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/EditOrgOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Organization"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/actions/runners/registration-token": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Get an organization's actions runner registration token",
- "operationId": "orgGetRunnerRegistrationToken",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RegistrationToken"
- }
- }
- }
- },
- "/orgs/{org}/actions/secrets": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List an organization's actions secrets",
- "operationId": "orgListActionsSecrets",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/SecretList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/actions/secrets/{secretname}": {
- "put": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Create or Update a secret value in an organization",
- "operationId": "updateOrgSecret",
- "parameters": [
- {
- "type": "string",
- "description": "name of organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the secret",
- "name": "secretname",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateOrUpdateSecretOption"
- }
- }
- ],
- "responses": {
- "201": {
- "description": "response when creating a secret"
- },
- "204": {
- "description": "response when updating a secret"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Delete a secret in an organization",
- "operationId": "deleteOrgSecret",
- "parameters": [
- {
- "type": "string",
- "description": "name of organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the secret",
- "name": "secretname",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "description": "delete one secret of the organization"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/actions/variables": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Get an org-level variables list",
- "operationId": "getOrgVariablesList",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/VariableList"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/actions/variables/{variablename}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Get an org-level variable",
- "operationId": "getOrgVariable",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the variable",
- "name": "variablename",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ActionVariable"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "put": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Update an org-level variable",
- "operationId": "updateOrgVariable",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the variable",
- "name": "variablename",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/UpdateVariableOption"
- }
- }
- ],
- "responses": {
- "201": {
- "description": "response when updating an org-level variable"
- },
- "204": {
- "description": "response when updating an org-level variable"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Create an org-level variable",
- "operationId": "createOrgVariable",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the variable",
- "name": "variablename",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateVariableOption"
- }
- }
- ],
- "responses": {
- "201": {
- "description": "response when creating an org-level variable"
- },
- "204": {
- "description": "response when creating an org-level variable"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Delete an org-level variable",
- "operationId": "deleteOrgVariable",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the variable",
- "name": "variablename",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ActionVariable"
- },
- "201": {
- "description": "response when deleting a variable"
- },
- "204": {
- "description": "response when deleting a variable"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/activities/feeds": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List an organization's activity feeds",
- "operationId": "orgListActivityFeeds",
- "parameters": [
- {
- "type": "string",
- "description": "name of the org",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "format": "date",
- "description": "the date of the activities to be found",
- "name": "date",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ActivityFeedsList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/avatar": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Update Avatar",
- "operationId": "orgUpdateAvatar",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/UpdateUserAvatarOption"
- }
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Delete Avatar",
- "operationId": "orgDeleteAvatar",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/blocks": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List users blocked by the organization",
- "operationId": "organizationListBlocks",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- }
- }
- }
- },
- "/orgs/{org}/blocks/{username}": {
- "get": {
- "tags": [
- "organization"
- ],
- "summary": "Check if a user is blocked by the organization",
- "operationId": "organizationCheckUserBlock",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "user to check",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "put": {
- "tags": [
- "organization"
- ],
- "summary": "Block a user",
- "operationId": "organizationBlockUser",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "user to block",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "optional note for the block",
- "name": "note",
- "in": "query"
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- },
- "delete": {
- "tags": [
- "organization"
- ],
- "summary": "Unblock a user",
- "operationId": "organizationUnblockUser",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "user to unblock",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/orgs/{org}/hooks": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List an organization's webhooks",
- "operationId": "orgListHooks",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/HookList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Create a hook",
- "operationId": "orgCreateHook",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CreateHookOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Hook"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/hooks/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Get a hook",
- "operationId": "orgGetHook",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the hook to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Hook"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Delete a hook",
- "operationId": "orgDeleteHook",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the hook to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Update a hook",
- "operationId": "orgEditHook",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the hook to update",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditHookOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Hook"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/labels": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List an organization's labels",
- "operationId": "orgListLabels",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/LabelList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Create a label for an organization",
- "operationId": "orgCreateLabel",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateLabelOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Label"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/orgs/{org}/labels/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Get a single label",
- "operationId": "orgGetLabel",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the label to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Label"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "organization"
- ],
- "summary": "Delete a label",
- "operationId": "orgDeleteLabel",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the label to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Update a label",
- "operationId": "orgEditLabel",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the label to edit",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditLabelOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Label"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/orgs/{org}/members": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List an organization's members",
- "operationId": "orgListMembers",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/members/{username}": {
- "get": {
- "tags": [
- "organization"
- ],
- "summary": "Check if a user is a member of an organization",
- "operationId": "orgIsMember",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of the user",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "description": "user is a member"
- },
- "303": {
- "description": "redirection to /orgs/{org}/public_members/{username}"
- },
- "404": {
- "description": "user is not a member"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Remove a member from an organization",
- "operationId": "orgDeleteMember",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of the user",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "description": "member removed"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/public_members": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List an organization's public members",
- "operationId": "orgListPublicMembers",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/public_members/{username}": {
- "get": {
- "tags": [
- "organization"
- ],
- "summary": "Check if a user is a public member of an organization",
- "operationId": "orgIsPublicMember",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of the user",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "description": "user is a public member"
- },
- "404": {
- "description": "user is not a public member"
- }
- }
- },
- "put": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Publicize a user's membership",
- "operationId": "orgPublicizeMember",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of the user",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "description": "membership publicized"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Conceal a user's membership",
- "operationId": "orgConcealMember",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of the user",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/repos": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List an organization's repos",
- "operationId": "orgListRepos",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Create a repository in an organization",
- "operationId": "createOrgRepo",
- "parameters": [
- {
- "type": "string",
- "description": "name of organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateRepoOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Repository"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/orgs/{org}/teams": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List an organization's teams",
- "operationId": "orgListTeams",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TeamList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Create a team",
- "operationId": "orgCreateTeam",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateTeamOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Team"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/orgs/{org}/teams/search": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Search for teams within an organization",
- "operationId": "teamSearch",
- "parameters": [
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "keywords to search",
- "name": "q",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "include search within team description (defaults to true)",
- "name": "include_desc",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "SearchResults of a successful search",
- "schema": {
- "type": "object",
- "properties": {
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Team"
- }
- },
- "ok": {
- "type": "boolean"
- }
- }
- }
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/packages/{owner}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "package"
- ],
- "summary": "Gets all packages of an owner",
- "operationId": "listPackages",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the packages",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- },
- {
- "enum": [
- "alpine",
- "cargo",
- "chef",
- "composer",
- "conan",
- "conda",
- "container",
- "cran",
- "debian",
- "generic",
- "go",
- "helm",
- "maven",
- "npm",
- "nuget",
- "pub",
- "pypi",
- "rpm",
- "rubygems",
- "swift",
- "vagrant"
- ],
- "type": "string",
- "description": "package type filter",
- "name": "type",
- "in": "query"
- },
- {
- "type": "string",
- "description": "name filter",
- "name": "q",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PackageList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/packages/{owner}/{type}/{name}/{version}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "package"
- ],
- "summary": "Gets a package",
- "operationId": "getPackage",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the package",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "type of the package",
- "name": "type",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the package",
- "name": "name",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "version of the package",
- "name": "version",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Package"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "package"
- ],
- "summary": "Delete a package",
- "operationId": "deletePackage",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the package",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "type of the package",
- "name": "type",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the package",
- "name": "name",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "version of the package",
- "name": "version",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/packages/{owner}/{type}/{name}/{version}/files": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "package"
- ],
- "summary": "Gets all files of a package",
- "operationId": "listPackageFiles",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the package",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "type of the package",
- "name": "type",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the package",
- "name": "name",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "version of the package",
- "name": "version",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PackageFileList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/issues/search": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Search for issues across the repositories that the user has access to",
- "operationId": "issueSearchIssues",
- "parameters": [
- {
- "type": "string",
- "description": "whether issue is open or closed",
- "name": "state",
- "in": "query"
- },
- {
- "type": "string",
- "description": "comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded",
- "name": "labels",
- "in": "query"
- },
- {
- "type": "string",
- "description": "comma separated list of milestone names. Fetch only issues that have any of this milestones. Non existent are discarded",
- "name": "milestones",
- "in": "query"
- },
- {
- "type": "string",
- "description": "search string",
- "name": "q",
- "in": "query"
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "repository to prioritize in the results",
- "name": "priority_repo_id",
- "in": "query"
- },
- {
- "type": "string",
- "description": "filter by type (issues / pulls) if set",
- "name": "type",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show notifications updated after the given time. This is a timestamp in RFC 3339 format",
- "name": "since",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show notifications updated before the given time. This is a timestamp in RFC 3339 format",
- "name": "before",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "filter (issues / pulls) assigned to you, default is false",
- "name": "assigned",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "filter (issues / pulls) created by you, default is false",
- "name": "created",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "filter (issues / pulls) mentioning you, default is false",
- "name": "mentioned",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "filter pulls requesting your review, default is false",
- "name": "review_requested",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "filter pulls reviewed by you, default is false",
- "name": "reviewed",
- "in": "query"
- },
- {
- "type": "string",
- "description": "filter by owner",
- "name": "owner",
- "in": "query"
- },
- {
- "type": "string",
- "description": "filter by team (requires organization owner parameter to be provided)",
- "name": "team",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/IssueList"
- }
- }
- }
- },
- "/repos/migrate": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Migrate a remote git repository",
- "operationId": "repoMigrate",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/MigrateRepoOptions"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Repository"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "409": {
- "description": "The repository with the same name already exists."
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/search": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Search for repositories",
- "operationId": "repoSearch",
- "parameters": [
- {
- "type": "string",
- "description": "keyword",
- "name": "q",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "Limit search to repositories with keyword as topic",
- "name": "topic",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "include search of keyword within repository description",
- "name": "includeDesc",
- "in": "query"
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "search only for repos that the user with the given id owns or contributes to",
- "name": "uid",
- "in": "query"
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "repo owner to prioritize in the results",
- "name": "priority_owner_id",
- "in": "query"
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "search only for repos that belong to the given team id",
- "name": "team_id",
- "in": "query"
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "search only for repos that the user with the given id has starred",
- "name": "starredBy",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "include private repositories this user has access to (defaults to true)",
- "name": "private",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "show only pubic, private or all repositories (defaults to all)",
- "name": "is_private",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "include template repositories this user has access to (defaults to true)",
- "name": "template",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "show only archived, non-archived or all repositories (defaults to all)",
- "name": "archived",
- "in": "query"
- },
- {
- "type": "string",
- "description": "type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\"",
- "name": "mode",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "if `uid` is given, search only for repos that the user owns",
- "name": "exclusive",
- "in": "query"
- },
- {
- "type": "string",
- "description": "sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", and \"id\". Default is \"alpha\"",
- "name": "sort",
- "in": "query"
- },
- {
- "type": "string",
- "description": "sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\", ignored if \"sort\" is not specified.",
- "name": "order",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/SearchResults"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a repository",
- "operationId": "repoGet",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Repository"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a repository",
- "operationId": "repoDelete",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo to delete",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to delete",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Edit a repository's properties. Only fields that are set will be changed.",
- "operationId": "repoEdit",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo to edit",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to edit",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "description": "Properties of a repo that you can edit",
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditRepoOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Repository"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/actions/secrets": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List an repo's actions secrets",
- "operationId": "repoListActionsSecrets",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repository",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repository",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/SecretList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/actions/secrets/{secretname}": {
- "put": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create or Update a secret value in a repository",
- "operationId": "updateRepoSecret",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repository",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repository",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the secret",
- "name": "secretname",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateOrUpdateSecretOption"
- }
- }
- ],
- "responses": {
- "201": {
- "description": "response when creating a secret"
- },
- "204": {
- "description": "response when updating a secret"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a secret in a repository",
- "operationId": "deleteRepoSecret",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repository",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repository",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the secret",
- "name": "secretname",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "description": "delete one secret of the organization"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/actions/variables": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get repo-level variables list",
- "operationId": "getRepoVariablesList",
- "parameters": [
- {
- "type": "string",
- "description": "name of the owner",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repository",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/VariableList"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/actions/variables/{variablename}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a repo-level variable",
- "operationId": "getRepoVariable",
- "parameters": [
- {
- "type": "string",
- "description": "name of the owner",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repository",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the variable",
- "name": "variablename",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ActionVariable"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "put": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Update a repo-level variable",
- "operationId": "updateRepoVariable",
- "parameters": [
- {
- "type": "string",
- "description": "name of the owner",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repository",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the variable",
- "name": "variablename",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/UpdateVariableOption"
- }
- }
- ],
- "responses": {
- "201": {
- "description": "response when updating a repo-level variable"
- },
- "204": {
- "description": "response when updating a repo-level variable"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a repo-level variable",
- "operationId": "createRepoVariable",
- "parameters": [
- {
- "type": "string",
- "description": "name of the owner",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repository",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the variable",
- "name": "variablename",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateVariableOption"
- }
- }
- ],
- "responses": {
- "201": {
- "description": "response when creating a repo-level variable"
- },
- "204": {
- "description": "response when creating a repo-level variable"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a repo-level variable",
- "operationId": "deleteRepoVariable",
- "parameters": [
- {
- "type": "string",
- "description": "name of the owner",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repository",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the variable",
- "name": "variablename",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ActionVariable"
- },
- "201": {
- "description": "response when deleting a variable"
- },
- "204": {
- "description": "response when deleting a variable"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/activities/feeds": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repository's activity feeds",
- "operationId": "repoListActivityFeeds",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "format": "date",
- "description": "the date of the activities to be found",
- "name": "date",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ActivityFeedsList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/archive/{archive}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get an archive of a repository",
- "operationId": "repoGetArchive",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "the git reference for download with attached archive format (e.g. master.zip)",
- "name": "archive",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/assignees": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Return all users that have write access and can be assigned to issues",
- "operationId": "repoGetAssignees",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/avatar": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Update avatar",
- "operationId": "repoUpdateAvatar",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/UpdateRepoAvatarOption"
- }
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete avatar",
- "operationId": "repoDeleteAvatar",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/branch_protections": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List branch protections for a repository",
- "operationId": "repoListBranchProtection",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/BranchProtectionList"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a branch protections for a repository",
- "operationId": "repoCreateBranchProtection",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateBranchProtectionOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/BranchProtection"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/branch_protections/{name}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a specific branch protection for the repository",
- "operationId": "repoGetBranchProtection",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of protected branch",
- "name": "name",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/BranchProtection"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a specific branch protection for the repository",
- "operationId": "repoDeleteBranchProtection",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of protected branch",
- "name": "name",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Edit a branch protections for a repository. Only fields that are set will be changed",
- "operationId": "repoEditBranchProtection",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of protected branch",
- "name": "name",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditBranchProtectionOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/BranchProtection"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/branches": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repository's branches",
- "operationId": "repoListBranches",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/BranchList"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a branch",
- "operationId": "repoCreateBranch",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateBranchRepoOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Branch"
- },
- "403": {
- "description": "The branch is archived or a mirror."
- },
- "404": {
- "description": "The old branch does not exist."
- },
- "409": {
- "description": "The branch with the same name already exists."
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Retrieve a specific branch from a repository, including its effective branch protection",
- "operationId": "repoGetBranch",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "branch to get",
- "name": "branch",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Branch"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a specific branch from a repository",
- "operationId": "repoDeleteBranch",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "branch to delete",
- "name": "branch",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/collaborators": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repository's collaborators",
- "operationId": "repoListCollaborators",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/collaborators/{collaborator}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Check if a user is a collaborator of a repository",
- "operationId": "repoCheckCollaborator",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of the collaborator",
- "name": "collaborator",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- },
- "put": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Add a collaborator to a repository",
- "operationId": "repoAddCollaborator",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of the collaborator to add",
- "name": "collaborator",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/AddCollaboratorOption"
- }
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a collaborator from a repository",
- "operationId": "repoDeleteCollaborator",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of the collaborator to delete",
- "name": "collaborator",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/collaborators/{collaborator}/permission": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get repository permissions for a user",
- "operationId": "repoGetRepoPermissions",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of the collaborator",
- "name": "collaborator",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepoCollaboratorPermission"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/commits": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a list of all commits from a repository",
- "operationId": "repoGetAllCommits",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "SHA or branch to start listing commits from (usually 'master')",
- "name": "sha",
- "in": "query"
- },
- {
- "type": "string",
- "description": "filepath of a file/dir",
- "name": "path",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "include diff stats for every commit (disable for speedup, default 'true')",
- "name": "stat",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "include verification for every commit (disable for speedup, default 'true')",
- "name": "verification",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "include a list of affected files for every commit (disable for speedup, default 'true')",
- "name": "files",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results (ignored if used with 'path')",
- "name": "limit",
- "in": "query"
- },
- {
- "type": "string",
- "description": "commits that match the given specifier will not be listed.",
- "name": "not",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/CommitList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "409": {
- "$ref": "#/responses/EmptyRepository"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/status": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a commit's combined status, by branch/tag/commit reference",
- "operationId": "repoGetCombinedStatusByRef",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of branch/tag/commit",
- "name": "ref",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/CombinedStatus"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/statuses": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a commit's statuses, by branch/tag/commit reference",
- "operationId": "repoListStatusesByRef",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of branch/tag/commit",
- "name": "ref",
- "in": "path",
- "required": true
- },
- {
- "enum": [
- "oldest",
- "recentupdate",
- "leastupdate",
- "leastindex",
- "highestindex"
- ],
- "type": "string",
- "description": "type of sort",
- "name": "sort",
- "in": "query"
- },
- {
- "enum": [
- "pending",
- "success",
- "error",
- "failure",
- "warning"
- ],
- "type": "string",
- "description": "type of state",
- "name": "state",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/CommitStatusList"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/commits/{sha}/pull": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get the pull request of the commit",
- "operationId": "repoGetCommitPullRequest",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "SHA of the commit to get",
- "name": "sha",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullRequest"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/compare/{basehead}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get commit comparison information",
- "operationId": "repoCompareDiff",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "compare two branches or commits",
- "name": "basehead",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Compare"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/contents": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Gets the metadata of all the entries of the root dir",
- "operationId": "repoGetContentsList",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "The name of the commit/branch/tag. Default the repository’s default branch (usually master)",
- "name": "ref",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ContentsListResponse"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Modify multiple files in a repository",
- "operationId": "repoChangeFiles",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/ChangeFilesOptions"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/FilesResponse"
- },
- "403": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/error"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/contents/{filepath}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir",
- "operationId": "repoGetContents",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "path of the dir, file, symlink or submodule in the repo",
- "name": "filepath",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "The name of the commit/branch/tag. Default the repository’s default branch (usually master)",
- "name": "ref",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ContentsResponse"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "put": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Update a file in a repository",
- "operationId": "repoUpdateFile",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "path of the file to update",
- "name": "filepath",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/UpdateFileOptions"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/FileResponse"
- },
- "403": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/error"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a file in a repository",
- "operationId": "repoCreateFile",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "path of the file to create",
- "name": "filepath",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CreateFileOptions"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/FileResponse"
- },
- "403": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/error"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- },
- "delete": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a file in a repository",
- "operationId": "repoDeleteFile",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "path of the file to delete",
- "name": "filepath",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/DeleteFileOptions"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/FileDeleteResponse"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/error"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/diffpatch": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Apply diff patch to repository",
- "operationId": "repoApplyDiffPatch",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/UpdateFileOptions"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/FileResponse"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/editorconfig/{filepath}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get the EditorConfig definitions of a file in a repository",
- "operationId": "repoGetEditorConfig",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "filepath of file to get",
- "name": "filepath",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "The name of the commit/branch/tag. Default the repository’s default branch (usually master)",
- "name": "ref",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/forks": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repository's forks",
- "operationId": "listForks",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Fork a repository",
- "operationId": "createFork",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo to fork",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to fork",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateForkOption"
- }
- }
- ],
- "responses": {
- "202": {
- "$ref": "#/responses/Repository"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "409": {
- "description": "The repository with the same name already exists."
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/git/blobs/{sha}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Gets the blob of a repository.",
- "operationId": "GetBlob",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "sha of the commit",
- "name": "sha",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/GitBlobResponse"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/git/commits/{sha}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a single commit from a repository",
- "operationId": "repoGetSingleCommit",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "a git ref or commit sha",
- "name": "sha",
- "in": "path",
- "required": true
- },
- {
- "type": "boolean",
- "description": "include diff stats for every commit (disable for speedup, default 'true')",
- "name": "stat",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "include verification for every commit (disable for speedup, default 'true')",
- "name": "verification",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "include a list of affected files for every commit (disable for speedup, default 'true')",
- "name": "files",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Commit"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/git/commits/{sha}.{diffType}": {
- "get": {
- "produces": [
- "text/plain"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a commit's diff or patch",
- "operationId": "repoDownloadCommitDiffOrPatch",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "SHA of the commit to get",
- "name": "sha",
- "in": "path",
- "required": true
- },
- {
- "enum": [
- "diff",
- "patch"
- ],
- "type": "string",
- "description": "whether the output is diff or patch",
- "name": "diffType",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/string"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/git/notes/{sha}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a note corresponding to a single commit from a repository",
- "operationId": "repoGetNote",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "a git ref or commit sha",
- "name": "sha",
- "in": "path",
- "required": true
- },
- {
- "type": "boolean",
- "description": "include verification for every commit (disable for speedup, default 'true')",
- "name": "verification",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "include a list of affected files for every commit (disable for speedup, default 'true')",
- "name": "files",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Note"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/git/refs": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get specified ref or filtered repository's refs",
- "operationId": "repoListAllGitRefs",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ReferenceList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/git/refs/{ref}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get specified ref or filtered repository's refs",
- "operationId": "repoListGitRefs",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "part or full name of the ref",
- "name": "ref",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ReferenceList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/git/tags/{sha}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Gets the tag object of an annotated tag (not lightweight tags)",
- "operationId": "GetAnnotatedTag",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags.",
- "name": "sha",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/AnnotatedTag"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/git/trees/{sha}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Gets the tree of a repository.",
- "operationId": "GetTree",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "sha of the commit",
- "name": "sha",
- "in": "path",
- "required": true
- },
- {
- "type": "boolean",
- "description": "show all directories and files",
- "name": "recursive",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "number of items per page",
- "name": "per_page",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/GitTreeResponse"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/hooks": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List the hooks in a repository",
- "operationId": "repoListHooks",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/HookList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a hook",
- "operationId": "repoCreateHook",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateHookOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Hook"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/hooks/git": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List the Git hooks in a repository",
- "operationId": "repoListGitHooks",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/GitHookList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/hooks/git/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a Git hook",
- "operationId": "repoGetGitHook",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "id of the hook to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/GitHook"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a Git hook in a repository",
- "operationId": "repoDeleteGitHook",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "id of the hook to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Edit a Git hook in a repository",
- "operationId": "repoEditGitHook",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "id of the hook to get",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditGitHookOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/GitHook"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/hooks/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a hook",
- "operationId": "repoGetHook",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the hook to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Hook"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a hook in a repository",
- "operationId": "repoDeleteHook",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the hook to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Edit a hook in a repository",
- "operationId": "repoEditHook",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the hook",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditHookOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Hook"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/hooks/{id}/tests": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Test a push webhook",
- "operationId": "repoTestHook",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the hook to test",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload.",
- "name": "ref",
- "in": "query"
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issue_config": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Returns the issue config for a repo",
- "operationId": "repoGetIssueConfig",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepoIssueConfig"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issue_config/validate": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Returns the validation information for a issue config",
- "operationId": "repoValidateIssueConfig",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepoIssueConfigValidation"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issue_templates": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get available issue templates for a repository",
- "operationId": "repoGetIssueTemplates",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/IssueTemplates"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "List a repository's issues",
- "operationId": "issueListIssues",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "enum": [
- "closed",
- "open",
- "all"
- ],
- "type": "string",
- "description": "whether issue is open or closed",
- "name": "state",
- "in": "query"
- },
- {
- "type": "string",
- "description": "comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded",
- "name": "labels",
- "in": "query"
- },
- {
- "type": "string",
- "description": "search string",
- "name": "q",
- "in": "query"
- },
- {
- "enum": [
- "issues",
- "pulls"
- ],
- "type": "string",
- "description": "filter by type (issues / pulls) if set",
- "name": "type",
- "in": "query"
- },
- {
- "type": "string",
- "description": "comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded",
- "name": "milestones",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show items updated after the given time. This is a timestamp in RFC 3339 format",
- "name": "since",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show items updated before the given time. This is a timestamp in RFC 3339 format",
- "name": "before",
- "in": "query"
- },
- {
- "type": "string",
- "description": "Only show items which were created by the given user",
- "name": "created_by",
- "in": "query"
- },
- {
- "type": "string",
- "description": "Only show items for which the given user is assigned",
- "name": "assigned_by",
- "in": "query"
- },
- {
- "type": "string",
- "description": "Only show items in which the given user was mentioned",
- "name": "mentioned_by",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/IssueList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Create an issue. If using deadline only the date will be taken into account, and time of day ignored.",
- "operationId": "issueCreateIssue",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateIssueOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Issue"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "412": {
- "$ref": "#/responses/error"
- },
- "422": {
- "$ref": "#/responses/validationError"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/comments": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "List all comments in a repository",
- "operationId": "issueGetRepoComments",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "if provided, only comments updated since the provided time are returned.",
- "name": "since",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "if provided, only comments updated before the provided time are returned.",
- "name": "before",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/CommentList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{id}": {
- "get": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Get a comment",
- "operationId": "issueGetComment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the comment",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Comment"
- },
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "issue"
- ],
- "summary": "Delete a comment",
- "operationId": "issueDeleteComment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of comment to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Edit a comment",
- "operationId": "issueEditComment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the comment to edit",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditIssueCommentOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Comment"
- },
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{id}/assets": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "List comment's attachments",
- "operationId": "issueListIssueCommentAttachments",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the comment",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/AttachmentList"
- },
- "404": {
- "$ref": "#/responses/error"
- }
- }
- },
- "post": {
- "consumes": [
- "multipart/form-data"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Create a comment attachment",
- "operationId": "issueCreateIssueCommentAttachment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the comment",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the attachment",
- "name": "name",
- "in": "query"
- },
- {
- "type": "file",
- "description": "attachment to upload",
- "name": "attachment",
- "in": "formData",
- "required": true
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Attachment"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/error"
- },
- "422": {
- "$ref": "#/responses/validationError"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Get a comment attachment",
- "operationId": "issueGetIssueCommentAttachment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the comment",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the attachment to get",
- "name": "attachment_id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Attachment"
- },
- "404": {
- "$ref": "#/responses/error"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Delete a comment attachment",
- "operationId": "issueDeleteIssueCommentAttachment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the comment",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the attachment to delete",
- "name": "attachment_id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/error"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Edit a comment attachment",
- "operationId": "issueEditIssueCommentAttachment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the comment",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the attachment to edit",
- "name": "attachment_id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditAttachmentOptions"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Attachment"
- },
- "404": {
- "$ref": "#/responses/error"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{id}/reactions": {
- "get": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Get a list of reactions from a comment of an issue",
- "operationId": "issueGetCommentReactions",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the comment to edit",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ReactionList"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Add a reaction to a comment of an issue",
- "operationId": "issuePostCommentReaction",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the comment to edit",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "content",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditReactionOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Reaction"
- },
- "201": {
- "$ref": "#/responses/Reaction"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Remove a reaction from a comment of an issue",
- "operationId": "issueDeleteCommentReaction",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the comment to edit",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "content",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditReactionOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/pinned": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repo's pinned issues",
- "operationId": "repoListPinnedIssues",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/IssueList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Get an issue",
- "operationId": "issueGetIssue",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue to get",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Issue"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "issue"
- ],
- "summary": "Delete an issue",
- "operationId": "issueDelete",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of issue to delete",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.",
- "operationId": "issueEditIssue",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue to edit",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditIssueOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Issue"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "412": {
- "$ref": "#/responses/error"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/assets": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "List issue's attachments",
- "operationId": "issueListIssueAttachments",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/AttachmentList"
- },
- "404": {
- "$ref": "#/responses/error"
- }
- }
- },
- "post": {
- "consumes": [
- "multipart/form-data"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Create an issue attachment",
- "operationId": "issueCreateIssueAttachment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the attachment",
- "name": "name",
- "in": "query"
- },
- {
- "type": "file",
- "description": "attachment to upload",
- "name": "attachment",
- "in": "formData",
- "required": true
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Attachment"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/error"
- },
- "422": {
- "$ref": "#/responses/validationError"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Get an issue attachment",
- "operationId": "issueGetIssueAttachment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the attachment to get",
- "name": "attachment_id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Attachment"
- },
- "404": {
- "$ref": "#/responses/error"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Delete an issue attachment",
- "operationId": "issueDeleteIssueAttachment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the attachment to delete",
- "name": "attachment_id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/error"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Edit an issue attachment",
- "operationId": "issueEditIssueAttachment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the attachment to edit",
- "name": "attachment_id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditAttachmentOptions"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Attachment"
- },
- "404": {
- "$ref": "#/responses/error"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/blocks": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "List issues that are blocked by this issue",
- "operationId": "issueListBlocks",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/IssueList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Block the issue given in the body by the issue in path",
- "operationId": "issueCreateIssueBlocking",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/IssueMeta"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Issue"
- },
- "404": {
- "description": "the issue does not exist"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Unblock the issue given in the body by the issue in path",
- "operationId": "issueRemoveIssueBlocking",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/IssueMeta"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Issue"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/comments": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "List all comments on an issue",
- "operationId": "issueGetComments",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "if provided, only comments updated since the specified time are returned.",
- "name": "since",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "if provided, only comments updated before the provided time are returned.",
- "name": "before",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/CommentList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Add a comment to an issue",
- "operationId": "issueCreateComment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateIssueCommentOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Comment"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/comments/{id}": {
- "delete": {
- "tags": [
- "issue"
- ],
- "summary": "Delete a comment",
- "operationId": "issueDeleteCommentDeprecated",
- "deprecated": true,
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "this parameter is ignored",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of comment to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Edit a comment",
- "operationId": "issueEditCommentDeprecated",
- "deprecated": true,
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "this parameter is ignored",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the comment to edit",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditIssueCommentOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Comment"
- },
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/deadline": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.",
- "operationId": "issueEditIssueDeadline",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue to create or update a deadline on",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditDeadlineOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/IssueDeadline"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/dependencies": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "List an issue's dependencies, i.e all issues that block this issue.",
- "operationId": "issueListIssueDependencies",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/IssueList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Make the issue in the url depend on the issue in the form.",
- "operationId": "issueCreateIssueDependencies",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/IssueMeta"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Issue"
- },
- "404": {
- "description": "the issue does not exist"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Remove an issue dependency",
- "operationId": "issueRemoveIssueDependencies",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/IssueMeta"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Issue"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/labels": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Get an issue's labels",
- "operationId": "issueGetLabels",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/LabelList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "put": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Replace an issue's labels",
- "operationId": "issueReplaceLabels",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/IssueLabelsOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/LabelList"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Add a label to an issue",
- "operationId": "issueAddLabel",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/IssueLabelsOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/LabelList"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Remove all labels from an issue",
- "operationId": "issueClearLabels",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/labels/{id}": {
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Remove a label from an issue",
- "operationId": "issueRemoveLabel",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the label to remove",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/pin": {
- "post": {
- "tags": [
- "issue"
- ],
- "summary": "Pin an Issue",
- "operationId": "pinIssue",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of issue to pin",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "issue"
- ],
- "summary": "Unpin an Issue",
- "operationId": "unpinIssue",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of issue to unpin",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/pin/{position}": {
- "patch": {
- "tags": [
- "issue"
- ],
- "summary": "Moves the Pin to the given Position",
- "operationId": "moveIssuePin",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "the new position",
- "name": "position",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/reactions": {
- "get": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Get a list reactions of an issue",
- "operationId": "issueGetIssueReactions",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ReactionList"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Add a reaction to an issue",
- "operationId": "issuePostIssueReaction",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "content",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditReactionOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Reaction"
- },
- "201": {
- "$ref": "#/responses/Reaction"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Remove a reaction from an issue",
- "operationId": "issueDeleteIssueReaction",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "content",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditReactionOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/stopwatch/delete": {
- "delete": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Delete an issue's existing stopwatch.",
- "operationId": "issueDeleteStopWatch",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue to stop the stopwatch on",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "description": "Not repo writer, user does not have rights to toggle stopwatch"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "409": {
- "description": "Cannot cancel a non existent stopwatch"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/stopwatch/start": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Start stopwatch on an issue.",
- "operationId": "issueStartStopWatch",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue to create the stopwatch on",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "description": "Not repo writer, user does not have rights to toggle stopwatch"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "409": {
- "description": "Cannot start a stopwatch again if it already exists"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/stopwatch/stop": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Stop an issue's existing stopwatch.",
- "operationId": "issueStopStopWatch",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue to stop the stopwatch on",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "description": "Not repo writer, user does not have rights to toggle stopwatch"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "409": {
- "description": "Cannot stop a non existent stopwatch"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/subscriptions": {
- "get": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Get users who subscribed on an issue.",
- "operationId": "issueSubscriptions",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/subscriptions/check": {
- "get": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Check if user is subscribed to an issue",
- "operationId": "issueCheckSubscription",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/WatchInfo"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/subscriptions/{user}": {
- "put": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Subscribe user to issue",
- "operationId": "issueAddSubscription",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "user to subscribe",
- "name": "user",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "Already subscribed"
- },
- "201": {
- "description": "Successfully Subscribed"
- },
- "304": {
- "description": "User can only subscribe itself if he is no admin"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Unsubscribe user from issue",
- "operationId": "issueDeleteSubscription",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "user witch unsubscribe",
- "name": "user",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "Already unsubscribed"
- },
- "201": {
- "description": "Successfully Unsubscribed"
- },
- "304": {
- "description": "User can only subscribe itself if he is no admin"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/timeline": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "List all comments and events on an issue",
- "operationId": "issueGetCommentsAndTimeline",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "if provided, only comments updated since the specified time are returned.",
- "name": "since",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "if provided, only comments updated before the provided time are returned.",
- "name": "before",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TimelineList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/times": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "List an issue's tracked times",
- "operationId": "issueTrackedTimes",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "optional filter by user (available for issue managers)",
- "name": "user",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show times updated after the given time. This is a timestamp in RFC 3339 format",
- "name": "since",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show times updated before the given time. This is a timestamp in RFC 3339 format",
- "name": "before",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TrackedTimeList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Add tracked time to a issue",
- "operationId": "issueAddTime",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/AddTimeOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TrackedTime"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Reset a tracked time of an issue",
- "operationId": "issueResetTime",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue to add tracked time to",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{index}/times/{id}": {
- "delete": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Delete specific tracked time",
- "operationId": "issueDeleteTime",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the issue",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of time to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/keys": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repository's keys",
- "operationId": "repoListKeys",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "the key_id to search for",
- "name": "key_id",
- "in": "query"
- },
- {
- "type": "string",
- "description": "fingerprint of the key",
- "name": "fingerprint",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/DeployKeyList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Add a key to a repository",
- "operationId": "repoCreateKey",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateKeyOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/DeployKey"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/keys/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a repository's key by id",
- "operationId": "repoGetKey",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the key to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/DeployKey"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "repository"
- ],
- "summary": "Delete a key from a repository",
- "operationId": "repoDeleteKey",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the key to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/labels": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Get all of a repository's labels",
- "operationId": "issueListLabels",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/LabelList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Create a label",
- "operationId": "issueCreateLabel",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateLabelOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Label"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/labels/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Get a single label",
- "operationId": "issueGetLabel",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the label to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Label"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "issue"
- ],
- "summary": "Delete a label",
- "operationId": "issueDeleteLabel",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the label to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Update a label",
- "operationId": "issueEditLabel",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the label to edit",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditLabelOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Label"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/languages": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get languages and number of bytes of code written",
- "operationId": "repoGetLanguages",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/LanguageStatistics"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/media/{filepath}": {
- "get": {
- "tags": [
- "repository"
- ],
- "summary": "Get a file or it's LFS object from a repository",
- "operationId": "repoGetRawFileOrLFS",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "filepath of the file to get",
- "name": "filepath",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "The name of the commit/branch/tag. Default the repository’s default branch (usually master)",
- "name": "ref",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "Returns raw file content."
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/milestones": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Get all of a repository's opened milestones",
- "operationId": "issueGetMilestonesList",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "Milestone state, Recognized values are open, closed and all. Defaults to \"open\"",
- "name": "state",
- "in": "query"
- },
- {
- "type": "string",
- "description": "filter by milestone name",
- "name": "name",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/MilestoneList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Create a milestone",
- "operationId": "issueCreateMilestone",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateMilestoneOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Milestone"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/milestones/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Get a milestone",
- "operationId": "issueGetMilestone",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "the milestone to get, identified by ID and if not available by name",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Milestone"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "issue"
- ],
- "summary": "Delete a milestone",
- "operationId": "issueDeleteMilestone",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "the milestone to delete, identified by ID and if not available by name",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Update a milestone",
- "operationId": "issueEditMilestone",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "the milestone to edit, identified by ID and if not available by name",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditMilestoneOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Milestone"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/mirror-sync": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Sync a mirrored repository",
- "operationId": "repoMirrorSync",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo to sync",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to sync",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/new_pin_allowed": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Returns if new Issue Pins are allowed",
- "operationId": "repoNewPinAllowed",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepoNewIssuePinsAllowed"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/notifications": {
- "get": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "notification"
- ],
- "summary": "List users's notification threads on a specific repo",
- "operationId": "notifyGetRepoList",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "boolean",
- "description": "If true, show notifications marked as read. Default value is false",
- "name": "all",
- "in": "query"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- },
- "collectionFormat": "multi",
- "description": "Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread \u0026 pinned",
- "name": "status-types",
- "in": "query"
- },
- {
- "type": "array",
- "items": {
- "enum": [
- "issue",
- "pull",
- "commit",
- "repository"
- ],
- "type": "string"
- },
- "collectionFormat": "multi",
- "description": "filter notifications by subject type",
- "name": "subject-type",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show notifications updated after the given time. This is a timestamp in RFC 3339 format",
- "name": "since",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show notifications updated before the given time. This is a timestamp in RFC 3339 format",
- "name": "before",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/NotificationThreadList"
- }
- }
- },
- "put": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "notification"
- ],
- "summary": "Mark notification threads as read, pinned or unread on a specific repo",
- "operationId": "notifyReadRepoList",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "If true, mark all notifications on this repo. Default value is false",
- "name": "all",
- "in": "query"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- },
- "collectionFormat": "multi",
- "description": "Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread.",
- "name": "status-types",
- "in": "query"
- },
- {
- "type": "string",
- "description": "Status to mark notifications as. Defaults to read.",
- "name": "to-status",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated.",
- "name": "last_read_at",
- "in": "query"
- }
- ],
- "responses": {
- "205": {
- "$ref": "#/responses/NotificationThreadList"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repo's pull requests",
- "operationId": "repoListPullRequests",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "enum": [
- "closed",
- "open",
- "all"
- ],
- "type": "string",
- "description": "State of pull request: open or closed (optional)",
- "name": "state",
- "in": "query"
- },
- {
- "enum": [
- "oldest",
- "recentupdate",
- "leastupdate",
- "mostcomment",
- "leastcomment",
- "priority"
- ],
- "type": "string",
- "description": "Type of sort",
- "name": "sort",
- "in": "query"
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "ID of the milestone",
- "name": "milestone",
- "in": "query"
- },
- {
- "type": "array",
- "items": {
- "type": "integer",
- "format": "int64"
- },
- "collectionFormat": "multi",
- "description": "Label IDs",
- "name": "labels",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullRequestList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a pull request",
- "operationId": "repoCreatePullRequest",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreatePullRequestOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/PullRequest"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "409": {
- "$ref": "#/responses/error"
- },
- "422": {
- "$ref": "#/responses/validationError"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/pinned": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repo's pinned pull requests",
- "operationId": "repoListPinnedPullRequests",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullRequestList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{base}/{head}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a pull request by base and head",
- "operationId": "repoGetPullRequestByBaseHead",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "base of the pull request to get",
- "name": "base",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "head of the pull request to get",
- "name": "head",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullRequest"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{index}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a pull request",
- "operationId": "repoGetPullRequest",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request to get",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullRequest"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.",
- "operationId": "repoEditPullRequest",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request to edit",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditPullRequestOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/PullRequest"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "409": {
- "$ref": "#/responses/error"
- },
- "412": {
- "$ref": "#/responses/error"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{index}.{diffType}": {
- "get": {
- "produces": [
- "text/plain"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a pull request diff or patch",
- "operationId": "repoDownloadPullDiffOrPatch",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request to get",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "enum": [
- "diff",
- "patch"
- ],
- "type": "string",
- "description": "whether the output is diff or patch",
- "name": "diffType",
- "in": "path",
- "required": true
- },
- {
- "type": "boolean",
- "description": "whether to include binary file changes. if true, the diff is applicable with `git apply`",
- "name": "binary",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/string"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{index}/commits": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get commits for a pull request",
- "operationId": "repoGetPullRequestCommits",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request to get",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "include verification for every commit (disable for speedup, default 'true')",
- "name": "verification",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "include a list of affected files for every commit (disable for speedup, default 'true')",
- "name": "files",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/CommitList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{index}/files": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get changed files for a pull request",
- "operationId": "repoGetPullRequestFiles",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request to get",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "skip to given file",
- "name": "skip-to",
- "in": "query"
- },
- {
- "enum": [
- "ignore-all",
- "ignore-change",
- "ignore-eol",
- "show-all"
- ],
- "type": "string",
- "description": "whitespace behavior",
- "name": "whitespace",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ChangedFileList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{index}/merge": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Check if a pull request has been merged",
- "operationId": "repoPullRequestIsMerged",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "description": "pull request has been merged"
- },
- "404": {
- "description": "pull request has not been merged"
- }
- }
- },
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Merge a pull request",
- "operationId": "repoMergePullRequest",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request to merge",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/MergePullRequestOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "405": {
- "$ref": "#/responses/empty"
- },
- "409": {
- "$ref": "#/responses/error"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Cancel the scheduled auto merge for the given pull request",
- "operationId": "repoCancelScheduledAutoMerge",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request to merge",
- "name": "index",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{index}/requested_reviewers": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "create review requests for a pull request",
- "operationId": "repoCreatePullReviewRequests",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/PullReviewRequestOptions"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/PullReviewList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "cancel review requests for a pull request",
- "operationId": "repoDeletePullReviewRequests",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/PullReviewRequestOptions"
- }
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{index}/reviews": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List all reviews for a pull request",
- "operationId": "repoListPullReviews",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullReviewList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a review to an pull request",
- "operationId": "repoCreatePullReview",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CreatePullReviewOptions"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullReview"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a specific review for a pull request",
- "operationId": "repoGetPullReview",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the review",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullReview"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Submit a pending review to an pull request",
- "operationId": "repoSubmitPullReview",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the review",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/SubmitPullReviewOptions"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullReview"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a specific review from a pull request",
- "operationId": "repoDeletePullReview",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the review",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a specific review for a pull request",
- "operationId": "repoGetPullReviewComments",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the review",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullReviewCommentList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Dismiss a review for a pull request",
- "operationId": "repoDismissPullReview",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the review",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/DismissPullReviewOptions"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullReview"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/undismissals": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Cancel to dismiss a review for a pull request",
- "operationId": "repoUnDismissPullReview",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the review",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullReview"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/pulls/{index}/update": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Merge PR's baseBranch into headBranch",
- "operationId": "repoUpdatePullRequest",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "index of the pull request to get",
- "name": "index",
- "in": "path",
- "required": true
- },
- {
- "enum": [
- "merge",
- "rebase"
- ],
- "type": "string",
- "description": "how to update pull request",
- "name": "style",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "409": {
- "$ref": "#/responses/error"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/push_mirrors": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get all push mirrors of the repository",
- "operationId": "repoListPushMirrors",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PushMirrorList"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "add a push mirror to the repository",
- "operationId": "repoAddPushMirror",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreatePushMirrorOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PushMirror"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/push_mirrors-sync": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Sync all push mirrored repository",
- "operationId": "repoPushMirrorSync",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo to sync",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to sync",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/empty"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/push_mirrors/{name}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get push mirror of the repository by remoteName",
- "operationId": "repoGetPushMirrorByRemoteName",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "remote name of push mirror",
- "name": "name",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PushMirror"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "deletes a push mirror from a repository by remoteName",
- "operationId": "repoDeletePushMirror",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "remote name of the pushMirror",
- "name": "name",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/raw/{filepath}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a file from a repository",
- "operationId": "repoGetRawFile",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "filepath of the file to get",
- "name": "filepath",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "The name of the commit/branch/tag. Default the repository’s default branch (usually master)",
- "name": "ref",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "Returns raw file content."
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/releases": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repo's releases",
- "operationId": "repoListReleases",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "boolean",
- "description": "filter (exclude / include) drafts, if you dont have repo write access none will show",
- "name": "draft",
- "in": "query"
- },
- {
- "type": "boolean",
- "description": "filter (exclude / include) pre-releases",
- "name": "pre-release",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ReleaseList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a release",
- "operationId": "repoCreateRelease",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateReleaseOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Release"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "409": {
- "$ref": "#/responses/error"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/releases/latest": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at",
- "operationId": "repoGetLatestRelease",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Release"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/releases/tags/{tag}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a release by tag name",
- "operationId": "repoGetReleaseByTag",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "tag name of the release to get",
- "name": "tag",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Release"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "repository"
- ],
- "summary": "Delete a release by tag name",
- "operationId": "repoDeleteReleaseByTag",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "tag name of the release to delete",
- "name": "tag",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/releases/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a release",
- "operationId": "repoGetRelease",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the release to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Release"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "repository"
- ],
- "summary": "Delete a release",
- "operationId": "repoDeleteRelease",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the release to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Update a release",
- "operationId": "repoEditRelease",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the release to edit",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditReleaseOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Release"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/releases/{id}/assets": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List release's attachments",
- "operationId": "repoListReleaseAttachments",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the release",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/AttachmentList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "multipart/form-data",
- "application/octet-stream"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a release attachment",
- "operationId": "repoCreateReleaseAttachment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the release",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the attachment",
- "name": "name",
- "in": "query"
- },
- {
- "type": "file",
- "description": "attachment to upload",
- "name": "attachment",
- "in": "formData"
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Attachment"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a release attachment",
- "operationId": "repoGetReleaseAttachment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the release",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the attachment to get",
- "name": "attachment_id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Attachment"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a release attachment",
- "operationId": "repoDeleteReleaseAttachment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the release",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the attachment to delete",
- "name": "attachment_id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Edit a release attachment",
- "operationId": "repoEditReleaseAttachment",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the release",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the attachment to edit",
- "name": "attachment_id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditAttachmentOptions"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Attachment"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/reviewers": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Return all users that can be requested to review in this repo",
- "operationId": "repoGetReviewers",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/runners/registration-token": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a repository's actions runner registration token",
- "operationId": "repoGetRunnerRegistrationToken",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RegistrationToken"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/signing-key.gpg": {
- "get": {
- "produces": [
- "text/plain"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get signing-key.gpg for given repository",
- "operationId": "repoSigningKey",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "GPG armored public key",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/repos/{owner}/{repo}/stargazers": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repo's stargazers",
- "operationId": "repoListStargazers",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/statuses/{sha}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a commit's statuses",
- "operationId": "repoListStatuses",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "sha of the commit",
- "name": "sha",
- "in": "path",
- "required": true
- },
- {
- "enum": [
- "oldest",
- "recentupdate",
- "leastupdate",
- "leastindex",
- "highestindex"
- ],
- "type": "string",
- "description": "type of sort",
- "name": "sort",
- "in": "query"
- },
- {
- "enum": [
- "pending",
- "success",
- "error",
- "failure",
- "warning"
- ],
- "type": "string",
- "description": "type of state",
- "name": "state",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/CommitStatusList"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a commit status",
- "operationId": "repoCreateStatus",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "sha of the commit",
- "name": "sha",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateStatusOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/CommitStatus"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/subscribers": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repo's watchers",
- "operationId": "repoListSubscribers",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/subscription": {
- "get": {
- "tags": [
- "repository"
- ],
- "summary": "Check if the current user is watching a repo",
- "operationId": "userCurrentCheckSubscription",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/WatchInfo"
- },
- "404": {
- "description": "User is not watching this repo or repo do not exist"
- }
- }
- },
- "put": {
- "tags": [
- "repository"
- ],
- "summary": "Watch a repo",
- "operationId": "userCurrentPutSubscription",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/WatchInfo"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "repository"
- ],
- "summary": "Unwatch a repo",
- "operationId": "userCurrentDeleteSubscription",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/tags": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repository's tags",
- "operationId": "repoListTags",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results, default maximum page size is 50",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TagList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a new git tag in a repository",
- "operationId": "repoCreateTag",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateTagOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Tag"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "405": {
- "$ref": "#/responses/empty"
- },
- "409": {
- "$ref": "#/responses/conflict"
- },
- "422": {
- "$ref": "#/responses/validationError"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/tags/{tag}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get the tag of a repository by tag name",
- "operationId": "repoGetTag",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of tag",
- "name": "tag",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Tag"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a repository's tag by name",
- "operationId": "repoDeleteTag",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of tag to delete",
- "name": "tag",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "405": {
- "$ref": "#/responses/empty"
- },
- "409": {
- "$ref": "#/responses/conflict"
- },
- "422": {
- "$ref": "#/responses/validationError"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/teams": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repository's teams",
- "operationId": "repoListTeams",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TeamList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/teams/{team}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Check if a team is assigned to a repository",
- "operationId": "repoCheckTeam",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "team name",
- "name": "team",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Team"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "405": {
- "$ref": "#/responses/error"
- }
- }
- },
- "put": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Add a team to a repository",
- "operationId": "repoAddTeam",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "team name",
- "name": "team",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "405": {
- "$ref": "#/responses/error"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a team from a repository",
- "operationId": "repoDeleteTeam",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "team name",
- "name": "team",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "405": {
- "$ref": "#/responses/error"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/times": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a repo's tracked times",
- "operationId": "repoTrackedTimes",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "optional filter by user (available for issue managers)",
- "name": "user",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show times updated after the given time. This is a timestamp in RFC 3339 format",
- "name": "since",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show times updated before the given time. This is a timestamp in RFC 3339 format",
- "name": "before",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TrackedTimeList"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/times/{user}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "List a user's tracked times in a repo",
- "operationId": "userTrackedTimes",
- "deprecated": true,
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of user",
- "name": "user",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TrackedTimeList"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/topics": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get list of topics that a repository has",
- "operationId": "repoListTopics",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TopicNames"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "put": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Replace list of topics for a repository",
- "operationId": "repoUpdateTopics",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/RepoTopicOptions"
- }
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/invalidTopicsError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/topics/{topic}": {
- "put": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Add a topic to a repository",
- "operationId": "repoAddTopic",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the topic to add",
- "name": "topic",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/invalidTopicsError"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Delete a topic from a repository",
- "operationId": "repoDeleteTopic",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the topic to delete",
- "name": "topic",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/invalidTopicsError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/transfer": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Transfer a repo ownership",
- "operationId": "repoTransfer",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo to transfer",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to transfer",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "description": "Transfer Options",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/TransferRepoOption"
- }
- }
- ],
- "responses": {
- "202": {
- "$ref": "#/responses/Repository"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/transfer/accept": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Accept a repo transfer",
- "operationId": "acceptRepoTransfer",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo to transfer",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to transfer",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "202": {
- "$ref": "#/responses/Repository"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/transfer/reject": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Reject a repo transfer",
- "operationId": "rejectRepoTransfer",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo to transfer",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to transfer",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Repository"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/wiki/new": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a wiki page",
- "operationId": "repoCreateWikiPage",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateWikiPageOptions"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/WikiPage"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/wiki/page/{pageName}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a wiki page",
- "operationId": "repoGetWikiPage",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the page",
- "name": "pageName",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/WikiPage"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "repository"
- ],
- "summary": "Delete a wiki page",
- "operationId": "repoDeleteWikiPage",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the page",
- "name": "pageName",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Edit a wiki page",
- "operationId": "repoEditWikiPage",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the page",
- "name": "pageName",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateWikiPageOptions"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/WikiPage"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "423": {
- "$ref": "#/responses/repoArchivedError"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/wiki/pages": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get all wiki pages",
- "operationId": "repoGetWikiPages",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/WikiPageList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/wiki/revisions/{pageName}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get revisions of a wiki page",
- "operationId": "repoGetWikiPageRevisions",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the page",
- "name": "pageName",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/WikiCommitList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/repos/{template_owner}/{template_repo}/generate": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Create a repository using a template",
- "operationId": "generateRepo",
- "parameters": [
- {
- "type": "string",
- "description": "name of the template repository owner",
- "name": "template_owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the template repository",
- "name": "template_repo",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/GenerateRepoOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Repository"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "409": {
- "description": "The repository with the same name already exists."
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/repositories/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Get a repository by id",
- "operationId": "repoGetByID",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the repo to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Repository"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/settings/api": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "settings"
- ],
- "summary": "Get instance's global settings for api",
- "operationId": "getGeneralAPISettings",
- "responses": {
- "200": {
- "$ref": "#/responses/GeneralAPISettings"
- }
- }
- }
- },
- "/settings/attachment": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "settings"
- ],
- "summary": "Get instance's global settings for Attachment",
- "operationId": "getGeneralAttachmentSettings",
- "responses": {
- "200": {
- "$ref": "#/responses/GeneralAttachmentSettings"
- }
- }
- }
- },
- "/settings/repository": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "settings"
- ],
- "summary": "Get instance's global settings for repositories",
- "operationId": "getGeneralRepositorySettings",
- "responses": {
- "200": {
- "$ref": "#/responses/GeneralRepoSettings"
- }
- }
- }
- },
- "/settings/ui": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "settings"
- ],
- "summary": "Get instance's global settings for ui",
- "operationId": "getGeneralUISettings",
- "responses": {
- "200": {
- "$ref": "#/responses/GeneralUISettings"
- }
- }
- }
- },
- "/signing-key.gpg": {
- "get": {
- "produces": [
- "text/plain"
- ],
- "tags": [
- "miscellaneous"
- ],
- "summary": "Get default signing-key.gpg",
- "operationId": "getSigningKey",
- "responses": {
- "200": {
- "description": "GPG armored public key",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/teams/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Get a team",
- "operationId": "orgGetTeam",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the team to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Team"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "organization"
- ],
- "summary": "Delete a team",
- "operationId": "orgDeleteTeam",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the team to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "description": "team deleted"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Edit a team",
- "operationId": "orgEditTeam",
- "parameters": [
- {
- "type": "integer",
- "description": "id of the team to edit",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditTeamOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Team"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/teams/{id}/activities/feeds": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List a team's activity feeds",
- "operationId": "orgListTeamActivityFeeds",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the team",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "format": "date",
- "description": "the date of the activities to be found",
- "name": "date",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ActivityFeedsList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/teams/{id}/members": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List a team's members",
- "operationId": "orgListTeamMembers",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the team",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/teams/{id}/members/{username}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List a particular member of team",
- "operationId": "orgListTeamMember",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the team",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of the member to list",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/User"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "put": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Add a team member",
- "operationId": "orgAddTeamMember",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the team",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of the user to add",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Remove a team member",
- "operationId": "orgRemoveTeamMember",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the team",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of the user to remove",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/teams/{id}/repos": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List a team's repos",
- "operationId": "orgListTeamRepos",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the team",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/teams/{id}/repos/{org}/{repo}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List a particular repo of team",
- "operationId": "orgListTeamRepo",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the team",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "organization that owns the repo to list",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to list",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Repository"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "put": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Add a repository to a team",
- "operationId": "orgAddTeamRepository",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the team",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "organization that owns the repo to add",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to add",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "description": "This does not delete the repository, it only removes the repository from the team.",
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Remove a repository from a team",
- "operationId": "orgRemoveTeamRepository",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the team",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "organization that owns the repo to remove",
- "name": "org",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to remove",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/topics/search": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "search topics via keyword",
- "operationId": "topicSearch",
- "parameters": [
- {
- "type": "string",
- "description": "keywords to search",
- "name": "q",
- "in": "query",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TopicListResponse"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/user": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get the authenticated user",
- "operationId": "userGetCurrent",
- "responses": {
- "200": {
- "$ref": "#/responses/User"
- }
- }
- }
- },
- "/user/actions/runners/registration-token": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get an user's actions runner registration token",
- "operationId": "userGetRunnerRegistrationToken",
- "responses": {
- "200": {
- "$ref": "#/responses/RegistrationToken"
- }
- }
- }
- },
- "/user/actions/secrets/{secretname}": {
- "put": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Create or Update a secret value in a user scope",
- "operationId": "updateUserSecret",
- "parameters": [
- {
- "type": "string",
- "description": "name of the secret",
- "name": "secretname",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateOrUpdateSecretOption"
- }
- }
- ],
- "responses": {
- "201": {
- "description": "response when creating a secret"
- },
- "204": {
- "description": "response when updating a secret"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Delete a secret in a user scope",
- "operationId": "deleteUserSecret",
- "parameters": [
- {
- "type": "string",
- "description": "name of the secret",
- "name": "secretname",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "description": "delete one secret of the user"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/user/actions/variables": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get the user-level list of variables which is created by current doer",
- "operationId": "getUserVariablesList",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/VariableList"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/user/actions/variables/{variablename}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get a user-level variable which is created by current doer",
- "operationId": "getUserVariable",
- "parameters": [
- {
- "type": "string",
- "description": "name of the variable",
- "name": "variablename",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ActionVariable"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "put": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Update a user-level variable which is created by current doer",
- "operationId": "updateUserVariable",
- "parameters": [
- {
- "type": "string",
- "description": "name of the variable",
- "name": "variablename",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/UpdateVariableOption"
- }
- }
- ],
- "responses": {
- "201": {
- "description": "response when updating a variable"
- },
- "204": {
- "description": "response when updating a variable"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Create a user-level variable",
- "operationId": "createUserVariable",
- "parameters": [
- {
- "type": "string",
- "description": "name of the variable",
- "name": "variablename",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateVariableOption"
- }
- }
- ],
- "responses": {
- "201": {
- "description": "response when creating a variable"
- },
- "204": {
- "description": "response when creating a variable"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Delete a user-level variable which is created by current doer",
- "operationId": "deleteUserVariable",
- "parameters": [
- {
- "type": "string",
- "description": "name of the variable",
- "name": "variablename",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "201": {
- "description": "response when deleting a variable"
- },
- "204": {
- "description": "response when deleting a variable"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/user/applications/oauth2": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the authenticated user's oauth2 applications",
- "operationId": "userGetOauth2Application",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/OAuth2ApplicationList"
- }
- }
- },
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "creates a new OAuth2 application",
- "operationId": "userCreateOAuth2Application",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CreateOAuth2ApplicationOptions"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/OAuth2Application"
- },
- "400": {
- "$ref": "#/responses/error"
- }
- }
- }
- },
- "/user/applications/oauth2/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "get an OAuth2 Application",
- "operationId": "userGetOAuth2Application",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "Application ID to be found",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/OAuth2Application"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "delete an OAuth2 Application",
- "operationId": "userDeleteOAuth2Application",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "token to be deleted",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "patch": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "update an OAuth2 Application, this includes regenerating the client secret",
- "operationId": "userUpdateOAuth2Application",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "application to be updated",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CreateOAuth2ApplicationOptions"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/OAuth2Application"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/user/avatar": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Update Avatar",
- "operationId": "userUpdateAvatar",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/UpdateUserAvatarOption"
- }
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Delete Avatar",
- "operationId": "userDeleteAvatar",
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- }
- }
- }
- },
- "/user/blocks": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List users blocked by the authenticated user",
- "operationId": "userListBlocks",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- }
- }
- }
- },
- "/user/blocks/{username}": {
- "get": {
- "tags": [
- "user"
- ],
- "summary": "Check if a user is blocked by the authenticated user",
- "operationId": "userCheckUserBlock",
- "parameters": [
- {
- "type": "string",
- "description": "user to check",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "put": {
- "tags": [
- "user"
- ],
- "summary": "Block a user",
- "operationId": "userBlockUser",
- "parameters": [
- {
- "type": "string",
- "description": "user to block",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "optional note for the block",
- "name": "note",
- "in": "query"
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- },
- "delete": {
- "tags": [
- "user"
- ],
- "summary": "Unblock a user",
- "operationId": "userUnblockUser",
- "parameters": [
- {
- "type": "string",
- "description": "user to unblock",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/user/emails": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the authenticated user's email addresses",
- "operationId": "userListEmails",
- "responses": {
- "200": {
- "$ref": "#/responses/EmailList"
- }
- }
- },
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Add email addresses",
- "operationId": "userAddEmail",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateEmailOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/EmailList"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Delete email addresses",
- "operationId": "userDeleteEmail",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/DeleteEmailOption"
- }
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/user/followers": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the authenticated user's followers",
- "operationId": "userCurrentListFollowers",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- }
- }
- }
- },
- "/user/following": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the users that the authenticated user is following",
- "operationId": "userCurrentListFollowing",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- }
- }
- }
- },
- "/user/following/{username}": {
- "get": {
- "tags": [
- "user"
- ],
- "summary": "Check whether a user is followed by the authenticated user",
- "operationId": "userCurrentCheckFollowing",
- "parameters": [
- {
- "type": "string",
- "description": "username of followed user",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "put": {
- "tags": [
- "user"
- ],
- "summary": "Follow a user",
- "operationId": "userCurrentPutFollow",
- "parameters": [
- {
- "type": "string",
- "description": "username of user to follow",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "user"
- ],
- "summary": "Unfollow a user",
- "operationId": "userCurrentDeleteFollow",
- "parameters": [
- {
- "type": "string",
- "description": "username of user to unfollow",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/user/gpg_key_token": {
- "get": {
- "produces": [
- "text/plain"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get a Token to verify",
- "operationId": "getVerificationToken",
- "responses": {
- "200": {
- "$ref": "#/responses/string"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/user/gpg_key_verify": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Verify a GPG key",
- "operationId": "userVerifyGPGKey",
- "responses": {
- "201": {
- "$ref": "#/responses/GPGKey"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/user/gpg_keys": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the authenticated user's GPG keys",
- "operationId": "userCurrentListGPGKeys",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/GPGKeyList"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Create a GPG key",
- "operationId": "userCurrentPostGPGKey",
- "parameters": [
- {
- "name": "Form",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateGPGKeyOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/GPGKey"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/user/gpg_keys/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get a GPG key",
- "operationId": "userCurrentGetGPGKey",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of key to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/GPGKey"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Remove a GPG key",
- "operationId": "userCurrentDeleteGPGKey",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of key to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/user/hooks": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the authenticated user's webhooks",
- "operationId": "userListHooks",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/HookList"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Create a hook",
- "operationId": "userCreateHook",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CreateHookOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Hook"
- }
- }
- }
- },
- "/user/hooks/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get a hook",
- "operationId": "userGetHook",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the hook to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Hook"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Delete a hook",
- "operationId": "userDeleteHook",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the hook to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Update a hook",
- "operationId": "userEditHook",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of the hook to update",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditHookOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Hook"
- }
- }
- }
- },
- "/user/keys": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the authenticated user's public keys",
- "operationId": "userCurrentListKeys",
- "parameters": [
- {
- "type": "string",
- "description": "fingerprint of the key",
- "name": "fingerprint",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PublicKeyList"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Create a public key",
- "operationId": "userCurrentPostKey",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateKeyOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/PublicKey"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/user/keys/{id}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get a public key",
- "operationId": "userCurrentGetKey",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of key to get",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PublicKey"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Delete a public key",
- "operationId": "userCurrentDeleteKey",
- "parameters": [
- {
- "type": "integer",
- "format": "int64",
- "description": "id of key to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/user/orgs": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List the current user's organizations",
- "operationId": "orgListCurrentUserOrgs",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/OrganizationList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/user/repos": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the repos that the authenticated user owns",
- "operationId": "userCurrentListRepos",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository",
- "user"
- ],
- "summary": "Create a repository",
- "operationId": "createCurrentUserRepo",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateRepoOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Repository"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "409": {
- "description": "The repository with the same name already exists."
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/user/settings": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get user settings",
- "operationId": "getUserSettings",
- "responses": {
- "200": {
- "$ref": "#/responses/UserSettings"
- }
- }
- },
- "patch": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Update user settings",
- "operationId": "updateUserSettings",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/UserSettingsOptions"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserSettings"
- }
- }
- }
- },
- "/user/starred": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "The repos that the authenticated user has starred",
- "operationId": "userCurrentListStarred",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- }
- }
- }
- },
- "/user/starred/{owner}/{repo}": {
- "get": {
- "tags": [
- "user"
- ],
- "summary": "Whether the authenticated is starring the repo",
- "operationId": "userCurrentCheckStarring",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "put": {
- "tags": [
- "user"
- ],
- "summary": "Star the given repo",
- "operationId": "userCurrentPutStar",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo to star",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to star",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- },
- "delete": {
- "tags": [
- "user"
- ],
- "summary": "Unstar the given repo",
- "operationId": "userCurrentDeleteStar",
- "parameters": [
- {
- "type": "string",
- "description": "owner of the repo to unstar",
- "name": "owner",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the repo to unstar",
- "name": "repo",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/user/stopwatches": {
- "get": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get list of all existing stopwatches",
- "operationId": "userGetStopWatches",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/StopWatchList"
- }
- }
- }
- },
- "/user/subscriptions": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List repositories watched by the authenticated user",
- "operationId": "userCurrentListSubscriptions",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- }
- }
- }
- },
- "/user/teams": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List all the teams a user belongs to",
- "operationId": "userListTeams",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TeamList"
- }
- }
- }
- },
- "/user/times": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the current user's tracked times",
- "operationId": "userCurrentTrackedTimes",
- "parameters": [
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show times updated after the given time. This is a timestamp in RFC 3339 format",
- "name": "since",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date-time",
- "description": "Only show times updated before the given time. This is a timestamp in RFC 3339 format",
- "name": "before",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TrackedTimeList"
- }
- }
- }
- },
- "/users/search": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Search for users",
- "operationId": "userSearch",
- "parameters": [
- {
- "type": "string",
- "description": "keyword",
- "name": "q",
- "in": "query"
- },
- {
- "type": "integer",
- "format": "int64",
- "description": "ID of the user to search for",
- "name": "uid",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "SearchResults of a successful search",
- "schema": {
- "type": "object",
- "properties": {
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/User"
- }
- },
- "ok": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "/users/{username}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get a user",
- "operationId": "userGet",
- "parameters": [
- {
- "type": "string",
- "description": "username of user to get",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/User"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/activities/feeds": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List a user's activity feeds",
- "operationId": "userListActivityFeeds",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "boolean",
- "description": "if true, only show actions performed by the requested user",
- "name": "only-performed-by",
- "in": "query"
- },
- {
- "type": "string",
- "format": "date",
- "description": "the date of the activities to be found",
- "name": "date",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ActivityFeedsList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/followers": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the given user's followers",
- "operationId": "userListFollowers",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/following": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the users that the given user is following",
- "operationId": "userListFollowing",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/following/{target}": {
- "get": {
- "tags": [
- "user"
- ],
- "summary": "Check if one user is following another user",
- "operationId": "userCheckFollowing",
- "parameters": [
- {
- "type": "string",
- "description": "username of following user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of followed user",
- "name": "target",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/gpg_keys": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the given user's GPG keys",
- "operationId": "userListGPGKeys",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/GPGKeyList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/heatmap": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get a user's heatmap",
- "operationId": "userGetHeatmapData",
- "parameters": [
- {
- "type": "string",
- "description": "username of user to get",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserHeatmapData"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/keys": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the given user's public keys",
- "operationId": "userListKeys",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "fingerprint of the key",
- "name": "fingerprint",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PublicKeyList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/orgs": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List a user's organizations",
- "operationId": "orgListUserOrgs",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/OrganizationList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/orgs/{org}/permissions": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "Get user permissions in organization",
- "operationId": "orgGetUserPermissions",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "name of the organization",
- "name": "org",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/OrganizationPermissions"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/repos": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the repos owned by the given user",
- "operationId": "userListRepos",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/starred": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "The repos that the given user has starred",
- "operationId": "userListStarred",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/subscriptions": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the repositories watched by a user",
- "operationId": "userListSubscriptions",
- "parameters": [
- {
- "type": "string",
- "description": "username of the user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/users/{username}/tokens": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the authenticated user's access tokens",
- "operationId": "userGetTokens",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/AccessTokenList"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Create an access token",
- "operationId": "userCreateToken",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/CreateAccessTokenOption"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/AccessToken"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- }
- }
- }
- },
- "/users/{username}/tokens/{token}": {
- "delete": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "delete an access token",
- "operationId": "userDeleteAccessToken",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "token to be deleted, identified by ID and if not available by name",
- "name": "token",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "422": {
- "$ref": "#/responses/error"
- }
- }
- }
- },
- "/version": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "miscellaneous"
- ],
- "summary": "Returns the version of the Gitea application",
- "operationId": "getVersion",
- "responses": {
- "200": {
- "$ref": "#/responses/ServerVersion"
- }
- }
- }
- }
- },
- "definitions": {
- "APIError": {
- "description": "APIError is an api error with a message",
- "type": "object",
- "properties": {
- "message": {
- "type": "string",
- "x-go-name": "Message"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "AccessToken": {
- "type": "object",
- "title": "AccessToken represents an API access token.",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Scopes"
- },
- "sha1": {
- "type": "string",
- "x-go-name": "Token"
- },
- "token_last_eight": {
- "type": "string",
- "x-go-name": "TokenLastEight"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "ActionVariable": {
- "description": "ActionVariable return value of the query API",
- "type": "object",
- "properties": {
- "data": {
- "description": "the value of the variable",
- "type": "string",
- "x-go-name": "Data"
- },
- "name": {
- "description": "the name of the variable",
- "type": "string",
- "x-go-name": "Name"
- },
- "owner_id": {
- "description": "the owner to which the variable belongs",
- "type": "integer",
- "format": "int64",
- "x-go-name": "OwnerID"
- },
- "repo_id": {
- "description": "the repository to which the variable belongs",
- "type": "integer",
- "format": "int64",
- "x-go-name": "RepoID"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Activity": {
- "type": "object",
- "properties": {
- "act_user": {
- "$ref": "#/definitions/User"
- },
- "act_user_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ActUserID"
- },
- "comment": {
- "$ref": "#/definitions/Comment"
- },
- "comment_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "CommentID"
- },
- "content": {
- "type": "string",
- "x-go-name": "Content"
- },
- "created": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "is_private": {
- "type": "boolean",
- "x-go-name": "IsPrivate"
- },
- "op_type": {
- "type": "string",
- "x-go-name": "OpType"
- },
- "ref_name": {
- "type": "string",
- "x-go-name": "RefName"
- },
- "repo": {
- "$ref": "#/definitions/Repository"
- },
- "repo_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "RepoID"
- },
- "user_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "UserID"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "ActivityPub": {
- "description": "ActivityPub type",
- "type": "object",
- "properties": {
- "@context": {
- "type": "string",
- "x-go-name": "Context"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "AddCollaboratorOption": {
- "description": "AddCollaboratorOption options when adding a user as a collaborator of a repository",
- "type": "object",
- "properties": {
- "permission": {
- "type": "string",
- "x-go-name": "Permission"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "AddTimeOption": {
- "description": "AddTimeOption options for adding time to an issue",
- "type": "object",
- "required": [
- "time"
- ],
- "properties": {
- "created": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "time": {
- "description": "time in seconds",
- "type": "integer",
- "format": "int64",
- "x-go-name": "Time"
- },
- "user_name": {
- "description": "User who spent the time (optional)",
- "type": "string",
- "x-go-name": "User"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "AnnotatedTag": {
- "description": "AnnotatedTag represents an annotated tag",
- "type": "object",
- "properties": {
- "message": {
- "type": "string",
- "x-go-name": "Message"
- },
- "object": {
- "$ref": "#/definitions/AnnotatedTagObject"
- },
- "sha": {
- "type": "string",
- "x-go-name": "SHA"
- },
- "tag": {
- "type": "string",
- "x-go-name": "Tag"
- },
- "tagger": {
- "$ref": "#/definitions/CommitUser"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- },
- "verification": {
- "$ref": "#/definitions/PayloadCommitVerification"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "AnnotatedTagObject": {
- "description": "AnnotatedTagObject contains meta information of the tag object",
- "type": "object",
- "properties": {
- "sha": {
- "type": "string",
- "x-go-name": "SHA"
- },
- "type": {
- "type": "string",
- "x-go-name": "Type"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Attachment": {
- "description": "Attachment a generic attachment",
- "type": "object",
- "properties": {
- "browser_download_url": {
- "type": "string",
- "x-go-name": "DownloadURL"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "download_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "DownloadCount"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "size": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Size"
- },
- "uuid": {
- "type": "string",
- "x-go-name": "UUID"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Badge": {
- "description": "Badge represents a user badge",
- "type": "object",
- "properties": {
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "image_url": {
- "type": "string",
- "x-go-name": "ImageURL"
- },
- "slug": {
- "type": "string",
- "x-go-name": "Slug"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Branch": {
- "description": "Branch represents a repository branch",
- "type": "object",
- "properties": {
- "commit": {
- "$ref": "#/definitions/PayloadCommit"
- },
- "effective_branch_protection_name": {
- "type": "string",
- "x-go-name": "EffectiveBranchProtectionName"
- },
- "enable_status_check": {
- "type": "boolean",
- "x-go-name": "EnableStatusCheck"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "protected": {
- "type": "boolean",
- "x-go-name": "Protected"
- },
- "required_approvals": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "RequiredApprovals"
- },
- "status_check_contexts": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "StatusCheckContexts"
- },
- "user_can_merge": {
- "type": "boolean",
- "x-go-name": "UserCanMerge"
- },
- "user_can_push": {
- "type": "boolean",
- "x-go-name": "UserCanPush"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "BranchProtection": {
- "description": "BranchProtection represents a branch protection for a repository",
- "type": "object",
- "properties": {
- "approvals_whitelist_teams": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "ApprovalsWhitelistTeams"
- },
- "approvals_whitelist_username": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "ApprovalsWhitelistUsernames"
- },
- "block_on_official_review_requests": {
- "type": "boolean",
- "x-go-name": "BlockOnOfficialReviewRequests"
- },
- "block_on_outdated_branch": {
- "type": "boolean",
- "x-go-name": "BlockOnOutdatedBranch"
- },
- "block_on_rejected_reviews": {
- "type": "boolean",
- "x-go-name": "BlockOnRejectedReviews"
- },
- "branch_name": {
- "description": "Deprecated: true",
- "type": "string",
- "x-go-name": "BranchName"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "dismiss_stale_approvals": {
- "type": "boolean",
- "x-go-name": "DismissStaleApprovals"
- },
- "enable_approvals_whitelist": {
- "type": "boolean",
- "x-go-name": "EnableApprovalsWhitelist"
- },
- "enable_merge_whitelist": {
- "type": "boolean",
- "x-go-name": "EnableMergeWhitelist"
- },
- "enable_push": {
- "type": "boolean",
- "x-go-name": "EnablePush"
- },
- "enable_push_whitelist": {
- "type": "boolean",
- "x-go-name": "EnablePushWhitelist"
- },
- "enable_status_check": {
- "type": "boolean",
- "x-go-name": "EnableStatusCheck"
- },
- "ignore_stale_approvals": {
- "type": "boolean",
- "x-go-name": "IgnoreStaleApprovals"
- },
- "merge_whitelist_teams": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "MergeWhitelistTeams"
- },
- "merge_whitelist_usernames": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "MergeWhitelistUsernames"
- },
- "protected_file_patterns": {
- "type": "string",
- "x-go-name": "ProtectedFilePatterns"
- },
- "push_whitelist_deploy_keys": {
- "type": "boolean",
- "x-go-name": "PushWhitelistDeployKeys"
- },
- "push_whitelist_teams": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "PushWhitelistTeams"
- },
- "push_whitelist_usernames": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "PushWhitelistUsernames"
- },
- "require_signed_commits": {
- "type": "boolean",
- "x-go-name": "RequireSignedCommits"
- },
- "required_approvals": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "RequiredApprovals"
- },
- "rule_name": {
- "type": "string",
- "x-go-name": "RuleName"
- },
- "status_check_contexts": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "StatusCheckContexts"
- },
- "unprotected_file_patterns": {
- "type": "string",
- "x-go-name": "UnprotectedFilePatterns"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "ChangeFileOperation": {
- "description": "ChangeFileOperation for creating, updating or deleting a file",
- "type": "object",
- "required": [
- "operation",
- "path"
- ],
- "properties": {
- "content": {
- "description": "new or updated file content, must be base64 encoded",
- "type": "string",
- "x-go-name": "ContentBase64"
- },
- "from_path": {
- "description": "old path of the file to move",
- "type": "string",
- "x-go-name": "FromPath"
- },
- "operation": {
- "description": "indicates what to do with the file",
- "type": "string",
- "enum": [
- "create",
- "update",
- "delete"
- ],
- "x-go-name": "Operation"
- },
- "path": {
- "description": "path to the existing or new file",
- "type": "string",
- "x-go-name": "Path"
- },
- "sha": {
- "description": "sha is the SHA for the file that already exists, required for update or delete",
- "type": "string",
- "x-go-name": "SHA"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "ChangeFilesOptions": {
- "description": "ChangeFilesOptions options for creating, updating or deleting multiple files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
- "type": "object",
- "required": [
- "files"
- ],
- "properties": {
- "author": {
- "$ref": "#/definitions/Identity"
- },
- "branch": {
- "description": "branch (optional) to base this file from. if not given, the default branch is used",
- "type": "string",
- "x-go-name": "BranchName"
- },
- "committer": {
- "$ref": "#/definitions/Identity"
- },
- "dates": {
- "$ref": "#/definitions/CommitDateOptions"
- },
- "files": {
- "description": "list of file operations",
- "type": "array",
- "items": {
- "$ref": "#/definitions/ChangeFileOperation"
- },
- "x-go-name": "Files"
- },
- "message": {
- "description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
- "type": "string",
- "x-go-name": "Message"
- },
- "new_branch": {
- "description": "new_branch (optional) will make a new branch from `branch` before creating the file",
- "type": "string",
- "x-go-name": "NewBranchName"
- },
- "signoff": {
- "description": "Add a Signed-off-by trailer by the committer at the end of the commit log message.",
- "type": "boolean",
- "x-go-name": "Signoff"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "ChangedFile": {
- "description": "ChangedFile store information about files affected by the pull request",
- "type": "object",
- "properties": {
- "additions": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Additions"
- },
- "changes": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Changes"
- },
- "contents_url": {
- "type": "string",
- "x-go-name": "ContentsURL"
- },
- "deletions": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Deletions"
- },
- "filename": {
- "type": "string",
- "x-go-name": "Filename"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "previous_filename": {
- "type": "string",
- "x-go-name": "PreviousFilename"
- },
- "raw_url": {
- "type": "string",
- "x-go-name": "RawURL"
- },
- "status": {
- "type": "string",
- "x-go-name": "Status"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CombinedStatus": {
- "description": "CombinedStatus holds the combined state of several statuses for a single commit",
- "type": "object",
- "properties": {
- "commit_url": {
- "type": "string",
- "x-go-name": "CommitURL"
- },
- "repository": {
- "$ref": "#/definitions/Repository"
- },
- "sha": {
- "type": "string",
- "x-go-name": "SHA"
- },
- "state": {
- "$ref": "#/definitions/CommitStatusState"
- },
- "statuses": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/CommitStatus"
- },
- "x-go-name": "Statuses"
- },
- "total_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "TotalCount"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Comment": {
- "description": "Comment represents a comment on a commit or issue",
- "type": "object",
- "properties": {
- "assets": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Attachment"
- },
- "x-go-name": "Attachments"
- },
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "issue_url": {
- "type": "string",
- "x-go-name": "IssueURL"
- },
- "original_author": {
- "type": "string",
- "x-go-name": "OriginalAuthor"
- },
- "original_author_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "OriginalAuthorID"
- },
- "pull_request_url": {
- "type": "string",
- "x-go-name": "PRURL"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- },
- "user": {
- "$ref": "#/definitions/User"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Commit": {
- "type": "object",
- "title": "Commit contains information generated from a Git commit.",
- "properties": {
- "author": {
- "$ref": "#/definitions/User"
- },
- "commit": {
- "$ref": "#/definitions/RepoCommit"
- },
- "committer": {
- "$ref": "#/definitions/User"
- },
- "created": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "files": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/CommitAffectedFiles"
- },
- "x-go-name": "Files"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "parents": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/CommitMeta"
- },
- "x-go-name": "Parents"
- },
- "sha": {
- "type": "string",
- "x-go-name": "SHA"
- },
- "stats": {
- "$ref": "#/definitions/CommitStats"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CommitAffectedFiles": {
- "description": "CommitAffectedFiles store information about files affected by the commit",
- "type": "object",
- "properties": {
- "filename": {
- "type": "string",
- "x-go-name": "Filename"
- },
- "status": {
- "type": "string",
- "x-go-name": "Status"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CommitDateOptions": {
- "description": "CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE",
- "type": "object",
- "properties": {
- "author": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Author"
- },
- "committer": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Committer"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CommitMeta": {
- "type": "object",
- "title": "CommitMeta contains meta information of a commit in terms of API.",
- "properties": {
- "created": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "sha": {
- "type": "string",
- "x-go-name": "SHA"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CommitStats": {
- "description": "CommitStats is statistics for a RepoCommit",
- "type": "object",
- "properties": {
- "additions": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Additions"
- },
- "deletions": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Deletions"
- },
- "total": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Total"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CommitStatus": {
- "description": "CommitStatus holds a single status of a single Commit",
- "type": "object",
- "properties": {
- "context": {
- "type": "string",
- "x-go-name": "Context"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "creator": {
- "$ref": "#/definitions/User"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "status": {
- "$ref": "#/definitions/CommitStatusState"
- },
- "target_url": {
- "type": "string",
- "x-go-name": "TargetURL"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CommitStatusState": {
- "description": "CommitStatusState holds the state of a CommitStatus\nIt can be \"pending\", \"success\", \"error\" and \"failure\"",
- "type": "string",
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CommitUser": {
- "type": "object",
- "title": "CommitUser contains information of a user in the context of a commit.",
- "properties": {
- "date": {
- "type": "string",
- "x-go-name": "Date"
- },
- "email": {
- "type": "string",
- "format": "email",
- "x-go-name": "Email"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Compare": {
- "type": "object",
- "title": "Compare represents a comparison between two commits.",
- "properties": {
- "commits": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Commit"
- },
- "x-go-name": "Commits"
- },
- "total_commits": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "TotalCommits"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "ContentsResponse": {
- "description": "ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content",
- "type": "object",
- "properties": {
- "_links": {
- "$ref": "#/definitions/FileLinksResponse"
- },
- "content": {
- "description": "`content` is populated when `type` is `file`, otherwise null",
- "type": "string",
- "x-go-name": "Content"
- },
- "download_url": {
- "type": "string",
- "x-go-name": "DownloadURL"
- },
- "encoding": {
- "description": "`encoding` is populated when `type` is `file`, otherwise null",
- "type": "string",
- "x-go-name": "Encoding"
- },
- "git_url": {
- "type": "string",
- "x-go-name": "GitURL"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "last_commit_sha": {
- "type": "string",
- "x-go-name": "LastCommitSHA"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "path": {
- "type": "string",
- "x-go-name": "Path"
- },
- "sha": {
- "type": "string",
- "x-go-name": "SHA"
- },
- "size": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Size"
- },
- "submodule_git_url": {
- "description": "`submodule_git_url` is populated when `type` is `submodule`, otherwise null",
- "type": "string",
- "x-go-name": "SubmoduleGitURL"
- },
- "target": {
- "description": "`target` is populated when `type` is `symlink`, otherwise null",
- "type": "string",
- "x-go-name": "Target"
- },
- "type": {
- "description": "`type` will be `file`, `dir`, `symlink`, or `submodule`",
- "type": "string",
- "x-go-name": "Type"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateAccessTokenOption": {
- "description": "CreateAccessTokenOption options when create access token",
- "type": "object",
- "required": [
- "name"
- ],
- "properties": {
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Scopes"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateBranchProtectionOption": {
- "description": "CreateBranchProtectionOption options for creating a branch protection",
- "type": "object",
- "properties": {
- "approvals_whitelist_teams": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "ApprovalsWhitelistTeams"
- },
- "approvals_whitelist_username": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "ApprovalsWhitelistUsernames"
- },
- "block_on_official_review_requests": {
- "type": "boolean",
- "x-go-name": "BlockOnOfficialReviewRequests"
- },
- "block_on_outdated_branch": {
- "type": "boolean",
- "x-go-name": "BlockOnOutdatedBranch"
- },
- "block_on_rejected_reviews": {
- "type": "boolean",
- "x-go-name": "BlockOnRejectedReviews"
- },
- "branch_name": {
- "description": "Deprecated: true",
- "type": "string",
- "x-go-name": "BranchName"
- },
- "dismiss_stale_approvals": {
- "type": "boolean",
- "x-go-name": "DismissStaleApprovals"
- },
- "enable_approvals_whitelist": {
- "type": "boolean",
- "x-go-name": "EnableApprovalsWhitelist"
- },
- "enable_merge_whitelist": {
- "type": "boolean",
- "x-go-name": "EnableMergeWhitelist"
- },
- "enable_push": {
- "type": "boolean",
- "x-go-name": "EnablePush"
- },
- "enable_push_whitelist": {
- "type": "boolean",
- "x-go-name": "EnablePushWhitelist"
- },
- "enable_status_check": {
- "type": "boolean",
- "x-go-name": "EnableStatusCheck"
- },
- "ignore_stale_approvals": {
- "type": "boolean",
- "x-go-name": "IgnoreStaleApprovals"
- },
- "merge_whitelist_teams": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "MergeWhitelistTeams"
- },
- "merge_whitelist_usernames": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "MergeWhitelistUsernames"
- },
- "protected_file_patterns": {
- "type": "string",
- "x-go-name": "ProtectedFilePatterns"
- },
- "push_whitelist_deploy_keys": {
- "type": "boolean",
- "x-go-name": "PushWhitelistDeployKeys"
- },
- "push_whitelist_teams": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "PushWhitelistTeams"
- },
- "push_whitelist_usernames": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "PushWhitelistUsernames"
- },
- "require_signed_commits": {
- "type": "boolean",
- "x-go-name": "RequireSignedCommits"
- },
- "required_approvals": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "RequiredApprovals"
- },
- "rule_name": {
- "type": "string",
- "x-go-name": "RuleName"
- },
- "status_check_contexts": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "StatusCheckContexts"
- },
- "unprotected_file_patterns": {
- "type": "string",
- "x-go-name": "UnprotectedFilePatterns"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateBranchRepoOption": {
- "description": "CreateBranchRepoOption options when creating a branch in a repository",
- "type": "object",
- "required": [
- "new_branch_name"
- ],
- "properties": {
- "new_branch_name": {
- "description": "Name of the branch to create",
- "type": "string",
- "uniqueItems": true,
- "x-go-name": "BranchName"
- },
- "old_branch_name": {
- "description": "Deprecated: true\nName of the old branch to create from",
- "type": "string",
- "uniqueItems": true,
- "x-go-name": "OldBranchName"
- },
- "old_ref_name": {
- "description": "Name of the old branch/tag/commit to create from",
- "type": "string",
- "uniqueItems": true,
- "x-go-name": "OldRefName"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateEmailOption": {
- "description": "CreateEmailOption options when creating email addresses",
- "type": "object",
- "properties": {
- "emails": {
- "description": "email addresses to add",
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Emails"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateFileOptions": {
- "description": "CreateFileOptions options for creating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
- "type": "object",
- "required": [
- "content"
- ],
- "properties": {
- "author": {
- "$ref": "#/definitions/Identity"
- },
- "branch": {
- "description": "branch (optional) to base this file from. if not given, the default branch is used",
- "type": "string",
- "x-go-name": "BranchName"
- },
- "committer": {
- "$ref": "#/definitions/Identity"
- },
- "content": {
- "description": "content must be base64 encoded",
- "type": "string",
- "x-go-name": "ContentBase64"
- },
- "dates": {
- "$ref": "#/definitions/CommitDateOptions"
- },
- "message": {
- "description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
- "type": "string",
- "x-go-name": "Message"
- },
- "new_branch": {
- "description": "new_branch (optional) will make a new branch from `branch` before creating the file",
- "type": "string",
- "x-go-name": "NewBranchName"
- },
- "signoff": {
- "description": "Add a Signed-off-by trailer by the committer at the end of the commit log message.",
- "type": "boolean",
- "x-go-name": "Signoff"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateForkOption": {
- "description": "CreateForkOption options for creating a fork",
- "type": "object",
- "properties": {
- "name": {
- "description": "name of the forked repository",
- "type": "string",
- "x-go-name": "Name"
- },
- "organization": {
- "description": "organization name, if forking into an organization",
- "type": "string",
- "x-go-name": "Organization"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateGPGKeyOption": {
- "description": "CreateGPGKeyOption options create user GPG key",
- "type": "object",
- "required": [
- "armored_public_key"
- ],
- "properties": {
- "armored_public_key": {
- "description": "An armored GPG key to add",
- "type": "string",
- "uniqueItems": true,
- "x-go-name": "ArmoredKey"
- },
- "armored_signature": {
- "type": "string",
- "x-go-name": "Signature"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateHookOption": {
- "description": "CreateHookOption options when create a hook",
- "type": "object",
- "required": [
- "type",
- "config"
- ],
- "properties": {
- "active": {
- "type": "boolean",
- "default": false,
- "x-go-name": "Active"
- },
- "authorization_header": {
- "type": "string",
- "x-go-name": "AuthorizationHeader"
- },
- "branch_filter": {
- "type": "string",
- "x-go-name": "BranchFilter"
- },
- "config": {
- "$ref": "#/definitions/CreateHookOptionConfig"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Events"
- },
- "type": {
- "type": "string",
- "enum": [
- "dingtalk",
- "discord",
- "gitea",
- "gogs",
- "msteams",
- "slack",
- "telegram",
- "feishu",
- "wechatwork",
- "packagist"
- ],
- "x-go-name": "Type"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateHookOptionConfig": {
- "description": "CreateHookOptionConfig has all config options in it\nrequired are \"content_type\" and \"url\" Required",
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateIssueCommentOption": {
- "description": "CreateIssueCommentOption options for creating a comment on an issue",
- "type": "object",
- "required": [
- "body"
- ],
- "properties": {
- "body": {
- "type": "string",
- "x-go-name": "Body"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateIssueOption": {
- "description": "CreateIssueOption options to create one issue",
- "type": "object",
- "required": [
- "title"
- ],
- "properties": {
- "assignee": {
- "description": "deprecated",
- "type": "string",
- "x-go-name": "Assignee"
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Assignees"
- },
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "closed": {
- "type": "boolean",
- "x-go-name": "Closed"
- },
- "due_date": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Deadline"
- },
- "labels": {
- "description": "list of label ids",
- "type": "array",
- "items": {
- "type": "integer",
- "format": "int64"
- },
- "x-go-name": "Labels"
- },
- "milestone": {
- "description": "milestone id",
- "type": "integer",
- "format": "int64",
- "x-go-name": "Milestone"
- },
- "ref": {
- "type": "string",
- "x-go-name": "Ref"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateKeyOption": {
- "description": "CreateKeyOption options when creating a key",
- "type": "object",
- "required": [
- "title",
- "key"
- ],
- "properties": {
- "key": {
- "description": "An armored SSH key to add",
- "type": "string",
- "uniqueItems": true,
- "x-go-name": "Key"
- },
- "read_only": {
- "description": "Describe if the key has only read access or read/write",
- "type": "boolean",
- "x-go-name": "ReadOnly"
- },
- "title": {
- "description": "Title of the key to add",
- "type": "string",
- "uniqueItems": true,
- "x-go-name": "Title"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateLabelOption": {
- "description": "CreateLabelOption options for creating a label",
- "type": "object",
- "required": [
- "name",
- "color"
- ],
- "properties": {
- "color": {
- "type": "string",
- "x-go-name": "Color",
- "example": "#00aabb"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "exclusive": {
- "type": "boolean",
- "x-go-name": "Exclusive",
- "example": false
- },
- "is_archived": {
- "type": "boolean",
- "x-go-name": "IsArchived",
- "example": false
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateMilestoneOption": {
- "description": "CreateMilestoneOption options for creating a milestone",
- "type": "object",
- "properties": {
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "due_on": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Deadline"
- },
- "state": {
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "x-go-name": "State"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateOAuth2ApplicationOptions": {
- "description": "CreateOAuth2ApplicationOptions holds options to create an oauth2 application",
- "type": "object",
- "properties": {
- "confidential_client": {
- "type": "boolean",
- "x-go-name": "ConfidentialClient"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "redirect_uris": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "RedirectURIs"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateOrUpdateSecretOption": {
- "description": "CreateOrUpdateSecretOption options when creating or updating secret",
- "type": "object",
- "required": [
- "data"
- ],
- "properties": {
- "data": {
- "description": "Data of the secret to update",
- "type": "string",
- "x-go-name": "Data"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateOrgOption": {
- "description": "CreateOrgOption options for creating an organization",
- "type": "object",
- "required": [
- "username"
- ],
- "properties": {
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "email": {
- "type": "string",
- "x-go-name": "Email"
- },
- "full_name": {
- "type": "string",
- "x-go-name": "FullName"
- },
- "location": {
- "type": "string",
- "x-go-name": "Location"
- },
- "repo_admin_change_team_access": {
- "type": "boolean",
- "x-go-name": "RepoAdminChangeTeamAccess"
- },
- "username": {
- "type": "string",
- "x-go-name": "UserName"
- },
- "visibility": {
- "description": "possible values are `public` (default), `limited` or `private`",
- "type": "string",
- "enum": [
- "public",
- "limited",
- "private"
- ],
- "x-go-name": "Visibility"
- },
- "website": {
- "type": "string",
- "x-go-name": "Website"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreatePullRequestOption": {
- "description": "CreatePullRequestOption options when creating a pull request",
- "type": "object",
- "properties": {
- "assignee": {
- "type": "string",
- "x-go-name": "Assignee"
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Assignees"
- },
- "base": {
- "type": "string",
- "x-go-name": "Base"
- },
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "due_date": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Deadline"
- },
- "head": {
- "type": "string",
- "x-go-name": "Head"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "integer",
- "format": "int64"
- },
- "x-go-name": "Labels"
- },
- "milestone": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Milestone"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreatePullReviewComment": {
- "description": "CreatePullReviewComment represent a review comment for creation api",
- "type": "object",
- "properties": {
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "new_position": {
- "description": "if comment to new file line or 0",
- "type": "integer",
- "format": "int64",
- "x-go-name": "NewLineNum"
- },
- "old_position": {
- "description": "if comment to old file line or 0",
- "type": "integer",
- "format": "int64",
- "x-go-name": "OldLineNum"
- },
- "path": {
- "description": "the tree path",
- "type": "string",
- "x-go-name": "Path"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreatePullReviewOptions": {
- "description": "CreatePullReviewOptions are options to create a pull review",
- "type": "object",
- "properties": {
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "comments": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/CreatePullReviewComment"
- },
- "x-go-name": "Comments"
- },
- "commit_id": {
- "type": "string",
- "x-go-name": "CommitID"
- },
- "event": {
- "$ref": "#/definitions/ReviewStateType"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreatePushMirrorOption": {
- "type": "object",
- "title": "CreatePushMirrorOption represents need information to create a push mirror of a repository.",
- "properties": {
- "interval": {
- "type": "string",
- "x-go-name": "Interval"
- },
- "remote_address": {
- "type": "string",
- "x-go-name": "RemoteAddress"
- },
- "remote_password": {
- "type": "string",
- "x-go-name": "RemotePassword"
- },
- "remote_username": {
- "type": "string",
- "x-go-name": "RemoteUsername"
- },
- "sync_on_commit": {
- "type": "boolean",
- "x-go-name": "SyncOnCommit"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateReleaseOption": {
- "description": "CreateReleaseOption options when creating a release",
- "type": "object",
- "required": [
- "tag_name"
- ],
- "properties": {
- "body": {
- "type": "string",
- "x-go-name": "Note"
- },
- "draft": {
- "type": "boolean",
- "x-go-name": "IsDraft"
- },
- "name": {
- "type": "string",
- "x-go-name": "Title"
- },
- "prerelease": {
- "type": "boolean",
- "x-go-name": "IsPrerelease"
- },
- "tag_name": {
- "type": "string",
- "x-go-name": "TagName"
- },
- "target_commitish": {
- "type": "string",
- "x-go-name": "Target"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateRepoOption": {
- "description": "CreateRepoOption options when creating repository",
- "type": "object",
- "required": [
- "name"
- ],
- "properties": {
- "auto_init": {
- "description": "Whether the repository should be auto-initialized?",
- "type": "boolean",
- "x-go-name": "AutoInit"
- },
- "default_branch": {
- "description": "DefaultBranch of the repository (used when initializes and in template)",
- "type": "string",
- "x-go-name": "DefaultBranch"
- },
- "description": {
- "description": "Description of the repository to create",
- "type": "string",
- "x-go-name": "Description"
- },
- "gitignores": {
- "description": "Gitignores to use",
- "type": "string",
- "x-go-name": "Gitignores"
- },
- "issue_labels": {
- "description": "Label-Set to use",
- "type": "string",
- "x-go-name": "IssueLabels"
- },
- "license": {
- "description": "License to use",
- "type": "string",
- "x-go-name": "License"
- },
- "name": {
- "description": "Name of the repository to create",
- "type": "string",
- "uniqueItems": true,
- "x-go-name": "Name"
- },
- "object_format_name": {
- "description": "ObjectFormatName of the underlying git repository",
- "type": "string",
- "enum": [
- "sha1",
- "sha256"
- ],
- "x-go-name": "ObjectFormatName"
- },
- "private": {
- "description": "Whether the repository is private",
- "type": "boolean",
- "x-go-name": "Private"
- },
- "readme": {
- "description": "Readme of the repository to create",
- "type": "string",
- "x-go-name": "Readme"
- },
- "template": {
- "description": "Whether the repository is template",
- "type": "boolean",
- "x-go-name": "Template"
- },
- "trust_model": {
- "description": "TrustModel of the repository",
- "type": "string",
- "enum": [
- "default",
- "collaborator",
- "committer",
- "collaboratorcommitter"
- ],
- "x-go-name": "TrustModel"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateStatusOption": {
- "description": "CreateStatusOption holds the information needed to create a new CommitStatus for a Commit",
- "type": "object",
- "properties": {
- "context": {
- "type": "string",
- "x-go-name": "Context"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "state": {
- "$ref": "#/definitions/CommitStatusState"
- },
- "target_url": {
- "type": "string",
- "x-go-name": "TargetURL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateTagOption": {
- "description": "CreateTagOption options when creating a tag",
- "type": "object",
- "required": [
- "tag_name"
- ],
- "properties": {
- "message": {
- "type": "string",
- "x-go-name": "Message"
- },
- "tag_name": {
- "type": "string",
- "x-go-name": "TagName"
- },
- "target": {
- "type": "string",
- "x-go-name": "Target"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateTeamOption": {
- "description": "CreateTeamOption options for creating a team",
- "type": "object",
- "required": [
- "name"
- ],
- "properties": {
- "can_create_org_repo": {
- "type": "boolean",
- "x-go-name": "CanCreateOrgRepo"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "includes_all_repositories": {
- "type": "boolean",
- "x-go-name": "IncludesAllRepositories"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "permission": {
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ],
- "x-go-name": "Permission"
- },
- "units": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Units",
- "example": [
- "repo.actions",
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.ext_wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
- ]
- },
- "units_map": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "x-go-name": "UnitsMap",
- "example": "{\"repo.actions\",\"repo.packages\",\"repo.code\":\"read\",\"repo.issues\":\"write\",\"repo.ext_issues\":\"none\",\"repo.wiki\":\"admin\",\"repo.pulls\":\"owner\",\"repo.releases\":\"none\",\"repo.projects\":\"none\",\"repo.ext_wiki\":\"none\"}"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateUserOption": {
- "description": "CreateUserOption create user options",
- "type": "object",
- "required": [
- "username",
- "email"
- ],
- "properties": {
- "created_at": {
- "description": "For explicitly setting the user creation timestamp. Useful when users are\nmigrated from other systems. When omitted, the user's creation timestamp\nwill be set to \"now\".",
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "email": {
- "type": "string",
- "format": "email",
- "x-go-name": "Email"
- },
- "full_name": {
- "type": "string",
- "x-go-name": "FullName"
- },
- "login_name": {
- "type": "string",
- "x-go-name": "LoginName"
- },
- "must_change_password": {
- "type": "boolean",
- "x-go-name": "MustChangePassword"
- },
- "password": {
- "type": "string",
- "x-go-name": "Password"
- },
- "restricted": {
- "type": "boolean",
- "x-go-name": "Restricted"
- },
- "send_notify": {
- "type": "boolean",
- "x-go-name": "SendNotify"
- },
- "source_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "SourceID"
- },
- "username": {
- "type": "string",
- "x-go-name": "Username"
- },
- "visibility": {
- "type": "string",
- "x-go-name": "Visibility"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateVariableOption": {
- "description": "CreateVariableOption the option when creating variable",
- "type": "object",
- "required": [
- "value"
- ],
- "properties": {
- "value": {
- "description": "Value of the variable to create",
- "type": "string",
- "x-go-name": "Value"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateWikiPageOptions": {
- "description": "CreateWikiPageOptions form for creating wiki",
- "type": "object",
- "properties": {
- "content_base64": {
- "description": "content must be base64 encoded",
- "type": "string",
- "x-go-name": "ContentBase64"
- },
- "message": {
- "description": "optional commit message summarizing the change",
- "type": "string",
- "x-go-name": "Message"
- },
- "title": {
- "description": "page title. leave empty to keep unchanged",
- "type": "string",
- "x-go-name": "Title"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Cron": {
- "description": "Cron represents a Cron task",
- "type": "object",
- "properties": {
- "exec_times": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ExecTimes"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "next": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Next"
- },
- "prev": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Prev"
- },
- "schedule": {
- "type": "string",
- "x-go-name": "Schedule"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "DeleteEmailOption": {
- "description": "DeleteEmailOption options when deleting email addresses",
- "type": "object",
- "properties": {
- "emails": {
- "description": "email addresses to delete",
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Emails"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "DeleteFileOptions": {
- "description": "DeleteFileOptions options for deleting files (used for other File structs below)\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
- "type": "object",
- "required": [
- "sha"
- ],
- "properties": {
- "author": {
- "$ref": "#/definitions/Identity"
- },
- "branch": {
- "description": "branch (optional) to base this file from. if not given, the default branch is used",
- "type": "string",
- "x-go-name": "BranchName"
- },
- "committer": {
- "$ref": "#/definitions/Identity"
- },
- "dates": {
- "$ref": "#/definitions/CommitDateOptions"
- },
- "message": {
- "description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
- "type": "string",
- "x-go-name": "Message"
- },
- "new_branch": {
- "description": "new_branch (optional) will make a new branch from `branch` before creating the file",
- "type": "string",
- "x-go-name": "NewBranchName"
- },
- "sha": {
- "description": "sha is the SHA for the file that already exists",
- "type": "string",
- "x-go-name": "SHA"
- },
- "signoff": {
- "description": "Add a Signed-off-by trailer by the committer at the end of the commit log message.",
- "type": "boolean",
- "x-go-name": "Signoff"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "DeployKey": {
- "description": "DeployKey a deploy key",
- "type": "object",
- "properties": {
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "fingerprint": {
- "type": "string",
- "x-go-name": "Fingerprint"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "key": {
- "type": "string",
- "x-go-name": "Key"
- },
- "key_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "KeyID"
- },
- "read_only": {
- "type": "boolean",
- "x-go-name": "ReadOnly"
- },
- "repository": {
- "$ref": "#/definitions/Repository"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "DismissPullReviewOptions": {
- "description": "DismissPullReviewOptions are options to dismiss a pull review",
- "type": "object",
- "properties": {
- "message": {
- "type": "string",
- "x-go-name": "Message"
- },
- "priors": {
- "type": "boolean",
- "x-go-name": "Priors"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditAttachmentOptions": {
- "description": "EditAttachmentOptions options for editing attachments",
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "x-go-name": "Name"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditBranchProtectionOption": {
- "description": "EditBranchProtectionOption options for editing a branch protection",
- "type": "object",
- "properties": {
- "approvals_whitelist_teams": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "ApprovalsWhitelistTeams"
- },
- "approvals_whitelist_username": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "ApprovalsWhitelistUsernames"
- },
- "block_on_official_review_requests": {
- "type": "boolean",
- "x-go-name": "BlockOnOfficialReviewRequests"
- },
- "block_on_outdated_branch": {
- "type": "boolean",
- "x-go-name": "BlockOnOutdatedBranch"
- },
- "block_on_rejected_reviews": {
- "type": "boolean",
- "x-go-name": "BlockOnRejectedReviews"
- },
- "dismiss_stale_approvals": {
- "type": "boolean",
- "x-go-name": "DismissStaleApprovals"
- },
- "enable_approvals_whitelist": {
- "type": "boolean",
- "x-go-name": "EnableApprovalsWhitelist"
- },
- "enable_merge_whitelist": {
- "type": "boolean",
- "x-go-name": "EnableMergeWhitelist"
- },
- "enable_push": {
- "type": "boolean",
- "x-go-name": "EnablePush"
- },
- "enable_push_whitelist": {
- "type": "boolean",
- "x-go-name": "EnablePushWhitelist"
- },
- "enable_status_check": {
- "type": "boolean",
- "x-go-name": "EnableStatusCheck"
- },
- "ignore_stale_approvals": {
- "type": "boolean",
- "x-go-name": "IgnoreStaleApprovals"
- },
- "merge_whitelist_teams": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "MergeWhitelistTeams"
- },
- "merge_whitelist_usernames": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "MergeWhitelistUsernames"
- },
- "protected_file_patterns": {
- "type": "string",
- "x-go-name": "ProtectedFilePatterns"
- },
- "push_whitelist_deploy_keys": {
- "type": "boolean",
- "x-go-name": "PushWhitelistDeployKeys"
- },
- "push_whitelist_teams": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "PushWhitelistTeams"
- },
- "push_whitelist_usernames": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "PushWhitelistUsernames"
- },
- "require_signed_commits": {
- "type": "boolean",
- "x-go-name": "RequireSignedCommits"
- },
- "required_approvals": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "RequiredApprovals"
- },
- "status_check_contexts": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "StatusCheckContexts"
- },
- "unprotected_file_patterns": {
- "type": "string",
- "x-go-name": "UnprotectedFilePatterns"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditDeadlineOption": {
- "description": "EditDeadlineOption options for creating a deadline",
- "type": "object",
- "required": [
- "due_date"
- ],
- "properties": {
- "due_date": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Deadline"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditGitHookOption": {
- "description": "EditGitHookOption options when modifying one Git hook",
- "type": "object",
- "properties": {
- "content": {
- "type": "string",
- "x-go-name": "Content"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditHookOption": {
- "description": "EditHookOption options when modify one hook",
- "type": "object",
- "properties": {
- "active": {
- "type": "boolean",
- "x-go-name": "Active"
- },
- "authorization_header": {
- "type": "string",
- "x-go-name": "AuthorizationHeader"
- },
- "branch_filter": {
- "type": "string",
- "x-go-name": "BranchFilter"
- },
- "config": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "x-go-name": "Config"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Events"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditIssueCommentOption": {
- "description": "EditIssueCommentOption options for editing a comment",
- "type": "object",
- "required": [
- "body"
- ],
- "properties": {
- "body": {
- "type": "string",
- "x-go-name": "Body"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditIssueOption": {
- "description": "EditIssueOption options for editing an issue",
- "type": "object",
- "properties": {
- "assignee": {
- "description": "deprecated",
- "type": "string",
- "x-go-name": "Assignee"
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Assignees"
- },
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "due_date": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Deadline"
- },
- "milestone": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Milestone"
- },
- "ref": {
- "type": "string",
- "x-go-name": "Ref"
- },
- "state": {
- "type": "string",
- "x-go-name": "State"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- },
- "unset_due_date": {
- "type": "boolean",
- "x-go-name": "RemoveDeadline"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditLabelOption": {
- "description": "EditLabelOption options for editing a label",
- "type": "object",
- "properties": {
- "color": {
- "type": "string",
- "x-go-name": "Color",
- "example": "#00aabb"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "exclusive": {
- "type": "boolean",
- "x-go-name": "Exclusive",
- "example": false
- },
- "is_archived": {
- "type": "boolean",
- "x-go-name": "IsArchived",
- "example": false
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditMilestoneOption": {
- "description": "EditMilestoneOption options for editing a milestone",
- "type": "object",
- "properties": {
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "due_on": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Deadline"
- },
- "state": {
- "type": "string",
- "x-go-name": "State"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditOrgOption": {
- "description": "EditOrgOption options for editing an organization",
- "type": "object",
- "properties": {
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "email": {
- "type": "string",
- "x-go-name": "Email"
- },
- "full_name": {
- "type": "string",
- "x-go-name": "FullName"
- },
- "location": {
- "type": "string",
- "x-go-name": "Location"
- },
- "repo_admin_change_team_access": {
- "type": "boolean",
- "x-go-name": "RepoAdminChangeTeamAccess"
- },
- "visibility": {
- "description": "possible values are `public`, `limited` or `private`",
- "type": "string",
- "enum": [
- "public",
- "limited",
- "private"
- ],
- "x-go-name": "Visibility"
- },
- "website": {
- "type": "string",
- "x-go-name": "Website"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditPullRequestOption": {
- "description": "EditPullRequestOption options when modify pull request",
- "type": "object",
- "properties": {
- "allow_maintainer_edit": {
- "type": "boolean",
- "x-go-name": "AllowMaintainerEdit"
- },
- "assignee": {
- "type": "string",
- "x-go-name": "Assignee"
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Assignees"
- },
- "base": {
- "type": "string",
- "x-go-name": "Base"
- },
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "due_date": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Deadline"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "integer",
- "format": "int64"
- },
- "x-go-name": "Labels"
- },
- "milestone": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Milestone"
- },
- "state": {
- "type": "string",
- "x-go-name": "State"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- },
- "unset_due_date": {
- "type": "boolean",
- "x-go-name": "RemoveDeadline"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditReactionOption": {
- "description": "EditReactionOption contain the reaction type",
- "type": "object",
- "properties": {
- "content": {
- "type": "string",
- "x-go-name": "Reaction"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditReleaseOption": {
- "description": "EditReleaseOption options when editing a release",
- "type": "object",
- "properties": {
- "body": {
- "type": "string",
- "x-go-name": "Note"
- },
- "draft": {
- "type": "boolean",
- "x-go-name": "IsDraft"
- },
- "name": {
- "type": "string",
- "x-go-name": "Title"
- },
- "prerelease": {
- "type": "boolean",
- "x-go-name": "IsPrerelease"
- },
- "tag_name": {
- "type": "string",
- "x-go-name": "TagName"
- },
- "target_commitish": {
- "type": "string",
- "x-go-name": "Target"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditRepoOption": {
- "description": "EditRepoOption options when editing a repository's properties",
- "type": "object",
- "properties": {
- "allow_fast_forward_only_merge": {
- "description": "either `true` to allow fast-forward-only merging pull requests, or `false` to prevent fast-forward-only merging.",
- "type": "boolean",
- "x-go-name": "AllowFastForwardOnly"
- },
- "allow_manual_merge": {
- "description": "either `true` to allow mark pr as merged manually, or `false` to prevent it.",
- "type": "boolean",
- "x-go-name": "AllowManualMerge"
- },
- "allow_merge_commits": {
- "description": "either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "x-go-name": "AllowMerge"
- },
- "allow_rebase": {
- "description": "either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "x-go-name": "AllowRebase"
- },
- "allow_rebase_explicit": {
- "description": "either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits.",
- "type": "boolean",
- "x-go-name": "AllowRebaseMerge"
- },
- "allow_rebase_update": {
- "description": "either `true` to allow updating pull request branch by rebase, or `false` to prevent it.",
- "type": "boolean",
- "x-go-name": "AllowRebaseUpdate"
- },
- "allow_squash_merge": {
- "description": "either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "x-go-name": "AllowSquash"
- },
- "archived": {
- "description": "set to `true` to archive this repository.",
- "type": "boolean",
- "x-go-name": "Archived"
- },
- "autodetect_manual_merge": {
- "description": "either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur.",
- "type": "boolean",
- "x-go-name": "AutodetectManualMerge"
- },
- "default_allow_maintainer_edit": {
- "description": "set to `true` to allow edits from maintainers by default",
- "type": "boolean",
- "x-go-name": "DefaultAllowMaintainerEdit"
- },
- "default_branch": {
- "description": "sets the default branch for this repository.",
- "type": "string",
- "x-go-name": "DefaultBranch"
- },
- "default_delete_branch_after_merge": {
- "description": "set to `true` to delete pr branch after merge by default",
- "type": "boolean",
- "x-go-name": "DefaultDeleteBranchAfterMerge"
- },
- "default_merge_style": {
- "description": "set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", \"squash\", or \"fast-forward-only\".",
- "type": "string",
- "x-go-name": "DefaultMergeStyle"
- },
- "description": {
- "description": "a short description of the repository.",
- "type": "string",
- "x-go-name": "Description"
- },
- "enable_prune": {
- "description": "enable prune - remove obsolete remote-tracking references when mirroring",
- "type": "boolean",
- "x-go-name": "EnablePrune"
- },
- "external_tracker": {
- "$ref": "#/definitions/ExternalTracker"
- },
- "external_wiki": {
- "$ref": "#/definitions/ExternalWiki"
- },
- "has_actions": {
- "description": "either `true` to enable actions unit, or `false` to disable them.",
- "type": "boolean",
- "x-go-name": "HasActions"
- },
- "has_issues": {
- "description": "either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "x-go-name": "HasIssues"
- },
- "has_packages": {
- "description": "either `true` to enable packages unit, or `false` to disable them.",
- "type": "boolean",
- "x-go-name": "HasPackages"
- },
- "has_projects": {
- "description": "either `true` to enable project unit, or `false` to disable them.",
- "type": "boolean",
- "x-go-name": "HasProjects"
- },
- "has_pull_requests": {
- "description": "either `true` to allow pull requests, or `false` to prevent pull request.",
- "type": "boolean",
- "x-go-name": "HasPullRequests"
- },
- "has_releases": {
- "description": "either `true` to enable releases unit, or `false` to disable them.",
- "type": "boolean",
- "x-go-name": "HasReleases"
- },
- "has_wiki": {
- "description": "either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "x-go-name": "HasWiki"
- },
- "ignore_whitespace_conflicts": {
- "description": "either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace.",
- "type": "boolean",
- "x-go-name": "IgnoreWhitespaceConflicts"
- },
- "internal_tracker": {
- "$ref": "#/definitions/InternalTracker"
- },
- "mirror_interval": {
- "description": "set to a string like `8h30m0s` to set the mirror interval time",
- "type": "string",
- "x-go-name": "MirrorInterval"
- },
- "name": {
- "description": "name of the repository",
- "type": "string",
- "uniqueItems": true,
- "x-go-name": "Name"
- },
- "private": {
- "description": "either `true` to make the repository private or `false` to make it public.\nNote: you will get a 422 error if the organization restricts changing repository visibility to organization\nowners and a non-owner tries to change the value of private.",
- "type": "boolean",
- "x-go-name": "Private"
- },
- "projects_mode": {
- "description": "`repo` to only allow repo-level projects, `owner` to only allow owner projects, `all` to allow both.",
- "type": "string",
- "x-go-name": "ProjectsMode"
- },
- "template": {
- "description": "either `true` to make this repository a template or `false` to make it a normal repository",
- "type": "boolean",
- "x-go-name": "Template"
- },
- "website": {
- "description": "a URL with more information about the repository.",
- "type": "string",
- "x-go-name": "Website"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditTeamOption": {
- "description": "EditTeamOption options for editing a team",
- "type": "object",
- "required": [
- "name"
- ],
- "properties": {
- "can_create_org_repo": {
- "type": "boolean",
- "x-go-name": "CanCreateOrgRepo"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "includes_all_repositories": {
- "type": "boolean",
- "x-go-name": "IncludesAllRepositories"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "permission": {
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ],
- "x-go-name": "Permission"
- },
- "units": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Units",
- "example": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
- ]
- },
- "units_map": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "x-go-name": "UnitsMap",
- "example": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
- }
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditUserOption": {
- "description": "EditUserOption edit user options",
- "type": "object",
- "required": [
- "source_id",
- "login_name"
- ],
- "properties": {
- "active": {
- "type": "boolean",
- "x-go-name": "Active"
- },
- "admin": {
- "type": "boolean",
- "x-go-name": "Admin"
- },
- "allow_create_organization": {
- "type": "boolean",
- "x-go-name": "AllowCreateOrganization"
- },
- "allow_git_hook": {
- "type": "boolean",
- "x-go-name": "AllowGitHook"
- },
- "allow_import_local": {
- "type": "boolean",
- "x-go-name": "AllowImportLocal"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "email": {
- "type": "string",
- "format": "email",
- "x-go-name": "Email"
- },
- "full_name": {
- "type": "string",
- "x-go-name": "FullName"
- },
- "location": {
- "type": "string",
- "x-go-name": "Location"
- },
- "login_name": {
- "type": "string",
- "x-go-name": "LoginName"
- },
- "max_repo_creation": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "MaxRepoCreation"
- },
- "must_change_password": {
- "type": "boolean",
- "x-go-name": "MustChangePassword"
- },
- "password": {
- "type": "string",
- "x-go-name": "Password"
- },
- "prohibit_login": {
- "type": "boolean",
- "x-go-name": "ProhibitLogin"
- },
- "restricted": {
- "type": "boolean",
- "x-go-name": "Restricted"
- },
- "source_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "SourceID"
- },
- "visibility": {
- "type": "string",
- "x-go-name": "Visibility"
- },
- "website": {
- "type": "string",
- "x-go-name": "Website"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Email": {
- "description": "Email an email address belonging to a user",
- "type": "object",
- "properties": {
- "email": {
- "type": "string",
- "format": "email",
- "x-go-name": "Email"
- },
- "primary": {
- "type": "boolean",
- "x-go-name": "Primary"
- },
- "user_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "UserID"
- },
- "username": {
- "type": "string",
- "x-go-name": "UserName"
- },
- "verified": {
- "type": "boolean",
- "x-go-name": "Verified"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "ExternalTracker": {
- "description": "ExternalTracker represents settings for external tracker",
- "type": "object",
- "properties": {
- "external_tracker_format": {
- "description": "External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index.",
- "type": "string",
- "x-go-name": "ExternalTrackerFormat"
- },
- "external_tracker_regexp_pattern": {
- "description": "External Issue Tracker issue regular expression",
- "type": "string",
- "x-go-name": "ExternalTrackerRegexpPattern"
- },
- "external_tracker_style": {
- "description": "External Issue Tracker Number Format, either `numeric`, `alphanumeric`, or `regexp`",
- "type": "string",
- "x-go-name": "ExternalTrackerStyle"
- },
- "external_tracker_url": {
- "description": "URL of external issue tracker.",
- "type": "string",
- "x-go-name": "ExternalTrackerURL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "ExternalWiki": {
- "description": "ExternalWiki represents setting for external wiki",
- "type": "object",
- "properties": {
- "external_wiki_url": {
- "description": "URL of external wiki.",
- "type": "string",
- "x-go-name": "ExternalWikiURL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "FileCommitResponse": {
- "type": "object",
- "title": "FileCommitResponse contains information generated from a Git commit for a repo's file.",
- "properties": {
- "author": {
- "$ref": "#/definitions/CommitUser"
- },
- "committer": {
- "$ref": "#/definitions/CommitUser"
- },
- "created": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "message": {
- "type": "string",
- "x-go-name": "Message"
- },
- "parents": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/CommitMeta"
- },
- "x-go-name": "Parents"
- },
- "sha": {
- "type": "string",
- "x-go-name": "SHA"
- },
- "tree": {
- "$ref": "#/definitions/CommitMeta"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "FileDeleteResponse": {
- "description": "FileDeleteResponse contains information about a repo's file that was deleted",
- "type": "object",
- "properties": {
- "commit": {
- "$ref": "#/definitions/FileCommitResponse"
- },
- "content": {
- "x-go-name": "Content"
- },
- "verification": {
- "$ref": "#/definitions/PayloadCommitVerification"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "FileLinksResponse": {
- "description": "FileLinksResponse contains the links for a repo's file",
- "type": "object",
- "properties": {
- "git": {
- "type": "string",
- "x-go-name": "GitURL"
- },
- "html": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "self": {
- "type": "string",
- "x-go-name": "Self"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "FileResponse": {
- "description": "FileResponse contains information about a repo's file",
- "type": "object",
- "properties": {
- "commit": {
- "$ref": "#/definitions/FileCommitResponse"
- },
- "content": {
- "$ref": "#/definitions/ContentsResponse"
- },
- "verification": {
- "$ref": "#/definitions/PayloadCommitVerification"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "FilesResponse": {
- "description": "FilesResponse contains information about multiple files from a repo",
- "type": "object",
- "properties": {
- "commit": {
- "$ref": "#/definitions/FileCommitResponse"
- },
- "files": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/ContentsResponse"
- },
- "x-go-name": "Files"
- },
- "verification": {
- "$ref": "#/definitions/PayloadCommitVerification"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GPGKey": {
- "description": "GPGKey a user GPG key to sign commit and tag in repository",
- "type": "object",
- "properties": {
- "can_certify": {
- "type": "boolean",
- "x-go-name": "CanCertify"
- },
- "can_encrypt_comms": {
- "type": "boolean",
- "x-go-name": "CanEncryptComms"
- },
- "can_encrypt_storage": {
- "type": "boolean",
- "x-go-name": "CanEncryptStorage"
- },
- "can_sign": {
- "type": "boolean",
- "x-go-name": "CanSign"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "emails": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/GPGKeyEmail"
- },
- "x-go-name": "Emails"
- },
- "expires_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Expires"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "key_id": {
- "type": "string",
- "x-go-name": "KeyID"
- },
- "primary_key_id": {
- "type": "string",
- "x-go-name": "PrimaryKeyID"
- },
- "public_key": {
- "type": "string",
- "x-go-name": "PublicKey"
- },
- "subkeys": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/GPGKey"
- },
- "x-go-name": "SubsKey"
- },
- "verified": {
- "type": "boolean",
- "x-go-name": "Verified"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GPGKeyEmail": {
- "description": "GPGKeyEmail an email attached to a GPGKey",
- "type": "object",
- "properties": {
- "email": {
- "type": "string",
- "x-go-name": "Email"
- },
- "verified": {
- "type": "boolean",
- "x-go-name": "Verified"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GeneralAPISettings": {
- "description": "GeneralAPISettings contains global api settings exposed by it",
- "type": "object",
- "properties": {
- "default_git_trees_per_page": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "DefaultGitTreesPerPage"
- },
- "default_max_blob_size": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "DefaultMaxBlobSize"
- },
- "default_paging_num": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "DefaultPagingNum"
- },
- "max_response_items": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "MaxResponseItems"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GeneralAttachmentSettings": {
- "description": "GeneralAttachmentSettings contains global Attachment settings exposed by API",
- "type": "object",
- "properties": {
- "allowed_types": {
- "type": "string",
- "x-go-name": "AllowedTypes"
- },
- "enabled": {
- "type": "boolean",
- "x-go-name": "Enabled"
- },
- "max_files": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "MaxFiles"
- },
- "max_size": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "MaxSize"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GeneralRepoSettings": {
- "description": "GeneralRepoSettings contains global repository settings exposed by API",
- "type": "object",
- "properties": {
- "http_git_disabled": {
- "type": "boolean",
- "x-go-name": "HTTPGitDisabled"
- },
- "lfs_disabled": {
- "type": "boolean",
- "x-go-name": "LFSDisabled"
- },
- "migrations_disabled": {
- "type": "boolean",
- "x-go-name": "MigrationsDisabled"
- },
- "mirrors_disabled": {
- "type": "boolean",
- "x-go-name": "MirrorsDisabled"
- },
- "stars_disabled": {
- "type": "boolean",
- "x-go-name": "StarsDisabled"
- },
- "time_tracking_disabled": {
- "type": "boolean",
- "x-go-name": "TimeTrackingDisabled"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GeneralUISettings": {
- "description": "GeneralUISettings contains global ui settings exposed by API",
- "type": "object",
- "properties": {
- "allowed_reactions": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "AllowedReactions"
- },
- "custom_emojis": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "CustomEmojis"
- },
- "default_theme": {
- "type": "string",
- "x-go-name": "DefaultTheme"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GenerateRepoOption": {
- "description": "GenerateRepoOption options when creating repository using a template",
- "type": "object",
- "required": [
- "owner",
- "name"
- ],
- "properties": {
- "avatar": {
- "description": "include avatar of the template repo",
- "type": "boolean",
- "x-go-name": "Avatar"
- },
- "default_branch": {
- "description": "Default branch of the new repository",
- "type": "string",
- "x-go-name": "DefaultBranch"
- },
- "description": {
- "description": "Description of the repository to create",
- "type": "string",
- "x-go-name": "Description"
- },
- "git_content": {
- "description": "include git content of default branch in template repo",
- "type": "boolean",
- "x-go-name": "GitContent"
- },
- "git_hooks": {
- "description": "include git hooks in template repo",
- "type": "boolean",
- "x-go-name": "GitHooks"
- },
- "labels": {
- "description": "include labels in template repo",
- "type": "boolean",
- "x-go-name": "Labels"
- },
- "name": {
- "description": "Name of the repository to create",
- "type": "string",
- "uniqueItems": true,
- "x-go-name": "Name"
- },
- "owner": {
- "description": "The organization or person who will own the new repository",
- "type": "string",
- "x-go-name": "Owner"
- },
- "private": {
- "description": "Whether the repository is private",
- "type": "boolean",
- "x-go-name": "Private"
- },
- "protected_branch": {
- "description": "include protected branches in template repo",
- "type": "boolean",
- "x-go-name": "ProtectedBranch"
- },
- "topics": {
- "description": "include topics in template repo",
- "type": "boolean",
- "x-go-name": "Topics"
- },
- "webhooks": {
- "description": "include webhooks in template repo",
- "type": "boolean",
- "x-go-name": "Webhooks"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GitBlobResponse": {
- "description": "GitBlobResponse represents a git blob",
- "type": "object",
- "properties": {
- "content": {
- "type": "string",
- "x-go-name": "Content"
- },
- "encoding": {
- "type": "string",
- "x-go-name": "Encoding"
- },
- "sha": {
- "type": "string",
- "x-go-name": "SHA"
- },
- "size": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Size"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GitEntry": {
- "description": "GitEntry represents a git tree",
- "type": "object",
- "properties": {
- "mode": {
- "type": "string",
- "x-go-name": "Mode"
- },
- "path": {
- "type": "string",
- "x-go-name": "Path"
- },
- "sha": {
- "type": "string",
- "x-go-name": "SHA"
- },
- "size": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Size"
- },
- "type": {
- "type": "string",
- "x-go-name": "Type"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GitHook": {
- "description": "GitHook represents a Git repository hook",
- "type": "object",
- "properties": {
- "content": {
- "type": "string",
- "x-go-name": "Content"
- },
- "is_active": {
- "type": "boolean",
- "x-go-name": "IsActive"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GitObject": {
- "type": "object",
- "title": "GitObject represents a Git object.",
- "properties": {
- "sha": {
- "type": "string",
- "x-go-name": "SHA"
- },
- "type": {
- "type": "string",
- "x-go-name": "Type"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GitTreeResponse": {
- "description": "GitTreeResponse returns a git tree",
- "type": "object",
- "properties": {
- "page": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Page"
- },
- "sha": {
- "type": "string",
- "x-go-name": "SHA"
- },
- "total_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "TotalCount"
- },
- "tree": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/GitEntry"
- },
- "x-go-name": "Entries"
- },
- "truncated": {
- "type": "boolean",
- "x-go-name": "Truncated"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "GitignoreTemplateInfo": {
- "description": "GitignoreTemplateInfo name and text of a gitignore template",
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "source": {
- "type": "string",
- "x-go-name": "Source"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Hook": {
- "description": "Hook a hook is a web hook when one repository changed",
- "type": "object",
- "properties": {
- "active": {
- "type": "boolean",
- "x-go-name": "Active"
- },
- "authorization_header": {
- "type": "string",
- "x-go-name": "AuthorizationHeader"
- },
- "branch_filter": {
- "type": "string",
- "x-go-name": "BranchFilter"
- },
- "config": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "x-go-name": "Config"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Events"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "type": {
- "type": "string",
- "x-go-name": "Type"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Identity": {
- "description": "Identity for a person's identity like an author or committer",
- "type": "object",
- "properties": {
- "email": {
- "type": "string",
- "format": "email",
- "x-go-name": "Email"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "InternalTracker": {
- "description": "InternalTracker represents settings for internal tracker",
- "type": "object",
- "properties": {
- "allow_only_contributors_to_track_time": {
- "description": "Let only contributors track time (Built-in issue tracker)",
- "type": "boolean",
- "x-go-name": "AllowOnlyContributorsToTrackTime"
- },
- "enable_issue_dependencies": {
- "description": "Enable dependencies for issues and pull requests (Built-in issue tracker)",
- "type": "boolean",
- "x-go-name": "EnableIssueDependencies"
- },
- "enable_time_tracker": {
- "description": "Enable time tracking (Built-in issue tracker)",
- "type": "boolean",
- "x-go-name": "EnableTimeTracker"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Issue": {
- "description": "Issue represents an issue in a repository",
- "type": "object",
- "properties": {
- "assets": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Attachment"
- },
- "x-go-name": "Attachments"
- },
- "assignee": {
- "$ref": "#/definitions/User"
- },
- "assignees": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/User"
- },
- "x-go-name": "Assignees"
- },
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "closed_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Closed"
- },
- "comments": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Comments"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "due_date": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Deadline"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "is_locked": {
- "type": "boolean",
- "x-go-name": "IsLocked"
- },
- "labels": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Label"
- },
- "x-go-name": "Labels"
- },
- "milestone": {
- "$ref": "#/definitions/Milestone"
- },
- "number": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Index"
- },
- "original_author": {
- "type": "string",
- "x-go-name": "OriginalAuthor"
- },
- "original_author_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "OriginalAuthorID"
- },
- "pin_order": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "PinOrder"
- },
- "pull_request": {
- "$ref": "#/definitions/PullRequestMeta"
- },
- "ref": {
- "type": "string",
- "x-go-name": "Ref"
- },
- "repository": {
- "$ref": "#/definitions/RepositoryMeta"
- },
- "state": {
- "$ref": "#/definitions/StateType"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- },
- "user": {
- "$ref": "#/definitions/User"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "IssueConfig": {
- "type": "object",
- "properties": {
- "blank_issues_enabled": {
- "type": "boolean",
- "x-go-name": "BlankIssuesEnabled"
- },
- "contact_links": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/IssueConfigContactLink"
- },
- "x-go-name": "ContactLinks"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "IssueConfigContactLink": {
- "type": "object",
- "properties": {
- "about": {
- "type": "string",
- "x-go-name": "About"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "IssueConfigValidation": {
- "type": "object",
- "properties": {
- "message": {
- "type": "string",
- "x-go-name": "Message"
- },
- "valid": {
- "type": "boolean",
- "x-go-name": "Valid"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "IssueDeadline": {
- "description": "IssueDeadline represents an issue deadline",
- "type": "object",
- "properties": {
- "due_date": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Deadline"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "IssueFormField": {
- "description": "IssueFormField represents a form field",
- "type": "object",
- "properties": {
- "attributes": {
- "type": "object",
- "additionalProperties": {},
- "x-go-name": "Attributes"
- },
- "id": {
- "type": "string",
- "x-go-name": "ID"
- },
- "type": {
- "$ref": "#/definitions/IssueFormFieldType"
- },
- "validations": {
- "type": "object",
- "additionalProperties": {},
- "x-go-name": "Validations"
- },
- "visible": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/IssueFormFieldVisible"
- },
- "x-go-name": "Visible"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "IssueFormFieldType": {
- "type": "string",
- "title": "IssueFormFieldType defines issue form field type, can be \"markdown\", \"textarea\", \"input\", \"dropdown\" or \"checkboxes\"",
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "IssueFormFieldVisible": {
- "description": "IssueFormFieldVisible defines issue form field visible",
- "type": "string",
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "IssueLabelsOption": {
- "description": "IssueLabelsOption a collection of labels",
- "type": "object",
- "properties": {
- "labels": {
- "description": "Labels can be a list of integers representing label IDs\nor a list of strings representing label names",
- "type": "array",
- "items": {},
- "x-go-name": "Labels"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "IssueMeta": {
- "description": "IssueMeta basic issue information",
- "type": "object",
- "properties": {
- "index": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Index"
- },
- "owner": {
- "type": "string",
- "x-go-name": "Owner"
- },
- "repo": {
- "type": "string",
- "x-go-name": "Name"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "IssueTemplate": {
- "description": "IssueTemplate represents an issue template for a repository",
- "type": "object",
- "properties": {
- "about": {
- "type": "string",
- "x-go-name": "About"
- },
- "body": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/IssueFormField"
- },
- "x-go-name": "Fields"
- },
- "content": {
- "type": "string",
- "x-go-name": "Content"
- },
- "file_name": {
- "type": "string",
- "x-go-name": "FileName"
- },
- "labels": {
- "$ref": "#/definitions/IssueTemplateLabels"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "ref": {
- "type": "string",
- "x-go-name": "Ref"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "IssueTemplateLabels": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Label": {
- "description": "Label a label to an issue or a pr",
- "type": "object",
- "properties": {
- "color": {
- "type": "string",
- "x-go-name": "Color",
- "example": "00aabb"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "exclusive": {
- "type": "boolean",
- "x-go-name": "Exclusive",
- "example": false
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "is_archived": {
- "type": "boolean",
- "x-go-name": "IsArchived",
- "example": false
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "LabelTemplate": {
- "description": "LabelTemplate info of a Label template",
- "type": "object",
- "properties": {
- "color": {
- "type": "string",
- "x-go-name": "Color",
- "example": "00aabb"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "exclusive": {
- "type": "boolean",
- "x-go-name": "Exclusive",
- "example": false
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "LicenseTemplateInfo": {
- "description": "LicensesInfo contains information about a License",
- "type": "object",
- "properties": {
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "implementation": {
- "type": "string",
- "x-go-name": "Implementation"
- },
- "key": {
- "type": "string",
- "x-go-name": "Key"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "LicensesTemplateListEntry": {
- "description": "LicensesListEntry is used for the API",
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "x-go-name": "Key"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "MarkdownOption": {
- "description": "MarkdownOption markdown options",
- "type": "object",
- "properties": {
- "Context": {
- "description": "URL path for rendering issue, media and file links\nExpected format: /subpath/{user}/{repo}/src/{branch, commit, tag}/{identifier/path}/{file/dir}\n\nin: body",
- "type": "string"
- },
- "Mode": {
- "description": "Mode to render (comment, gfm, markdown)\n\nin: body",
- "type": "string"
- },
- "Text": {
- "description": "Text markdown to render\n\nin: body",
- "type": "string"
- },
- "Wiki": {
- "description": "Is it a wiki page ?\n\nin: body",
- "type": "boolean"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "MarkupOption": {
- "description": "MarkupOption markup options",
- "type": "object",
- "properties": {
- "Context": {
- "description": "URL path for rendering issue, media and file links\nExpected format: /subpath/{user}/{repo}/src/{branch, commit, tag}/{identifier/path}/{file/dir}\n\nin: body",
- "type": "string"
- },
- "FilePath": {
- "description": "File path for detecting extension in file mode\n\nin: body",
- "type": "string"
- },
- "Mode": {
- "description": "Mode to render (comment, gfm, markdown, file)\n\nin: body",
- "type": "string"
- },
- "Text": {
- "description": "Text markup to render\n\nin: body",
- "type": "string"
- },
- "Wiki": {
- "description": "Is it a wiki page ?\n\nin: body",
- "type": "boolean"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "MergePullRequestOption": {
- "description": "MergePullRequestForm form for merging Pull Request",
- "type": "object",
- "required": [
- "Do"
- ],
- "properties": {
- "Do": {
- "type": "string",
- "enum": [
- "merge",
- "rebase",
- "rebase-merge",
- "squash",
- "fast-forward-only",
- "manually-merged"
- ]
- },
- "MergeCommitID": {
- "type": "string"
- },
- "MergeMessageField": {
- "type": "string"
- },
- "MergeTitleField": {
- "type": "string"
- },
- "delete_branch_after_merge": {
- "type": "boolean",
- "x-go-name": "DeleteBranchAfterMerge"
- },
- "force_merge": {
- "type": "boolean",
- "x-go-name": "ForceMerge"
- },
- "head_commit_id": {
- "type": "string",
- "x-go-name": "HeadCommitID"
- },
- "merge_when_checks_succeed": {
- "type": "boolean",
- "x-go-name": "MergeWhenChecksSucceed"
- }
- },
- "x-go-name": "MergePullRequestForm",
- "x-go-package": "code.gitea.io/gitea/services/forms"
- },
- "MigrateRepoOptions": {
- "description": "MigrateRepoOptions options for migrating repository's\nthis is used to interact with api v1",
- "type": "object",
- "required": [
- "clone_addr",
- "repo_name"
- ],
- "properties": {
- "auth_password": {
- "type": "string",
- "x-go-name": "AuthPassword"
- },
- "auth_token": {
- "type": "string",
- "x-go-name": "AuthToken"
- },
- "auth_username": {
- "type": "string",
- "x-go-name": "AuthUsername"
- },
- "clone_addr": {
- "type": "string",
- "x-go-name": "CloneAddr"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "issues": {
- "type": "boolean",
- "x-go-name": "Issues"
- },
- "labels": {
- "type": "boolean",
- "x-go-name": "Labels"
- },
- "lfs": {
- "type": "boolean",
- "x-go-name": "LFS"
- },
- "lfs_endpoint": {
- "type": "string",
- "x-go-name": "LFSEndpoint"
- },
- "milestones": {
- "type": "boolean",
- "x-go-name": "Milestones"
- },
- "mirror": {
- "type": "boolean",
- "x-go-name": "Mirror"
- },
- "mirror_interval": {
- "type": "string",
- "x-go-name": "MirrorInterval"
- },
- "private": {
- "type": "boolean",
- "x-go-name": "Private"
- },
- "pull_requests": {
- "type": "boolean",
- "x-go-name": "PullRequests"
- },
- "releases": {
- "type": "boolean",
- "x-go-name": "Releases"
- },
- "repo_name": {
- "type": "string",
- "x-go-name": "RepoName"
- },
- "repo_owner": {
- "description": "Name of User or Organisation who will own Repo after migration",
- "type": "string",
- "x-go-name": "RepoOwner"
- },
- "service": {
- "type": "string",
- "enum": [
- "git",
- "github",
- "gitea",
- "gitlab",
- "gogs",
- "onedev",
- "gitbucket",
- "codebase"
- ],
- "x-go-name": "Service"
- },
- "uid": {
- "description": "deprecated (only for backwards compatibility)",
- "type": "integer",
- "format": "int64",
- "x-go-name": "RepoOwnerID"
- },
- "wiki": {
- "type": "boolean",
- "x-go-name": "Wiki"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Milestone": {
- "description": "Milestone milestone is a collection of issues on one repository",
- "type": "object",
- "properties": {
- "closed_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Closed"
- },
- "closed_issues": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ClosedIssues"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "due_on": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Deadline"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "open_issues": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "OpenIssues"
- },
- "state": {
- "$ref": "#/definitions/StateType"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "NewIssuePinsAllowed": {
- "description": "NewIssuePinsAllowed represents an API response that says if new Issue Pins are allowed",
- "type": "object",
- "properties": {
- "issues": {
- "type": "boolean",
- "x-go-name": "Issues"
- },
- "pull_requests": {
- "type": "boolean",
- "x-go-name": "PullRequests"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "NodeInfo": {
- "description": "NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks",
- "type": "object",
- "properties": {
- "metadata": {
- "type": "object",
- "x-go-name": "Metadata"
- },
- "openRegistrations": {
- "type": "boolean",
- "x-go-name": "OpenRegistrations"
- },
- "protocols": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Protocols"
- },
- "services": {
- "$ref": "#/definitions/NodeInfoServices"
- },
- "software": {
- "$ref": "#/definitions/NodeInfoSoftware"
- },
- "usage": {
- "$ref": "#/definitions/NodeInfoUsage"
- },
- "version": {
- "type": "string",
- "x-go-name": "Version"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "NodeInfoServices": {
- "description": "NodeInfoServices contains the third party sites this server can connect to via their application API",
- "type": "object",
- "properties": {
- "inbound": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Inbound"
- },
- "outbound": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Outbound"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "NodeInfoSoftware": {
- "description": "NodeInfoSoftware contains Metadata about server software in use",
- "type": "object",
- "properties": {
- "homepage": {
- "type": "string",
- "x-go-name": "Homepage"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "repository": {
- "type": "string",
- "x-go-name": "Repository"
- },
- "version": {
- "type": "string",
- "x-go-name": "Version"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "NodeInfoUsage": {
- "description": "NodeInfoUsage contains usage statistics for this server",
- "type": "object",
- "properties": {
- "localComments": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "LocalComments"
- },
- "localPosts": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "LocalPosts"
- },
- "users": {
- "$ref": "#/definitions/NodeInfoUsageUsers"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "NodeInfoUsageUsers": {
- "description": "NodeInfoUsageUsers contains statistics about the users of this server",
- "type": "object",
- "properties": {
- "activeHalfyear": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ActiveHalfyear"
- },
- "activeMonth": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ActiveMonth"
- },
- "total": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Total"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Note": {
- "description": "Note contains information related to a git note",
- "type": "object",
- "properties": {
- "commit": {
- "$ref": "#/definitions/Commit"
- },
- "message": {
- "type": "string",
- "x-go-name": "Message"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "NotificationCount": {
- "description": "NotificationCount number of unread notifications",
- "type": "object",
- "properties": {
- "new": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "New"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "NotificationSubject": {
- "description": "NotificationSubject contains the notification subject (Issue/Pull/Commit)",
- "type": "object",
- "properties": {
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "latest_comment_html_url": {
- "type": "string",
- "x-go-name": "LatestCommentHTMLURL"
- },
- "latest_comment_url": {
- "type": "string",
- "x-go-name": "LatestCommentURL"
- },
- "state": {
- "$ref": "#/definitions/StateType"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- },
- "type": {
- "$ref": "#/definitions/NotifySubjectType"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "NotificationThread": {
- "description": "NotificationThread expose Notification on API",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "pinned": {
- "type": "boolean",
- "x-go-name": "Pinned"
- },
- "repository": {
- "$ref": "#/definitions/Repository"
- },
- "subject": {
- "$ref": "#/definitions/NotificationSubject"
- },
- "unread": {
- "type": "boolean",
- "x-go-name": "Unread"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "UpdatedAt"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "NotifySubjectType": {
- "description": "NotifySubjectType represent type of notification subject",
- "type": "string",
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "OAuth2Application": {
- "type": "object",
- "title": "OAuth2Application represents an OAuth2 application.",
- "properties": {
- "client_id": {
- "type": "string",
- "x-go-name": "ClientID"
- },
- "client_secret": {
- "type": "string",
- "x-go-name": "ClientSecret"
- },
- "confidential_client": {
- "type": "boolean",
- "x-go-name": "ConfidentialClient"
- },
- "created": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "redirect_uris": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "RedirectURIs"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Organization": {
- "description": "Organization represents an organization",
- "type": "object",
- "properties": {
- "avatar_url": {
- "type": "string",
- "x-go-name": "AvatarURL"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "email": {
- "type": "string",
- "x-go-name": "Email"
- },
- "full_name": {
- "type": "string",
- "x-go-name": "FullName"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "location": {
- "type": "string",
- "x-go-name": "Location"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "repo_admin_change_team_access": {
- "type": "boolean",
- "x-go-name": "RepoAdminChangeTeamAccess"
- },
- "username": {
- "description": "deprecated",
- "type": "string",
- "x-go-name": "UserName"
- },
- "visibility": {
- "type": "string",
- "x-go-name": "Visibility"
- },
- "website": {
- "type": "string",
- "x-go-name": "Website"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "OrganizationPermissions": {
- "description": "OrganizationPermissions list different users permissions on an organization",
- "type": "object",
- "properties": {
- "can_create_repository": {
- "type": "boolean",
- "x-go-name": "CanCreateRepository"
- },
- "can_read": {
- "type": "boolean",
- "x-go-name": "CanRead"
- },
- "can_write": {
- "type": "boolean",
- "x-go-name": "CanWrite"
- },
- "is_admin": {
- "type": "boolean",
- "x-go-name": "IsAdmin"
- },
- "is_owner": {
- "type": "boolean",
- "x-go-name": "IsOwner"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "PRBranchInfo": {
- "description": "PRBranchInfo information about a branch",
- "type": "object",
- "properties": {
- "label": {
- "type": "string",
- "x-go-name": "Name"
- },
- "ref": {
- "type": "string",
- "x-go-name": "Ref"
- },
- "repo": {
- "$ref": "#/definitions/Repository"
- },
- "repo_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "RepoID"
- },
- "sha": {
- "type": "string",
- "x-go-name": "Sha"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Package": {
- "description": "Package represents a package",
- "type": "object",
- "properties": {
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "CreatedAt"
- },
- "creator": {
- "$ref": "#/definitions/User"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "owner": {
- "$ref": "#/definitions/User"
- },
- "repository": {
- "$ref": "#/definitions/Repository"
- },
- "type": {
- "type": "string",
- "x-go-name": "Type"
- },
- "version": {
- "type": "string",
- "x-go-name": "Version"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "PackageFile": {
- "description": "PackageFile represents a package file",
- "type": "object",
- "properties": {
- "Size": {
- "type": "integer",
- "format": "int64"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "md5": {
- "type": "string",
- "x-go-name": "HashMD5"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "sha1": {
- "type": "string",
- "x-go-name": "HashSHA1"
- },
- "sha256": {
- "type": "string",
- "x-go-name": "HashSHA256"
- },
- "sha512": {
- "type": "string",
- "x-go-name": "HashSHA512"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "PayloadCommit": {
- "description": "PayloadCommit represents a commit",
- "type": "object",
- "properties": {
- "added": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Added"
- },
- "author": {
- "$ref": "#/definitions/PayloadUser"
- },
- "committer": {
- "$ref": "#/definitions/PayloadUser"
- },
- "id": {
- "description": "sha1 hash of the commit",
- "type": "string",
- "x-go-name": "ID"
- },
- "message": {
- "type": "string",
- "x-go-name": "Message"
- },
- "modified": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Modified"
- },
- "removed": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Removed"
- },
- "timestamp": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Timestamp"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- },
- "verification": {
- "$ref": "#/definitions/PayloadCommitVerification"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "PayloadCommitVerification": {
- "description": "PayloadCommitVerification represents the GPG verification of a commit",
- "type": "object",
- "properties": {
- "payload": {
- "type": "string",
- "x-go-name": "Payload"
- },
- "reason": {
- "type": "string",
- "x-go-name": "Reason"
- },
- "signature": {
- "type": "string",
- "x-go-name": "Signature"
- },
- "signer": {
- "$ref": "#/definitions/PayloadUser"
- },
- "verified": {
- "type": "boolean",
- "x-go-name": "Verified"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "PayloadUser": {
- "description": "PayloadUser represents the author or committer of a commit",
- "type": "object",
- "properties": {
- "email": {
- "type": "string",
- "format": "email",
- "x-go-name": "Email"
- },
- "name": {
- "description": "Full name of the commit author",
- "type": "string",
- "x-go-name": "Name"
- },
- "username": {
- "type": "string",
- "x-go-name": "UserName"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Permission": {
- "description": "Permission represents a set of permissions",
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean",
- "x-go-name": "Admin"
- },
- "pull": {
- "type": "boolean",
- "x-go-name": "Pull"
- },
- "push": {
- "type": "boolean",
- "x-go-name": "Push"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "PublicKey": {
- "description": "PublicKey publickey is a user key to push code to repository",
- "type": "object",
- "properties": {
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "fingerprint": {
- "type": "string",
- "x-go-name": "Fingerprint"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "key": {
- "type": "string",
- "x-go-name": "Key"
- },
- "key_type": {
- "type": "string",
- "x-go-name": "KeyType"
- },
- "read_only": {
- "type": "boolean",
- "x-go-name": "ReadOnly"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- },
- "user": {
- "$ref": "#/definitions/User"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "PullRequest": {
- "description": "PullRequest represents a pull request",
- "type": "object",
- "properties": {
- "additions": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Additions"
- },
- "allow_maintainer_edit": {
- "type": "boolean",
- "x-go-name": "AllowMaintainerEdit"
- },
- "assignee": {
- "$ref": "#/definitions/User"
- },
- "assignees": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/User"
- },
- "x-go-name": "Assignees"
- },
- "base": {
- "$ref": "#/definitions/PRBranchInfo"
- },
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "changed_files": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ChangedFiles"
- },
- "closed_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Closed"
- },
- "comments": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Comments"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "deletions": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Deletions"
- },
- "diff_url": {
- "type": "string",
- "x-go-name": "DiffURL"
- },
- "draft": {
- "type": "boolean",
- "x-go-name": "Draft"
- },
- "due_date": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Deadline"
- },
- "head": {
- "$ref": "#/definitions/PRBranchInfo"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "is_locked": {
- "type": "boolean",
- "x-go-name": "IsLocked"
- },
- "labels": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Label"
- },
- "x-go-name": "Labels"
- },
- "merge_base": {
- "type": "string",
- "x-go-name": "MergeBase"
- },
- "merge_commit_sha": {
- "type": "string",
- "x-go-name": "MergedCommitID"
- },
- "mergeable": {
- "type": "boolean",
- "x-go-name": "Mergeable"
- },
- "merged": {
- "type": "boolean",
- "x-go-name": "HasMerged"
- },
- "merged_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Merged"
- },
- "merged_by": {
- "$ref": "#/definitions/User"
- },
- "milestone": {
- "$ref": "#/definitions/Milestone"
- },
- "number": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Index"
- },
- "patch_url": {
- "type": "string",
- "x-go-name": "PatchURL"
- },
- "pin_order": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "PinOrder"
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/User"
- },
- "x-go-name": "RequestedReviewers"
- },
- "review_comments": {
- "description": "number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR)",
- "type": "integer",
- "format": "int64",
- "x-go-name": "ReviewComments"
- },
- "state": {
- "$ref": "#/definitions/StateType"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- },
- "user": {
- "$ref": "#/definitions/User"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "PullRequestMeta": {
- "description": "PullRequestMeta PR info if an issue is a PR",
- "type": "object",
- "properties": {
- "draft": {
- "type": "boolean",
- "x-go-name": "IsWorkInProgress"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "merged": {
- "type": "boolean",
- "x-go-name": "HasMerged"
- },
- "merged_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Merged"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "PullReview": {
- "description": "PullReview represents a pull request review",
- "type": "object",
- "properties": {
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "comments_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "CodeCommentsCount"
- },
- "commit_id": {
- "type": "string",
- "x-go-name": "CommitID"
- },
- "dismissed": {
- "type": "boolean",
- "x-go-name": "Dismissed"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "official": {
- "type": "boolean",
- "x-go-name": "Official"
- },
- "pull_request_url": {
- "type": "string",
- "x-go-name": "HTMLPullURL"
- },
- "stale": {
- "type": "boolean",
- "x-go-name": "Stale"
- },
- "state": {
- "$ref": "#/definitions/ReviewStateType"
- },
- "submitted_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Submitted"
- },
- "team": {
- "$ref": "#/definitions/Team"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- },
- "user": {
- "$ref": "#/definitions/User"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "PullReviewComment": {
- "description": "PullReviewComment represents a comment on a pull request review",
- "type": "object",
- "properties": {
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "commit_id": {
- "type": "string",
- "x-go-name": "CommitID"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "diff_hunk": {
- "type": "string",
- "x-go-name": "DiffHunk"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "original_commit_id": {
- "type": "string",
- "x-go-name": "OrigCommitID"
- },
- "original_position": {
- "type": "integer",
- "format": "uint64",
- "x-go-name": "OldLineNum"
- },
- "path": {
- "type": "string",
- "x-go-name": "Path"
- },
- "position": {
- "type": "integer",
- "format": "uint64",
- "x-go-name": "LineNum"
- },
- "pull_request_review_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ReviewID"
- },
- "pull_request_url": {
- "type": "string",
- "x-go-name": "HTMLPullURL"
- },
- "resolver": {
- "$ref": "#/definitions/User"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- },
- "user": {
- "$ref": "#/definitions/User"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "PullReviewRequestOptions": {
- "description": "PullReviewRequestOptions are options to add or remove pull review requests",
- "type": "object",
- "properties": {
- "reviewers": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Reviewers"
- },
- "team_reviewers": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "TeamReviewers"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "PushMirror": {
- "description": "PushMirror represents information of a push mirror",
- "type": "object",
- "properties": {
- "created": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "CreatedUnix"
- },
- "interval": {
- "type": "string",
- "x-go-name": "Interval"
- },
- "last_error": {
- "type": "string",
- "x-go-name": "LastError"
- },
- "last_update": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "LastUpdateUnix"
- },
- "remote_address": {
- "type": "string",
- "x-go-name": "RemoteAddress"
- },
- "remote_name": {
- "type": "string",
- "x-go-name": "RemoteName"
- },
- "repo_name": {
- "type": "string",
- "x-go-name": "RepoName"
- },
- "sync_on_commit": {
- "type": "boolean",
- "x-go-name": "SyncOnCommit"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Reaction": {
- "description": "Reaction contain one reaction",
- "type": "object",
- "properties": {
- "content": {
- "type": "string",
- "x-go-name": "Reaction"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "user": {
- "$ref": "#/definitions/User"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Reference": {
- "type": "object",
- "title": "Reference represents a Git reference.",
- "properties": {
- "object": {
- "$ref": "#/definitions/GitObject"
- },
- "ref": {
- "type": "string",
- "x-go-name": "Ref"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Release": {
- "description": "Release represents a repository release",
- "type": "object",
- "properties": {
- "assets": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Attachment"
- },
- "x-go-name": "Attachments"
- },
- "author": {
- "$ref": "#/definitions/User"
- },
- "body": {
- "type": "string",
- "x-go-name": "Note"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "CreatedAt"
- },
- "draft": {
- "type": "boolean",
- "x-go-name": "IsDraft"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "name": {
- "type": "string",
- "x-go-name": "Title"
- },
- "prerelease": {
- "type": "boolean",
- "x-go-name": "IsPrerelease"
- },
- "published_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "PublishedAt"
- },
- "tag_name": {
- "type": "string",
- "x-go-name": "TagName"
- },
- "tarball_url": {
- "type": "string",
- "x-go-name": "TarURL"
- },
- "target_commitish": {
- "type": "string",
- "x-go-name": "Target"
- },
- "upload_url": {
- "type": "string",
- "x-go-name": "UploadURL"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- },
- "zipball_url": {
- "type": "string",
- "x-go-name": "ZipURL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "RenameUserOption": {
- "description": "RenameUserOption options when renaming a user",
- "type": "object",
- "required": [
- "new_username"
- ],
- "properties": {
- "new_username": {
- "description": "New username for this user. This name cannot be in use yet by any other user.",
- "type": "string",
- "uniqueItems": true,
- "x-go-name": "NewName"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "RepoCollaboratorPermission": {
- "description": "RepoCollaboratorPermission to get repository permission for a collaborator",
- "type": "object",
- "properties": {
- "permission": {
- "type": "string",
- "x-go-name": "Permission"
- },
- "role_name": {
- "type": "string",
- "x-go-name": "RoleName"
- },
- "user": {
- "$ref": "#/definitions/User"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "RepoCommit": {
- "type": "object",
- "title": "RepoCommit contains information of a commit in the context of a repository.",
- "properties": {
- "author": {
- "$ref": "#/definitions/CommitUser"
- },
- "committer": {
- "$ref": "#/definitions/CommitUser"
- },
- "message": {
- "type": "string",
- "x-go-name": "Message"
- },
- "tree": {
- "$ref": "#/definitions/CommitMeta"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- },
- "verification": {
- "$ref": "#/definitions/PayloadCommitVerification"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "RepoTopicOptions": {
- "description": "RepoTopicOptions a collection of repo topic names",
- "type": "object",
- "properties": {
- "topics": {
- "description": "list of topic names",
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Topics"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "RepoTransfer": {
- "description": "RepoTransfer represents a pending repo transfer",
- "type": "object",
- "properties": {
- "doer": {
- "$ref": "#/definitions/User"
- },
- "recipient": {
- "$ref": "#/definitions/User"
- },
- "teams": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Team"
- },
- "x-go-name": "Teams"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Repository": {
- "description": "Repository represents a repository",
- "type": "object",
- "properties": {
- "allow_fast_forward_only_merge": {
- "type": "boolean",
- "x-go-name": "AllowFastForwardOnly"
- },
- "allow_merge_commits": {
- "type": "boolean",
- "x-go-name": "AllowMerge"
- },
- "allow_rebase": {
- "type": "boolean",
- "x-go-name": "AllowRebase"
- },
- "allow_rebase_explicit": {
- "type": "boolean",
- "x-go-name": "AllowRebaseMerge"
- },
- "allow_rebase_update": {
- "type": "boolean",
- "x-go-name": "AllowRebaseUpdate"
- },
- "allow_squash_merge": {
- "type": "boolean",
- "x-go-name": "AllowSquash"
- },
- "archived": {
- "type": "boolean",
- "x-go-name": "Archived"
- },
- "archived_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "ArchivedAt"
- },
- "avatar_url": {
- "type": "string",
- "x-go-name": "AvatarURL"
- },
- "clone_url": {
- "type": "string",
- "x-go-name": "CloneURL"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "default_allow_maintainer_edit": {
- "type": "boolean",
- "x-go-name": "DefaultAllowMaintainerEdit"
- },
- "default_branch": {
- "type": "string",
- "x-go-name": "DefaultBranch"
- },
- "default_delete_branch_after_merge": {
- "type": "boolean",
- "x-go-name": "DefaultDeleteBranchAfterMerge"
- },
- "default_merge_style": {
- "type": "string",
- "x-go-name": "DefaultMergeStyle"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "empty": {
- "type": "boolean",
- "x-go-name": "Empty"
- },
- "external_tracker": {
- "$ref": "#/definitions/ExternalTracker"
- },
- "external_wiki": {
- "$ref": "#/definitions/ExternalWiki"
- },
- "fork": {
- "type": "boolean",
- "x-go-name": "Fork"
- },
- "forks_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Forks"
- },
- "full_name": {
- "type": "string",
- "x-go-name": "FullName"
- },
- "has_actions": {
- "type": "boolean",
- "x-go-name": "HasActions"
- },
- "has_issues": {
- "type": "boolean",
- "x-go-name": "HasIssues"
- },
- "has_packages": {
- "type": "boolean",
- "x-go-name": "HasPackages"
- },
- "has_projects": {
- "type": "boolean",
- "x-go-name": "HasProjects"
- },
- "has_pull_requests": {
- "type": "boolean",
- "x-go-name": "HasPullRequests"
- },
- "has_releases": {
- "type": "boolean",
- "x-go-name": "HasReleases"
- },
- "has_wiki": {
- "type": "boolean",
- "x-go-name": "HasWiki"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "ignore_whitespace_conflicts": {
- "type": "boolean",
- "x-go-name": "IgnoreWhitespaceConflicts"
- },
- "internal": {
- "type": "boolean",
- "x-go-name": "Internal"
- },
- "internal_tracker": {
- "$ref": "#/definitions/InternalTracker"
- },
- "language": {
- "type": "string",
- "x-go-name": "Language"
- },
- "languages_url": {
- "type": "string",
- "x-go-name": "LanguagesURL"
- },
- "link": {
- "type": "string",
- "x-go-name": "Link"
- },
- "mirror": {
- "type": "boolean",
- "x-go-name": "Mirror"
- },
- "mirror_interval": {
- "type": "string",
- "x-go-name": "MirrorInterval"
- },
- "mirror_updated": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "MirrorUpdated"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "object_format_name": {
- "description": "ObjectFormatName of the underlying git repository",
- "type": "string",
- "enum": [
- "sha1",
- "sha256"
- ],
- "x-go-name": "ObjectFormatName"
- },
- "open_issues_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "OpenIssues"
- },
- "open_pr_counter": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "OpenPulls"
- },
- "original_url": {
- "type": "string",
- "x-go-name": "OriginalURL"
- },
- "owner": {
- "$ref": "#/definitions/User"
- },
- "parent": {
- "$ref": "#/definitions/Repository"
- },
- "permissions": {
- "$ref": "#/definitions/Permission"
- },
- "private": {
- "type": "boolean",
- "x-go-name": "Private"
- },
- "projects_mode": {
- "type": "string",
- "x-go-name": "ProjectsMode"
- },
- "release_counter": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Releases"
- },
- "repo_transfer": {
- "$ref": "#/definitions/RepoTransfer"
- },
- "size": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Size"
- },
- "ssh_url": {
- "type": "string",
- "x-go-name": "SSHURL"
- },
- "stars_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Stars"
- },
- "template": {
- "type": "boolean",
- "x-go-name": "Template"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- },
- "watchers_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Watchers"
- },
- "website": {
- "type": "string",
- "x-go-name": "Website"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "RepositoryMeta": {
- "description": "RepositoryMeta basic repository information",
- "type": "object",
- "properties": {
- "full_name": {
- "type": "string",
- "x-go-name": "FullName"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "owner": {
- "type": "string",
- "x-go-name": "Owner"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "ReviewStateType": {
- "description": "ReviewStateType review state type",
- "type": "string",
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "SearchResults": {
- "description": "SearchResults results of a successful search",
- "type": "object",
- "properties": {
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Repository"
- },
- "x-go-name": "Data"
- },
- "ok": {
- "type": "boolean",
- "x-go-name": "OK"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Secret": {
- "description": "Secret represents a secret",
- "type": "object",
- "properties": {
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "name": {
- "description": "the secret's name",
- "type": "string",
- "x-go-name": "Name"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "ServerVersion": {
- "description": "ServerVersion wraps the version of the server",
- "type": "object",
- "properties": {
- "version": {
- "type": "string",
- "x-go-name": "Version"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "StateType": {
- "description": "StateType issue state type",
- "type": "string",
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "StopWatch": {
- "description": "StopWatch represent a running stopwatch",
- "type": "object",
- "properties": {
- "created": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "duration": {
- "type": "string",
- "x-go-name": "Duration"
- },
- "issue_index": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "IssueIndex"
- },
- "issue_title": {
- "type": "string",
- "x-go-name": "IssueTitle"
- },
- "repo_name": {
- "type": "string",
- "x-go-name": "RepoName"
- },
- "repo_owner_name": {
- "type": "string",
- "x-go-name": "RepoOwnerName"
- },
- "seconds": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Seconds"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "SubmitPullReviewOptions": {
- "description": "SubmitPullReviewOptions are options to submit a pending pull review",
- "type": "object",
- "properties": {
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "event": {
- "$ref": "#/definitions/ReviewStateType"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Tag": {
- "description": "Tag represents a repository tag",
- "type": "object",
- "properties": {
- "commit": {
- "$ref": "#/definitions/CommitMeta"
- },
- "id": {
- "type": "string",
- "x-go-name": "ID"
- },
- "message": {
- "type": "string",
- "x-go-name": "Message"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "tarball_url": {
- "type": "string",
- "x-go-name": "TarballURL"
- },
- "zipball_url": {
- "type": "string",
- "x-go-name": "ZipballURL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Team": {
- "description": "Team represents a team in an organization",
- "type": "object",
- "properties": {
- "can_create_org_repo": {
- "type": "boolean",
- "x-go-name": "CanCreateOrgRepo"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "includes_all_repositories": {
- "type": "boolean",
- "x-go-name": "IncludesAllRepositories"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "organization": {
- "$ref": "#/definitions/Organization"
- },
- "permission": {
- "type": "string",
- "enum": [
- "none",
- "read",
- "write",
- "admin",
- "owner"
- ],
- "x-go-name": "Permission"
- },
- "units": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "Units",
- "example": [
- "repo.code",
- "repo.issues",
- "repo.ext_issues",
- "repo.wiki",
- "repo.pulls",
- "repo.releases",
- "repo.projects",
- "repo.ext_wiki"
- ]
- },
- "units_map": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "x-go-name": "UnitsMap",
- "example": {
- "repo.code": "read",
- "repo.ext_issues": "none",
- "repo.ext_wiki": "none",
- "repo.issues": "write",
- "repo.projects": "none",
- "repo.pulls": "owner",
- "repo.releases": "none",
- "repo.wiki": "admin"
- }
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "TimeStamp": {
- "description": "TimeStamp defines a timestamp",
- "type": "integer",
- "format": "int64",
- "x-go-package": "code.gitea.io/gitea/modules/timeutil"
- },
- "TimelineComment": {
- "description": "TimelineComment represents a timeline comment (comment of any type) on a commit or issue",
- "type": "object",
- "properties": {
- "assignee": {
- "$ref": "#/definitions/User"
- },
- "assignee_team": {
- "$ref": "#/definitions/Team"
- },
- "body": {
- "type": "string",
- "x-go-name": "Body"
- },
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "dependent_issue": {
- "$ref": "#/definitions/Issue"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "issue_url": {
- "type": "string",
- "x-go-name": "IssueURL"
- },
- "label": {
- "$ref": "#/definitions/Label"
- },
- "milestone": {
- "$ref": "#/definitions/Milestone"
- },
- "new_ref": {
- "type": "string",
- "x-go-name": "NewRef"
- },
- "new_title": {
- "type": "string",
- "x-go-name": "NewTitle"
- },
- "old_milestone": {
- "$ref": "#/definitions/Milestone"
- },
- "old_project_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "OldProjectID"
- },
- "old_ref": {
- "type": "string",
- "x-go-name": "OldRef"
- },
- "old_title": {
- "type": "string",
- "x-go-name": "OldTitle"
- },
- "project_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ProjectID"
- },
- "pull_request_url": {
- "type": "string",
- "x-go-name": "PRURL"
- },
- "ref_action": {
- "type": "string",
- "x-go-name": "RefAction"
- },
- "ref_comment": {
- "$ref": "#/definitions/Comment"
- },
- "ref_commit_sha": {
- "description": "commit SHA where issue/PR was referenced",
- "type": "string",
- "x-go-name": "RefCommitSHA"
- },
- "ref_issue": {
- "$ref": "#/definitions/Issue"
- },
- "removed_assignee": {
- "description": "whether the assignees were removed or added",
- "type": "boolean",
- "x-go-name": "RemovedAssignee"
- },
- "resolve_doer": {
- "$ref": "#/definitions/User"
- },
- "review_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ReviewID"
- },
- "tracked_time": {
- "$ref": "#/definitions/TrackedTime"
- },
- "type": {
- "type": "string",
- "x-go-name": "Type"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- },
- "user": {
- "$ref": "#/definitions/User"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "TopicName": {
- "description": "TopicName a list of repo topic names",
- "type": "object",
- "properties": {
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "TopicNames"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "TopicResponse": {
- "description": "TopicResponse for returning topics",
- "type": "object",
- "properties": {
- "created": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "repo_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "RepoCount"
- },
- "topic_name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "updated": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "TrackedTime": {
- "description": "TrackedTime worked time for an issue / pr",
- "type": "object",
- "properties": {
- "created": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "issue": {
- "$ref": "#/definitions/Issue"
- },
- "issue_id": {
- "description": "deprecated (only for backwards compatibility)",
- "type": "integer",
- "format": "int64",
- "x-go-name": "IssueID"
- },
- "time": {
- "description": "Time in seconds",
- "type": "integer",
- "format": "int64",
- "x-go-name": "Time"
- },
- "user_id": {
- "description": "deprecated (only for backwards compatibility)",
- "type": "integer",
- "format": "int64",
- "x-go-name": "UserID"
- },
- "user_name": {
- "type": "string",
- "x-go-name": "UserName"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "TransferRepoOption": {
- "description": "TransferRepoOption options when transfer a repository's ownership",
- "type": "object",
- "required": [
- "new_owner"
- ],
- "properties": {
- "new_owner": {
- "type": "string",
- "x-go-name": "NewOwner"
- },
- "team_ids": {
- "description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
- "type": "array",
- "items": {
- "type": "integer",
- "format": "int64"
- },
- "x-go-name": "TeamIDs"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "UpdateFileOptions": {
- "description": "UpdateFileOptions options for updating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)",
- "type": "object",
- "required": [
- "sha",
- "content"
- ],
- "properties": {
- "author": {
- "$ref": "#/definitions/Identity"
- },
- "branch": {
- "description": "branch (optional) to base this file from. if not given, the default branch is used",
- "type": "string",
- "x-go-name": "BranchName"
- },
- "committer": {
- "$ref": "#/definitions/Identity"
- },
- "content": {
- "description": "content must be base64 encoded",
- "type": "string",
- "x-go-name": "ContentBase64"
- },
- "dates": {
- "$ref": "#/definitions/CommitDateOptions"
- },
- "from_path": {
- "description": "from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL",
- "type": "string",
- "x-go-name": "FromPath"
- },
- "message": {
- "description": "message (optional) for the commit of this file. if not supplied, a default message will be used",
- "type": "string",
- "x-go-name": "Message"
- },
- "new_branch": {
- "description": "new_branch (optional) will make a new branch from `branch` before creating the file",
- "type": "string",
- "x-go-name": "NewBranchName"
- },
- "sha": {
- "description": "sha is the SHA for the file that already exists",
- "type": "string",
- "x-go-name": "SHA"
- },
- "signoff": {
- "description": "Add a Signed-off-by trailer by the committer at the end of the commit log message.",
- "type": "boolean",
- "x-go-name": "Signoff"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "UpdateRepoAvatarOption": {
- "description": "UpdateRepoAvatarUserOption options when updating the repo avatar",
- "type": "object",
- "properties": {
- "image": {
- "description": "image must be base64 encoded",
- "type": "string",
- "x-go-name": "Image"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "UpdateUserAvatarOption": {
- "description": "UpdateUserAvatarUserOption options when updating the user avatar",
- "type": "object",
- "properties": {
- "image": {
- "description": "image must be base64 encoded",
- "type": "string",
- "x-go-name": "Image"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "UpdateVariableOption": {
- "description": "UpdateVariableOption the option when updating variable",
- "type": "object",
- "required": [
- "value"
- ],
- "properties": {
- "name": {
- "description": "New name for the variable. If the field is empty, the variable name won't be updated.",
- "type": "string",
- "x-go-name": "Name"
- },
- "value": {
- "description": "Value of the variable to update",
- "type": "string",
- "x-go-name": "Value"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "User": {
- "description": "User represents a user",
- "type": "object",
- "properties": {
- "active": {
- "description": "Is user active",
- "type": "boolean",
- "x-go-name": "IsActive"
- },
- "avatar_url": {
- "description": "URL to the user's avatar",
- "type": "string",
- "x-go-name": "AvatarURL"
- },
- "created": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Created"
- },
- "description": {
- "description": "the user's description",
- "type": "string",
- "x-go-name": "Description"
- },
- "email": {
- "type": "string",
- "format": "email",
- "x-go-name": "Email"
- },
- "followers_count": {
- "description": "user counts",
- "type": "integer",
- "format": "int64",
- "x-go-name": "Followers"
- },
- "following_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Following"
- },
- "full_name": {
- "description": "the user's full name",
- "type": "string",
- "x-go-name": "FullName"
- },
- "html_url": {
- "description": "URL to the user's gitea page",
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "id": {
- "description": "the user's id",
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "is_admin": {
- "description": "Is the user an administrator",
- "type": "boolean",
- "x-go-name": "IsAdmin"
- },
- "language": {
- "description": "User locale",
- "type": "string",
- "x-go-name": "Language"
- },
- "last_login": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "LastLogin"
- },
- "location": {
- "description": "the user's location",
- "type": "string",
- "x-go-name": "Location"
- },
- "login": {
- "description": "the user's username",
- "type": "string",
- "x-go-name": "UserName"
- },
- "login_name": {
- "description": "the user's authentication sign-in name.",
- "type": "string",
- "default": "empty",
- "x-go-name": "LoginName"
- },
- "prohibit_login": {
- "description": "Is user login prohibited",
- "type": "boolean",
- "x-go-name": "ProhibitLogin"
- },
- "restricted": {
- "description": "Is user restricted",
- "type": "boolean",
- "x-go-name": "Restricted"
- },
- "source_id": {
- "description": "The ID of the user's Authentication Source",
- "type": "integer",
- "format": "int64",
- "x-go-name": "SourceID"
- },
- "starred_repos_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "StarredRepos"
- },
- "visibility": {
- "description": "User visibility level option: public, limited, private",
- "type": "string",
- "x-go-name": "Visibility"
- },
- "website": {
- "description": "the user's website",
- "type": "string",
- "x-go-name": "Website"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "UserBadgeOption": {
- "description": "UserBadgeOption options for link between users and badges",
- "type": "object",
- "properties": {
- "badge_slugs": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "x-go-name": "BadgeSlugs",
- "example": [
- "badge1",
- "badge2"
- ]
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "UserHeatmapData": {
- "description": "UserHeatmapData represents the data needed to create a heatmap",
- "type": "object",
- "properties": {
- "contributions": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Contributions"
- },
- "timestamp": {
- "$ref": "#/definitions/TimeStamp"
- }
- },
- "x-go-package": "code.gitea.io/gitea/models/activities"
- },
- "UserSettings": {
- "description": "UserSettings represents user settings",
- "type": "object",
- "properties": {
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "diff_view_style": {
- "type": "string",
- "x-go-name": "DiffViewStyle"
- },
- "full_name": {
- "type": "string",
- "x-go-name": "FullName"
- },
- "hide_activity": {
- "type": "boolean",
- "x-go-name": "HideActivity"
- },
- "hide_email": {
- "description": "Privacy",
- "type": "boolean",
- "x-go-name": "HideEmail"
- },
- "language": {
- "type": "string",
- "x-go-name": "Language"
- },
- "location": {
- "type": "string",
- "x-go-name": "Location"
- },
- "theme": {
- "type": "string",
- "x-go-name": "Theme"
- },
- "website": {
- "type": "string",
- "x-go-name": "Website"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "UserSettingsOptions": {
- "description": "UserSettingsOptions represents options to change user settings",
- "type": "object",
- "properties": {
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "diff_view_style": {
- "type": "string",
- "x-go-name": "DiffViewStyle"
- },
- "full_name": {
- "type": "string",
- "x-go-name": "FullName"
- },
- "hide_activity": {
- "type": "boolean",
- "x-go-name": "HideActivity"
- },
- "hide_email": {
- "description": "Privacy",
- "type": "boolean",
- "x-go-name": "HideEmail"
- },
- "language": {
- "type": "string",
- "x-go-name": "Language"
- },
- "location": {
- "type": "string",
- "x-go-name": "Location"
- },
- "theme": {
- "type": "string",
- "x-go-name": "Theme"
- },
- "website": {
- "type": "string",
- "x-go-name": "Website"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "WatchInfo": {
- "description": "WatchInfo represents an API watch status of one repository",
- "type": "object",
- "properties": {
- "created_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "CreatedAt"
- },
- "ignored": {
- "type": "boolean",
- "x-go-name": "Ignored"
- },
- "reason": {
- "x-go-name": "Reason"
- },
- "repository_url": {
- "type": "string",
- "x-go-name": "RepositoryURL"
- },
- "subscribed": {
- "type": "boolean",
- "x-go-name": "Subscribed"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "WikiCommit": {
- "description": "WikiCommit page commit/revision",
- "type": "object",
- "properties": {
- "author": {
- "$ref": "#/definitions/CommitUser"
- },
- "commiter": {
- "$ref": "#/definitions/CommitUser"
- },
- "message": {
- "type": "string",
- "x-go-name": "Message"
- },
- "sha": {
- "type": "string",
- "x-go-name": "ID"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "WikiCommitList": {
- "description": "WikiCommitList commit/revision list",
- "type": "object",
- "properties": {
- "commits": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/WikiCommit"
- },
- "x-go-name": "WikiCommits"
- },
- "count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "Count"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "WikiPage": {
- "description": "WikiPage a wiki page",
- "type": "object",
- "properties": {
- "commit_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "CommitCount"
- },
- "content_base64": {
- "description": "Page content, base64 encoded",
- "type": "string",
- "x-go-name": "ContentBase64"
- },
- "footer": {
- "type": "string",
- "x-go-name": "Footer"
- },
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "last_commit": {
- "$ref": "#/definitions/WikiCommit"
- },
- "sidebar": {
- "type": "string",
- "x-go-name": "Sidebar"
- },
- "sub_url": {
- "type": "string",
- "x-go-name": "SubURL"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "WikiPageMetaData": {
- "description": "WikiPageMetaData wiki page meta information",
- "type": "object",
- "properties": {
- "html_url": {
- "type": "string",
- "x-go-name": "HTMLURL"
- },
- "last_commit": {
- "$ref": "#/definitions/WikiCommit"
- },
- "sub_url": {
- "type": "string",
- "x-go-name": "SubURL"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- }
- },
- "responses": {
- "AccessToken": {
- "description": "AccessToken represents an API access token.",
- "schema": {
- "$ref": "#/definitions/AccessToken"
- }
- },
- "AccessTokenList": {
- "description": "AccessTokenList represents a list of API access token.",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/AccessToken"
- }
- }
- },
- "ActionVariable": {
- "description": "ActionVariable",
- "schema": {
- "$ref": "#/definitions/ActionVariable"
- }
- },
- "ActivityFeedsList": {
- "description": "ActivityFeedsList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Activity"
- }
- }
- },
- "ActivityPub": {
- "description": "ActivityPub",
- "schema": {
- "$ref": "#/definitions/ActivityPub"
- }
- },
- "AnnotatedTag": {
- "description": "AnnotatedTag",
- "schema": {
- "$ref": "#/definitions/AnnotatedTag"
- }
- },
- "Attachment": {
- "description": "Attachment",
- "schema": {
- "$ref": "#/definitions/Attachment"
- }
- },
- "AttachmentList": {
- "description": "AttachmentList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Attachment"
- }
- }
- },
- "BadgeList": {
- "description": "BadgeList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Badge"
- }
- }
- },
- "Branch": {
- "description": "Branch",
- "schema": {
- "$ref": "#/definitions/Branch"
- }
- },
- "BranchList": {
- "description": "BranchList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Branch"
- }
- }
- },
- "BranchProtection": {
- "description": "BranchProtection",
- "schema": {
- "$ref": "#/definitions/BranchProtection"
- }
- },
- "BranchProtectionList": {
- "description": "BranchProtectionList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/BranchProtection"
- }
- }
- },
- "ChangedFileList": {
- "description": "ChangedFileList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/ChangedFile"
- }
- },
- "headers": {
- "X-HasMore": {
- "type": "boolean",
- "description": "True if there is another page"
- },
- "X-Page": {
- "type": "integer",
- "format": "int64",
- "description": "The current page"
- },
- "X-PageCount": {
- "type": "integer",
- "format": "int64",
- "description": "Total number of pages"
- },
- "X-PerPage": {
- "type": "integer",
- "format": "int64",
- "description": "Commits per page"
- },
- "X-Total": {
- "type": "integer",
- "format": "int64",
- "description": "Total commit count"
- }
- }
- },
- "CombinedStatus": {
- "description": "CombinedStatus",
- "schema": {
- "$ref": "#/definitions/CombinedStatus"
- }
- },
- "Comment": {
- "description": "Comment",
- "schema": {
- "$ref": "#/definitions/Comment"
- }
- },
- "CommentList": {
- "description": "CommentList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Comment"
- }
- }
- },
- "Commit": {
- "description": "Commit",
- "schema": {
- "$ref": "#/definitions/Commit"
- }
- },
- "CommitList": {
- "description": "CommitList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Commit"
- }
- },
- "headers": {
- "X-HasMore": {
- "type": "boolean",
- "description": "True if there is another page"
- },
- "X-Page": {
- "type": "integer",
- "format": "int64",
- "description": "The current page"
- },
- "X-PageCount": {
- "type": "integer",
- "format": "int64",
- "description": "Total number of pages"
- },
- "X-PerPage": {
- "type": "integer",
- "format": "int64",
- "description": "Commits per page"
- },
- "X-Total": {
- "type": "integer",
- "format": "int64",
- "description": "Total commit count"
- }
- }
- },
- "CommitStatus": {
- "description": "CommitStatus",
- "schema": {
- "$ref": "#/definitions/CommitStatus"
- }
- },
- "CommitStatusList": {
- "description": "CommitStatusList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/CommitStatus"
- }
- }
- },
- "Compare": {
- "description": "",
- "schema": {
- "$ref": "#/definitions/Compare"
- }
- },
- "ContentsListResponse": {
- "description": "ContentsListResponse",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/ContentsResponse"
- }
- }
- },
- "ContentsResponse": {
- "description": "ContentsResponse",
- "schema": {
- "$ref": "#/definitions/ContentsResponse"
- }
- },
- "CronList": {
- "description": "CronList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Cron"
- }
- }
- },
- "DeployKey": {
- "description": "DeployKey",
- "schema": {
- "$ref": "#/definitions/DeployKey"
- }
- },
- "DeployKeyList": {
- "description": "DeployKeyList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/DeployKey"
- }
- }
- },
- "EmailList": {
- "description": "EmailList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Email"
- }
- }
- },
- "EmptyRepository": {
- "description": "EmptyRepository",
- "schema": {
- "$ref": "#/definitions/APIError"
- }
- },
- "FileDeleteResponse": {
- "description": "FileDeleteResponse",
- "schema": {
- "$ref": "#/definitions/FileDeleteResponse"
- }
- },
- "FileResponse": {
- "description": "FileResponse",
- "schema": {
- "$ref": "#/definitions/FileResponse"
- }
- },
- "FilesResponse": {
- "description": "FilesResponse",
- "schema": {
- "$ref": "#/definitions/FilesResponse"
- }
- },
- "GPGKey": {
- "description": "GPGKey",
- "schema": {
- "$ref": "#/definitions/GPGKey"
- }
- },
- "GPGKeyList": {
- "description": "GPGKeyList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/GPGKey"
- }
- }
- },
- "GeneralAPISettings": {
- "description": "GeneralAPISettings",
- "schema": {
- "$ref": "#/definitions/GeneralAPISettings"
- }
- },
- "GeneralAttachmentSettings": {
- "description": "GeneralAttachmentSettings",
- "schema": {
- "$ref": "#/definitions/GeneralAttachmentSettings"
- }
- },
- "GeneralRepoSettings": {
- "description": "GeneralRepoSettings",
- "schema": {
- "$ref": "#/definitions/GeneralRepoSettings"
- }
- },
- "GeneralUISettings": {
- "description": "GeneralUISettings",
- "schema": {
- "$ref": "#/definitions/GeneralUISettings"
- }
- },
- "GitBlobResponse": {
- "description": "GitBlobResponse",
- "schema": {
- "$ref": "#/definitions/GitBlobResponse"
- }
- },
- "GitHook": {
- "description": "GitHook",
- "schema": {
- "$ref": "#/definitions/GitHook"
- }
- },
- "GitHookList": {
- "description": "GitHookList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/GitHook"
- }
- }
- },
- "GitTreeResponse": {
- "description": "GitTreeResponse",
- "schema": {
- "$ref": "#/definitions/GitTreeResponse"
- }
- },
- "GitignoreTemplateInfo": {
- "description": "GitignoreTemplateInfo",
- "schema": {
- "$ref": "#/definitions/GitignoreTemplateInfo"
- }
- },
- "GitignoreTemplateList": {
- "description": "GitignoreTemplateList",
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "Hook": {
- "description": "Hook",
- "schema": {
- "$ref": "#/definitions/Hook"
- }
- },
- "HookList": {
- "description": "HookList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Hook"
- }
- }
- },
- "Issue": {
- "description": "Issue",
- "schema": {
- "$ref": "#/definitions/Issue"
- }
- },
- "IssueDeadline": {
- "description": "IssueDeadline",
- "schema": {
- "$ref": "#/definitions/IssueDeadline"
- }
- },
- "IssueList": {
- "description": "IssueList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Issue"
- }
- }
- },
- "IssueTemplates": {
- "description": "IssueTemplates",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/IssueTemplate"
- }
- }
- },
- "Label": {
- "description": "Label",
- "schema": {
- "$ref": "#/definitions/Label"
- }
- },
- "LabelList": {
- "description": "LabelList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Label"
- }
- }
- },
- "LabelTemplateInfo": {
- "description": "LabelTemplateInfo",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/LabelTemplate"
- }
- }
- },
- "LabelTemplateList": {
- "description": "LabelTemplateList",
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "LanguageStatistics": {
- "description": "LanguageStatistics",
- "schema": {
- "type": "object",
- "additionalProperties": {
- "type": "integer",
- "format": "int64"
- }
- }
- },
- "LicenseTemplateInfo": {
- "description": "LicenseTemplateInfo",
- "schema": {
- "$ref": "#/definitions/LicenseTemplateInfo"
- }
- },
- "LicenseTemplateList": {
- "description": "LicenseTemplateList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/LicensesTemplateListEntry"
- }
- }
- },
- "MarkdownRender": {
- "description": "MarkdownRender is a rendered markdown document",
- "schema": {
- "type": "string"
- }
- },
- "MarkupRender": {
- "description": "MarkupRender is a rendered markup document",
- "schema": {
- "type": "string"
- }
- },
- "Milestone": {
- "description": "Milestone",
- "schema": {
- "$ref": "#/definitions/Milestone"
- }
- },
- "MilestoneList": {
- "description": "MilestoneList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Milestone"
- }
- }
- },
- "NodeInfo": {
- "description": "NodeInfo",
- "schema": {
- "$ref": "#/definitions/NodeInfo"
- }
- },
- "Note": {
- "description": "Note",
- "schema": {
- "$ref": "#/definitions/Note"
- }
- },
- "NotificationCount": {
- "description": "Number of unread notifications",
- "schema": {
- "$ref": "#/definitions/NotificationCount"
- }
- },
- "NotificationThread": {
- "description": "NotificationThread",
- "schema": {
- "$ref": "#/definitions/NotificationThread"
- }
- },
- "NotificationThreadList": {
- "description": "NotificationThreadList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/NotificationThread"
- }
- }
- },
- "OAuth2Application": {
- "description": "OAuth2Application",
- "schema": {
- "$ref": "#/definitions/OAuth2Application"
- }
- },
- "OAuth2ApplicationList": {
- "description": "OAuth2ApplicationList represents a list of OAuth2 applications.",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/OAuth2Application"
- }
- }
- },
- "Organization": {
- "description": "Organization",
- "schema": {
- "$ref": "#/definitions/Organization"
- }
- },
- "OrganizationList": {
- "description": "OrganizationList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Organization"
- }
- }
- },
- "OrganizationPermissions": {
- "description": "OrganizationPermissions",
- "schema": {
- "$ref": "#/definitions/OrganizationPermissions"
- }
- },
- "Package": {
- "description": "Package",
- "schema": {
- "$ref": "#/definitions/Package"
- }
- },
- "PackageFileList": {
- "description": "PackageFileList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PackageFile"
- }
- }
- },
- "PackageList": {
- "description": "PackageList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Package"
- }
- }
- },
- "PublicKey": {
- "description": "PublicKey",
- "schema": {
- "$ref": "#/definitions/PublicKey"
- }
- },
- "PublicKeyList": {
- "description": "PublicKeyList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PublicKey"
- }
- }
- },
- "PullRequest": {
- "description": "PullRequest",
- "schema": {
- "$ref": "#/definitions/PullRequest"
- }
- },
- "PullRequestList": {
- "description": "PullRequestList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PullRequest"
- }
- }
- },
- "PullReview": {
- "description": "PullReview",
- "schema": {
- "$ref": "#/definitions/PullReview"
- }
- },
- "PullReviewComment": {
- "description": "PullComment",
- "schema": {
- "$ref": "#/definitions/PullReviewComment"
- }
- },
- "PullReviewCommentList": {
- "description": "PullCommentList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PullReviewComment"
- }
- }
- },
- "PullReviewList": {
- "description": "PullReviewList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PullReview"
- }
- }
- },
- "PushMirror": {
- "description": "PushMirror",
- "schema": {
- "$ref": "#/definitions/PushMirror"
- }
- },
- "PushMirrorList": {
- "description": "PushMirrorList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PushMirror"
- }
- }
- },
- "Reaction": {
- "description": "Reaction",
- "schema": {
- "$ref": "#/definitions/Reaction"
- }
- },
- "ReactionList": {
- "description": "ReactionList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Reaction"
- }
- }
- },
- "Reference": {
- "description": "Reference",
- "schema": {
- "$ref": "#/definitions/Reference"
- }
- },
- "ReferenceList": {
- "description": "ReferenceList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Reference"
- }
- }
- },
- "RegistrationToken": {
- "description": "RegistrationToken is response related to registration token",
- "headers": {
- "token": {
- "type": "string"
- }
- }
- },
- "Release": {
- "description": "Release",
- "schema": {
- "$ref": "#/definitions/Release"
- }
- },
- "ReleaseList": {
- "description": "ReleaseList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Release"
- }
- }
- },
- "RepoCollaboratorPermission": {
- "description": "RepoCollaboratorPermission",
- "schema": {
- "$ref": "#/definitions/RepoCollaboratorPermission"
- }
- },
- "RepoIssueConfig": {
- "description": "RepoIssueConfig",
- "schema": {
- "$ref": "#/definitions/IssueConfig"
- }
- },
- "RepoIssueConfigValidation": {
- "description": "RepoIssueConfigValidation",
- "schema": {
- "$ref": "#/definitions/IssueConfigValidation"
- }
- },
- "RepoNewIssuePinsAllowed": {
- "description": "RepoNewIssuePinsAllowed",
- "schema": {
- "$ref": "#/definitions/NewIssuePinsAllowed"
- }
- },
- "Repository": {
- "description": "Repository",
- "schema": {
- "$ref": "#/definitions/Repository"
- }
- },
- "RepositoryList": {
- "description": "RepositoryList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Repository"
- }
- }
- },
- "SearchResults": {
- "description": "SearchResults",
- "schema": {
- "$ref": "#/definitions/SearchResults"
- }
- },
- "Secret": {
- "description": "Secret",
- "schema": {
- "$ref": "#/definitions/Secret"
- }
- },
- "SecretList": {
- "description": "SecretList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Secret"
- }
- }
- },
- "ServerVersion": {
- "description": "ServerVersion",
- "schema": {
- "$ref": "#/definitions/ServerVersion"
- }
- },
- "StopWatch": {
- "description": "StopWatch",
- "schema": {
- "$ref": "#/definitions/StopWatch"
- }
- },
- "StopWatchList": {
- "description": "StopWatchList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/StopWatch"
- }
- }
- },
- "StringSlice": {
- "description": "StringSlice",
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "Tag": {
- "description": "Tag",
- "schema": {
- "$ref": "#/definitions/Tag"
- }
- },
- "TagList": {
- "description": "TagList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Tag"
- }
- }
- },
- "Team": {
- "description": "Team",
- "schema": {
- "$ref": "#/definitions/Team"
- }
- },
- "TeamList": {
- "description": "TeamList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Team"
- }
- }
- },
- "TimelineList": {
- "description": "TimelineList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/TimelineComment"
- }
- }
- },
- "TopicListResponse": {
- "description": "TopicListResponse",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/TopicResponse"
- }
- }
- },
- "TopicNames": {
- "description": "TopicNames",
- "schema": {
- "$ref": "#/definitions/TopicName"
- }
- },
- "TrackedTime": {
- "description": "TrackedTime",
- "schema": {
- "$ref": "#/definitions/TrackedTime"
- }
- },
- "TrackedTimeList": {
- "description": "TrackedTimeList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/TrackedTime"
- }
- }
- },
- "User": {
- "description": "User",
- "schema": {
- "$ref": "#/definitions/User"
- }
- },
- "UserHeatmapData": {
- "description": "UserHeatmapData",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/UserHeatmapData"
- }
- }
- },
- "UserList": {
- "description": "UserList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/User"
- }
- }
- },
- "UserSettings": {
- "description": "UserSettings",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/UserSettings"
- }
- }
- },
- "VariableList": {
- "description": "VariableList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/ActionVariable"
- }
- }
- },
- "WatchInfo": {
- "description": "WatchInfo",
- "schema": {
- "$ref": "#/definitions/WatchInfo"
- }
- },
- "WikiCommitList": {
- "description": "WikiCommitList",
- "schema": {
- "$ref": "#/definitions/WikiCommitList"
- }
- },
- "WikiPage": {
- "description": "WikiPage",
- "schema": {
- "$ref": "#/definitions/WikiPage"
- }
- },
- "WikiPageList": {
- "description": "WikiPageList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/WikiPageMetaData"
- }
- }
- },
- "conflict": {
- "description": "APIConflict is a conflict empty response"
- },
- "empty": {
- "description": "APIEmpty is an empty response"
- },
- "error": {
- "description": "APIError is error format response",
- "headers": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "forbidden": {
- "description": "APIForbiddenError is a forbidden error response",
- "headers": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "invalidTopicsError": {
- "description": "APIInvalidTopicsError is error format response to invalid topics",
- "headers": {
- "invalidTopics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "message": {
- "type": "string"
- }
- }
- },
- "notFound": {
- "description": "APINotFound is a not found empty response"
- },
- "parameterBodies": {
- "description": "parameterBodies",
- "schema": {
- "$ref": "#/definitions/UpdateVariableOption"
- }
- },
- "redirect": {
- "description": "APIRedirect is a redirect response"
- },
- "repoArchivedError": {
- "description": "APIRepoArchivedError is an error that is raised when an archived repo should be modified",
- "headers": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "string": {
- "description": "APIString is a string response",
- "schema": {
- "type": "string"
- }
- },
- "validationError": {
- "description": "APIValidationError is error format response related to input validation",
- "headers": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- },
- "securityDefinitions": {
- "AccessToken": {
- "description": "This authentication option is deprecated for removal in Gitea 1.23. Please use AuthorizationHeaderToken instead.",
- "type": "apiKey",
- "name": "access_token",
- "in": "query"
- },
- "AuthorizationHeaderToken": {
- "description": "API tokens must be prepended with \"token\" followed by a space.",
- "type": "apiKey",
- "name": "Authorization",
- "in": "header"
- },
- "BasicAuth": {
- "type": "basic"
- },
- "SudoHeader": {
- "description": "Sudo API request as the user provided as the key. Admin privileges are required.",
- "type": "apiKey",
- "name": "Sudo",
- "in": "header"
- },
- "SudoParam": {
- "description": "Sudo API request as the user provided as the key. Admin privileges are required.",
- "type": "apiKey",
- "name": "sudo",
- "in": "query"
- },
- "TOTPHeader": {
- "description": "Must be used in combination with BasicAuth if two-factor authentication is enabled.",
- "type": "apiKey",
- "name": "X-GITEA-OTP",
- "in": "header"
- },
- "Token": {
- "description": "This authentication option is deprecated for removal in Gitea 1.23. Please use AuthorizationHeaderToken instead.",
- "type": "apiKey",
- "name": "token",
- "in": "query"
- }
- },
- "security": [
- {
- "BasicAuth": []
- },
- {
- "Token": []
- },
- {
- "AccessToken": []
- },
- {
- "AuthorizationHeaderToken": []
- },
- {
- "SudoParam": []
- },
- {
- "SudoHeader": []
- },
- {
- "TOTPHeader": []
- }
- ]
-}
diff --git a/user/auth/activate.tmpl b/user/auth/activate.tmpl
deleted file mode 100644
index 7f8ff0e..0000000
--- a/user/auth/activate.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
- {{if .NeedVerifyLocalPassword}}
-
- {{ctx.Locale.Tr "password"}}
-
-
-
- {{ctx.Locale.Tr "install.confirm_password"}}
-
-
- {{else}}
-
{{ctx.Locale.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email}}
-
- {{ctx.Locale.Tr "auth.change_unconfirmed_mail_address"}}
-
- {{ctx.Locale.Tr "email"}}
-
-
-
-
-
- {{ctx.Locale.Tr "auth.resend_mail"}}
-
- {{end}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/activate_prompt.tmpl b/user/auth/activate_prompt.tmpl
deleted file mode 100644
index 237244d..0000000
--- a/user/auth/activate_prompt.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
- {{template "base/alert" .}}
-
{{.ActivationPromptMessage}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/captcha.tmpl b/user/auth/captcha.tmpl
deleted file mode 100644
index 0e9c2b9..0000000
--- a/user/auth/captcha.tmpl
+++ /dev/null
@@ -1,30 +0,0 @@
-{{if .EnableCaptcha}}{{if eq .CaptchaType "image"}}
-
- {{.Captcha.CreateHTML}}
-
-
- {{ctx.Locale.Tr "captcha"}}
-
-
-{{else if eq .CaptchaType "recaptcha"}}
-
-
-{{else if eq .CaptchaType "hcaptcha"}}
-
-
-{{else if eq .CaptchaType "mcaptcha"}}
-
-{{else if eq .CaptchaType "cfturnstile"}}
-
-
-{{end}}{{end}}
diff --git a/user/auth/change_passwd.tmpl b/user/auth/change_passwd.tmpl
deleted file mode 100644
index e05f46f..0000000
--- a/user/auth/change_passwd.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-{{template "base/head" .}}
-
-
- {{template "user/auth/change_passwd_inner" .}}
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/change_passwd_inner.tmpl b/user/auth/change_passwd_inner.tmpl
deleted file mode 100644
index 01bbf50..0000000
--- a/user/auth/change_passwd_inner.tmpl
+++ /dev/null
@@ -1,22 +0,0 @@
- {{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn)}}
- {{template "base/alert" .}}
- {{end}}
-
-
diff --git a/user/auth/finalize_openid.tmpl b/user/auth/finalize_openid.tmpl
deleted file mode 100644
index 1c1dcdb..0000000
--- a/user/auth/finalize_openid.tmpl
+++ /dev/null
@@ -1,47 +0,0 @@
-{{template "base/head" .}}
-
-
-
- {{template "user/auth/finalize_openid_navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/forgot_passwd.tmpl b/user/auth/forgot_passwd.tmpl
deleted file mode 100644
index 55bcf63..0000000
--- a/user/auth/forgot_passwd.tmpl
+++ /dev/null
@@ -1,39 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
- {{if .IsResetSent}}
-
{{ctx.Locale.Tr "auth.reset_password_mail_sent_prompt" .Email .ResetPwdCodeLives}}
- {{else if .IsResetRequest}}
-
- {{ctx.Locale.Tr "email"}}
-
-
-
-
- {{ctx.Locale.Tr "auth.send_reset_mail"}}
-
- {{else if .IsResetDisable}}
-
- {{if $.IsAdmin}}
- {{ctx.Locale.Tr "auth.disable_forgot_password_mail_admin"}}
- {{else}}
- {{ctx.Locale.Tr "auth.disable_forgot_password_mail"}}
- {{end}}
-
- {{else if .ResendLimited}}
-
{{ctx.Locale.Tr "auth.resent_limit_prompt"}}
- {{end}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/grant.tmpl b/user/auth/grant.tmpl
deleted file mode 100644
index a18a3bd..0000000
--- a/user/auth/grant.tmpl
+++ /dev/null
@@ -1,33 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "auth.authorize_application_description"}}
- {{ctx.Locale.Tr "auth.authorize_application_created_by" .ApplicationCreatorLinkHTML}}
-
-
-
-
{{ctx.Locale.Tr "auth.authorize_redirect_notice" .ApplicationRedirectDomainHTML}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
-
- {{ctx.Locale.Tr "auth.authorize_application"}}
- {{ctx.Locale.Tr "cancel"}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/grant_error.tmpl b/user/auth/grant_error.tmpl
deleted file mode 100644
index b2e0779..0000000
--- a/user/auth/grant_error.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-{{template "base/head" .}}
-
- {{if .IsRepo}}{{template "repo/header" .}}{{end}}
-
-
-
-
{{.Error.ErrorDescription}}
-
-
{{ctx.Locale.Tr "auth.authorization_failed_desc"}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/link_account.tmpl b/user/auth/link_account.tmpl
deleted file mode 100644
index a99e172..0000000
--- a/user/auth/link_account.tmpl
+++ /dev/null
@@ -1,31 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
- {{if .AutoRegistrationFailedPrompt}}
{{.AutoRegistrationFailedPrompt}}
{{end}}
- {{template "user/auth/signup_inner" .}}
-
-
- {{template "user/auth/signin_inner" .}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/oidc_wellknown.tmpl b/user/auth/oidc_wellknown.tmpl
deleted file mode 100644
index 54bb4a7..0000000
--- a/user/auth/oidc_wellknown.tmpl
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "issuer": "{{AppUrl | JSEscape}}",
- "authorization_endpoint": "{{AppUrl | JSEscape}}login/oauth/authorize",
- "token_endpoint": "{{AppUrl | JSEscape}}login/oauth/access_token",
- "jwks_uri": "{{AppUrl | JSEscape}}login/oauth/keys",
- "userinfo_endpoint": "{{AppUrl | JSEscape}}login/oauth/userinfo",
- "introspection_endpoint": "{{AppUrl | JSEscape}}login/oauth/introspect",
- "response_types_supported": [
- "code",
- "id_token"
- ],
- "id_token_signing_alg_values_supported": [
- "{{.SigningKey.SigningMethod.Alg | JSEscape}}"
- ],
- "subject_types_supported": [
- "public"
- ],
- "scopes_supported": [
- "openid",
- "profile",
- "email",
- "groups"
- ],
- "claims_supported": [
- "aud",
- "exp",
- "iat",
- "iss",
- "sub",
- "name",
- "preferred_username",
- "profile",
- "picture",
- "website",
- "locale",
- "updated_at",
- "email",
- "email_verified",
- "groups"
- ],
- "code_challenge_methods_supported": [
- "plain",
- "S256"
- ],
- "grant_types_supported": [
- "authorization_code",
- "refresh_token"
- ]
-}
diff --git a/user/auth/prohibit_login.tmpl b/user/auth/prohibit_login.tmpl
deleted file mode 100644
index 962ddfa..0000000
--- a/user/auth/prohibit_login.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "auth.prohibit_login_desc"}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/reset_passwd.tmpl b/user/auth/reset_passwd.tmpl
deleted file mode 100644
index f8303fe..0000000
--- a/user/auth/reset_passwd.tmpl
+++ /dev/null
@@ -1,65 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{template "base/alert" .}}
- {{if .user_email}}
-
- {{ctx.Locale.Tr "email"}}
-
-
- {{end}}
- {{if .IsResetForm}}
-
- {{ctx.Locale.Tr "settings.new_password"}}
-
-
- {{if not .user_signed_in}}
-
-
- {{ctx.Locale.Tr "auth.remember_me"}}
-
-
-
- {{end}}
- {{if .has_two_factor}}
-
-
{{ctx.Locale.Tr "settings.twofa_is_enrolled"}}
- {{if .scratch_code}}
-
- {{ctx.Locale.Tr "auth.scratch_code"}}
-
-
-
- {{else}}
-
- {{ctx.Locale.Tr "passcode"}}
-
-
- {{end}}
- {{end}}
-
-
- {{else}}
-
{{ctx.Locale.Tr "auth.invalid_code_forgot_password" (printf "%s/user/forgot_password" AppSubUrl)}}
- {{end}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/signin.tmpl b/user/auth/signin.tmpl
deleted file mode 100644
index b0e9ce8..0000000
--- a/user/auth/signin.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/auth/signin_navbar" .}}
-
-
- {{template "user/auth/signin_inner" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/signin_inner.tmpl b/user/auth/signin_inner.tmpl
deleted file mode 100644
index 9872096..0000000
--- a/user/auth/signin_inner.tmpl
+++ /dev/null
@@ -1,70 +0,0 @@
-{{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn)}}
-{{template "base/alert" .}}
-{{end}}
-
-
diff --git a/user/auth/signin_navbar.tmpl b/user/auth/signin_navbar.tmpl
deleted file mode 100644
index 7f52185..0000000
--- a/user/auth/signin_navbar.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-{{if or .EnableOpenIDSignIn .EnableSSPI}}
-
-{{end}}
diff --git a/user/auth/signin_openid.tmpl b/user/auth/signin_openid.tmpl
deleted file mode 100644
index c1f392d..0000000
--- a/user/auth/signin_openid.tmpl
+++ /dev/null
@@ -1,36 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/auth/signin_navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "auth.openid_signin_desc"}}
-
-
-
- {{svg "fontawesome-openid"}}
- OpenID URI
-
-
-
-
-
- {{ctx.Locale.Tr "auth.remember_me"}}
-
-
-
-
- {{ctx.Locale.Tr "sign_in"}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/signup.tmpl b/user/auth/signup.tmpl
deleted file mode 100644
index f238413..0000000
--- a/user/auth/signup.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/auth/signin_navbar" .}}
-
- {{template "user/auth/signup_inner" .}}
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/signup_inner.tmpl b/user/auth/signup_inner.tmpl
deleted file mode 100644
index bdb691d..0000000
--- a/user/auth/signup_inner.tmpl
+++ /dev/null
@@ -1,76 +0,0 @@
-
diff --git a/user/auth/signup_openid_connect.tmpl b/user/auth/signup_openid_connect.tmpl
deleted file mode 100644
index e4b7936..0000000
--- a/user/auth/signup_openid_connect.tmpl
+++ /dev/null
@@ -1,36 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/auth/signup_openid_navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/signup_openid_navbar.tmpl b/user/auth/signup_openid_navbar.tmpl
deleted file mode 100644
index 89068dd..0000000
--- a/user/auth/signup_openid_navbar.tmpl
+++ /dev/null
@@ -1,12 +0,0 @@
-
diff --git a/user/auth/signup_openid_register.tmpl b/user/auth/signup_openid_register.tmpl
deleted file mode 100644
index c017a0e..0000000
--- a/user/auth/signup_openid_register.tmpl
+++ /dev/null
@@ -1,37 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/auth/signup_openid_navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/twofa.tmpl b/user/auth/twofa.tmpl
deleted file mode 100644
index d245239..0000000
--- a/user/auth/twofa.tmpl
+++ /dev/null
@@ -1,26 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "passcode"}}
-
-
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/twofa_scratch.tmpl b/user/auth/twofa_scratch.tmpl
deleted file mode 100644
index 23ad77f..0000000
--- a/user/auth/twofa_scratch.tmpl
+++ /dev/null
@@ -1,25 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{ctx.Locale.Tr "auth.scratch_code"}}
-
-
-
-
- {{ctx.Locale.Tr "auth.verify"}}
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/webauthn.tmpl b/user/auth/webauthn.tmpl
deleted file mode 100644
index 1b84765..0000000
--- a/user/auth/webauthn.tmpl
+++ /dev/null
@@ -1,25 +0,0 @@
-{{template "base/head" .}}
-
-
-
- {{template "user/auth/webauthn_error" .}}
-
-
- {{svg "octicon-key" 56}}
-
{{ctx.Locale.Tr "webauthn_insert_key"}}
- {{template "base/alert" .}}
-
{{ctx.Locale.Tr "webauthn_sign_in"}}
-
-
-
- {{ctx.Locale.Tr "webauthn_press_button"}}
-
- {{if .HasTwoFactor}}
-
- {{end}}
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/webauthn_error.tmpl b/user/auth/webauthn_error.tmpl
deleted file mode 100644
index 511ff7c..0000000
--- a/user/auth/webauthn_error.tmpl
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
{{ctx.Locale.Tr "webauthn_unsupported_browser"}}
-
{{ctx.Locale.Tr "webauthn_error_unknown"}}
-
{{ctx.Locale.Tr "webauthn_error_insecure"}}
-
{{ctx.Locale.Tr "webauthn_error_unable_to_process"}}
-
{{ctx.Locale.Tr "webauthn_error_duplicated"}}
-
{{ctx.Locale.Tr "webauthn_error_empty"}}
-
{{ctx.Locale.Tr "webauthn_error_timeout"}}
-
-
diff --git a/user/code.tmpl b/user/code.tmpl
deleted file mode 100644
index ff6c69d..0000000
--- a/user/code.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-{{template "base/head" .}}
-{{if .ContextUser.IsOrganization}}
-
- {{template "org/header" .}}
-
- {{template "shared/search/code/search" .}}
-
-
-{{else}}
-
-
-
-
- {{template "shared/user/profile_big_avatar" .}}
-
-
- {{template "user/overview/header" .}}
- {{template "shared/search/code/search" .}}
-
-
-
-
-{{end}}
-{{template "base/footer" .}}
diff --git a/user/dashboard/courses.tmpl b/user/dashboard/courses.tmpl
new file mode 100644
index 0000000..15a2137
--- /dev/null
+++ b/user/dashboard/courses.tmpl
@@ -0,0 +1,183 @@
+
+
+
+
+ Currently there are no courses available, check back later.
+
+
+
+
+
+
+
+
+
+ UID
+ Name
+ Website
+ Role
+ Action
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UID
+ Name
+ Website
+ Action
+
+
+
+
+
+
+
+
+
diff --git a/user/dashboard/feeds.tmpl b/user/dashboard/feeds.tmpl
deleted file mode 100644
index 60aa194..0000000
--- a/user/dashboard/feeds.tmpl
+++ /dev/null
@@ -1,127 +0,0 @@
-
- {{range .Feeds}}
-
-
- {{ctx.AvatarUtils.AvatarByAction .}}
-
-
-
- {{if gt .ActUser.ID 0}}
-
{{.GetActDisplayName ctx}}
- {{else}}
- {{.ShortActUserName ctx}}
- {{end}}
- {{if .GetOpType.InActions "create_repo"}}
- {{ctx.Locale.Tr "action.create_repo" (.GetRepoLink ctx) (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "rename_repo"}}
- {{ctx.Locale.Tr "action.rename_repo" .GetContent (.GetRepoLink ctx) (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "commit_repo"}}
- {{if .Content}}
- {{ctx.Locale.Tr "action.commit_repo" (.GetRepoLink ctx) (.GetRefLink ctx) .GetBranch (.ShortRepoPath ctx)}}
- {{else}}
- {{ctx.Locale.Tr "action.create_branch" (.GetRepoLink ctx) (.GetRefLink ctx) .GetBranch (.ShortRepoPath ctx)}}
- {{end}}
- {{else if .GetOpType.InActions "create_issue"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.create_issue" (printf "%s/issues/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "create_pull_request"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.create_pull_request" (printf "%s/pulls/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "transfer_repo"}}
- {{ctx.Locale.Tr "action.transfer_repo" .GetContent (.GetRepoLink ctx) (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "push_tag"}}
- {{ctx.Locale.Tr "action.push_tag" (.GetRepoLink ctx) (.GetRefLink ctx) .GetTag (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "comment_issue"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.comment_issue" (printf "%s/issues/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "merge_pull_request"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.merge_pull_request" (printf "%s/pulls/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "close_issue"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.close_issue" (printf "%s/issues/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "reopen_issue"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.reopen_issue" (printf "%s/issues/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "close_pull_request"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.close_pull_request" (printf "%s/pulls/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "reopen_pull_request"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.reopen_pull_request" (printf "%s/pulls/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "delete_tag"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.delete_tag" (.GetRepoLink ctx) .GetTag (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "delete_branch"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.delete_branch" (.GetRepoLink ctx) .GetBranch (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "mirror_sync_push"}}
- {{ctx.Locale.Tr "action.mirror_sync_push" (.GetRepoLink ctx) (.GetRefLink ctx) .GetBranch (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "mirror_sync_create"}}
- {{ctx.Locale.Tr "action.mirror_sync_create" (.GetRepoLink ctx) (.GetRefLink ctx) .GetBranch (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "mirror_sync_delete"}}
- {{ctx.Locale.Tr "action.mirror_sync_delete" (.GetRepoLink ctx) .GetBranch (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "approve_pull_request"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.approve_pull_request" (printf "%s/pulls/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "reject_pull_request"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.reject_pull_request" (printf "%s/pulls/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "comment_pull"}}
- {{$index := index .GetIssueInfos 0}}
- {{ctx.Locale.Tr "action.comment_pull" (printf "%s/pulls/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx)}}
- {{else if .GetOpType.InActions "publish_release"}}
- {{$linkText := .Content | RenderEmoji $.Context}}
- {{ctx.Locale.Tr "action.publish_release" (.GetRepoLink ctx) (printf "%s/releases/tag/%s" (.GetRepoLink ctx) .GetTag) (.ShortRepoPath ctx) $linkText}}
- {{else if .GetOpType.InActions "review_dismissed"}}
- {{$index := index .GetIssueInfos 0}}
- {{$reviewer := index .GetIssueInfos 1}}
- {{ctx.Locale.Tr "action.review_dismissed" (printf "%s/pulls/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx) $reviewer}}
- {{end}}
- {{TimeSince .GetCreate ctx.Locale}}
-
- {{if .GetOpType.InActions "commit_repo" "mirror_sync_push"}}
- {{$push := ActionContent2Commits .}}
- {{$repoLink := (.GetRepoLink ctx)}}
- {{$repo := .Repo}}
-
- {{range $push.Commits}}
- {{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}}
-
-
-
{{ShortSha .Sha1}}
-
- {{RenderCommitMessage $.Context .Message ($repo.ComposeMetas ctx)}}
-
-
- {{end}}
-
- {{if and (gt $push.Len 1) $push.CompareURL}}
-
{{ctx.Locale.Tr "action.compare_commits" $push.Len}} »
- {{end}}
- {{else if .GetOpType.InActions "create_issue"}}
-
{{index .GetIssueInfos 1 | RenderEmoji $.Context | RenderCodeBlock}}
- {{else if .GetOpType.InActions "create_pull_request"}}
-
{{index .GetIssueInfos 1 | RenderEmoji $.Context | RenderCodeBlock}}
- {{else if .GetOpType.InActions "comment_issue" "approve_pull_request" "reject_pull_request" "comment_pull"}}
-
{{(.GetIssueTitle ctx) | RenderEmoji $.Context | RenderCodeBlock}}
- {{$comment := index .GetIssueInfos 1}}
- {{if $comment}}
-
{{RenderMarkdownToHtml ctx $comment}}
- {{end}}
- {{else if .GetOpType.InActions "merge_pull_request"}}
-
{{index .GetIssueInfos 1}}
- {{else if .GetOpType.InActions "close_issue" "reopen_issue" "close_pull_request" "reopen_pull_request"}}
-
{{(.GetIssueTitle ctx) | RenderEmoji $.Context | RenderCodeBlock}}
- {{else if .GetOpType.InActions "pull_review_dismissed"}}
-
{{ctx.Locale.Tr "action.review_dismissed_reason"}}
-
{{index .GetIssueInfos 2 | RenderEmoji $.Context}}
- {{end}}
-
-
- {{svg (printf "octicon-%s" (ActionIcon .GetOpType)) 32 "text grey tw-mr-1"}}
-
-
- {{end}}
- {{template "base/paginate" .}}
-
diff --git a/user/dashboard/issues.tmpl b/user/dashboard/issues.tmpl
deleted file mode 100644
index b47a21e..0000000
--- a/user/dashboard/issues.tmpl
+++ /dev/null
@@ -1,80 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/dashboard/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-
-
- {{template "shared/issuelist" dict "." . "listType" "dashboard"}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/dashboard/milestones.tmpl b/user/dashboard/milestones.tmpl
deleted file mode 100644
index 0f1e866..0000000
--- a/user/dashboard/milestones.tmpl
+++ /dev/null
@@ -1,154 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/dashboard/navbar" .}}
-
-
-
-
-
-
-
-
- {{range .Milestones}}
-
-
-
- {{if .Content}}
-
- {{.RenderedContent}}
-
- {{end}}
-
- {{end}}
-
- {{template "base/paginate" .}}
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/dashboard/named_feeds.tmpl b/user/dashboard/named_feeds.tmpl
new file mode 100644
index 0000000..6509350
--- /dev/null
+++ b/user/dashboard/named_feeds.tmpl
@@ -0,0 +1,11 @@
+
+
+
+ {{template "user/dashboard/feeds" .}}
+ {{ $length := len .Feeds }} {{ if eq $length 0 }}
+ Nothing to see here, at least yet.
+ {{ end }}
+
+
diff --git a/user/dashboard/navbar.tmpl b/user/dashboard/navbar.tmpl
deleted file mode 100644
index 4642282..0000000
--- a/user/dashboard/navbar.tmpl
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-
diff --git a/user/dashboard/repolist.tmpl b/user/dashboard/repolist.tmpl
deleted file mode 100644
index be71067..0000000
--- a/user/dashboard/repolist.tmpl
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
diff --git a/user/heatmap.tmpl b/user/heatmap.tmpl
deleted file mode 100644
index b604b92..0000000
--- a/user/heatmap.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{if .HeatmapData}}
-
-
-{{end}}
diff --git a/user/notification/notification.tmpl b/user/notification/notification.tmpl
deleted file mode 100644
index b483c15..0000000
--- a/user/notification/notification.tmpl
+++ /dev/null
@@ -1,3 +0,0 @@
-{{template "base/head" .}}
-{{template "user/notification/notification_div" .}}
-{{template "base/footer" .}}
diff --git a/user/notification/notification_div.tmpl b/user/notification/notification_div.tmpl
deleted file mode 100644
index 9790a70..0000000
--- a/user/notification/notification_div.tmpl
+++ /dev/null
@@ -1,125 +0,0 @@
-
-
- {{$notificationUnreadCount := call .NotificationUnreadCount}}
-
-
- {{if and (eq .Status 1)}}
-
- {{$.CsrfTokenHtml}}
-
-
- {{svg "octicon-checklist"}}
-
-
-
- {{end}}
-
-
-
- {{if not .Notifications}}
-
- {{svg "octicon-inbox" 56 "tw-mb-4"}}
- {{if eq .Status 1}}
- {{ctx.Locale.Tr "notification.no_unread"}}
- {{else}}
- {{ctx.Locale.Tr "notification.no_read"}}
- {{end}}
-
- {{else}}
- {{range $notification := .Notifications}}
-
- {{end}}
- {{end}}
-
-
- {{template "base/paginate" .}}
-
-
diff --git a/user/notification/notification_subscriptions.tmpl b/user/notification/notification_subscriptions.tmpl
deleted file mode 100644
index b92a32a..0000000
--- a/user/notification/notification_subscriptions.tmpl
+++ /dev/null
@@ -1,79 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{if eq .Status 1}}
-
-
- {{if not .Issues}}
- {{ctx.Locale.Tr "notification.no_subscriptions"}}
- {{else}}
- {{template "shared/issuelist" dict "." . "listType" "dashboard"}}
- {{end}}
- {{else}}
- {{template "shared/repo_search" .}}
- {{template "explore/repo_list" .}}
- {{template "base/paginate" .}}
- {{end}}
-
-
-
-{{template "base/footer" .}}
diff --git a/user/overview/header.tmpl b/user/overview/header.tmpl
deleted file mode 100644
index 275c4e2..0000000
--- a/user/overview/header.tmpl
+++ /dev/null
@@ -1,50 +0,0 @@
-
diff --git a/user/overview/package_versions.tmpl b/user/overview/package_versions.tmpl
deleted file mode 100644
index 0ac2db0..0000000
--- a/user/overview/package_versions.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-{{template "base/head" .}}
-{{if .ContextUser.IsOrganization}}
-
- {{template "org/header" .}}
-
- {{template "package/shared/versionlist" .}}
-
-
-{{else}}
-
-
-
-
- {{template "shared/user/profile_big_avatar" .}}
-
-
- {{template "user/overview/header" .}}
- {{template "package/shared/versionlist" .}}
-
-
-
-
-{{end}}
-{{template "base/footer" .}}
diff --git a/user/overview/packages.tmpl b/user/overview/packages.tmpl
deleted file mode 100644
index bb2238b..0000000
--- a/user/overview/packages.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-{{template "base/head" .}}
-{{if .ContextUser.IsOrganization}}
-
- {{template "org/header" .}}
-
- {{template "package/shared/list" .}}
-
-
-{{else}}
-
-
-
-
- {{template "shared/user/profile_big_avatar" .}}
-
-
- {{template "user/overview/header" .}}
- {{template "package/shared/list" .}}
-
-
-
-
-{{end}}
-{{template "base/footer" .}}
diff --git a/user/settings/actions.tmpl b/user/settings/actions.tmpl
deleted file mode 100644
index abc5443..0000000
--- a/user/settings/actions.tmpl
+++ /dev/null
@@ -1,12 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings actions")}}
-
- {{if eq .PageType "secrets"}}
- {{template "shared/secrets/add_list" .}}
- {{else if eq .PageType "runners"}}
- {{template "shared/actions/runner_list" .}}
- {{else if eq .PageType "variables"}}
- {{template "shared/variables/variable_list" .}}
- {{end}}
-
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/appearance.tmpl b/user/settings/appearance.tmpl
deleted file mode 100644
index 4fa2489..0000000
--- a/user/settings/appearance.tmpl
+++ /dev/null
@@ -1,157 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings")}}
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{ctx.Locale.Tr "settings.ui"}}
-
- {{range $theme := .AllThemes}}
- {{$theme}}
- {{end}}
-
-
-
- {{ctx.Locale.Tr "settings.update_theme"}}
-
-
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
{{range .AllLangs}}{{if eq $.SignedUser.Language .Lang}}{{.Name}}{{end}}{{end}}
-
-
-
-
- {{ctx.Locale.Tr "settings.update_language"}}
-
-
-
-
-
-
-
-
- {{ctx.Locale.Tr "settings.hidden_comment_types_description"}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_reference"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_label"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_milestone"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_assignee"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_title"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_branch"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_time_tracking"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_deadline"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_dependency"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_lock"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_review_request"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_pull_request_push"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_project"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.comment_type_group_issue_ref"}}
-
-
-
- {{ctx.Locale.Tr "save"}}
-
-
-
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/applications.tmpl b/user/settings/applications.tmpl
deleted file mode 100644
index 3c1934d..0000000
--- a/user/settings/applications.tmpl
+++ /dev/null
@@ -1,115 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings applications")}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.tokens_desc"}}
-
- {{range .Tokens}}
-
-
-
- {{svg "fontawesome-send" 32}}
-
-
-
-
- {{.Name}}
-
- {{ctx.Locale.Tr "settings.repo_and_org_access"}}:
- {{if .DisplayPublicOnly}}
- {{ctx.Locale.Tr "settings.permissions_public_only"}}
- {{else}}
- {{ctx.Locale.Tr "settings.permissions_access_all"}}
- {{end}}
-
- {{ctx.Locale.Tr "settings.permissions_list"}}
-
- {{range .Scope.StringSlice}}
- {{if (ne . $.AccessTokenScopePublicOnly)}}
- {{.}}
- {{end}}
- {{end}}
-
-
-
- {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix)}} — {{svg "octicon-info"}} {{if .HasUsed}}{{ctx.Locale.Tr "settings.last_used"}} {{DateTime "short" .UpdatedUnix}} {{else}}{{ctx.Locale.Tr "settings.no_activity"}}{{end}}
-
-
-
-
- {{svg "octicon-trash" 16 "tw-mr-1"}}
- {{ctx.Locale.Tr "settings.delete_token"}}
-
-
-
- {{end}}
-
-
-
-
- {{if .EnableOAuth2}}
- {{template "user/settings/grants_oauth2" .}}
- {{template "user/settings/applications_oauth2" .}}
- {{end}}
-
-
-
-
-
-
{{ctx.Locale.Tr "settings.access_token_deletion_desc"}}
-
- {{template "base/modal_actions_confirm"}}
-
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/applications_oauth2.tmpl b/user/settings/applications_oauth2.tmpl
deleted file mode 100644
index 866a1f8..0000000
--- a/user/settings/applications_oauth2.tmpl
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-{{template "user/settings/applications_oauth2_list" .}}
-
diff --git a/user/settings/applications_oauth2_edit.tmpl b/user/settings/applications_oauth2_edit.tmpl
deleted file mode 100644
index 2858ecd..0000000
--- a/user/settings/applications_oauth2_edit.tmpl
+++ /dev/null
@@ -1,6 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings applications")}}
-
-
- {{template "user/settings/applications_oauth2_edit_form" .}}
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/applications_oauth2_edit_form.tmpl b/user/settings/applications_oauth2_edit_form.tmpl
deleted file mode 100644
index e62115d..0000000
--- a/user/settings/applications_oauth2_edit_form.tmpl
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
{{ctx.Locale.Tr "settings.oauth2_application_create_description"}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "settings.oauth2_application_name"}}
-
-
-
- {{ctx.Locale.Tr "settings.oauth2_redirect_uris"}}
- {{StringUtils.Join .App.RedirectURIs "\n"}}
-
-
-
- {{ctx.Locale.Tr "settings.oauth2_confidential_client"}}
-
-
-
-
- {{ctx.Locale.Tr "settings.save_application"}}
-
-
-
diff --git a/user/settings/applications_oauth2_list.tmpl b/user/settings/applications_oauth2_list.tmpl
deleted file mode 100644
index e9e0217..0000000
--- a/user/settings/applications_oauth2_list.tmpl
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
- {{ctx.Locale.Tr "settings.oauth2_application_create_description"}}
-
- {{range .Applications}}
-
-
- {{svg "octicon-apps" 32}}
-
-
-
{{.Name}}
-
- {{ctx.Locale.Tr "settings.oauth2_client_id"}}
- {{.ClientID}}
-
-
- {{$isBuiltin := and $.BuiltinApplications (index $.BuiltinApplications .ClientID)}}
-
-
- {{end}}
-
-
-
-
-
-
{{ctx.Locale.Tr "settings.oauth2_application_remove_description"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "settings.oauth2_application_name"}}
-
-
-
- {{ctx.Locale.Tr "settings.oauth2_redirect_uris"}}
-
-
-
-
- {{ctx.Locale.Tr "settings.oauth2_confidential_client"}}
-
-
-
-
- {{ctx.Locale.Tr "settings.create_oauth2_application_button"}}
-
-
-
diff --git a/user/settings/blocked_users.tmpl b/user/settings/blocked_users.tmpl
deleted file mode 100644
index e495b85..0000000
--- a/user/settings/blocked_users.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings blocked_users")}}
-
- {{template "shared/user/blocked_users" .}}
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/grants_oauth2.tmpl b/user/settings/grants_oauth2.tmpl
deleted file mode 100644
index b5ae3e0..0000000
--- a/user/settings/grants_oauth2.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- {{ctx.Locale.Tr "settings.authorized_oauth2_applications_description"}}
-
- {{range .Grants}}
-
-
- {{svg "octicon-key" 32}}
-
-
-
{{.Application.Name}}
-
- {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix)}}
-
-
-
-
- {{ctx.Locale.Tr "settings.revoke_key"}}
-
-
-
- {{end}}
-
-
-
-
-
-
{{ctx.Locale.Tr "settings.revoke_oauth2_grant_description"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
diff --git a/user/settings/hook_new.tmpl b/user/settings/hook_new.tmpl
deleted file mode 100644
index be21f59..0000000
--- a/user/settings/hook_new.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings new webhook")}}
-
- {{$CustomHeaderTitle := ctx.Locale.Tr "repo.settings.update_webhook"}}
- {{if .PageIsSettingsHooksNew}}{{$CustomHeaderTitle = ctx.Locale.Tr "repo.settings.add_webhook"}}{{end}}
- {{template "webhook/new" (dict "ctxData" . "CustomHeaderTitle" $CustomHeaderTitle)}}
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/hooks.tmpl b/user/settings/hooks.tmpl
deleted file mode 100644
index 477c333..0000000
--- a/user/settings/hooks.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings webhooks")}}
-
- {{template "repo/settings/webhook/list" .}}
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/keys_gpg.tmpl b/user/settings/keys_gpg.tmpl
deleted file mode 100644
index d86d838..0000000
--- a/user/settings/keys_gpg.tmpl
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{ctx.Locale.Tr "settings.key_content"}}
- {{.content}}
-
- {{if .Err_Signature}}
-
-
{{ctx.Locale.Tr "settings.gpg_token_required"}}
-
-
-
{{ctx.Locale.Tr "settings.gpg_token"}}
-
-
-
{{ctx.Locale.Tr "settings.gpg_token_help"}}
-
{{printf `echo "%s" | gpg -a --default-key %s --detach-sig` .TokenToSign .PaddedKeyID}}
-
-
-
- {{ctx.Locale.Tr "settings.gpg_token_signature"}}
- {{.signature}}
-
- {{end}}
-
-
- {{ctx.Locale.Tr "settings.add_key"}}
-
-
- {{ctx.Locale.Tr "cancel"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "settings.gpg_desc"}}
- {{ctx.Locale.Tr "settings.gpg_helper" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/about-commit-signature-verification#gpg-commit-signature-verification"}}
-
-
- {{range .GPGKeys}}
-
-
- {{svg "octicon-key" 32}}
-
-
- {{if .Verified}}
-
{{svg "octicon-verified"}} {{ctx.Locale.Tr "settings.gpg_key_verified"}}
- {{end}}
- {{if .Emails}}
-
{{svg "octicon-mail"}} {{ctx.Locale.Tr "settings.gpg_key_matched_identities"}} {{range .Emails}}{{.Email}} {{end}}
- {{end}}
-
- {{ctx.Locale.Tr "settings.key_id"}}: {{.PaddedKeyID}}
- {{ctx.Locale.Tr "settings.subkeys"}}: {{range .SubsKey}} {{.PaddedKeyID}} {{end}}
-
-
- {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .AddedUnix)}}
- -
- {{if not .ExpiredUnix.IsZero}}{{ctx.Locale.Tr "settings.valid_until_date" (DateTime "short" .ExpiredUnix)}}{{else}}{{ctx.Locale.Tr "settings.valid_forever"}}{{end}}
-
-
-
-
- {{if and (not .Verified) (eq $.VerifyingID .KeyID)}}
-
-
{{ctx.Locale.Tr "settings.gpg_token_required"}}
-
- {{$.CsrfTokenHtml}}
-
-
-
-
-
{{ctx.Locale.Tr "settings.gpg_token"}}
-
-
-
{{ctx.Locale.Tr "settings.gpg_token_help"}}
-
{{printf `echo "%s" | gpg -a --default-key %s --detach-sig` $.TokenToSign .PaddedKeyID}}
-
-
-
-
- {{ctx.Locale.Tr "settings.gpg_token_signature"}}
- {{$.signature}}
-
-
-
- {{ctx.Locale.Tr "settings.gpg_key_verify"}}
-
-
- {{ctx.Locale.Tr "settings.cancel"}}
-
-
-
- {{end}}
- {{end}}
-
-
-
-
-
{{ctx.Locale.Tr "settings.gpg_key_deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
diff --git a/user/settings/keys_principal.tmpl b/user/settings/keys_principal.tmpl
deleted file mode 100644
index 37d8fb0..0000000
--- a/user/settings/keys_principal.tmpl
+++ /dev/null
@@ -1,69 +0,0 @@
-{{if .AllowPrincipals}}
-
-
-
-
- {{ctx.Locale.Tr "settings.principal_desc"}}
-
- {{range .Principals}}
-
-
- {{svg "octicon-key" 32}}
-
-
-
{{.Name}}
-
- {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix)}} — {{svg "octicon-info" 16}} {{if .HasUsed}}{{ctx.Locale.Tr "settings.last_used"}} {{DateTime "short" .UpdatedUnix}} {{else}}{{ctx.Locale.Tr "settings.no_activity"}}{{end}}
-
-
-
-
- {{ctx.Locale.Tr "settings.delete_key"}}
-
-
-
- {{end}}
-
-
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "settings.principal_content"}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.add_new_principal"}}
-
-
-
-
-
-
-
-
-
{{ctx.Locale.Tr "settings.ssh_principal_deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-{{end}}
diff --git a/user/settings/keys_ssh.tmpl b/user/settings/keys_ssh.tmpl
deleted file mode 100644
index a2af1b7..0000000
--- a/user/settings/keys_ssh.tmpl
+++ /dev/null
@@ -1,111 +0,0 @@
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "settings.key_name"}}
-
-
-
- {{ctx.Locale.Tr "settings.key_content"}}
- {{.content}}
-
-
-
- {{ctx.Locale.Tr "settings.add_key"}}
-
-
- {{ctx.Locale.Tr "cancel"}}
-
-
-
-
-
-
- {{ctx.Locale.Tr "settings.ssh_desc"}}
- {{ctx.Locale.Tr "settings.ssh_helper" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/connecting-to-github-with-ssh" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/troubleshooting-ssh"}}
-
-
- {{if .DisableSSH}}
-
- {{ctx.Locale.Tr "settings.ssh_signonly"}}
-
- {{end}}
- {{range $index, $key := .Keys}}
-
-
- {{svg "octicon-key" 32}}
-
-
- {{if .Verified}}
-
{{svg "octicon-verified"}}{{ctx.Locale.Tr "settings.ssh_key_verified"}}
- {{end}}
-
{{.Name}}
-
- {{.Fingerprint}}
-
-
- {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix)}} — {{svg "octicon-info"}} {{if .HasUsed}}{{ctx.Locale.Tr "settings.last_used"}} {{DateTime "short" .UpdatedUnix}} {{else}}{{ctx.Locale.Tr "settings.no_activity"}}{{end}}
-
-
-
-
- {{if and (not .Verified) (eq $.VerifyingFingerprint .Fingerprint)}}
-
-
{{ctx.Locale.Tr "settings.ssh_token_required"}}
-
- {{$.CsrfTokenHtml}}
-
-
-
-
-
{{ctx.Locale.Tr "settings.ssh_token"}}
-
-
-
{{ctx.Locale.Tr "settings.ssh_token_help"}}
-
{{printf "echo -n '%s' | ssh-keygen -Y sign -n gitea -f /path_to_PrivateKey_or_RelatedPublicKey" $.TokenToSign}}
-
-
-
-
- {{ctx.Locale.Tr "settings.ssh_token_signature"}}
- {{$.signature}}
-
-
-
- {{ctx.Locale.Tr "settings.ssh_key_verify"}}
-
-
- {{ctx.Locale.Tr "settings.cancel"}}
-
-
-
- {{end}}
- {{end}}
-
-
-
-
-
{{ctx.Locale.Tr "settings.ssh_key_deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
diff --git a/user/settings/layout_footer.tmpl b/user/settings/layout_footer.tmpl
deleted file mode 100644
index 46120d5..0000000
--- a/user/settings/layout_footer.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{if false}}{{/* to make html structure "likely" complete to prevent IDE warnings */}}
-
-
-
- {{/* block: user-setting-content */}}
-{{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/settings/layout_head.tmpl b/user/settings/layout_head.tmpl
deleted file mode 100644
index dce496e..0000000
--- a/user/settings/layout_head.tmpl
+++ /dev/null
@@ -1,13 +0,0 @@
-{{template "base/head" .ctxData}}
-
-
- {{template "user/settings/navbar" .ctxData}}
-
- {{template "base/alert" .ctxData}}
- {{/* block: user-setting-content */}}
-
-{{if false}}{{/* to make html structure "likely" complete to prevent IDE warnings */}}
-
-
-
-{{end}}
diff --git a/user/settings/organization.tmpl b/user/settings/organization.tmpl
deleted file mode 100644
index 16c27b5..0000000
--- a/user/settings/organization.tmpl
+++ /dev/null
@@ -1,55 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings organization")}}
-
-
-
- {{if .Orgs}}
-
- {{range .Orgs}}
-
-
- {{ctx.AvatarUtils.Avatar . 28 "mini"}}
-
-
-
{{template "shared/user/name" .}}
-
- {{.Description}}
-
-
-
-
- {{$.CsrfTokenHtml}}
- {{ctx.Locale.Tr "org.members.leave"}}
-
-
-
-
- {{end}}
-
- {{template "base/paginate" .}}
- {{else}}
- {{ctx.Locale.Tr "settings.orgs_none"}}
- {{end}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "org.members.leave.detail" (` `|SafeHTML)}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/packages.tmpl b/user/settings/packages.tmpl
deleted file mode 100644
index 80853ea..0000000
--- a/user/settings/packages.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings packages")}}
-
- {{template "package/shared/cleanup_rules/list" .}}
- {{template "package/shared/cargo" .}}
-
-
-
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/packages_cleanup_rules_edit.tmpl b/user/settings/packages_cleanup_rules_edit.tmpl
deleted file mode 100644
index 522b524..0000000
--- a/user/settings/packages_cleanup_rules_edit.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings packages")}}
-
- {{template "package/shared/cleanup_rules/edit" .}}
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/packages_cleanup_rules_preview.tmpl b/user/settings/packages_cleanup_rules_preview.tmpl
deleted file mode 100644
index d99aee4..0000000
--- a/user/settings/packages_cleanup_rules_preview.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user packages admin")}}
-
- {{template "package/shared/cleanup_rules/preview" .}}
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/runner_edit.tmpl b/user/settings/runner_edit.tmpl
deleted file mode 100644
index 90c58c1..0000000
--- a/user/settings/runner_edit.tmpl
+++ /dev/null
@@ -1,5 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings runners")}}
-
- {{template "shared/actions/runner_edit" .}}
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/security/accountlinks.tmpl b/user/settings/security/accountlinks.tmpl
deleted file mode 100644
index 0820844..0000000
--- a/user/settings/security/accountlinks.tmpl
+++ /dev/null
@@ -1,62 +0,0 @@
-{{/* No account links, no way to add account links: Menu will not be shown. */}}
-{{if or .AccountLinks .OrderedOAuth2Names}}
-
-
-
-
-
- {{ctx.Locale.Tr "settings.manage_account_links_desc"}}
-
- {{range $loginSource, $provider := .AccountLinks}}
-
- {{$providerData := index $.OAuth2Providers $loginSource.Name}}
-
- {{$providerData.IconHTML 20}}
-
-
-
- {{$loginSource.Name}}
-
- {{if $loginSource.IsActive}}
- {{ctx.Locale.Tr "repo.settings.active"}}
- {{end}}
-
-
-
- {{ctx.Locale.Tr "settings.delete_key"}}
-
-
-
- {{end}}
-
-
-
-
-
-
{{ctx.Locale.Tr "settings.remove_account_link_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
-{{end}}
diff --git a/user/settings/security/openid.tmpl b/user/settings/security/openid.tmpl
deleted file mode 100644
index 87ba953..0000000
--- a/user/settings/security/openid.tmpl
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
- {{ctx.Locale.Tr "settings.openid_desc"}}
-
- {{range .OpenIDs}}
-
-
- {{svg "fontawesome-openid" 20}}
-
-
-
-
- {{$.CsrfTokenHtml}}
-
- {{if .Show}}
-
- {{svg "octicon-eye" 16 "icon"}}
- {{ctx.Locale.Tr "settings.hide_openid"}}
-
- {{else}}
-
- {{svg "octicon-eye-closed" 16 "icon"}}
- {{ctx.Locale.Tr "settings.show_openid"}}
-
- {{end}}
-
-
- {{ctx.Locale.Tr "settings.delete_key"}}
-
-
-
- {{end}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "settings.add_new_openid"}}
-
-
-
- {{ctx.Locale.Tr "settings.add_openid"}}
-
-
-
-
-
-
-
{{ctx.Locale.Tr "settings.openid_deletion_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
diff --git a/user/settings/security/security.tmpl b/user/settings/security/security.tmpl
deleted file mode 100644
index aee0456..0000000
--- a/user/settings/security/security.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings security")}}
-
- {{template "user/settings/security/twofa" .}}
- {{template "user/settings/security/webauthn" .}}
- {{template "user/settings/security/accountlinks" .}}
- {{if .EnableOpenIDSignIn}}
- {{template "user/settings/security/openid" .}}
- {{end}}
-
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/security/twofa.tmpl b/user/settings/security/twofa.tmpl
deleted file mode 100644
index adebce4..0000000
--- a/user/settings/security/twofa.tmpl
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
{{ctx.Locale.Tr "settings.twofa_desc"}}
- {{if .TOTPEnrolled}}
-
{{ctx.Locale.Tr "settings.twofa_is_enrolled"}}
-
- {{.CsrfTokenHtml}}
- {{ctx.Locale.Tr "settings.regenerate_scratch_token_desc"}}
- {{ctx.Locale.Tr "settings.twofa_scratch_token_regenerate"}}
-
-
- {{.CsrfTokenHtml}}
- {{ctx.Locale.Tr "settings.twofa_disable_note"}}
- {{ctx.Locale.Tr "settings.twofa_disable"}}
-
- {{else}}
- {{/* The recovery tip is there as a means of encouraging a user to enroll */}}
-
{{ctx.Locale.Tr "settings.twofa_recovery_tip"}}
-
{{ctx.Locale.Tr "settings.twofa_not_enrolled"}}
-
- {{end}}
-
-
-
-
-
{{ctx.Locale.Tr "settings.twofa_disable_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
diff --git a/user/settings/security/twofa_enroll.tmpl b/user/settings/security/twofa_enroll.tmpl
deleted file mode 100644
index d6bfadf..0000000
--- a/user/settings/security/twofa_enroll.tmpl
+++ /dev/null
@@ -1,25 +0,0 @@
-{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings twofa")}}
-
-
-
-
{{ctx.Locale.Tr "settings.scan_this_image"}}
-
-
{{ctx.Locale.Tr "settings.or_enter_secret" .TwofaSecret}}
-
{{ctx.Locale.Tr "settings.then_enter_passcode"}}
-
- {{.CsrfTokenHtml}}
-
- {{ctx.Locale.Tr "passcode"}}
-
-
-
-
- {{ctx.Locale.Tr "auth.verify"}}
-
-
-
-
-
-{{template "user/settings/layout_footer" .}}
diff --git a/user/settings/security/webauthn.tmpl b/user/settings/security/webauthn.tmpl
deleted file mode 100644
index eceee19..0000000
--- a/user/settings/security/webauthn.tmpl
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
{{ctx.Locale.Tr "settings.webauthn_desc"}}
-
{{ctx.Locale.Tr "settings.webauthn_key_loss_warning"}} {{ctx.Locale.Tr "settings.webauthn_alternative_tip"}}
- {{template "user/auth/webauthn_error" .}}
-
- {{range .WebAuthnCredentials}}
-
-
- {{svg "octicon-key" 32}}
-
-
-
{{.Name}}
-
- {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix)}}
-
-
-
-
- {{ctx.Locale.Tr "settings.delete_key"}}
-
-
-
- {{end}}
-
-
-
-
-
-
{{ctx.Locale.Tr "settings.webauthn_delete_key_desc"}}
-
- {{template "base/modal_actions_confirm" .}}
-
-
diff --git a/webhook/new.tmpl b/webhook/new.tmpl
deleted file mode 100644
index 8ef33df..0000000
--- a/webhook/new.tmpl
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
- {{template "repo/settings/webhook/gitea" .ctxData}}
- {{template "repo/settings/webhook/gogs" .ctxData}}
- {{template "repo/settings/webhook/slack" .ctxData}}
- {{template "repo/settings/webhook/discord" .ctxData}}
- {{template "repo/settings/webhook/dingtalk" .ctxData}}
- {{template "repo/settings/webhook/telegram" .ctxData}}
- {{template "repo/settings/webhook/msteams" .ctxData}}
- {{template "repo/settings/webhook/feishu" .ctxData}}
- {{template "repo/settings/webhook/matrix" .ctxData}}
- {{template "repo/settings/webhook/wechatwork" .ctxData}}
- {{template "repo/settings/webhook/packagist" .ctxData}}
-
-{{template "repo/settings/webhook/history" .ctxData}}