From 922cf711e88b27276bbe84a9bd74c14cecf362bb Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Tue, 4 Feb 2020 08:08:31 +0100
Subject: [PATCH 01/13] rm useless & mv css to right place
---
admin/auth/edit.tmpl | 262 -
admin/auth/list.tmpl | 42 -
admin/auth/new.tmpl | 119 -
admin/auth/source/ldap.tmpl | 79 -
admin/auth/source/oauth.tmpl | 58 -
admin/auth/source/smtp.tmpl | 28 -
admin/base/search.tmpl | 23 -
admin/config.tmpl | 420 -
admin/dashboard.tmpl | 133 -
admin/hook_new.tmpl | 43 -
admin/hooks.tmpl | 8 -
admin/monitor.tmpl | 61 -
admin/nav.tmpl | 16 -
admin/navbar.tmpl | 29 -
admin/notice.tmpl | 80 -
admin/org/list.tmpl | 52 -
admin/repo/list.tmpl | 70 -
admin/repo/search.tmpl | 29 -
admin/user/edit.tmpl | 128 -
admin/user/list.tmpl | 55 -
admin/user/new.tmpl | 69 -
custom/body_inner_post.tmpl | 0
custom/body_inner_pre.tmpl | 0
custom/body_outer_post.tmpl | 0
custom/body_outer_pre.tmpl | 0
custom/extra_links.tmpl | 0
custom/extra_tabs.tmpl | 0
custom/footer.tmpl | 0
custom/header.tmpl | 0
explore/code.tmpl | 55 -
explore/navbar.tmpl | 16 -
explore/organizations.tmpl | 38 -
explore/repo_list.tmpl | 45 -
explore/repo_search.tmpl | 30 -
explore/repos.tmpl | 10 -
explore/search.tmpl | 25 -
explore/users.tmpl | 33 -
install.tmpl | 305 -
mail/auth/activate.tmpl | 15 -
mail/auth/activate_email.tmpl | 15 -
mail/auth/register_notify.tmpl | 15 -
mail/auth/reset_passwd.tmpl | 16 -
mail/issue/comment.tmpl | 16 -
mail/issue/mention.tmpl | 17 -
mail/notify/collaborator.tmpl | 16 -
org/create.tmpl | 58 -
org/header.tmpl | 26 -
org/home.tmpl | 82 -
org/member/members.tmpl | 62 -
org/settings/delete.tmpl | 43 -
org/settings/hook_new.tmpl | 44 -
org/settings/hooks.tmpl | 13 -
org/settings/navbar.tmpl | 14 -
org/settings/options.tmpl | 103 -
org/team/members.tmpl | 47 -
org/team/navbar.tmpl | 4 -
org/team/new.tmpl | 97 -
org/team/repositories.tmpl | 47 -
org/team/sidebar.tmpl | 38 -
org/team/teams.tmpl | 41 -
.../css/theme-matrix.css | 0
pwa/manifest_json.tmpl | 31 -
pwa/serviceworker_js.tmpl | 77 -
repo/activity.tmpl | 220 -
repo/blame.tmpl | 51 -
repo/branch/list.tmpl | 138 -
repo/branch_dropdown.tmpl | 65 -
repo/commit_page.tmpl | 89 -
repo/commit_status.tmpl | 15 -
repo/commits.tmpl | 20 -
repo/commits_table.tmpl | 93 -
repo/create.tmpl | 132 -
repo/diff/box.tmpl | 239 -
repo/diff/comment_form.tmpl | 47 -
repo/diff/comment_form_datahandler.tmpl | 7 -
repo/diff/comments.tmpl | 51 -
repo/diff/compare.tmpl | 89 -
repo/diff/image_diff.tmpl | 79 -
repo/diff/new_comment.tmpl | 3 -
repo/diff/new_review.tmpl | 28 -
repo/diff/section_unified.tmpl | 34 -
repo/diff/whitespace_dropdown.tmpl | 23 -
repo/editor/commit_form.tmpl | 53 -
repo/editor/delete.tmpl | 13 -
repo/editor/diff_preview.tmpl | 11 -
repo/editor/edit.tmpl | 57 -
repo/editor/upload.tmpl | 36 -
repo/empty.tmpl | 78 -
repo/forks.tmpl | 22 -
repo/graph.tmpl | 40 -
repo/header.tmpl | 110 -
repo/home.tmpl | 142 -
repo/issue/branch_selector_field.tmpl | 43 -
repo/issue/comment_tab.tmpl | 17 -
repo/issue/label_precolors.tmpl | 16 -
repo/issue/labels.tmpl | 182 -
repo/issue/list.tmpl | 276 -
repo/issue/milestone_issues.tmpl | 237 -
repo/issue/milestone_new.tmpl | 68 -
repo/issue/milestones.tmpl | 115 -
repo/issue/navbar.tmpl | 4 -
repo/issue/new.tmpl | 12 -
repo/issue/new_form.tmpl | 159 -
repo/issue/search.tmpl | 13 -
repo/issue/view.tmpl | 33 -
repo/issue/view_content.tmpl | 205 -
repo/issue/view_content/add_reaction.tmpl | 18 -
repo/issue/view_content/comments.tmpl | 427 -
repo/issue/view_content/pull.tmpl | 266 -
repo/issue/view_content/reactions.tmpl | 15 -
repo/issue/view_content/sidebar.tmpl | 459 -
repo/issue/view_title.tmpl | 61 -
repo/migrate.tmpl | 140 -
repo/migrating.tmpl | 31 -
repo/pulls/commits.tmpl | 19 -
repo/pulls/files.tmpl | 20 -
repo/pulls/fork.tmpl | 71 -
repo/pulls/status.tmpl | 26 -
repo/pulls/tab_menu.tmpl | 17 -
repo/release/list.tmpl | 105 -
repo/release/new.tmpl | 109 -
repo/search.tmpl | 49 -
repo/settings/branches.tmpl | 83 -
repo/settings/collaboration.tmpl | 126 -
repo/settings/deploy_keys.tmpl | 100 -
repo/settings/githook_edit.tmpl | 32 -
repo/settings/githooks.tmpl | 26 -
repo/settings/nav.tmpl | 15 -
repo/settings/navbar.tmpl | 24 -
repo/settings/options.tmpl | 565 -
repo/settings/protected_branch.tmpl | 190 -
repo/settings/webhook/base.tmpl | 9 -
repo/settings/webhook/delete_modal.tmpl | 19 -
repo/settings/webhook/dingtalk.tmpl | 11 -
repo/settings/webhook/discord.tmpl | 19 -
repo/settings/webhook/gitea.tmpl | 40 -
repo/settings/webhook/gogs.tmpl | 28 -
repo/settings/webhook/history.tmpl | 73 -
repo/settings/webhook/list.tmpl | 57 -
repo/settings/webhook/msteams.tmpl | 11 -
repo/settings/webhook/new.tmpl | 40 -
repo/settings/webhook/settings.tmpl | 144 -
repo/settings/webhook/slack.tmpl | 28 -
repo/settings/webhook/telegram.tmpl | 15 -
repo/sub_menu.tmpl | 14 -
repo/user_cards.tmpl | 27 -
repo/view_file.tmpl | 101 -
repo/view_list.tmpl | 97 -
repo/watchers.tmpl | 6 -
repo/wiki/new.tmpl | 33 -
repo/wiki/pages.tmpl | 29 -
repo/wiki/revision.tmpl | 114 -
repo/wiki/start.tmpl | 15 -
repo/wiki/view.tmpl | 113 -
status/404.tmpl | 9 -
status/500.tmpl | 11 -
swagger/ui.tmpl | 105 -
swagger/v1_json.tmpl | 11030 ----------------
user/auth/activate.tmpl | 38 -
user/auth/change_passwd.tmpl | 7 -
user/auth/change_passwd_inner.tmpl | 26 -
user/auth/finalize_openid.tmpl | 47 -
user/auth/forgot_passwd.tmpl | 34 -
user/auth/grant.tmpl | 31 -
user/auth/grant_error.tmpl | 16 -
user/auth/link_account.tmpl | 33 -
user/auth/prohibit_login.tmpl | 16 -
user/auth/reset_passwd.tmpl | 46 -
user/auth/signin.tmpl | 8 -
user/auth/signin_inner.tmpl | 77 -
user/auth/signin_navbar.tmpl | 11 -
user/auth/signin_openid.tmpl | 38 -
user/auth/signup.tmpl | 3 -
user/auth/signup_inner.tmpl | 77 -
user/auth/signup_openid_connect.tmpl | 36 -
user/auth/signup_openid_navbar.tmpl | 11 -
user/auth/signup_openid_register.tmpl | 50 -
user/auth/twofa.tmpl | 27 -
user/auth/twofa_scratch.tmpl | 26 -
user/auth/u2f.tmpl | 22 -
user/auth/u2f_error.tmpl | 32 -
user/dashboard/dashboard.tmpl | 132 -
user/dashboard/feeds.tmpl | 100 -
user/dashboard/issues.tmpl | 139 -
user/dashboard/navbar.tmpl | 55 -
user/meta/followers.tmpl | 6 -
user/meta/header.tmpl | 24 -
user/notification/notification.tmpl | 117 -
user/profile.tmpl | 138 -
user/settings/account.tmpl | 196 -
user/settings/applications.tmpl | 77 -
user/settings/applications_oauth2.tmpl | 58 -
user/settings/applications_oauth2_edit.tmpl | 69 -
user/settings/grants_oauth2.tmpl | 39 -
user/settings/keys.tmpl | 12 -
user/settings/keys_gpg.tmpl | 67 -
user/settings/keys_ssh.tmpl | 71 -
user/settings/navbar.tmpl | 23 -
user/settings/organization.tmpl | 35 -
user/settings/profile.tmpl | 106 -
user/settings/repos.tmpl | 53 -
user/settings/security.tmpl | 15 -
user/settings/security_accountlinks.tmpl | 36 -
user/settings/security_openid.tmpl | 63 -
user/settings/security_twofa.tmpl | 35 -
user/settings/security_u2f.tmpl | 56 -
user/settings/twofa_enroll.tmpl | 29 -
207 files changed, 24318 deletions(-)
delete mode 100644 admin/auth/edit.tmpl
delete mode 100644 admin/auth/list.tmpl
delete mode 100644 admin/auth/new.tmpl
delete mode 100644 admin/auth/source/ldap.tmpl
delete mode 100644 admin/auth/source/oauth.tmpl
delete mode 100644 admin/auth/source/smtp.tmpl
delete mode 100644 admin/base/search.tmpl
delete mode 100644 admin/config.tmpl
delete mode 100644 admin/dashboard.tmpl
delete mode 100644 admin/hook_new.tmpl
delete mode 100644 admin/hooks.tmpl
delete mode 100644 admin/monitor.tmpl
delete mode 100644 admin/nav.tmpl
delete mode 100644 admin/navbar.tmpl
delete mode 100644 admin/notice.tmpl
delete mode 100644 admin/org/list.tmpl
delete mode 100644 admin/repo/list.tmpl
delete mode 100644 admin/repo/search.tmpl
delete mode 100644 admin/user/edit.tmpl
delete mode 100644 admin/user/list.tmpl
delete mode 100644 admin/user/new.tmpl
delete mode 100644 custom/body_inner_post.tmpl
delete mode 100644 custom/body_inner_pre.tmpl
delete mode 100644 custom/body_outer_post.tmpl
delete mode 100644 custom/body_outer_pre.tmpl
delete mode 100644 custom/extra_links.tmpl
delete mode 100644 custom/extra_tabs.tmpl
delete mode 100644 custom/footer.tmpl
delete mode 100644 custom/header.tmpl
delete mode 100644 explore/code.tmpl
delete mode 100644 explore/navbar.tmpl
delete mode 100644 explore/organizations.tmpl
delete mode 100644 explore/repo_list.tmpl
delete mode 100644 explore/repo_search.tmpl
delete mode 100644 explore/repos.tmpl
delete mode 100644 explore/search.tmpl
delete mode 100644 explore/users.tmpl
delete mode 100644 install.tmpl
delete mode 100644 mail/auth/activate.tmpl
delete mode 100644 mail/auth/activate_email.tmpl
delete mode 100644 mail/auth/register_notify.tmpl
delete mode 100644 mail/auth/reset_passwd.tmpl
delete mode 100644 mail/issue/comment.tmpl
delete mode 100644 mail/issue/mention.tmpl
delete mode 100644 mail/notify/collaborator.tmpl
delete mode 100644 org/create.tmpl
delete mode 100644 org/header.tmpl
delete mode 100644 org/home.tmpl
delete mode 100644 org/member/members.tmpl
delete mode 100644 org/settings/delete.tmpl
delete mode 100644 org/settings/hook_new.tmpl
delete mode 100644 org/settings/hooks.tmpl
delete mode 100644 org/settings/navbar.tmpl
delete mode 100644 org/settings/options.tmpl
delete mode 100644 org/team/members.tmpl
delete mode 100644 org/team/navbar.tmpl
delete mode 100644 org/team/new.tmpl
delete mode 100644 org/team/repositories.tmpl
delete mode 100644 org/team/sidebar.tmpl
delete mode 100644 org/team/teams.tmpl
rename gitea-matrix-theme.css => public/css/theme-matrix.css (100%)
delete mode 100644 pwa/manifest_json.tmpl
delete mode 100644 pwa/serviceworker_js.tmpl
delete mode 100644 repo/activity.tmpl
delete mode 100644 repo/blame.tmpl
delete mode 100644 repo/branch/list.tmpl
delete mode 100644 repo/branch_dropdown.tmpl
delete mode 100644 repo/commit_page.tmpl
delete mode 100644 repo/commit_status.tmpl
delete mode 100644 repo/commits.tmpl
delete mode 100644 repo/commits_table.tmpl
delete mode 100644 repo/create.tmpl
delete mode 100644 repo/diff/box.tmpl
delete mode 100644 repo/diff/comment_form.tmpl
delete mode 100644 repo/diff/comment_form_datahandler.tmpl
delete mode 100644 repo/diff/comments.tmpl
delete mode 100644 repo/diff/compare.tmpl
delete mode 100644 repo/diff/image_diff.tmpl
delete mode 100644 repo/diff/new_comment.tmpl
delete mode 100644 repo/diff/new_review.tmpl
delete mode 100644 repo/diff/section_unified.tmpl
delete mode 100644 repo/diff/whitespace_dropdown.tmpl
delete mode 100644 repo/editor/commit_form.tmpl
delete mode 100644 repo/editor/delete.tmpl
delete mode 100644 repo/editor/diff_preview.tmpl
delete mode 100644 repo/editor/edit.tmpl
delete mode 100644 repo/editor/upload.tmpl
delete mode 100644 repo/empty.tmpl
delete mode 100644 repo/forks.tmpl
delete mode 100644 repo/graph.tmpl
delete mode 100644 repo/header.tmpl
delete mode 100644 repo/home.tmpl
delete mode 100644 repo/issue/branch_selector_field.tmpl
delete mode 100644 repo/issue/comment_tab.tmpl
delete mode 100644 repo/issue/label_precolors.tmpl
delete mode 100644 repo/issue/labels.tmpl
delete mode 100644 repo/issue/list.tmpl
delete mode 100644 repo/issue/milestone_issues.tmpl
delete mode 100644 repo/issue/milestone_new.tmpl
delete mode 100644 repo/issue/milestones.tmpl
delete mode 100644 repo/issue/navbar.tmpl
delete mode 100644 repo/issue/new.tmpl
delete mode 100644 repo/issue/new_form.tmpl
delete mode 100644 repo/issue/search.tmpl
delete mode 100644 repo/issue/view.tmpl
delete mode 100644 repo/issue/view_content.tmpl
delete mode 100644 repo/issue/view_content/add_reaction.tmpl
delete mode 100644 repo/issue/view_content/comments.tmpl
delete mode 100644 repo/issue/view_content/pull.tmpl
delete mode 100644 repo/issue/view_content/reactions.tmpl
delete mode 100644 repo/issue/view_content/sidebar.tmpl
delete mode 100644 repo/issue/view_title.tmpl
delete mode 100644 repo/migrate.tmpl
delete mode 100644 repo/migrating.tmpl
delete mode 100644 repo/pulls/commits.tmpl
delete mode 100644 repo/pulls/files.tmpl
delete mode 100644 repo/pulls/fork.tmpl
delete mode 100644 repo/pulls/status.tmpl
delete mode 100644 repo/pulls/tab_menu.tmpl
delete mode 100644 repo/release/list.tmpl
delete mode 100644 repo/release/new.tmpl
delete mode 100644 repo/search.tmpl
delete mode 100644 repo/settings/branches.tmpl
delete mode 100644 repo/settings/collaboration.tmpl
delete mode 100644 repo/settings/deploy_keys.tmpl
delete mode 100644 repo/settings/githook_edit.tmpl
delete mode 100644 repo/settings/githooks.tmpl
delete mode 100644 repo/settings/nav.tmpl
delete mode 100644 repo/settings/navbar.tmpl
delete mode 100644 repo/settings/options.tmpl
delete mode 100644 repo/settings/protected_branch.tmpl
delete mode 100644 repo/settings/webhook/base.tmpl
delete mode 100644 repo/settings/webhook/delete_modal.tmpl
delete mode 100644 repo/settings/webhook/dingtalk.tmpl
delete mode 100644 repo/settings/webhook/discord.tmpl
delete mode 100644 repo/settings/webhook/gitea.tmpl
delete mode 100644 repo/settings/webhook/gogs.tmpl
delete mode 100644 repo/settings/webhook/history.tmpl
delete mode 100644 repo/settings/webhook/list.tmpl
delete mode 100644 repo/settings/webhook/msteams.tmpl
delete mode 100644 repo/settings/webhook/new.tmpl
delete mode 100644 repo/settings/webhook/settings.tmpl
delete mode 100644 repo/settings/webhook/slack.tmpl
delete mode 100644 repo/settings/webhook/telegram.tmpl
delete mode 100644 repo/sub_menu.tmpl
delete mode 100644 repo/user_cards.tmpl
delete mode 100644 repo/view_file.tmpl
delete mode 100644 repo/view_list.tmpl
delete mode 100644 repo/watchers.tmpl
delete mode 100644 repo/wiki/new.tmpl
delete mode 100644 repo/wiki/pages.tmpl
delete mode 100644 repo/wiki/revision.tmpl
delete mode 100644 repo/wiki/start.tmpl
delete mode 100644 repo/wiki/view.tmpl
delete mode 100644 status/404.tmpl
delete mode 100644 status/500.tmpl
delete mode 100644 swagger/ui.tmpl
delete mode 100644 swagger/v1_json.tmpl
delete mode 100644 user/auth/activate.tmpl
delete mode 100644 user/auth/change_passwd.tmpl
delete mode 100644 user/auth/change_passwd_inner.tmpl
delete mode 100644 user/auth/finalize_openid.tmpl
delete mode 100644 user/auth/forgot_passwd.tmpl
delete mode 100644 user/auth/grant.tmpl
delete mode 100644 user/auth/grant_error.tmpl
delete mode 100644 user/auth/link_account.tmpl
delete mode 100644 user/auth/prohibit_login.tmpl
delete mode 100644 user/auth/reset_passwd.tmpl
delete mode 100644 user/auth/signin.tmpl
delete mode 100644 user/auth/signin_inner.tmpl
delete mode 100644 user/auth/signin_navbar.tmpl
delete mode 100644 user/auth/signin_openid.tmpl
delete mode 100644 user/auth/signup.tmpl
delete mode 100644 user/auth/signup_inner.tmpl
delete mode 100644 user/auth/signup_openid_connect.tmpl
delete mode 100644 user/auth/signup_openid_navbar.tmpl
delete mode 100644 user/auth/signup_openid_register.tmpl
delete mode 100644 user/auth/twofa.tmpl
delete mode 100644 user/auth/twofa_scratch.tmpl
delete mode 100644 user/auth/u2f.tmpl
delete mode 100644 user/auth/u2f_error.tmpl
delete mode 100644 user/dashboard/dashboard.tmpl
delete mode 100644 user/dashboard/feeds.tmpl
delete mode 100644 user/dashboard/issues.tmpl
delete mode 100644 user/dashboard/navbar.tmpl
delete mode 100644 user/meta/followers.tmpl
delete mode 100644 user/meta/header.tmpl
delete mode 100644 user/notification/notification.tmpl
delete mode 100644 user/profile.tmpl
delete mode 100644 user/settings/account.tmpl
delete mode 100644 user/settings/applications.tmpl
delete mode 100644 user/settings/applications_oauth2.tmpl
delete mode 100644 user/settings/applications_oauth2_edit.tmpl
delete mode 100644 user/settings/grants_oauth2.tmpl
delete mode 100644 user/settings/keys.tmpl
delete mode 100644 user/settings/keys_gpg.tmpl
delete mode 100644 user/settings/keys_ssh.tmpl
delete mode 100644 user/settings/navbar.tmpl
delete mode 100644 user/settings/organization.tmpl
delete mode 100644 user/settings/profile.tmpl
delete mode 100644 user/settings/repos.tmpl
delete mode 100644 user/settings/security.tmpl
delete mode 100644 user/settings/security_accountlinks.tmpl
delete mode 100644 user/settings/security_openid.tmpl
delete mode 100644 user/settings/security_twofa.tmpl
delete mode 100644 user/settings/security_u2f.tmpl
delete mode 100644 user/settings/twofa_enroll.tmpl
diff --git a/admin/auth/edit.tmpl b/admin/auth/edit.tmpl
deleted file mode 100644
index 6a176a4..0000000
--- a/admin/auth/edit.tmpl
+++ /dev/null
@@ -1,262 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-
-
-
-
-
{{.i18n.Tr "admin.auths.delete_auth_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
-{{template "base/footer" .}}
diff --git a/admin/auth/list.tmpl b/admin/auth/list.tmpl
deleted file mode 100644
index 60b8f6f..0000000
--- a/admin/auth/list.tmpl
+++ /dev/null
@@ -1,42 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-
- ID
- {{.i18n.Tr "admin.auths.name"}}
- {{.i18n.Tr "admin.auths.type"}}
- {{.i18n.Tr "admin.auths.enabled"}}
- {{.i18n.Tr "admin.auths.updated"}}
- {{.i18n.Tr "admin.users.created"}}
- {{.i18n.Tr "admin.users.edit"}}
-
-
-
- {{range .Sources}}
-
- {{.ID}}
- {{.Name}}
- {{.TypeName}}
-
- {{.UpdatedUnix.FormatShort}}
- {{.CreatedUnix.FormatShort}}
-
-
- {{end}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/admin/auth/new.tmpl b/admin/auth/new.tmpl
deleted file mode 100644
index e759ec0..0000000
--- a/admin/auth/new.tmpl
+++ /dev/null
@@ -1,119 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-
-
GMail Settings:
-
Host: smtp.gmail.com, Port: 587, Enable TLS Encryption: true
-
-
{{.i18n.Tr "admin.auths.tips.oauth2.general"}}:
-
{{.i18n.Tr "admin.auths.tips.oauth2.general.tip"}}
-
-
-
-
Bitbucket
- {{.i18n.Tr "admin.auths.tip.bitbucket"}}
- Dropbox
- {{.i18n.Tr "admin.auths.tip.dropbox"}}
- Facebook
- {{.i18n.Tr "admin.auths.tip.facebook"}}
- GitHub
- {{.i18n.Tr "admin.auths.tip.github"}}
- GitLab
- {{.i18n.Tr "admin.auths.tip.gitlab"}}
- Google
- {{.i18n.Tr "admin.auths.tip.google_plus"}}
- OpenID Connect
- {{.i18n.Tr "admin.auths.tip.openid_connect"}}
- Twitter
- {{.i18n.Tr "admin.auths.tip.twitter"}}
- Discord
- {{.i18n.Tr "admin.auths.tip.discord"}}
- Gitea
- {{.i18n.Tr "admin.auths.tip.gitea"}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/admin/auth/source/ldap.tmpl b/admin/auth/source/ldap.tmpl
deleted file mode 100644
index 3386884..0000000
--- a/admin/auth/source/ldap.tmpl
+++ /dev/null
@@ -1,79 +0,0 @@
-
diff --git a/admin/auth/source/oauth.tmpl b/admin/auth/source/oauth.tmpl
deleted file mode 100644
index 5d585c0..0000000
--- a/admin/auth/source/oauth.tmpl
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
{{.i18n.Tr "admin.auths.oauth2_provider"}}
-
-
-
{{.oauth2_provider}}
-
-
-
-
-
- {{.i18n.Tr "admin.auths.oauth2_clientID"}}
-
-
-
- {{.i18n.Tr "admin.auths.oauth2_clientSecret"}}
-
-
-
- {{.i18n.Tr "admin.auths.openIdConnectAutoDiscoveryURL"}}
-
-
-
-
-
- {{.i18n.Tr "admin.auths.oauth2_use_custom_url"}}
-
-
-
-
- {{.i18n.Tr "admin.auths.oauth2_authURL"}}
-
-
-
- {{.i18n.Tr "admin.auths.oauth2_tokenURL"}}
-
-
-
- {{.i18n.Tr "admin.auths.oauth2_profileURL"}}
-
-
-
- {{.i18n.Tr "admin.auths.oauth2_emailURL"}}
-
-
- {{if .OAuth2DefaultCustomURLMappings}}
- {{range $key, $value := .OAuth2DefaultCustomURLMappings}}
-
-
-
-
- {{end}}
- {{end}}
-
\ No newline at end of file
diff --git a/admin/auth/source/smtp.tmpl b/admin/auth/source/smtp.tmpl
deleted file mode 100644
index d4c83c1..0000000
--- a/admin/auth/source/smtp.tmpl
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
{{.i18n.Tr "admin.auths.smtp_auth"}}
-
-
-
- {{.i18n.Tr "admin.auths.smtphost"}}
-
-
-
- {{.i18n.Tr "admin.auths.smtpport"}}
-
-
-
-
{{.i18n.Tr "admin.auths.allowed_domains"}}
-
-
{{.i18n.Tr "admin.auths.allowed_domains_helper"}}
-
-
diff --git a/admin/base/search.tmpl b/admin/base/search.tmpl
deleted file mode 100644
index b817a8a..0000000
--- a/admin/base/search.tmpl
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
diff --git a/admin/config.tmpl b/admin/config.tmpl
deleted file mode 100644
index c2793ec..0000000
--- a/admin/config.tmpl
+++ /dev/null
@@ -1,420 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
- {{.i18n.Tr "admin.config.app_name"}}
- {{AppName}}
- {{.i18n.Tr "admin.config.app_ver"}}
- {{AppVer}}{{AppBuiltWith}}
- {{.i18n.Tr "admin.config.custom_conf"}}
- {{.CustomConf}}
- {{.i18n.Tr "admin.config.app_url"}}
- {{.AppUrl}}
- {{.i18n.Tr "admin.config.domain"}}
- {{.Domain}}
- {{.i18n.Tr "admin.config.offline_mode"}}
-
- {{.i18n.Tr "admin.config.disable_router_log"}}
-
-
-
-
- {{.i18n.Tr "admin.config.run_user"}}
- {{.RunUser}}
- {{.i18n.Tr "admin.config.run_mode"}}
- {{.RunMode}}
-
-
-
- {{.i18n.Tr "admin.config.git_version"}}
- {{.GitVersion}}
-
-
-
- {{.i18n.Tr "admin.config.repo_root_path"}}
- {{.RepoRootPath}}
- {{.i18n.Tr "admin.config.static_file_root_path"}}
- {{.StaticRootPath}}
- {{.i18n.Tr "admin.config.custom_file_root_path"}}
- {{.CustomRootPath}}
- {{.i18n.Tr "admin.config.log_file_root_path"}}
- {{.LogRootPath}}
- {{.i18n.Tr "admin.config.script_type"}}
- {{.ScriptType}}
- {{.i18n.Tr "admin.config.reverse_auth_user"}}
- {{.ReverseProxyAuthUser}}
-
- {{if .EnvVars }}
-
- {{range .EnvVars}}
- {{.Name}}
- {{.Value}}
- {{end}}
- {{end}}
-
-
-
-
-
-
-
- {{.i18n.Tr "admin.config.ssh_enabled"}}
-
- {{if not .SSH.Disabled}}
- {{.i18n.Tr "admin.config.ssh_start_builtin_server"}}
-
- {{.i18n.Tr "admin.config.ssh_domain"}}
- {{.SSH.Domain}}
- {{.i18n.Tr "admin.config.ssh_port"}}
- {{.SSH.Port}}
- {{.i18n.Tr "admin.config.ssh_listen_port"}}
- {{.SSH.ListenPort}}
-
- {{if not .SSH.StartBuiltinServer}}
- {{.i18n.Tr "admin.config.ssh_root_path"}}
- {{.SSH.RootPath}}
- {{.i18n.Tr "admin.config.ssh_key_test_path"}}
- {{.SSH.KeyTestPath}}
- {{.i18n.Tr "admin.config.ssh_keygen_path"}}
- {{.SSH.KeygenPath}}
- {{.i18n.Tr "admin.config.ssh_minimum_key_size_check"}}
-
- {{if .SSH.MinimumKeySizeCheck}}
- {{.i18n.Tr "admin.config.ssh_minimum_key_sizes"}}
- {{.SSH.MinimumKeySizes}}
- {{end}}
- {{end}}
- {{end}}
-
-
-
-
-
-
- {{.i18n.Tr "admin.config.lfs_enabled"}}
-
- {{if .LFS.StartServer}}
- {{.i18n.Tr "admin.config.lfs_content_path"}}
- {{.LFS.ContentPath}}
- {{.i18n.Tr "admin.config.lfs_http_auth_expiry"}}
- {{.LFS.HTTPAuthExpiry}}
- {{end}}
-
-
-
-
-
-
- {{.i18n.Tr "admin.config.db_type"}}
- {{.DbCfg.Type}}
- {{if not (or (eq .DbCfg.Type "sqlite3") (eq .DbCfg.Type "tidb"))}}
- {{.i18n.Tr "admin.config.db_host"}}
- {{if .DbCfg.Host}}{{.DbCfg.Host}}{{else}}-{{end}}
- {{.i18n.Tr "admin.config.db_name"}}
- {{if .DbCfg.Name}}{{.DbCfg.Name}}{{else}}-{{end}}
- {{.i18n.Tr "admin.config.db_user"}}
- {{if .DbCfg.User}}{{.DbCfg.User}}{{else}}-{{end}}
- {{end}}
- {{if eq .DbCfg.Type "postgres"}}
- {{.i18n.Tr "admin.config.db_ssl_mode"}}
- {{if .DbCfg.SSLMode}}{{.DbCfg.SSLMode}}{{else}}-{{end}}
- {{end}}
- {{if or (eq .DbCfg.Type "sqlite3") (eq .DbCfg.Type "tidb")}}
- {{.i18n.Tr "admin.config.db_path"}}
- {{if .DbCfg.Path}}{{.DbCfg.Path}}{{else}}-{{end}}
- {{end}}
-
-
-
-
-
-
- {{.i18n.Tr "admin.config.register_email_confirm"}}
-
- {{.i18n.Tr "admin.config.disable_register"}}
-
- {{.i18n.Tr "admin.config.allow_only_external_registration"}}
-
- {{.i18n.Tr "admin.config.show_registration_button"}}
-
- {{.i18n.Tr "admin.config.enable_openid_signup"}}
-
- {{.i18n.Tr "admin.config.enable_openid_signin"}}
-
- {{.i18n.Tr "admin.config.require_sign_in_view"}}
-
- {{.i18n.Tr "admin.config.mail_notify"}}
-
- {{/*{{.i18n.Tr "admin.config.disable_key_size_check"}}
- */}}
- {{.i18n.Tr "admin.config.enable_captcha"}}
-
- {{.i18n.Tr "admin.config.default_keep_email_private"}}
-
- {{.i18n.Tr "admin.config.default_allow_create_organization"}}
-
- {{.i18n.Tr "admin.config.enable_timetracking"}}
-
- {{if .Service.EnableTimetracking}}
- {{.i18n.Tr "admin.config.default_enable_timetracking"}}
-
- {{.i18n.Tr "admin.config.default_allow_only_contributors_to_track_time"}}
-
- {{end}}
- {{.i18n.Tr "admin.config.default_visibility_organization"}}
- {{.Service.DefaultOrgVisibility}}
-
- {{.i18n.Tr "admin.config.no_reply_address"}}
- {{if .Service.NoReplyAddress}}{{.Service.NoReplyAddress}}{{else}}-{{end}}
- {{.i18n.Tr "admin.config.default_enable_dependencies"}}
-
-
- {{.i18n.Tr "admin.config.active_code_lives"}}
- {{.Service.ActiveCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}
- {{.i18n.Tr "admin.config.reset_password_code_lives"}}
- {{.Service.ResetPwdCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}
-
-
-
-
-
-
- {{.i18n.Tr "admin.config.queue_length"}}
- {{.Webhook.QueueLength}}
- {{.i18n.Tr "admin.config.deliver_timeout"}}
- {{.Webhook.DeliverTimeout}} {{.i18n.Tr "tool.raw_seconds"}}
- {{.i18n.Tr "admin.config.skip_tls_verify"}}
-
-
-
-
-
-
-
- {{.i18n.Tr "admin.config.mailer_enabled"}}
-
- {{if .MailerEnabled}}
- {{.i18n.Tr "admin.config.mailer_name"}}
- {{.Mailer.Name}}
- {{if eq .Mailer.MailerType "smtp"}}
- {{.i18n.Tr "admin.config.mailer_disable_helo"}}
-
- {{.i18n.Tr "admin.config.mailer_host"}}
- {{.Mailer.Host}}
- {{else if eq .Mailer.MailerType "sendmail"}}
- {{.i18n.Tr "admin.config.mailer_use_sendmail"}}
-
- {{.i18n.Tr "admin.config.mailer_sendmail_path"}}
- {{.Mailer.SendmailPath}}
- {{.i18n.Tr "admin.config.mailer_sendmail_args"}}
- {{.Mailer.SendmailArgs}}
- {{end}}
- {{.i18n.Tr "admin.config.mailer_user"}}
- {{if .Mailer.User}}{{.Mailer.User}}{{else}}(empty){{end}}
-
- {{end}}
-
-
-
-
-
-
- {{.i18n.Tr "admin.config.cache_adapter"}}
- {{.CacheAdapter}}
- {{if eq .CacheAdapter "memory"}}
- {{.i18n.Tr "admin.config.cache_interval"}}
- {{.CacheInterval}} {{.i18n.Tr "tool.raw_seconds"}}
- {{end}}
- {{if .CacheConn}}
- {{.i18n.Tr "admin.config.cache_conn"}}
- {{.CacheConn}}
- {{.i18n.Tr "admin.config.cache_item_ttl"}}
- {{.CacheItemTTL}}
- {{end}}
-
-
-
-
-
-
- {{.i18n.Tr "admin.config.session_provider"}}
- {{.SessionConfig.Provider}}
- {{.i18n.Tr "admin.config.provider_config"}}
- {{if .SessionConfig.ProviderConfig}}{{.SessionConfig.ProviderConfig}}{{else}}-{{end}}
- {{.i18n.Tr "admin.config.cookie_name"}}
- {{.SessionConfig.CookieName}}
- {{.i18n.Tr "admin.config.gc_interval_time"}}
- {{.SessionConfig.Gclifetime}} {{.i18n.Tr "tool.raw_seconds"}}
- {{.i18n.Tr "admin.config.session_life_time"}}
- {{.SessionConfig.Maxlifetime}} {{.i18n.Tr "tool.raw_seconds"}}
- {{.i18n.Tr "admin.config.https_only"}}
-
- {{.i18n.Tr "admin.config.cookie_life_time"}}
- {{.SessionConfig.CookieLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}
-
-
-
-
-
-
- {{.i18n.Tr "admin.config.disable_gravatar"}}
-
-
- {{.i18n.Tr "admin.config.enable_federated_avatar"}}
-
-
-
-
-
-
-
- {{.i18n.Tr "admin.config.git_disable_diff_highlight"}}
-
- {{.i18n.Tr "admin.config.git_max_diff_lines"}}
- {{.Git.MaxGitDiffLines}}
- {{.i18n.Tr "admin.config.git_max_diff_line_characters"}}
- {{.Git.MaxGitDiffLineCharacters}}
- {{.i18n.Tr "admin.config.git_max_diff_files"}}
- {{.Git.MaxGitDiffFiles}}
- {{.i18n.Tr "admin.config.git_gc_args"}}
- {{.Git.GCArgs}}
-
- {{.i18n.Tr "admin.config.git_migrate_timeout"}}
- {{.Git.Timeout.Migrate}} {{.i18n.Tr "tool.raw_seconds"}}
- {{.i18n.Tr "admin.config.git_mirror_timeout"}}
- {{.Git.Timeout.Mirror}} {{.i18n.Tr "tool.raw_seconds"}}
- {{.i18n.Tr "admin.config.git_clone_timeout"}}
- {{.Git.Timeout.Clone}} {{.i18n.Tr "tool.raw_seconds"}}
- {{.i18n.Tr "admin.config.git_pull_timeout"}}
- {{.Git.Timeout.Pull}} {{.i18n.Tr "tool.raw_seconds"}}
- {{.i18n.Tr "admin.config.git_gc_timeout"}}
- {{.Git.Timeout.GC}} {{.i18n.Tr "tool.raw_seconds"}}
-
-
-
-
-
-
- {{range .Loggers.default.SubLogDescriptions}}
- {{$.i18n.Tr "admin.config.log_mode"}}
- {{.Name}} ({{.Provider}})
- {{$.i18n.Tr "admin.config.log_config"}}
- {{.Config | JsonPrettyPrint}}
- {{end}}
-
- {{$.i18n.Tr "admin.config.macaron_log_mode"}}
- {{if .RedirectMacaronLog}}
- {{if .Loggers.macaron.SubLogDescriptions}}
- {{$.i18n.Tr "admin.config.own_named_logger"}}
- {{range .Loggers.macaron.SubLogDescriptions}}
- {{$.i18n.Tr "admin.config.log_mode"}}
- {{.Name}} ({{.Provider}})
- {{$.i18n.Tr "admin.config.log_config"}}
- {{.Config | JsonPrettyPrint}}
- {{end}}
- {{else}}
- {{$.i18n.Tr "admin.config.routes_to_default_logger"}}
- {{end}}
- {{else}}
- {{$.i18n.Tr "admin.config.go_log"}}
- {{end}}
-
- {{$.i18n.Tr "admin.config.router_log_mode"}}
- {{if .DisableRouterLog}}
- {{$.i18n.Tr "admin.config.disabled_logger"}}
- {{else}}
- {{if .RedirectMacaronLog}}
- {{if .Loggers.router.SubLogDescriptions}}
- {{$.i18n.Tr "admin.config.own_named_logger"}}
- {{range .Loggers.router.SubLogDescriptions}}
- {{$.i18n.Tr "admin.config.log_mode"}}
- {{.Name}} ({{.Provider}})
- {{$.i18n.Tr "admin.config.log_config"}}
- {{.Config | JsonPrettyPrint}}
- {{end}}
- {{else}}
- {{$.i18n.Tr "admin.config.routes_to_default_logger"}}
- {{end}}
- {{else}}
- {{$.i18n.Tr "admin.config.go_log"}}
- {{end}}
- {{end}}
-
- {{$.i18n.Tr "admin.config.access_log_mode"}}
- {{if .EnableAccessLog}}
- {{if .Loggers.access.SubLogDescriptions}}
- {{$.i18n.Tr "admin.config.own_named_logger"}}
- {{range .Loggers.access.SubLogDescriptions}}
- {{$.i18n.Tr "admin.config.log_mode"}}
- {{.Name}} ({{.Provider}})
- {{$.i18n.Tr "admin.config.log_config"}}
- {{.Config | JsonPrettyPrint}}
- {{end}}
- {{else}}
- {{$.i18n.Tr "admin.config.routes_to_default_logger"}}
- {{end}}
- {{$.i18n.Tr "admin.config.access_log_template"}}
- {{$.AccessLogTemplate}}
- {{else}}
- {{$.i18n.Tr "admin.config.disabled_logger"}}
- {{end}}
-
- {{$.i18n.Tr "admin.config.xorm_log_mode"}}
- {{if .EnableXORMLog}}
- {{if .Loggers.xorm.SubLogDescriptions}}
- {{$.i18n.Tr "admin.config.own_named_logger"}}
- {{range .Loggers.xorm.SubLogDescriptions}}
- {{$.i18n.Tr "admin.config.log_mode"}}
- {{.Name}} ({{.Provider}})
- {{$.i18n.Tr "admin.config.log_config"}}
- {{.Config | JsonPrettyPrint}}
- {{end}}
- {{else}}
- {{$.i18n.Tr "admin.config.routes_to_default_logger"}}
- {{end}}
- {{$.i18n.Tr "admin.config.xorm_log_sql"}}
-
- {{else}}
- {{$.i18n.Tr "admin.config.disabled_logger"}}
- {{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/admin/dashboard.tmpl b/admin/dashboard.tmpl
deleted file mode 100644
index 262db04..0000000
--- a/admin/dashboard.tmpl
+++ /dev/null
@@ -1,133 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
- {{.i18n.Tr "admin.dashboard.statistic_info" .Stats.Counter.User .Stats.Counter.Org .Stats.Counter.PublicKey .Stats.Counter.Repo .Stats.Counter.Watch .Stats.Counter.Star .Stats.Counter.Action .Stats.Counter.Access .Stats.Counter.Issue .Stats.Counter.Comment .Stats.Counter.Oauth .Stats.Counter.Follow .Stats.Counter.Mirror .Stats.Counter.Release .Stats.Counter.LoginSource .Stats.Counter.Webhook .Stats.Counter.Milestone .Stats.Counter.Label .Stats.Counter.HookTask .Stats.Counter.Team .Stats.Counter.UpdateTask .Stats.Counter.Attachment | Str2html}}
-
-
-
-
-
-
-
-
- {{.i18n.Tr "admin.dashboard.server_uptime"}}
- {{.SysStatus.Uptime}}
- {{.i18n.Tr "admin.dashboard.current_goroutine"}}
- {{.SysStatus.NumGoroutine}}
-
- {{.i18n.Tr "admin.dashboard.current_memory_usage"}}
- {{.SysStatus.MemAllocated}}
- {{.i18n.Tr "admin.dashboard.total_memory_allocated"}}
- {{.SysStatus.MemTotal}}
- {{.i18n.Tr "admin.dashboard.memory_obtained"}}
- {{.SysStatus.MemSys}}
- {{.i18n.Tr "admin.dashboard.pointer_lookup_times"}}
- {{.SysStatus.Lookups}}
- {{.i18n.Tr "admin.dashboard.memory_allocate_times"}}
- {{.SysStatus.MemMallocs}}
- {{.i18n.Tr "admin.dashboard.memory_free_times"}}
- {{.SysStatus.MemFrees}}
-
- {{.i18n.Tr "admin.dashboard.current_heap_usage"}}
- {{.SysStatus.HeapAlloc}}
- {{.i18n.Tr "admin.dashboard.heap_memory_obtained"}}
- {{.SysStatus.HeapSys}}
- {{.i18n.Tr "admin.dashboard.heap_memory_idle"}}
- {{.SysStatus.HeapIdle}}
- {{.i18n.Tr "admin.dashboard.heap_memory_in_use"}}
- {{.SysStatus.HeapInuse}}
- {{.i18n.Tr "admin.dashboard.heap_memory_released"}}
- {{.SysStatus.HeapReleased}}
- {{.i18n.Tr "admin.dashboard.heap_objects"}}
- {{.SysStatus.HeapObjects}}
-
- {{.i18n.Tr "admin.dashboard.bootstrap_stack_usage"}}
- {{.SysStatus.StackInuse}}
- {{.i18n.Tr "admin.dashboard.stack_memory_obtained"}}
- {{.SysStatus.StackSys}}
- {{.i18n.Tr "admin.dashboard.mspan_structures_usage"}}
- {{.SysStatus.MSpanInuse}}
- {{.i18n.Tr "admin.dashboard.mspan_structures_obtained"}}
- {{.SysStatus.MSpanSys}}
- {{.i18n.Tr "admin.dashboard.mcache_structures_usage"}}
- {{.SysStatus.MCacheInuse}}
- {{.i18n.Tr "admin.dashboard.mcache_structures_obtained"}}
- {{.SysStatus.MCacheSys}}
- {{.i18n.Tr "admin.dashboard.profiling_bucket_hash_table_obtained"}}
- {{.SysStatus.BuckHashSys}}
- {{.i18n.Tr "admin.dashboard.gc_metadata_obtained"}}
- {{.SysStatus.GCSys}}
- {{.i18n.Tr "admin.dashboard.other_system_allocation_obtained"}}
- {{.SysStatus.OtherSys}}
-
- {{.i18n.Tr "admin.dashboard.next_gc_recycle"}}
- {{.SysStatus.NextGC}}
- {{.i18n.Tr "admin.dashboard.last_gc_time"}}
- {{.SysStatus.LastGC}}
- {{.i18n.Tr "admin.dashboard.total_gc_pause"}}
- {{.SysStatus.PauseTotalNs}}
- {{.i18n.Tr "admin.dashboard.last_gc_pause"}}
- {{.SysStatus.PauseNs}}
- {{.i18n.Tr "admin.dashboard.gc_times"}}
- {{.SysStatus.NumGC}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/admin/hook_new.tmpl b/admin/hook_new.tmpl
deleted file mode 100644
index c047efe..0000000
--- a/admin/hook_new.tmpl
+++ /dev/null
@@ -1,43 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
- {{template "repo/settings/webhook/gitea" .}}
- {{template "repo/settings/webhook/gogs" .}}
- {{template "repo/settings/webhook/slack" .}}
- {{template "repo/settings/webhook/discord" .}}
- {{template "repo/settings/webhook/dingtalk" .}}
- {{template "repo/settings/webhook/telegram" .}}
- {{template "repo/settings/webhook/msteams" .}}
-
-
- {{template "repo/settings/webhook/history" .}}
-
-
-{{template "base/footer" .}}
diff --git a/admin/hooks.tmpl b/admin/hooks.tmpl
deleted file mode 100644
index 3265a1d..0000000
--- a/admin/hooks.tmpl
+++ /dev/null
@@ -1,8 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "repo/settings/webhook/list" .}}
-
-
-{{template "base/footer" .}}
diff --git a/admin/monitor.tmpl b/admin/monitor.tmpl
deleted file mode 100644
index 6cc927d..0000000
--- a/admin/monitor.tmpl
+++ /dev/null
@@ -1,61 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-
- {{.i18n.Tr "admin.monitor.name"}}
- {{.i18n.Tr "admin.monitor.schedule"}}
- {{.i18n.Tr "admin.monitor.next"}}
- {{.i18n.Tr "admin.monitor.previous"}}
- {{.i18n.Tr "admin.monitor.execute_times"}}
-
-
-
- {{range .Entries}}
-
- {{.Description}}
- {{.Spec}}
- {{DateFmtLong .Next}}
- {{if gt .Prev.Year 1 }}{{DateFmtLong .Prev}}{{else}}N/A{{end}}
- {{.ExecTimes}}
-
- {{end}}
-
-
-
-
-
-
-
-
-
- Pid
- {{.i18n.Tr "admin.monitor.desc"}}
- {{.i18n.Tr "admin.monitor.start"}}
- {{.i18n.Tr "admin.monitor.execute_time"}}
-
-
-
- {{range .Processes}}
-
- {{.PID}}
- {{.Description}}
- {{DateFmtLong .Start}}
- {{TimeSince .Start $.Lang}}
-
- {{end}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/admin/nav.tmpl b/admin/nav.tmpl
deleted file mode 100644
index d95a0d7..0000000
--- a/admin/nav.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/admin/navbar.tmpl b/admin/navbar.tmpl
deleted file mode 100644
index caa8c1f..0000000
--- a/admin/navbar.tmpl
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/admin/notice.tmpl b/admin/notice.tmpl
deleted file mode 100644
index 93fc8cc..0000000
--- a/admin/notice.tmpl
+++ /dev/null
@@ -1,80 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-
-
- ID
- {{.i18n.Tr "admin.notices.type"}}
- {{.i18n.Tr "admin.notices.desc"}}
- {{.i18n.Tr "admin.users.created"}}
- {{.i18n.Tr "admin.notices.op"}}
-
-
-
- {{range .Notices}}
-
-
-
-
-
-
- {{.ID}}
- {{$.i18n.Tr .TrStr}}
- {{SubStr .Description 0 120}}...
- {{.CreatedUnix.FormatShort}}
-
-
- {{end}}
-
- {{ if .Notices }}
-
-
-
-
-
-
- {{.i18n.Tr "admin.notices.actions"}}
-
-
-
- {{.i18n.Tr "admin.notices.delete_selected"}}
-
-
-
-
- {{ end }}
-
-
-
- {{ template "base/paginate" . }}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/admin/org/list.tmpl b/admin/org/list.tmpl
deleted file mode 100644
index e9dbc7f..0000000
--- a/admin/org/list.tmpl
+++ /dev/null
@@ -1,52 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
- {{template "admin/base/search" .}}
-
-
-
-
-
- ID
- {{.i18n.Tr "admin.orgs.name"}}
- {{.i18n.Tr "admin.orgs.teams"}}
- {{.i18n.Tr "admin.orgs.members"}}
- {{.i18n.Tr "admin.users.repos"}}
- {{.i18n.Tr "admin.users.created"}}
- {{.i18n.Tr "admin.users.edit"}}
-
-
-
- {{range .Users}}
-
- {{.ID}}
-
- {{.Name}}
- {{if .Visibility.IsPrivate}}
-
- {{end}}
-
- {{.NumTeams}}
- {{.NumMembers}}
- {{.NumRepos}}
- {{.CreatedUnix.FormatShort}}
-
-
- {{end}}
-
-
-
-
- {{template "base/paginate" .}}
-
-
-{{template "base/footer" .}}
diff --git a/admin/repo/list.tmpl b/admin/repo/list.tmpl
deleted file mode 100644
index 793d9c6..0000000
--- a/admin/repo/list.tmpl
+++ /dev/null
@@ -1,70 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
- {{template "admin/repo/search" .}}
-
-
-
-
-
- ID
- {{.i18n.Tr "admin.repos.owner"}}
- {{.i18n.Tr "admin.repos.name"}}
- {{.i18n.Tr "admin.repos.private"}}
- {{.i18n.Tr "admin.repos.watches"}}
- {{.i18n.Tr "admin.repos.stars"}}
- {{.i18n.Tr "admin.repos.forks"}}
- {{.i18n.Tr "admin.repos.issues"}}
- {{.i18n.Tr "admin.repos.size"}}
- {{.i18n.Tr "admin.users.created"}}
- {{.i18n.Tr "admin.notices.op"}}
-
-
-
- {{range .Repos}}
-
- {{.ID}}
-
- {{.Owner.Name}}
- {{if .Owner.Visibility.IsPrivate}}
-
- {{end}}
-
- {{.Name}}
-
- {{.NumWatches}}
- {{.NumStars}}
- {{.NumForks}}
- {{.NumIssues}}
- {{SizeFmt .Size}}
- {{.CreatedUnix.FormatShort}}
-
-
- {{end}}
-
-
-
-
- {{template "base/paginate" .}}
-
-
-
-
-
-
-
{{.i18n.Tr "repo.settings.delete_desc"}}
- {{.i18n.Tr "repo.settings.delete_notices_2" `
` | Safe}}
- {{.i18n.Tr "repo.settings.delete_notices_fork_1"}}
-
- {{template "base/delete_modal_actions" .}}
-
-{{template "base/footer" .}}
diff --git a/admin/repo/search.tmpl b/admin/repo/search.tmpl
deleted file mode 100644
index 8e69f7c..0000000
--- a/admin/repo/search.tmpl
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
diff --git a/admin/user/edit.tmpl b/admin/user/edit.tmpl
deleted file mode 100644
index b2ec622..0000000
--- a/admin/user/edit.tmpl
+++ /dev/null
@@ -1,128 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-
-
-
-
-
{{.i18n.Tr "settings.delete_account_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
-{{template "base/footer" .}}
diff --git a/admin/user/list.tmpl b/admin/user/list.tmpl
deleted file mode 100644
index d590526..0000000
--- a/admin/user/list.tmpl
+++ /dev/null
@@ -1,55 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
- {{template "admin/base/search" .}}
-
-
-
-
-
- ID
- {{.i18n.Tr "admin.users.name"}}
- {{.i18n.Tr "email"}}
- {{.i18n.Tr "admin.users.activated"}}
- {{.i18n.Tr "admin.users.admin"}}
- {{.i18n.Tr "admin.users.repos"}}
- {{.i18n.Tr "admin.users.created"}}
- {{.i18n.Tr "admin.users.last_login"}}
- {{.i18n.Tr "admin.users.edit"}}
-
-
-
- {{range .Users}}
-
- {{.ID}}
- {{.Name}}
- {{.Email}}
-
-
- {{.NumRepos}}
- {{.CreatedUnix.FormatShort}}
- {{if .LastLoginUnix}}
- {{.LastLoginUnix.FormatShort}}
- {{else}}
- {{$.i18n.Tr "admin.users.never_login"}}
- {{end}}
-
-
- {{end}}
-
-
-
-
- {{template "base/paginate" .}}
-
-
-{{template "base/footer" .}}
diff --git a/admin/user/new.tmpl b/admin/user/new.tmpl
deleted file mode 100644
index 06b7d70..0000000
--- a/admin/user/new.tmpl
+++ /dev/null
@@ -1,69 +0,0 @@
-{{template "base/head" .}}
-
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-{{template "base/footer" .}}
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_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/explore/code.tmpl b/explore/code.tmpl
deleted file mode 100644
index 742ed59..0000000
--- a/explore/code.tmpl
+++ /dev/null
@@ -1,55 +0,0 @@
-{{template "base/head" .}}
-
- {{template "explore/navbar" .}}
-
-
-
-
-
- {{if .SearchResults}}
-
- {{.i18n.Tr "explore.code_search_results" (.Keyword|Escape) | Str2html }}
-
-
- {{range $result := .SearchResults}}
- {{$repo := (index $.RepoMaps .RepoID)}}
-
-
-
-
-
-
-
-
- {{range .LineNumbers}}
- {{.}}
- {{end}}
-
- {{.FormattedLines}}
-
-
-
-
-
-
- {{end}}
-
- {{else}}
-
{{$.i18n.Tr "explore.code_no_results"}}
- {{end}}
-
-
- {{template "base/paginate" .}}
-
-
-{{template "base/footer" .}}
-
diff --git a/explore/navbar.tmpl b/explore/navbar.tmpl
deleted file mode 100644
index 3bd5264..0000000
--- a/explore/navbar.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/explore/organizations.tmpl b/explore/organizations.tmpl
deleted file mode 100644
index 4e2bfc9..0000000
--- a/explore/organizations.tmpl
+++ /dev/null
@@ -1,38 +0,0 @@
-{{template "base/head" .}}
-
- {{template "explore/navbar" .}}
-
- {{template "explore/search" .}}
-
-
- {{range .Users}}
-
-
-
-
-
- {{if .Location}}
-
{{.Location}}
- {{end}}
- {{if and .Website}}
-
-
{{.Website}}
- {{end}}
-
{{$.i18n.Tr "user.join_on"}} {{.CreatedUnix.FormatShort}}
-
-
-
- {{else}}
-
{{$.i18n.Tr "explore.org_no_results"}}
- {{end}}
-
-
- {{template "base/paginate" .}}
-
-
-{{template "base/footer" .}}
diff --git a/explore/repo_list.tmpl b/explore/repo_list.tmpl
deleted file mode 100644
index 8c7ba51..0000000
--- a/explore/repo_list.tmpl
+++ /dev/null
@@ -1,45 +0,0 @@
-
- {{range .Repos}}
-
-
-
- {{if .DescriptionHTML}}
{{.DescriptionHTML}}
{{end}}
- {{if .Topics }}
-
- {{end}}
-
{{$.i18n.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.i18n.Lang}}
-
-
- {{else}}
-
- {{$.i18n.Tr "explore.repo_no_results"}}
-
- {{end}}
-
diff --git a/explore/repo_search.tmpl b/explore/repo_search.tmpl
deleted file mode 100644
index 62bb5ea..0000000
--- a/explore/repo_search.tmpl
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
diff --git a/explore/repos.tmpl b/explore/repos.tmpl
deleted file mode 100644
index c728219..0000000
--- a/explore/repos.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{template "base/head" .}}
-
- {{template "explore/navbar" .}}
-
- {{template "explore/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 906dd06..0000000
--- a/explore/search.tmpl
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
diff --git a/explore/users.tmpl b/explore/users.tmpl
deleted file mode 100644
index 32a3693..0000000
--- a/explore/users.tmpl
+++ /dev/null
@@ -1,33 +0,0 @@
-{{template "base/head" .}}
-
- {{template "explore/navbar" .}}
-
- {{template "explore/search" .}}
-
-
- {{range .Users}}
-
-
-
-
-
- {{if .Location}}
-
{{.Location}}
- {{end}}
- {{if and $.ShowUserEmail .Email $.IsSigned (not .KeepEmailPrivate)}}
-
-
{{.Email}}
- {{end}}
-
{{$.i18n.Tr "user.join_on"}} {{.CreatedUnix.FormatShort}}
-
-
-
- {{else}}
-
{{$.i18n.Tr "explore.user_no_results"}}
- {{end}}
-
-
- {{template "base/paginate" .}}
-
-
-{{template "base/footer" .}}
diff --git a/install.tmpl b/install.tmpl
deleted file mode 100644
index f8d1ef0..0000000
--- a/install.tmpl
+++ /dev/null
@@ -1,305 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
- {{template "base/alert" .}}
-
-
{{.i18n.Tr "install.docker_helper" "https://docs.gitea.io/en-us/install-with-docker/" | Safe}}
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/mail/auth/activate.tmpl b/mail/auth/activate.tmpl
deleted file mode 100644
index 37fdbd7..0000000
--- a/mail/auth/activate.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
- {{.DisplayName}}, please activate your account
-
-
-
- Hi {{.DisplayName}} , thanks for registering at {{AppName}}!
- Please click the following link to activate your account within {{.ActiveCodeLives}} :
- {{AppUrl}}user/activate?code={{.Code}}
- Not working? Try copying and pasting it to your browser.
- © {{AppName}}
-
-
diff --git a/mail/auth/activate_email.tmpl b/mail/auth/activate_email.tmpl
deleted file mode 100644
index ebcaa0e..0000000
--- a/mail/auth/activate_email.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
- {{.DisplayName}}, please verify your e-mail address
-
-
-
- Hi {{.DisplayName}} ,
- Please click the following link to verify your email address within {{.ActiveCodeLives}} :
- {{AppUrl}}user/activate_email?code={{.Code}}&email={{.Email}}
- Not working? Try copying and pasting it to your browser.
- © {{AppName}}
-
-
diff --git a/mail/auth/register_notify.tmpl b/mail/auth/register_notify.tmpl
deleted file mode 100644
index ea18570..0000000
--- a/mail/auth/register_notify.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
- {{.DisplayName}}, welcome to {{AppName}}
-
-
-
- Hi {{.DisplayName}} , this is your registration confirmation email for {{AppName}}!
- You can now login via username: {{.Username}}.
- {{AppUrl}}user/login
- If this account has been created for you, please set your password first.
- © {{AppName}}
-
-
diff --git a/mail/auth/reset_passwd.tmpl b/mail/auth/reset_passwd.tmpl
deleted file mode 100644
index e01d57c..0000000
--- a/mail/auth/reset_passwd.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
- {{.DisplayName}}, you have requested to recover your account
-
-
-
- Hi {{.DisplayName}} ,
- Please click the following link to recover your account within {{.ResetPwdCodeLives}} :
-
- {{AppUrl}}user/recover_account?code={{.Code}}
- Not working? Try copying and pasting it to your browser.
- © {{AppName}}
-
-
diff --git a/mail/issue/comment.tmpl b/mail/issue/comment.tmpl
deleted file mode 100644
index cc86add..0000000
--- a/mail/issue/comment.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
- {{.Subject}}
-
-
-
- {{.Body | Str2html}}
-
- ---
-
- View it on Gitea .
-
-
-
diff --git a/mail/issue/mention.tmpl b/mail/issue/mention.tmpl
deleted file mode 100644
index 032eea0..0000000
--- a/mail/issue/mention.tmpl
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
- {{.Subject}}
-
-
-
- @{{.Doer.Name}} mentioned you:
- {{.Body | Str2html}}
-
- ---
-
- View it on Gitea .
-
-
-
diff --git a/mail/notify/collaborator.tmpl b/mail/notify/collaborator.tmpl
deleted file mode 100644
index 4bbf40b..0000000
--- a/mail/notify/collaborator.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
- {{.Subject}}
-
-
-
- You have been added as a collaborator of repository: {{.RepoName}}
-
- ---
-
- View it on Gitea .
-
-
-
diff --git a/org/create.tmpl b/org/create.tmpl
deleted file mode 100644
index 82c8766..0000000
--- a/org/create.tmpl
+++ /dev/null
@@ -1,58 +0,0 @@
-{{template "base/head" .}}
-
-{{template "base/footer" .}}
diff --git a/org/header.tmpl b/org/header.tmpl
deleted file mode 100644
index 806682a..0000000
--- a/org/header.tmpl
+++ /dev/null
@@ -1,26 +0,0 @@
-{{with .Org}}
-
-
-{{end}}
diff --git a/org/home.tmpl b/org/home.tmpl
deleted file mode 100644
index 03bb525..0000000
--- a/org/home.tmpl
+++ /dev/null
@@ -1,82 +0,0 @@
-{{template "base/head" .}}
-
- {{/* overflow: auto is the clearfix - this avoids the image going beyond
- the container where it is supposed to stay inside. */}}
-
-
-
-
- {{if .Org.Description}}
{{.Org.Description}}
{{end}}
-
- {{if .Org.Location}}
{{.Org.Location}}
{{end}}
- {{if .Org.Website}}
{{end}}
-
-
-
-
-
-
-
-
-
- {{if .IsOrganizationOwner}}
-
-
- {{end}}
- {{template "explore/repo_search" .}}
- {{template "explore/repo_list" .}}
- {{template "base/paginate" .}}
-
-
-
-
-
- {{$isMember := .IsOrganizationMember}}
- {{range .Members}}
- {{if or $isMember (.IsPublicMember $.Org.ID)}}
-
- {{end}}
- {{end}}
-
-
- {{if .IsOrganizationMember}}
-
-
- {{range .Teams}}
-
- {{end}}
-
- {{if .IsOrganizationOwner}}
-
- {{end}}
- {{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/org/member/members.tmpl b/org/member/members.tmpl
deleted file mode 100644
index 9db506e..0000000
--- a/org/member/members.tmpl
+++ /dev/null
@@ -1,62 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
- {{template "base/alert" .}}
-
-
- {{ range .Members}}
-
-
-
-
-
-
-
- {{$.i18n.Tr "org.members.membership_visibility"}}
-
-
-
-
-
- {{$.i18n.Tr "org.members.member_role"}}
-
-
- {{if index $.MembersIsUserOrgOwner .ID}} {{$.i18n.Tr "org.members.owner"}}{{else}}{{$.i18n.Tr "org.members.member"}}{{end}}
-
-
-
-
-
- {{end}}
-
-
-
-{{template "base/footer" .}}
diff --git a/org/settings/delete.tmpl b/org/settings/delete.tmpl
deleted file mode 100644
index 3b0ee09..0000000
--- a/org/settings/delete.tmpl
+++ /dev/null
@@ -1,43 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
-
- {{template "org/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
{{.i18n.Tr "org.settings.delete_prompt" | Str2html}}
-
-
-
-
-
-
-
-
-
-
-
-
{{.i18n.Tr "org.settings.delete_org_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
-{{template "base/footer" .}}
diff --git a/org/settings/hook_new.tmpl b/org/settings/hook_new.tmpl
deleted file mode 100644
index 5db9101..0000000
--- a/org/settings/hook_new.tmpl
+++ /dev/null
@@ -1,44 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
-
- {{template "org/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
- {{template "repo/settings/webhook/gitea" .}}
- {{template "repo/settings/webhook/gogs" .}}
- {{template "repo/settings/webhook/slack" .}}
- {{template "repo/settings/webhook/discord" .}}
- {{template "repo/settings/webhook/dingtalk" .}}
- {{template "repo/settings/webhook/telegram" .}}
- {{template "repo/settings/webhook/msteams" .}}
-
-
- {{template "repo/settings/webhook/history" .}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/org/settings/hooks.tmpl b/org/settings/hooks.tmpl
deleted file mode 100644
index 825b1e9..0000000
--- a/org/settings/hooks.tmpl
+++ /dev/null
@@ -1,13 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
-
- {{template "org/settings/navbar" .}}
-
- {{template "repo/settings/webhook/list" .}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/org/settings/navbar.tmpl b/org/settings/navbar.tmpl
deleted file mode 100644
index 09fca5d..0000000
--- a/org/settings/navbar.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
diff --git a/org/settings/options.tmpl b/org/settings/options.tmpl
deleted file mode 100644
index d58c77a..0000000
--- a/org/settings/options.tmpl
+++ /dev/null
@@ -1,103 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
-
- {{template "org/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "settings.choose_new_avatar"}}
-
-
-
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/org/team/members.tmpl b/org/team/members.tmpl
deleted file mode 100644
index 74e5e19..0000000
--- a/org/team/members.tmpl
+++ /dev/null
@@ -1,47 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
- {{template "base/alert" .}}
-
- {{template "org/team/sidebar" .}}
-
- {{template "org/team/navbar" .}}
- {{if .IsOrganizationOwner}}
-
-
- {{.CsrfTokenHtml}}
-
-
- {{.i18n.Tr "org.teams.add_team_member"}}
-
-
- {{end}}
-
- {{range .Team.Members}}
-
- {{else}}
-
- {{$.i18n.Tr "org.teams.members.none"}}
-
- {{end}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/org/team/navbar.tmpl b/org/team/navbar.tmpl
deleted file mode 100644
index 1a8f108..0000000
--- a/org/team/navbar.tmpl
+++ /dev/null
@@ -1,4 +0,0 @@
-
\ No newline at end of file
diff --git a/org/team/new.tmpl b/org/team/new.tmpl
deleted file mode 100644
index fb79c9b..0000000
--- a/org/team/new.tmpl
+++ /dev/null
@@ -1,97 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{.i18n.Tr "org.team_name"}}
- {{if eq .Team.LowerName "owners"}}
-
- {{end}}
-
- {{.i18n.Tr "org.team_name_helper"}}
-
-
- {{.i18n.Tr "org.team_desc"}}
-
- {{.i18n.Tr "org.team_desc_helper"}}
-
- {{if not (eq .Team.LowerName "owners")}}
-
-
{{.i18n.Tr "org.team_permission_desc"}}
-
-
-
-
- {{.i18n.Tr "org.teams.read_access"}}
- {{.i18n.Tr "org.teams.read_access_helper"}}
-
-
-
-
-
- {{.i18n.Tr "org.teams.write_access"}}
- {{.i18n.Tr "org.teams.write_access_helper"}}
-
-
-
-
-
- {{.i18n.Tr "org.teams.admin_access"}}
- {{.i18n.Tr "org.teams.admin_access_helper"}}
-
-
-
-
-
-
-
{{.i18n.Tr "org.team_unit_desc"}}
-
- {{range $t, $unit := $.Units}}
-
-
-
- {{$.i18n.Tr $unit.NameKey}}
- {{$.i18n.Tr $unit.DescKey}}
-
-
- {{end}}
-
-
- {{end}}
-
-
- {{if .PageIsOrgTeamsNew}}
-
{{.i18n.Tr "org.create_team"}}
-
{{.i18n.Tr "cancel"}}
- {{else}}
-
{{.i18n.Tr "org.teams.update_settings"}}
- {{if not (eq .Team.LowerName "owners")}}
-
{{.i18n.Tr "org.teams.delete_team"}}
- {{end}}
- {{end}}
-
-
-
-
-
-
-
-
-
-
-
{{.i18n.Tr "org.teams.delete_team_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
-{{template "base/footer" .}}
diff --git a/org/team/repositories.tmpl b/org/team/repositories.tmpl
deleted file mode 100644
index eeb8656..0000000
--- a/org/team/repositories.tmpl
+++ /dev/null
@@ -1,47 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
- {{template "base/alert" .}}
-
- {{template "org/team/sidebar" .}}
-
- {{template "org/team/navbar" .}}
- {{$canAddRemove := and $.IsOrganizationOwner (not (eq $.Team.LowerName "owners"))}}
- {{if $canAddRemove}}
-
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "org.teams.add_team_repository"}}
-
-
- {{end}}
-
- {{range .Team.Repos}}
-
- {{else}}
-
- {{$.i18n.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 846613e..0000000
--- a/org/team/sidebar.tmpl
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
- {{if .Team.Description}}
- {{.Team.Description}}
- {{else}}
- {{.i18n.Tr "org.teams.no_desc"}}
- {{end}}
-
-
-
- {{if eq .Team.LowerName "owners"}}
- {{.i18n.Tr "org.teams.owners_permission_desc" | Str2html}}
- {{else if (eq .Team.Authorize 1)}}
- {{.i18n.Tr "org.teams.read_permission_desc" | Str2html}}
- {{else if (eq .Team.Authorize 2)}}
- {{.i18n.Tr "org.teams.write_permission_desc" | Str2html}}
- {{else if (eq .Team.Authorize 3)}}
- {{.i18n.Tr "org.teams.admin_permission_desc" | Str2html}}
- {{end}}
-
-
- {{if .IsOrganizationOwner}}
-
- {{end}}
-
diff --git a/org/team/teams.tmpl b/org/team/teams.tmpl
deleted file mode 100644
index 8714181..0000000
--- a/org/team/teams.tmpl
+++ /dev/null
@@ -1,41 +0,0 @@
-{{template "base/head" .}}
-
- {{template "org/header" .}}
-
- {{template "base/alert" .}}
- {{if .IsOrganizationOwner}}
-
-
- {{end}}
-
-
- {{range .Teams}}
-
-
-
- {{range .Members}}
-
-
-
- {{end}}
-
-
-
- {{end}}
-
-
-
-{{template "base/footer" .}}
diff --git a/gitea-matrix-theme.css b/public/css/theme-matrix.css
similarity index 100%
rename from gitea-matrix-theme.css
rename to public/css/theme-matrix.css
diff --git a/pwa/manifest_json.tmpl b/pwa/manifest_json.tmpl
deleted file mode 100644
index 557bee5..0000000
--- a/pwa/manifest_json.tmpl
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "short_name": "Gitea",
- "name": "Gitea - Git with a cup of tea",
- "icons": [
- {
- "src": "{{AppSubUrl}}/img/gitea-lg.png",
- "type": "image/png",
- "sizes": "880x880"
- },
- {
- "src": "{{AppSubUrl}}/img/gitea-sm.png",
- "type": "image/png",
- "sizes": "120x120"
- },
- {
- "src": "{{AppSubUrl}}/img/gitea-512.png",
- "type": "image/png",
- "sizes": "512x512"
- },
- {
- "src": "{{AppSubUrl}}/img/gitea-192.png",
- "type": "image/png",
- "sizes": "192x192"
- }
- ],
- "start_url": "{{AppSubUrl}}/",
- "scope": "{{AppSubUrl}}/",
- "background_color": "#FAFAFA",
- "display": "standalone",
- "theme_color": "{{ThemeColorMetaTag}}"
- }
\ No newline at end of file
diff --git a/pwa/serviceworker_js.tmpl b/pwa/serviceworker_js.tmpl
deleted file mode 100644
index ee96cd5..0000000
--- a/pwa/serviceworker_js.tmpl
+++ /dev/null
@@ -1,77 +0,0 @@
-var STATIC_CACHE = 'static-cache-v1';
-var urlsToCache = [
- // js
- '{{AppSubUrl}}/vendor/plugins/jquery.areyousure/jquery.are-you-sure.js',
- '{{AppSubUrl}}/vendor/plugins/jquery/jquery.min.js?v=3.4.1',
- '{{AppSubUrl}}/vendor/plugins/jquery-migrate/jquery-migrate.min.js?v=3.0.1',
- '{{AppSubUrl}}/vendor/plugins/semantic/semantic.min.js',
- '{{AppSubUrl}}/js/index.js?v={{MD5 AppVer}}',
- '{{AppSubUrl}}/js/draw.js',
- '{{AppSubUrl}}/vendor/plugins/clipboard/clipboard.min.js',
- '{{AppSubUrl}}/vendor/plugins/gitgraph/gitgraph.js',
- '{{AppSubUrl}}/vendor/plugins/vue/vue.min.js',
- '{{AppSubUrl}}/vendor/plugins/emojify/emojify.min.js',
- '{{AppSubUrl}}/vendor/plugins/cssrelpreload/loadCSS.min.js',
- '{{AppSubUrl}}/vendor/plugins/cssrelpreload/cssrelpreload.min.js',
- '{{AppSubUrl}}/vendor/plugins/dropzone/dropzone.js',
- '{{AppSubUrl}}/vendor/plugins/highlight/highlight.pack.js',
- '{{AppSubUrl}}/vendor/plugins/jquery.datetimepicker/jquery.datetimepicker.js',
- '{{AppSubUrl}}/vendor/plugins/jquery.minicolors/jquery.minicolors.min.js',
- '{{AppSubUrl}}/vendor/plugins/codemirror/addon/mode/loadmode.js',
- '{{AppSubUrl}}/vendor/plugins/codemirror/mode/meta.js',
- '{{AppSubUrl}}/vendor/plugins/simplemde/simplemde.min.js',
-
- // css
- '{{AppSubUrl}}/vendor/assets/font-awesome/css/font-awesome.min.css',
- '{{AppSubUrl}}/vendor/assets/octicons/octicons.min.css',
- '{{AppSubUrl}}/vendor/plugins/simplemde/simplemde.min.css',
- '{{AppSubUrl}}/vendor/plugins/gitgraph/gitgraph.css',
- '{{AppSubUrl}}/vendor/plugins/tribute/tribute.css',
- '{{AppSubUrl}}/vendor/plugins/semantic/semantic.min.css',
- '{{AppSubUrl}}/css/index.css?v={{MD5 AppVer}}',
- '{{AppSubUrl}}/vendor/plugins/highlight/github.css',
- '{{AppSubUrl}}/vendor/plugins/jquery.minicolors/jquery.minicolors.css',
- '{{AppSubUrl}}/vendor/plugins/jquery.datetimepicker/jquery.datetimepicker.css',
- '{{AppSubUrl}}/vendor/plugins/dropzone/dropzone.css',
-{{if .IsSigned }}
- {{ if ne .SignedUser.Theme "gitea" }}
- '{{AppSubUrl}}/css/theme-{{.SignedUser.Theme}}.css',
- {{end}}
-{{else if ne DefaultTheme "gitea"}}
- '{{AppSubUrl}}/css/theme-{{DefaultTheme}}.css',
-{{end}}
-
- // img
- '{{AppSubUrl}}/img/gitea-sm.png',
- '{{AppSubUrl}}/img/gitea-lg.png',
-
- // fonts
- '{{AppSubUrl}}/vendor/plugins/semantic/themes/default/assets/fonts/icons.woff2',
- '{{AppSubUrl}}/vendor/assets/octicons/octicons.woff2?ef21c39f0ca9b1b5116e5eb7ac5eabe6',
- '{{AppSubUrl}}/vendor/assets/lato-fonts/lato-v14-latin-regular.woff2',
- '{{AppSubUrl}}/vendor/assets/lato-fonts/lato-v14-latin-700.woff2'
-];
-
-self.addEventListener('install', function (event) {
- // Perform install steps
- event.waitUntil(
- caches.open(STATIC_CACHE)
- .then(function (cache) {
- return cache.addAll(urlsToCache);
- })
- );
-});
-
-self.addEventListener('fetch', function (event) {
- event.respondWith(
- caches.match(event.request)
- .then(function (response) {
- // Cache hit - return response
- if (response) {
- return response;
- }
- return fetch(event.request);
- }
- )
- );
-});
diff --git a/repo/activity.tmpl b/repo/activity.tmpl
deleted file mode 100644
index 8ee5b55..0000000
--- a/repo/activity.tmpl
+++ /dev/null
@@ -1,220 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
-
- {{if (or (.Permission.CanRead $.UnitTypeIssues) (.Permission.CanRead $.UnitTypePullRequests))}}
-
-
- {{if .Permission.CanRead $.UnitTypePullRequests}}
-
- {{if gt .Activity.ActivePRCount 0}}
-
- {{else}}
-
- {{end}}
- {{.i18n.Tr (TrN .i18n.Lang .Activity.ActivePRCount "repo.activity.active_prs_count_1" "repo.activity.active_prs_count_n") .Activity.ActivePRCount | Safe }}
-
- {{end}}
- {{if .Permission.CanRead $.UnitTypeIssues}}
-
- {{if gt .Activity.ActiveIssueCount 0}}
-
- {{else}}
-
- {{end}}
- {{.i18n.Tr (TrN .i18n.Lang .Activity.ActiveIssueCount "repo.activity.active_issues_count_1" "repo.activity.active_issues_count_n") .Activity.ActiveIssueCount | Safe }}
-
- {{end}}
-
-
- {{end}}
-
- {{if .Permission.CanRead $.UnitTypeCode}}
- {{if eq .Activity.Code.CommitCountInAllBranches 0}}
-
-
-
- {{end}}
- {{if gt .Activity.Code.CommitCountInAllBranches 0}}
-
-
- {{.i18n.Tr "repo.activity.git_stats_exclude_merges" }}
- {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.AuthorCount "repo.activity.git_stats_author_1" "repo.activity.git_stats_author_n") .Activity.Code.AuthorCount }}
- {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.AuthorCount "repo.activity.git_stats_pushed_1" "repo.activity.git_stats_pushed_n") }}
- {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.CommitCount "repo.activity.git_stats_commit_1" "repo.activity.git_stats_commit_n") .Activity.Code.CommitCount }}
- {{.i18n.Tr "repo.activity.git_stats_push_to_branch" .Repository.DefaultBranch }}
- {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.CommitCountInAllBranches "repo.activity.git_stats_commit_1" "repo.activity.git_stats_commit_n") .Activity.Code.CommitCountInAllBranches }}
- {{.i18n.Tr "repo.activity.git_stats_push_to_all_branches" }}
- {{.i18n.Tr "repo.activity.git_stats_on_default_branch" .Repository.DefaultBranch }}
- {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.ChangedFiles "repo.activity.git_stats_file_1" "repo.activity.git_stats_file_n") .Activity.Code.ChangedFiles }}
- {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.ChangedFiles "repo.activity.git_stats_files_changed_1" "repo.activity.git_stats_files_changed_n") }}
- {{.i18n.Tr "repo.activity.git_stats_additions" }}
- {{.i18n.Tr (TrN .i18n.Lang .Activity.Code.Additions "repo.activity.git_stats_addition_1" "repo.activity.git_stats_addition_n") .Activity.Code.Additions }}
- {{.i18n.Tr "repo.activity.git_stats_and_deletions" }}
- {{.i18n.Tr (TrN .i18n.Lang .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}}
-
-
- {{range .Activity.PublishedReleases}}
-
-
{{$.i18n.Tr "repo.activity.published_release_label"}}
- {{.TagName}}
- {{if not .IsTag}}
-
{{.Title}}
- {{end}}
- {{TimeSinceUnix .CreatedUnix $.Lang}}
-
- {{end}}
-
- {{end}}
-
- {{if gt .Activity.MergedPRCount 0}}
-
-
- {{range .Activity.MergedPRs}}
-
-
{{$.i18n.Tr "repo.activity.merged_prs_label"}}
- #{{.Index}}
{{.Issue.Title}}
- {{TimeSinceUnix .MergedUnix $.Lang}}
-
- {{end}}
-
- {{end}}
-
- {{if gt .Activity.OpenedPRCount 0}}
-
-
- {{range .Activity.OpenedPRs}}
-
-
{{$.i18n.Tr "repo.activity.opened_prs_label"}}
- #{{.Index}}
{{.Issue.Title}}
- {{TimeSinceUnix .Issue.CreatedUnix $.Lang}}
-
- {{end}}
-
- {{end}}
-
- {{if gt .Activity.ClosedIssueCount 0}}
-
-
- {{range .Activity.ClosedIssues}}
-
-
{{$.i18n.Tr "repo.activity.closed_issue_label"}}
- #{{.Index}}
{{.Title}}
- {{TimeSinceUnix .ClosedUnix $.Lang}}
-
- {{end}}
-
- {{end}}
-
- {{if gt .Activity.OpenedIssueCount 0}}
-
-
- {{range .Activity.OpenedIssues}}
-
-
{{$.i18n.Tr "repo.activity.new_issue_label"}}
- #{{.Index}}
{{.Title}}
- {{TimeSinceUnix .CreatedUnix $.Lang}}
-
- {{end}}
-
- {{end}}
-
- {{if gt .Activity.UnresolvedIssueCount 0}}
-
-
- {{.i18n.Tr "repo.activity.unresolved_conv_desc"}}
-
-
- {{range .Activity.UnresolvedIssues}}
-
-
{{$.i18n.Tr "repo.activity.unresolved_conv_label"}}
- #{{.Index}}
- {{if .IsPull}}
-
{{.Title}}
- {{else}}
-
{{.Title}}
- {{end}}
- {{TimeSinceUnix .UpdatedUnix $.Lang}}
-
- {{end}}
-
- {{end}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/blame.tmpl b/repo/blame.tmpl
deleted file mode 100644
index 483f8d3..0000000
--- a/repo/blame.tmpl
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
-
-
-
-
-
- {{.BlameCommitInfo}}
- {{.BlameLineNums}}
- {{.BlameContent}}
-
-
-
-
-
-
-
-
diff --git a/repo/branch/list.tmpl b/repo/branch/list.tmpl
deleted file mode 100644
index 7707b3c..0000000
--- a/repo/branch/list.tmpl
+++ /dev/null
@@ -1,138 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
- {{template "repo/sub_menu" .}}
-
-
-
-
-
-
-
- {{range .Branches}}
- {{if eq .Name $.DefaultBranch}}
- {{if .IsProtected}}
-
- {{end}}
- {{$.DefaultBranch}}
- {{ShortSha .Commit.ID.String}} · {{RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas}} · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}
- {{end}}
- {{end}}
-
-
-
-
-
-
-
-
-
-
-
-
- {{if gt (len .Branches) 1}}
-
-
- {{end}}
-
-
-
-
-
-
-
{{.i18n.Tr "repo.branch.delete_desc" | Str2html}}
-
- {{template "base/delete_modal_actions" .}}
-
-{{template "base/footer" .}}
diff --git a/repo/branch_dropdown.tmpl b/repo/branch_dropdown.tmpl
deleted file mode 100644
index b7f4c91..0000000
--- a/repo/branch_dropdown.tmpl
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
-
- {{if .IsViewBranch}}{{.i18n.Tr "repo.branch"}}{{else}}{{.i18n.Tr "repo.tree"}}{{end}}:
- {{if .IsViewBranch}}{{.BranchName}}{{else}}{{ShortSha .BranchName}}{{end}}
-
-
-
-
- {{range .Branches}}
-
{{.}}
- {{end}}
- {{range .Tags}}
-
{{.}}
- {{end}}
-
-
-
-
diff --git a/repo/commit_page.tmpl b/repo/commit_page.tmpl
deleted file mode 100644
index 0cfdf51..0000000
--- a/repo/commit_page.tmpl
+++ /dev/null
@@ -1,89 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
- {{.i18n.Tr "repo.diff.browse_source"}}
-
-
{{RenderCommitMessage .Commit.Message $.RepoLink $.Repository.ComposeMetas}}{{template "repo/commit_status" .CommitStatus}}
- {{if IsMultilineCommitMessage .Commit.Message}}
-
{{RenderCommitBody .Commit.Message $.RepoLink $.Repository.ComposeMetas}}
- {{end}}
-
{{.BranchName}}
-
-
-
-
- {{if .Author}}
-
- {{if .Author.FullName}}
-
{{.Author.FullName}} {{if .IsSigned}}<{{.Commit.Author.Email}}>{{end}}
- {{else}}
-
{{.Commit.Author.Name}} {{if .IsSigned}}<{{.Commit.Author.Email}}>{{end}}
- {{end}}
- {{else}}
-
-
{{.Commit.Author.Name}}
- {{end}}
-
{{TimeSince .Commit.Author.When $.Lang}}
-
-
-
- {{if .Parents}}
-
- {{.i18n.Tr "repo.diff.parent"}}
-
-
- {{end}}
-
-
{{.i18n.Tr "repo.diff.commit"}}
-
{{ShortSha .CommitID}}
-
-
-
-
- {{if .Commit.Signature}}
- {{if .Verification.Verified }}
-
-
-
{{.i18n.Tr "repo.commits.signed_by"}}:
-
{{.Commit.Committer.Name}} <{{.Commit.Committer.Email}}>
-
{{.i18n.Tr "repo.commits.gpg_key_id"}}: {{.Verification.SigningKey.KeyID}}
-
- {{else}}
-
-
- {{.i18n.Tr .Verification.Reason}}
-
- {{end}}
- {{end}}
- {{if .Note}}
-
-
-
{{RenderNote .Note $.RepoLink $.Repository.ComposeMetas}}
-
- {{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 638f81e..0000000
--- a/repo/commit_status.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-{{if eq .State "pending"}}
-
-{{end}}
-{{if eq .State "success"}}
-
-{{end}}
-{{if eq .State "error"}}
-
-{{end}}
-{{if eq .State "failure"}}
-
-{{end}}
-{{if eq .State "warning"}}
-
-{{end}}
diff --git a/repo/commits.tmpl b/repo/commits.tmpl
deleted file mode 100644
index 32301a0..0000000
--- a/repo/commits.tmpl
+++ /dev/null
@@ -1,20 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "repo/sub_menu" .}}
-
- {{template "repo/commits_table" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/commits_table.tmpl b/repo/commits_table.tmpl
deleted file mode 100644
index e11bbee..0000000
--- a/repo/commits_table.tmpl
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
-{{if and .Commits (gt .CommitCount 0)}}
-
-{{end}}
-
-{{template "base/paginate" .}}
diff --git a/repo/create.tmpl b/repo/create.tmpl
deleted file mode 100644
index 1a53e3c..0000000
--- a/repo/create.tmpl
+++ /dev/null
@@ -1,132 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
-
{{.i18n.Tr "repo.owner"}}
-
-
-
-
- {{.ContextUser.ShortName 20}}
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.repo_name"}}
-
- {{.i18n.Tr "repo.repo_name_helper"}}
-
-
-
- {{.i18n.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
-
{{.i18n.Tr "repo.issue_labels"}}
-
-
-
{{.i18n.Tr "repo.issue_labels_helper"}}
-
-
-
-
-
-
-
-
.gitignore
-
-
-
{{.i18n.Tr "repo.repo_gitignore_helper"}}
-
-
-
-
-
{{.i18n.Tr "repo.license"}}
-
-
-
{{.i18n.Tr "repo.license_helper"}}
-
-
-
-
-
-
{{.i18n.Tr "repo.readme"}}
-
-
-
{{.i18n.Tr "repo.readme_helper"}}
-
-
-
-
-
-
- {{.i18n.Tr "repo.auto_init"}}
-
-
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/diff/box.tmpl b/repo/diff/box.tmpl
deleted file mode 100644
index 604b83c..0000000
--- a/repo/diff/box.tmpl
+++ /dev/null
@@ -1,239 +0,0 @@
-{{if .DiffNotAvailable}}
-
- {{.i18n.Tr "repo.diff.data_not_available"}}
-{{else}}
-
-
-
- {{.i18n.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | Str2html}}
-
-
-
- {{range .Diff.Files}}
-
-
- {{if not .IsBin}}
-
+{{.Addition}}
-
-
-
-
-
-{{.Deletion}}
- {{else}}
-
{{$.i18n.Tr "repo.diff.bin"}}
- {{end}}
-
-
-
- {{.Name}}
-
- {{end}}
-
- {{range $i, $file := .Diff.Files}}
- {{if $file.IsIncomplete}}
-
-
-
- {{else}}
-
-
-
- {{if ne $file.Type 4}}
- {{$isImage := false}}
- {{if $file.IsDeleted}}
- {{$isImage = (call $.IsImageFileInBase $file.Name)}}
- {{else}}
- {{$isImage = (call $.IsImageFileInHead $file.Name)}}
- {{end}}
-
-
-
- {{if $isImage}}
- {{template "repo/diff/image_diff" dict "file" . "root" $}}
- {{else}}
- {{if $.IsSplitStyle}}
- {{$highlightClass := $file.GetHighlightClass}}
- {{range $j, $section := $file.Sections}}
- {{range $k, $line := $section.Lines}}
-
-
- {{if $line.LeftIdx}} {{end}}
- {{if and $.SignedUserID $line.CanComment $.PageIsPullFiles (not (eq .GetType 2))}}{{end}}{{if $line.LeftIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}
-
- {{if $line.RightIdx}} {{end}}
- {{if and $.SignedUserID $line.CanComment $.PageIsPullFiles (not (eq .GetType 3))}}{{end}}{{if $line.RightIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}
-
- {{if gt (len $line.Comments) 0}}
-
- {{end}}
- {{end}}
- {{end}}
- {{else}}
- {{template "repo/diff/section_unified" dict "file" . "root" $}}
- {{end}}
- {{end}}
-
-
-
- {{end}}
-
-
- {{end}}
-
- {{end}}
-
- {{if .Diff.IsIncomplete}}
-
-
-
- {{end}}
-
- {{if not $.Repository.IsArchived}}
-
-
-
-
- {{end}}
-
- {{if .IsSplitStyle}}
-
- {{end}}
-
-{{end}}
diff --git a/repo/diff/comment_form.tmpl b/repo/diff/comment_form.tmpl
deleted file mode 100644
index 38fd3fa..0000000
--- a/repo/diff/comment_form.tmpl
+++ /dev/null
@@ -1,47 +0,0 @@
-{{if and $.root.SignedUserID (not $.Repository.IsArchived)}}
- {{if $.hidden}}
-
- {{end}}
-
-{{end}}
diff --git a/repo/diff/comment_form_datahandler.tmpl b/repo/diff/comment_form_datahandler.tmpl
deleted file mode 100644
index 9656944..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 1288886..0000000
--- a/repo/diff/comments.tmpl
+++ /dev/null
@@ -1,51 +0,0 @@
-{{range .comments}}
-
-{{ $createdStr:= TimeSinceUnix .CreatedUnix $.root.Lang }}
-
-{{end}}
diff --git a/repo/diff/compare.tmpl b/repo/diff/compare.tmpl
deleted file mode 100644
index 50a51c4..0000000
--- a/repo/diff/compare.tmpl
+++ /dev/null
@@ -1,89 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{if .PageIsComparePull}}
-
-
-
-
-
- {{.i18n.Tr "repo.pulls.compare_base"}}: {{$.BaseName}}:{{$.BaseBranch}}
-
-
-
-
- ...
-
-
- {{.i18n.Tr "repo.pulls.compare_compare"}}: {{$.HeadUser.Name}}:{{$.HeadBranch}}
-
-
-
-
-
- {{end}}
-
- {{if .IsNothingToCompare}}
-
{{.i18n.Tr "repo.pulls.nothing_to_compare"}}
- {{else if .PageIsComparePull}}
- {{if .HasPullRequest}}
-
- {{.i18n.Tr "repo.pulls.has_pull_request" $.RepoLink $.RepoRelPath .PullRequest.Index | Safe}}
-
- {{else}}
- {{if not .Repository.IsArchived}}
-
- {{.i18n.Tr "repo.pulls.new"}}
-
- {{ else }}
-
- {{.i18n.Tr "repo.archive.title"}}
-
- {{ end }}
-
- {{template "repo/issue/new_form" .}}
-
- {{template "repo/commits_table" .}}
- {{template "repo/diff/box" .}}
- {{end}}
- {{else}}
- {{template "repo/commits_table" .}}
- {{template "repo/diff/box" .}}
- {{end}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/diff/image_diff.tmpl b/repo/diff/image_diff.tmpl
deleted file mode 100644
index 6afb985..0000000
--- a/repo/diff/image_diff.tmpl
+++ /dev/null
@@ -1,79 +0,0 @@
-{{ $imagePathOld := printf "%s/%s" .root.BeforeRawPath (EscapePound .file.OldName) }}
-{{ $imagePathNew := printf "%s/%s" .root.RawPath (EscapePound .file.Name) }}
-
-
-
- {{.root.i18n.Tr "repo.diff.file_before"}}
-
-
- {{.root.i18n.Tr "repo.diff.file_after"}}
-
-
-
-
- {{if or .file.IsDeleted (not .file.IsCreated)}}
-
-
-
- {{end}}
-
-
- {{if or .file.IsCreated (not .file.IsDeleted)}}
-
-
-
- {{end}}
-
-
-{{ $imageInfoBase := (call .root.ImageInfoBase .file.OldName) }}
-{{ $imageInfoHead := (call .root.ImageInfo .file.Name) }}
-{{if or $imageInfoBase $imageInfoHead }}
-
-
- {{if $imageInfoBase }}
- {{ $classWidth := "" }}
- {{ $classHeight := "" }}
- {{ $classByteSize := "" }}
- {{if $imageInfoHead}}
- {{if not (eq $imageInfoBase.Width $imageInfoHead.Width)}}
- {{ $classWidth = "red" }}
- {{end}}
- {{if not (eq $imageInfoBase.Height $imageInfoHead.Height)}}
- {{ $classHeight = "red" }}
- {{end}}
- {{if not (eq $imageInfoBase.ByteSize $imageInfoHead.ByteSize)}}
- {{ $classByteSize = "red" }}
- {{end}}
- {{end}}
- {{.root.i18n.Tr "repo.diff.file_image_width"}}: {{$imageInfoBase.Width}}
- |
- {{.root.i18n.Tr "repo.diff.file_image_height"}}: {{$imageInfoBase.Height}}
- |
- {{.root.i18n.Tr "repo.diff.file_byte_size"}}: {{FileSize $imageInfoBase.ByteSize}}
- {{end}}
-
-
- {{if $imageInfoHead }}
- {{ $classWidth := "" }}
- {{ $classHeight := "" }}
- {{ $classByteSize := "" }}
- {{if $imageInfoBase}}
- {{if not (eq $imageInfoBase.Width $imageInfoHead.Width)}}
- {{ $classWidth = "green" }}
- {{end}}
- {{if not (eq $imageInfoBase.Height $imageInfoHead.Height)}}
- {{ $classHeight = "green" }}
- {{end}}
- {{if not (eq $imageInfoBase.ByteSize $imageInfoHead.ByteSize)}}
- {{ $classByteSize = "green" }}
- {{end}}
- {{end}}
- {{.root.i18n.Tr "repo.diff.file_image_width"}}: {{$imageInfoHead.Width}}
- |
- {{.root.i18n.Tr "repo.diff.file_image_height"}}: {{$imageInfoHead.Height}}
- |
- {{.root.i18n.Tr "repo.diff.file_byte_size"}}: {{FileSize $imageInfoHead.ByteSize}}
- {{end}}
-
-
-{{end}}
diff --git a/repo/diff/new_comment.tmpl b/repo/diff/new_comment.tmpl
deleted file mode 100644
index d8b6ccb..0000000
--- a/repo/diff/new_comment.tmpl
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/repo/diff/new_review.tmpl b/repo/diff/new_review.tmpl
deleted file mode 100644
index 68d8f89..0000000
--- a/repo/diff/new_review.tmpl
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
- {{.i18n.Tr "repo.diff.review"}}
-
-
-
-
diff --git a/repo/diff/section_unified.tmpl b/repo/diff/section_unified.tmpl
deleted file mode 100644
index 9a60c23..0000000
--- a/repo/diff/section_unified.tmpl
+++ /dev/null
@@ -1,34 +0,0 @@
-{{$file := .file}}
-{{$highlightClass := $file.GetHighlightClass}}
-{{range $j, $section := $file.Sections}}
- {{range $k, $line := $section.Lines}}
-
- {{if eq .GetType 4}}
-
- {{/* {{if gt $j 0}} {{end}} */}}
-
- {{else}}
-
-
- {{end}}
-
- {{if and $.root.SignedUserID $line.CanComment $.root.PageIsPullFiles}}{{end}}{{$section.GetComputedInlineDiffFor $line}}
-
- {{if gt (len $line.Comments) 0}}
-
-
-
-
-
- {{end}}
- {{end}}
-{{end}}
diff --git a/repo/diff/whitespace_dropdown.tmpl b/repo/diff/whitespace_dropdown.tmpl
deleted file mode 100644
index 65fd871..0000000
--- a/repo/diff/whitespace_dropdown.tmpl
+++ /dev/null
@@ -1,23 +0,0 @@
-
- {{.i18n.Tr "repo.diff.whitespace_button"}}
-
-
-
-{{ if .IsSplitStyle }}{{.i18n.Tr "repo.diff.show_unified_view"}}{{else}}{{.i18n.Tr "repo.diff.show_split_view"}}{{end}}
diff --git a/repo/editor/commit_form.tmpl b/repo/editor/commit_form.tmpl
deleted file mode 100644
index 2ff08e3..0000000
--- a/repo/editor/commit_form.tmpl
+++ /dev/null
@@ -1,53 +0,0 @@
-
diff --git a/repo/editor/delete.tmpl b/repo/editor/delete.tmpl
deleted file mode 100644
index 10eca8f..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 b663e4e..0000000
--- a/repo/editor/diff_preview.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
- {{template "repo/diff/section_unified" dict "file" .File "root" $}}
-
-
-
-
-
diff --git a/repo/editor/edit.tmpl b/repo/editor/edit.tmpl
deleted file mode 100644
index 134dc81..0000000
--- a/repo/editor/edit.tmpl
+++ /dev/null
@@ -1,57 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
- {{.CsrfTokenHtml}}
-
-
-
-
-
-
-{{.FileContent}}
-
-
- {{.i18n.Tr "loading"}}
-
-
- {{.i18n.Tr "loading"}}
-
-
- {{template "repo/editor/commit_form" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/editor/upload.tmpl b/repo/editor/upload.tmpl
deleted file mode 100644
index 23fdc8b..0000000
--- a/repo/editor/upload.tmpl
+++ /dev/null
@@ -1,36 +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 07c01fe..0000000
--- a/repo/empty.tmpl
+++ /dev/null
@@ -1,78 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
- {{template "base/alert" .}}
- {{if .Repository.IsArchived}}
-
- {{.i18n.Tr "repo.archive.title"}}
-
- {{end}}
- {{if .CanWriteCode}}
-
-
-
-
- {{if not .Repository.IsArchived}}
-
-
-
-
{{.i18n.Tr "repo.create_new_repo_command"}}
-
-
touch README.md
-git init
-git add README.md
-git commit -m "first commit"
-git remote add origin {{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}
-git push -u origin master
-
-
-
-
-
-
{{.i18n.Tr "repo.push_exist_repo"}}
-
-
git remote add origin {{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}
-git push -u origin master
-
-
- {{end}}
- {{else}}
-
- {{.i18n.Tr "repo.empty_message"}}
-
- {{end}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/forks.tmpl b/repo/forks.tmpl
deleted file mode 100644
index 461ac89..0000000
--- a/repo/forks.tmpl
+++ /dev/null
@@ -1,22 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
- {{range .Forks}}
-
-
-
-
- {{end}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/graph.tmpl b/repo/graph.tmpl
deleted file mode 100644
index 2e8d0b5..0000000
--- a/repo/graph.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
{{.i18n.Tr "repo.commit_graph"}}
-
-
-
- {{ range .Graph }}
- {{ .GraphAcii -}}
- {{ end }}
-
-
-
-
-
- {{ range .Graph }}
-
- {{ if .OnlyRelation }}
-
- {{ else }}
-
- {{ .ShortRev}}
-
- {{.Branch}}
- {{RenderCommitMessage .Subject $.RepoLink $.Repository.ComposeMetas}} by
-
- {{.Author}}
-
- {{.Date}}
- {{ end }}
-
- {{ end }}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/header.tmpl b/repo/header.tmpl
deleted file mode 100644
index 111609e..0000000
--- a/repo/header.tmpl
+++ /dev/null
@@ -1,110 +0,0 @@
-
diff --git a/repo/home.tmpl b/repo/home.tmpl
deleted file mode 100644
index b23e851..0000000
--- a/repo/home.tmpl
+++ /dev/null
@@ -1,142 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
-
- {{if .Repository.DescriptionHTML}}
{{.Repository.DescriptionHTML}} {{else if .IsRepositoryAdmin}}
{{.i18n.Tr "repo.no_desc"}} {{end}}
-
{{.Repository.Website}}
-
- {{if .RepoSearchEnabled}}
-
- {{end}}
-
-
- {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}
-
- {{end}}
-
- {{.i18n.Tr "repo.topic.count_prompt"}}
- {{.i18n.Tr "repo.topic.format_prompt"}}
-
- {{if .Repository.IsArchived}}
-
- {{.i18n.Tr "repo.archive.title"}}
-
- {{end}}
- {{template "repo/sub_menu" .}}
-
- {{if .IsViewFile}}
- {{template "repo/view_file" .}}
- {{else if .IsBlame}}
- {{template "repo/blame" .}}
- {{else}}
- {{template "repo/view_list" .}}
- {{end}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/issue/branch_selector_field.tmpl b/repo/issue/branch_selector_field.tmpl
deleted file mode 100644
index 8758be4..0000000
--- a/repo/issue/branch_selector_field.tmpl
+++ /dev/null
@@ -1,43 +0,0 @@
-{{if and (not .Issue.IsPull) (not .PageIsComparePull)}}
-
-
-
- {{if .Issue.Ref}}{{.Issue.Ref}}{{else}}{{.i18n.Tr "repo.issues.no_ref"}}{{end}}
-
-
-
-
-
-
-{{end}}
\ No newline at end of file
diff --git a/repo/issue/comment_tab.tmpl b/repo/issue/comment_tab.tmpl
deleted file mode 100644
index be113e5..0000000
--- a/repo/issue/comment_tab.tmpl
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-{{if .BodyQuery}}{{.BodyQuery}}{{else if .IssueTemplate}}{{.IssueTemplate}}{{else if .PullRequestTemplate}}{{.PullRequestTemplate}}{{else}}{{.content}}{{end}}
-
-
- {{.i18n.Tr "loading"}}
-
-
-{{if .IsAttachmentEnabled}}
-
-
-{{end}}
diff --git a/repo/issue/label_precolors.tmpl b/repo/issue/label_precolors.tmpl
deleted file mode 100644
index d0e1650..0000000
--- a/repo/issue/label_precolors.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/repo/issue/labels.tmpl b/repo/issue/labels.tmpl
deleted file mode 100644
index 1763042..0000000
--- a/repo/issue/labels.tmpl
+++ /dev/null
@@ -1,182 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{template "repo/issue/navbar" .}}
- {{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}}
-
-
{{.i18n.Tr "repo.issues.new_label"}}
-
- {{end}}
-
- {{if not .Repository.IsArchived}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
-
-
-
- {{template "repo/issue/label_precolors"}}
-
-
-
-
-
- {{end}}
-
-
-
- {{template "base/alert" .}}
-
{{.i18n.Tr "repo.issues.label_count" .NumLabels}}
-
- {{if and (or $.CanWriteIssues $.CanWritePulls) (eq .NumLabels 0) (not $.Repository.IsArchived) }}
-
-
-
-
-
{{.i18n.Tr "repo.issues.label_templates.info"}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
{{.i18n.Tr "repo.issues.label_templates.helper"}}
-
-
-
- {{.i18n.Tr "repo.issues.label_templates.use"}}
-
-
-
-
- {{end}}
-
-
-
- {{range .Labels}}
-
-
-
-
- {{.Description}}
-
-
-
-
-
- {{end}}
-
-
-
-
-{{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}}
-
-
-
-
{{.i18n.Tr "repo.issues.label_deletion_desc"}}
-
-
-
-
- {{.i18n.Tr "modal.no"}}
-
-
-
- {{.i18n.Tr "modal.yes"}}
-
-
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
-
-
-
-
- {{template "repo/issue/label_precolors"}}
-
-
-
-
-
-
- {{.i18n.Tr "modal.no"}}
-
-
- {{.i18n.Tr "modal.modify"}}
-
-
-
-
-{{end}}
-{{template "base/footer" .}}
diff --git a/repo/issue/list.tmpl b/repo/issue/list.tmpl
deleted file mode 100644
index 5572df6..0000000
--- a/repo/issue/list.tmpl
+++ /dev/null
@@ -1,276 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
- {{template "repo/issue/navbar" .}}
-
-
- {{template "repo/issue/search" .}}
-
- {{if not .Repository.IsArchived}}
-
- {{else}}
- {{if not .PageIsIssueList}}
-
- {{end}}
- {{end}}
-
-
-
-
-
- {{/* Ten wide does not cope well and makes the columns stack.
- This seems to be related to jQuery's hide/show: in fact, switching
- issue-actions and issue-filters and having this ten wide will show
- this one correctly, but not the other one. */}}
-
-
-
-
-
-
- {{range .Issues}}
-
- {{if $.CanWriteIssuesOrPulls}}
-
-
-
- {{end}}
- #{{.Index}}
- {{.Title}}
-
- {{if .IsPull }}
- {{if (index $.CommitStatus .PullRequest.ID)}}
- {{template "repo/commit_status" (index $.CommitStatus .PullRequest.ID)}}
- {{end}}
- {{end}}
-
- {{range .Labels}}
- {{.Name}}
- {{end}}
-
- {{if .NumComments}}
-
- {{end}}
-
- {{if .TotalTrackedTime}}
-
- {{end}}
-
-
- {{ $timeStr := TimeSinceUnix .GetLastEventTimestamp $.Lang }}
- {{if .OriginalAuthor }}
- {{$.i18n.Tr .GetLastEventLabelFake $timeStr .OriginalAuthor | Safe}}
- {{else if gt .Poster.ID 0}}
- {{$.i18n.Tr .GetLastEventLabel $timeStr .Poster.HomeLink (.Poster.GetDisplayName | Escape) | Safe}}
- {{else}}
- {{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName | Escape) | Safe}}
- {{end}}
-
- {{if .Milestone}}
-
- {{.Milestone.Name}}
-
- {{end}}
- {{if .Ref}}
-
- {{.Ref}}
-
- {{end}}
- {{$tasks := .GetTasks}}
- {{if gt $tasks 0}}
- {{$tasksDone := .GetTasksDone}}
-
- {{$tasksDone}} / {{$tasks}}
-
- {{end}}
- {{if ne .DeadlineUnix 0}}
-
- {{.DeadlineUnix.FormatShort}}
- {{end}}
- {{range .Assignees}}
-
-
-
- {{end}}
-
-
- {{end}}
-
- {{template "base/paginate" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/issue/milestone_issues.tmpl b/repo/issue/milestone_issues.tmpl
deleted file mode 100644
index f5c6e17..0000000
--- a/repo/issue/milestone_issues.tmpl
+++ /dev/null
@@ -1,237 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
-
{{.Milestone.Name}}
-
-
-
-
- {{if not .Repository.IsArchived}}
-
- {{end}}
-
-
-
- {{ $closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix $.Lang }}
- {{if .IsClosed}}
- {{$.i18n.Tr "repo.milestones.closed" $closedDate|Str2html}}
- {{else}}
-
- {{if .Milestone.DeadlineString}}
- {{.Milestone.DeadlineString}}
- {{else}}
- {{$.i18n.Tr "repo.milestones.no_due_date"}}
- {{end}}
- {{end}}
-
- {{.i18n.Tr "repo.milestones.completeness" .Milestone.Completeness}}
-
-
-
-
-
-
-
- {{/* Ten wide does not cope well and makes the columns stack.
- This seems to be related to jQuery's hide/show: in fact, switching
- issue-actions and issue-filters and having this ten wide will show
- this one correctly, but not the other one. */}}
-
-
-
-
-
-
- {{range .Issues}}
- {{ $timeStr:= TimeSinceUnix .CreatedUnix $.Lang }}
-
- {{if or (and $.CanWriteIssues (not .IsPull)) (and $.CanWritePulls .IsPull)}}
-
-
-
- {{end}}
- #{{.Index}}
- {{.Title}}
-
- {{range .Labels}}
- {{.Name}}
- {{end}}
-
- {{if .NumComments}}
-
- {{end}}
-
- {{if .TotalTrackedTime}}
-
- {{end}}
-
-
- {{if gt .Poster.ID 0}}
- {{$.i18n.Tr .GetLastEventLabel $timeStr .Poster.HomeLink (.Poster.GetDisplayName|Escape) | Safe}}
- {{else}}
- {{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName|Escape) | Safe}}
- {{end}}
- {{if .Ref}}
-
- {{.Ref}}
-
- {{end}}
- {{$tasks := .GetTasks}}
- {{if gt $tasks 0}}
- {{$tasksDone := .GetTasksDone}}
-
- {{$tasksDone}} / {{$tasks}}
-
- {{end}}
- {{if ne .DeadlineUnix 0}}
-
- {{.DeadlineUnix.FormatShort}}
- {{end}}
- {{range .Assignees}}
-
-
-
- {{end}}
-
-
- {{end}}
-
- {{template "base/paginate" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/issue/milestone_new.tmpl b/repo/issue/milestone_new.tmpl
deleted file mode 100644
index ea704c0..0000000
--- a/repo/issue/milestone_new.tmpl
+++ /dev/null
@@ -1,68 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{template "repo/issue/navbar" .}}
- {{if and (or .CanWriteIssues .CanWritePulls) .PageIsEditMilestone}}
-
- {{end}}
-
-
-
- {{template "base/alert" .}}
-
- {{.CsrfTokenHtml}}
-
-
- {{.i18n.Tr "repo.milestones.title"}}
-
-
-
- {{.i18n.Tr "repo.milestones.desc"}}
- {{.content}}
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/issue/milestones.tmpl b/repo/issue/milestones.tmpl
deleted file mode 100644
index ef5eece..0000000
--- a/repo/issue/milestones.tmpl
+++ /dev/null
@@ -1,115 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{template "repo/issue/navbar" .}}
- {{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}}
-
- {{end}}
-
-
- {{template "base/alert" .}}
-
-
-
-
- {{range .Milestones}}
-
- {{.Name}}
-
-
- {{ $closedDate:= TimeSinceUnix .ClosedDateUnix $.Lang }}
- {{if .IsClosed}}
- {{$.i18n.Tr "repo.milestones.closed" $closedDate|Str2html}}
- {{else}}
-
- {{if .DeadlineString}}
- {{.DeadlineString}}
- {{else}}
- {{$.i18n.Tr "repo.milestones.no_due_date"}}
- {{end}}
- {{end}}
-
- {{$.i18n.Tr "repo.issues.open_tab" .NumOpenIssues}}
- {{$.i18n.Tr "repo.issues.close_tab" .NumClosedIssues}}
- {{if .TotalTrackedTime}} {{.TotalTrackedTime|Sec2Time}}{{end}}
-
-
- {{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}}
-
- {{end}}
- {{if .Content}}
-
- {{.RenderedContent|Str2html}}
-
- {{end}}
-
- {{end}}
-
- {{template "base/paginate" .}}
-
-
-
-
-{{if or .CanWriteIssues .CanWritePulls}}
-
-
-
-
{{.i18n.Tr "repo.milestones.deletion_desc"}}
-
-
-
-
- {{.i18n.Tr "modal.no"}}
-
-
-
- {{.i18n.Tr "modal.yes"}}
-
-
-
-{{end}}
-{{template "base/footer" .}}
diff --git a/repo/issue/navbar.tmpl b/repo/issue/navbar.tmpl
deleted file mode 100644
index 1e86445..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 3c6bc05..0000000
--- a/repo/issue/new.tmpl
+++ /dev/null
@@ -1,12 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{template "repo/issue/navbar" .}}
-
-
- {{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 6777ec7..0000000
--- a/repo/issue/new_form.tmpl
+++ /dev/null
@@ -1,159 +0,0 @@
-
-{{if .PageIsComparePull}}
-
-{{end}}
-
diff --git a/repo/issue/search.tmpl b/repo/issue/search.tmpl
deleted file mode 100644
index 522bced..0000000
--- a/repo/issue/search.tmpl
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
diff --git a/repo/issue/view.tmpl b/repo/issue/view.tmpl
deleted file mode 100644
index 7fcc1f2..0000000
--- a/repo/issue/view.tmpl
+++ /dev/null
@@ -1,33 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
- {{template "repo/issue/navbar" .}}
-
- {{if not .Repository.IsArchived}}
-
- {{end}}
-
-
- {{if .Issue.IsPull}}
- {{template "repo/issue/view_title" .}}
- {{template "repo/pulls/tab_menu" .}}
-
- {{template "repo/issue/view_content" .}}
-
- {{else}}
-
- {{template "repo/issue/view_content" .}}
-
- {{end}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/issue/view_content.tmpl b/repo/issue/view_content.tmpl
deleted file mode 100644
index a68f4e4..0000000
--- a/repo/issue/view_content.tmpl
+++ /dev/null
@@ -1,205 +0,0 @@
-
- {{if .Flash}}
-
- {{template "base/alert" .}}
-
- {{end}}
- {{if not .Issue.IsPull}}
- {{template "repo/issue/view_title" .}}
- {{end}}
-
- {{ $createdStr:= TimeSinceUnix .Issue.CreatedUnix $.Lang }}
-
-
-
-
- {{ template "repo/issue/view_content/sidebar" . }}
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.issues.no_content"}}
-
-
-
-
-
-
{{.i18n.Tr "repo.branch.delete_desc" | Str2html}}
-
- {{template "base/delete_modal_actions" .}}
-
diff --git a/repo/issue/view_content/add_reaction.tmpl b/repo/issue/view_content/add_reaction.tmpl
deleted file mode 100644
index 626db5c..0000000
--- a/repo/issue/view_content/add_reaction.tmpl
+++ /dev/null
@@ -1,18 +0,0 @@
-{{if .ctx.IsSigned}}
-
-{{end}}
diff --git a/repo/issue/view_content/comments.tmpl b/repo/issue/view_content/comments.tmpl
deleted file mode 100644
index a5f2595..0000000
--- a/repo/issue/view_content/comments.tmpl
+++ /dev/null
@@ -1,427 +0,0 @@
-{{ template "base/alert" }}
-{{range .Issue.Comments}}
- {{ $createdStr:= TimeSinceUnix .CreatedUnix $.Lang }}
-
-
- {{if eq .Type 0}}
-
- {{else if eq .Type 1}}
-
- {{else if eq .Type 2}}
-
- {{else if or (eq .Type 3) (eq .Type 5) (eq .Type 6)}}
-
- {{else if eq .Type 4}}
-
- {{else if eq .Type 7}}
- {{if .Label}}
-
-
-
-
-
-
{{.Poster.GetDisplayName}}
- {{if .Content}}{{$.i18n.Tr "repo.issues.add_label_at" .Label.ForegroundColor .Label.Color (.Label.Name|Escape) $createdStr | Safe}}{{else}}{{$.i18n.Tr "repo.issues.remove_label_at" .Label.ForegroundColor .Label.Color (.Label.Name|Escape) $createdStr | Safe}}{{end}}
-
- {{end}}
- {{else if eq .Type 8}}
-
-
-
-
-
-
{{.Poster.GetDisplayName}}
- {{if gt .OldMilestoneID 0}}{{if gt .MilestoneID 0}}{{$.i18n.Tr "repo.issues.change_milestone_at" (.OldMilestone.Name|Escape) (.Milestone.Name|Escape) $createdStr | Safe}}{{else}}{{$.i18n.Tr "repo.issues.remove_milestone_at" (.OldMilestone.Name|Escape) $createdStr | Safe}}{{end}}{{else if gt .MilestoneID 0}}{{$.i18n.Tr "repo.issues.add_milestone_at" (.Milestone.Name|Escape) $createdStr | Safe}}{{end}}
-
- {{else if eq .Type 9}}
-
-
- {{if gt .AssigneeID 0}}
- {{if .RemovedAssignee}}
-
-
-
-
- {{.Assignee.GetDisplayName}}
- {{ if eq .Poster.ID .Assignee.ID }}
- {{$.i18n.Tr "repo.issues.remove_self_assignment" $createdStr | Safe}}
- {{ else }}
- {{$.i18n.Tr "repo.issues.remove_assignee_at" (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
- {{ end }}
-
- {{else}}
-
-
-
-
- {{.Assignee.GetDisplayName}}
- {{if eq .Poster.ID .AssigneeID}}
- {{$.i18n.Tr "repo.issues.self_assign_at" $createdStr | Safe}}
- {{else}}
- {{$.i18n.Tr "repo.issues.add_assignee_at" (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
- {{end}}
-
- {{end}}
- {{end}}
-
- {{else if eq .Type 10}}
-
- {{else if eq .Type 11}}
-
- {{else if eq .Type 12}}
-
- {{else if eq .Type 13}}
-
- {{else if eq .Type 14}}
-
- {{else if eq .Type 15}}
-
- {{else if eq .Type 16}}
-
- {{else if eq .Type 17}}
-
- {{else if eq .Type 18}}
-
- {{else if eq .Type 19}}
-
-
-
-
-
-
- {{$.i18n.Tr "repo.issues.dependency.added_dependency" .Poster.HomeLink (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
-
-
-
- {{else if eq .Type 20}}
-
-
-
-
-
-
- {{$.i18n.Tr "repo.issues.dependency.removed_dependency" .Poster.HomeLink (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
-
-
-
- {{else if eq .Type 22}}
-
-
-
-
-
-
{{.Poster.GetDisplayName}}
- {{if eq .Review.Type 1}}
- {{$.i18n.Tr "repo.issues.review.approve" $createdStr | Safe}}
- {{else if eq .Review.Type 2}}
- {{$.i18n.Tr "repo.issues.review.comment" $createdStr | Safe}}
- {{else if eq .Review.Type 3}}
- {{$.i18n.Tr "repo.issues.review.reject" $createdStr | Safe}}
- {{else}}
- {{$.i18n.Tr "repo.issues.review.comment" $createdStr | Safe}}
- {{end}}
-
- {{if .Content}}
-
-
- {{.Content}}
-
- {{end}}
- {{ range $filename, $lines := .Review.CodeComments}}
- {{range $line, $comms := $lines}}
-
-
- {{$invalid := (index $comms 0).Invalidated}}
- {{if $invalid}}
-
-
- {{$.i18n.Tr "repo.issues.review.show_outdated"}}
-
-
-
- {{$.i18n.Tr "repo.issues.review.hide_outdated"}}
-
- {{end}}
-
-
- {{$diff := (CommentMustAsDiff (index $comms 0))}}
- {{if $diff}}
- {{$file := (index $diff.Files 0)}}
-
-
-
-
-
- {{template "repo/diff/section_unified" dict "file" $file "root" $}}
-
-
-
-
-
- {{end}}
-
-
- {{end}}
- {{end}}
-
- {{else if eq .Type 23}}
-
- {{else if eq .Type 24}}
-
- {{end}}
-{{end}}
diff --git a/repo/issue/view_content/pull.tmpl b/repo/issue/view_content/pull.tmpl
deleted file mode 100644
index a5c6712..0000000
--- a/repo/issue/view_content/pull.tmpl
+++ /dev/null
@@ -1,266 +0,0 @@
-{{if gt (len .PullReviewersWithType) 0}}
-
-{{end}}
-
diff --git a/repo/issue/view_content/reactions.tmpl b/repo/issue/view_content/reactions.tmpl
deleted file mode 100644
index f4810f4..0000000
--- a/repo/issue/view_content/reactions.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-{{range $key, $value := .Reactions}}
-
- {{if eq $key "hooray"}}
- :tada:
- {{else}}
- {{if eq $key "laugh"}}
- :laughing:
- {{else}}
- :{{$key}}:
- {{end}}
- {{end}}
- {{len $value}}
-
-{{end}}
-{{template "repo/issue/view_content/add_reaction" Dict "ctx" $.ctx "ActionURL" .ActionURL }}
diff --git a/repo/issue/view_content/sidebar.tmpl b/repo/issue/view_content/sidebar.tmpl
deleted file mode 100644
index c42d8af..0000000
--- a/repo/issue/view_content/sidebar.tmpl
+++ /dev/null
@@ -1,459 +0,0 @@
-
-{{if and .CanCreateIssueDependencies (not .Repository.IsArchived)}}
-
-
-
-
-
-
-
-
- {{$.CsrfTokenHtml}}
-
-
-
-
{{if .Issue.IsPull}}
- {{.i18n.Tr "repo.issues.dependency.pr_remove_text"}}
- {{else}}
- {{.i18n.Tr "repo.issues.dependency.issue_remove_text"}}
- {{end}}
-
-
-
-
- {{.i18n.Tr "repo.issues.dependency.cancel"}}
-
-
-
- {{.i18n.Tr "repo.issues.dependency.remove"}}
-
-
-
-{{end}}
- {{end}}
diff --git a/repo/issue/view_title.tmpl b/repo/issue/view_title.tmpl
deleted file mode 100644
index e97ca32..0000000
--- a/repo/issue/view_title.tmpl
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
- #{{.Issue.Index}} {{.Issue.Title}}
-
-
-
-
- {{if and (or .IsIssueWriter .IsIssuePoster) (not .Repository.IsArchived)}}
-
-
-
{{.i18n.Tr "repo.issues.edit"}}
-
{{.i18n.Tr "repo.issues.cancel"}}
-
{{.i18n.Tr "repo.issues.save"}}
-
-
- {{end}}
-
- {{if .HasMerged}}
-
{{.i18n.Tr "repo.pulls.merged"}}
- {{else if .Issue.IsClosed}}
-
{{.i18n.Tr "repo.issues.closed_title"}}
- {{else}}
-
{{.i18n.Tr "repo.issues.open_title"}}
- {{end}}
-
- {{if .Issue.IsPull}}
- {{if .Issue.PullRequest.HasMerged}}
- {{ $mergedStr:= TimeSinceUnix .Issue.PullRequest.MergedUnix $.Lang }}
- {{if .Issue.OriginalAuthor }}
- {{.Issue.OriginalAuthor}}
-
{{$.i18n.Tr "repo.pulls.merged_title_desc" .NumCommits .HeadTarget .BaseTarget $mergedStr | Str2html}}
- {{else}}
-
{{.Issue.PullRequest.Merger.GetDisplayName}}
-
{{$.i18n.Tr "repo.pulls.merged_title_desc" .NumCommits .HeadTarget .BaseTarget $mergedStr | Str2html}}
- {{end}}
- {{else}}
- {{if .Issue.OriginalAuthor }}
- {{.Issue.OriginalAuthor}}
-
{{$.i18n.Tr "repo.pulls.title_desc" .NumCommits .HeadTarget .BaseTarget | Str2html}}
- {{else}}
-
{{.Issue.Poster.GetDisplayName}}
-
{{$.i18n.Tr "repo.pulls.title_desc" .NumCommits .HeadTarget .BaseTarget | Str2html}}
- {{end}}
- {{end}}
- {{else}}
- {{ $createdStr:= TimeSinceUnix .Issue.CreatedUnix $.Lang }}
-
- {{if .Issue.OriginalAuthor }}
- {{$.i18n.Tr "repo.issues.opened_by_fake" $createdStr .Issue.OriginalAuthor | Safe}}
- {{else if gt .Issue.Poster.ID 0}}
- {{$.i18n.Tr "repo.issues.opened_by" $createdStr .Issue.Poster.HomeLink (.Issue.Poster.GetDisplayName|Escape) | Safe}}
- {{else}}
- {{$.i18n.Tr "repo.issues.opened_by_fake" $createdStr (.Issue.Poster.GetDisplayName|Escape) | Safe}}
- {{end}}
- ·
- {{$.i18n.Tr "repo.issues.num_comments" .Issue.NumComments}}
-
- {{end}}
-
-
diff --git a/repo/migrate.tmpl b/repo/migrate.tmpl
deleted file mode 100644
index f30b59d..0000000
--- a/repo/migrate.tmpl
+++ /dev/null
@@ -1,140 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{.i18n.Tr "repo.migrate.clone_address"}}
-
-
- {{.i18n.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{.i18n.Tr "repo.migrate.clone_local_path"}}{{end}}
- {{.i18n.Tr "repo.migrate.migrate_items_options"}}
- {{if .LFSActive}} {{.i18n.Tr "repo.migrate.lfs_mirror_unsupported"}}{{end}}
-
-
-
-
-
- {{.i18n.Tr "repo.need_auth"}}
-
-
-
-
-
-
-
-
{{.i18n.Tr "repo.owner"}}
-
-
-
-
- {{.ContextUser.ShortName 20}}
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.repo_name"}}
-
-
-
-
-
{{.i18n.Tr "repo.migrate_type"}}
-
-
- {{.i18n.Tr "repo.migrate_type_helper" | Safe}}
-
-
-
-
-
{{.i18n.Tr "repo.migrate_items"}}
-
-
- {{.i18n.Tr "repo.migrate_items_wiki" | Safe}}
-
-
-
- {{.i18n.Tr "repo.migrate_items_milestones" | Safe}}
-
-
-
-
-
-
- {{.i18n.Tr "repo.migrate_items_labels" | Safe}}
-
-
-
- {{.i18n.Tr "repo.migrate_items_issues" | Safe}}
-
-
-
-
-
-
- {{.i18n.Tr "repo.migrate_items_pullrequests" | Safe}}
-
-
-
- {{.i18n.Tr "repo.migrate_items_releases" | Safe}}
-
-
-
-
- {{.i18n.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/migrating.tmpl b/repo/migrating.tmpl
deleted file mode 100644
index 34031d5..0000000
--- a/repo/migrating.tmpl
+++ /dev/null
@@ -1,31 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
- {{template "base/alert" .}}
-
-
-
-
-
-
-
-
-
-
-
-
{{.i18n.Tr "repo.migrate.migrating" .CloneAddr | Safe}}
-
-
-
{{.i18n.Tr "repo.migrate.migrating_failed" .CloneAddr | Safe}}
-
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/pulls/commits.tmpl b/repo/pulls/commits.tmpl
deleted file mode 100644
index d084f9b..0000000
--- a/repo/pulls/commits.tmpl
+++ /dev/null
@@ -1,19 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{template "repo/issue/navbar" .}}
-
-
-
- {{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 c882c0c..0000000
--- a/repo/pulls/files.tmpl
+++ /dev/null
@@ -1,20 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{template "repo/issue/navbar" .}}
-
-
-
- {{template "repo/issue/view_title" .}}
- {{template "repo/pulls/tab_menu" .}}
- {{template "base/alert" .}}
-
- {{template "repo/diff/box" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/pulls/fork.tmpl b/repo/pulls/fork.tmpl
deleted file mode 100644
index c7ad0f0..0000000
--- a/repo/pulls/fork.tmpl
+++ /dev/null
@@ -1,71 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
-
{{.i18n.Tr "repo.owner"}}
-
-
-
-
- {{.ContextUser.ShortName 20}}
-
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.repo_name"}}
-
-
-
-
{{.i18n.Tr "repo.visibility"}}
-
-
- {{.i18n.Tr "repo.visibility_helper" | Safe}}
-
-
{{.i18n.Tr "repo.fork_visibility_helper"}}
-
-
- {{.i18n.Tr "repo.repo_desc"}}
- {{.description}}
-
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/pulls/status.tmpl b/repo/pulls/status.tmpl
deleted file mode 100644
index 76a4eb5..0000000
--- a/repo/pulls/status.tmpl
+++ /dev/null
@@ -1,26 +0,0 @@
-{{if $.LatestCommitStatus}}
-
-
- {{range $.LatestCommitStatuses}}
-
-
{{template "repo/commit_status" .}}
-
{{.Context}} {{.Description}}
-
- {{if $.is_context_required}}
- {{if (call $.is_context_required .Context)}}
Required
{{end}}
- {{end}}
-
{{if .TargetURL}}Details {{end}}
-
-
- {{end}}
-{{end}}
diff --git a/repo/pulls/tab_menu.tmpl b/repo/pulls/tab_menu.tmpl
deleted file mode 100644
index e3f39e8..0000000
--- a/repo/pulls/tab_menu.tmpl
+++ /dev/null
@@ -1,17 +0,0 @@
-
diff --git a/repo/release/list.tmpl b/repo/release/list.tmpl
deleted file mode 100644
index 777d3a2..0000000
--- a/repo/release/list.tmpl
+++ /dev/null
@@ -1,105 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
-
- {{range $release := .Releases}}
-
-
-
- {{if .IsTag}}
-
-
- {{else}}
-
-
-
- {{if .OriginalAuthor}}
-
- {{.OriginalAuthor}}
- {{else if .Publisher}}
-
- {{.Publisher.Name}}
- {{else}}
- Ghost
- {{end}}
-
- {{if .CreatedUnix}}{{TimeSinceUnix .CreatedUnix $.Lang}} {{end}}
- {{$.i18n.Tr "repo.release.ahead" .NumCommitsBehind .Target | Str2html}}
-
-
- {{Str2html .Note}}
-
-
-
{{$.i18n.Tr "repo.release.downloads"}}
-
-
- {{end}}
-
-
-
- {{end}}
-
- {{template "base/paginate" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/release/new.tmpl b/repo/release/new.tmpl
deleted file mode 100644
index 01af6ed..0000000
--- a/repo/release/new.tmpl
+++ /dev/null
@@ -1,109 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{template "base/alert" .}}
-
- {{.CsrfTokenHtml}}
-
-
- {{if .PageIsEditRelease}}
-
{{.tag_name}} @ {{.tag_target}}
- {{else}}
-
-
@
-
-
-
-
- {{.i18n.Tr "repo.release.target"}} :
- {{.Repository.DefaultBranch}}
-
-
-
-
-
{{.i18n.Tr "repo.release.tag_helper"}}
- {{end}}
-
-
-
-
- {{.i18n.Tr "repo.release.title"}}
-
-
-
- {{.i18n.Tr "repo.release.content"}}
- {{.content}}
-
- {{if .IsAttachmentEnabled}}
-
-
- {{end}}
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.release.prerelease_desc"}}
-
-
-
{{.i18n.Tr "repo.release.prerelease_helper"}}
-
-
-
-
-
-
-
-{{if .PageIsEditRelease}}
-
-
-
-
{{.i18n.Tr "repo.release.deletion_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
-{{end}}
-{{template "base/footer" .}}
diff --git a/repo/search.tmpl b/repo/search.tmpl
deleted file mode 100644
index c4413e7..0000000
--- a/repo/search.tmpl
+++ /dev/null
@@ -1,49 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
- {{if .Keyword}}
-
- {{.i18n.Tr "repo.search.results" (.Keyword|Escape) .RepoLink .RepoName | Str2html }}
-
-
- {{range $result := .SearchResults}}
-
-
-
-
-
-
-
-
- {{range .LineNumbers}}
- {{.}}
- {{end}}
-
- {{.FormattedLines}}
-
-
-
-
-
-
- {{end}}
-
- {{template "base/paginate" .}}
- {{end}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/settings/branches.tmpl b/repo/settings/branches.tmpl
deleted file mode 100644
index c7f2c9c..0000000
--- a/repo/settings/branches.tmpl
+++ /dev/null
@@ -1,83 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{template "repo/settings/navbar" .}}
-
- {{template "base/alert" .}}
- {{if .Repository.IsArchived}}
-
- {{.i18n.Tr "repo.settings.archive.branchsettings_unavailable"}}
-
- {{else}}
-
-
-
- {{.i18n.Tr "repo.settings.default_branch_desc"}}
-
-
- {{.CsrfTokenHtml}}
-
- {{if not .Repository.IsEmpty}}
-
-
-
- {{.Repository.DefaultBranch}}
- {{range .Branches}}
- {{.}}
- {{end}}
-
-
{{.Repository.DefaultBranch}}
-
-
-
{{$.i18n.Tr "repo.settings.update_settings"}}
-
- {{end}}
-
-
-
-
-
-
-
-
-
-
-
{{.i18n.Tr "repo.settings.choose_branch"}}
-
-
-
-
-
-
-
- {{end}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/settings/collaboration.tmpl b/repo/settings/collaboration.tmpl
deleted file mode 100644
index c0b444d..0000000
--- a/repo/settings/collaboration.tmpl
+++ /dev/null
@@ -1,126 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{template "repo/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
- {{if .Collaborators}}
-
- {{range .Collaborators}}
-
-
-
-
-
-
{{if eq .Collaboration.Mode 1}}{{$.i18n.Tr "repo.settings.collaboration.read"}}{{else if eq .Collaboration.Mode 2}}{{$.i18n.Tr "repo.settings.collaboration.write"}}{{else if eq .Collaboration.Mode 3}}{{$.i18n.Tr "repo.settings.collaboration.admin"}}{{else}}{{$.i18n.Tr "repo.settings.collaboration.undefined"}}{{end}}
-
-
-
-
-
-
- {{$.i18n.Tr "repo.settings.delete_collaborator"}}
-
-
-
- {{end}}
-
- {{end}}
-
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "repo.settings.add_collaborator"}}
-
-
-
- {{if .RepoOwnerIsOrganization}}
-
- {{ $allowedToChangeTeams := ( or (.Org.RepoAdminChangeTeamAccess) (.Permission.IsOwner)) }}
- {{if .Teams}}
-
- {{range $t, $team := .Teams}}
-
-
-
-
-
-
{{if eq .Authorize 1}}{{$.i18n.Tr "repo.settings.collaboration.read"}}{{else if eq .Authorize 2}}{{$.i18n.Tr "repo.settings.collaboration.write"}}{{else if eq .Authorize 3}}{{$.i18n.Tr "repo.settings.collaboration.admin"}}{{else if eq .Authorize 4}}{{$.i18n.Tr "repo.settings.collaboration.owner"}}{{else}}{{$.i18n.Tr "repo.settings.collaboration.undefined"}}{{end}}
-
- {{ if or (eq .Authorize 1) (eq .Authorize 2) }}
- {{ $first := true }}
-
- Sections: {{range $u, $unit := $.Units}}{{if and ($.Repo.UnitEnabled $unit.Type) ($team.UnitEnabled $unit.Type)}}{{if $first}}{{ $first = false }}{{else}}, {{end}}{{$.i18n.Tr $unit.NameKey}}{{end}}{{end}} {{if $first}}None{{end}}
-
- {{end}}
-
- {{if $allowedToChangeTeams}}
- {{ $globalRepoAccess := (eq .LowerName "owners") }}
-
-
- {{$.i18n.Tr "repo.settings.delete_collaborator"}}
-
-
- {{end}}
-
- {{end}}
-
- {{end}}
-
- {{if $allowedToChangeTeams}}
-
- {{.CsrfTokenHtml}}
-
- Add Team
-
- {{else}}
-
- Changing team access for repository has been restricted to organization owner
-
- {{end}}
-
- {{end}}
-
-
-
-
-
-
-
{{.i18n.Tr "repo.settings.collaborator_deletion_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
-{{template "base/footer" .}}
diff --git a/repo/settings/deploy_keys.tmpl b/repo/settings/deploy_keys.tmpl
deleted file mode 100644
index 57477b3..0000000
--- a/repo/settings/deploy_keys.tmpl
+++ /dev/null
@@ -1,100 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{template "repo/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
- {{if .Deploykeys}}
-
- {{range .Deploykeys}}
-
-
-
- {{$.i18n.Tr "settings.delete_key"}}
-
-
-
-
-
{{.Name}}
-
- {{.Fingerprint}}
-
-
- {{$.i18n.Tr "settings.add_on"}} {{.CreatedUnix.FormatShort}} — {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{.UpdatedUnix.FormatShort}} {{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}} - {{$.i18n.Tr "settings.can_read_info"}}{{if not .IsReadOnly}} / {{$.i18n.Tr "settings.can_write_info"}} {{end}}
-
-
-
- {{end}}
-
- {{else}}
- {{.i18n.Tr "repo.settings.no_deploy_keys"}}
- {{end}}
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "repo.settings.deploy_key_desc"}}
-
-
- {{.i18n.Tr "repo.settings.title"}}
-
-
-
- {{.i18n.Tr "repo.settings.deploy_key_content"}}
- {{.content}}
-
-
-
-
-
- {{.i18n.Tr "repo.settings.is_writable"}}
-
- {{$.i18n.Tr "repo.settings.is_writable_info" | Str2html}}
-
-
-
- {{.i18n.Tr "repo.settings.add_deploy_key"}}
-
-
-
-
-
-
-
-
-
-
-
{{.i18n.Tr "repo.settings.deploy_key_deletion_desc"}}
-
-
-
-
- {{.i18n.Tr "modal.no"}}
-
-
-
- {{.i18n.Tr "modal.yes"}}
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/settings/githook_edit.tmpl b/repo/settings/githook_edit.tmpl
deleted file mode 100644
index 04833cf..0000000
--- a/repo/settings/githook_edit.tmpl
+++ /dev/null
@@ -1,32 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{template "repo/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
{{.i18n.Tr "repo.settings.githook_edit_desc"}}
-
- {{.CsrfTokenHtml}}
- {{with .Hook}}
-
- {{$.i18n.Tr "repo.settings.githook_name"}}
- {{.Name}}
-
-
- {{$.i18n.Tr "repo.settings.githook_content"}}
- {{if .IsActive}}{{.Content}}{{else}}{{.Sample}}{{end}}
-
-
-
- {{$.i18n.Tr "repo.settings.update_githook"}}
-
- {{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/settings/githooks.tmpl b/repo/settings/githooks.tmpl
deleted file mode 100644
index 2af6678..0000000
--- a/repo/settings/githooks.tmpl
+++ /dev/null
@@ -1,26 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{template "repo/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
- {{.i18n.Tr "repo.settings.githooks_desc" | Str2html}}
-
- {{range .Hooks}}
-
- {{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/settings/nav.tmpl b/repo/settings/nav.tmpl
deleted file mode 100644
index 5cc77e1..0000000
--- a/repo/settings/nav.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/repo/settings/navbar.tmpl b/repo/settings/navbar.tmpl
deleted file mode 100644
index 2408200..0000000
--- a/repo/settings/navbar.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/repo/settings/options.tmpl b/repo/settings/options.tmpl
deleted file mode 100644
index a93efb8..0000000
--- a/repo/settings/options.tmpl
+++ /dev/null
@@ -1,565 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{template "repo/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{.i18n.Tr "repo.repo_name"}}
-
-
- {{if not .Repository.IsFork}}
-
- {{end}}
-
- {{$.i18n.Tr "repo.repo_desc"}}
- {{.Repository.Description}}
-
-
- {{.i18n.Tr "repo.settings.site"}}
-
-
-
-
- {{$.i18n.Tr "repo.settings.update_settings"}}
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "settings.choose_new_avatar"}}
-
-
-
-
-
-
-
-
- {{if .Repository.IsMirror}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
{{.i18n.Tr "repo.mirror_prune"}}
-
-
- {{.i18n.Tr "repo.mirror_prune_desc"}}
-
-
-
- {{.i18n.Tr "repo.mirror_interval"}}
-
-
-
-
{{.i18n.Tr "repo.mirror_address"}}
-
-
{{.i18n.Tr "repo.mirror_address_desc"}}
-
-
-
-
- {{.i18n.Tr "repo.need_auth"}}
-
-
-
-
-
- {{$.i18n.Tr "repo.settings.update_settings"}}
-
-
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{.i18n.Tr "repo.mirror_last_synced"}}
- {{.Mirror.UpdatedUnix.AsTime}}
-
-
- {{$.i18n.Tr "repo.settings.sync_mirror"}}
-
-
-
- {{end}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{$isWikiEnabled := or (.Repository.UnitEnabled $.UnitTypeWiki) (.Repository.UnitEnabled $.UnitTypeExternalWiki)}}
-
-
{{.i18n.Tr "repo.wiki"}}
-
-
- {{.i18n.Tr "repo.settings.wiki_desc"}}
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.use_internal_wiki"}}
-
-
-
-
-
- {{.i18n.Tr "repo.settings.use_external_wiki"}}
-
-
-
-
{{.i18n.Tr "repo.settings.external_wiki_url"}}
-
-
{{.i18n.Tr "repo.settings.external_wiki_url_desc"}}
-
-
-
-
-
- {{$isIssuesEnabled := or (.Repository.UnitEnabled $.UnitTypeIssues) (.Repository.UnitEnabled $.UnitTypeExternalTracker)}}
-
-
{{.i18n.Tr "repo.issues"}}
-
-
- {{.i18n.Tr "repo.settings.issues_desc"}}
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.use_internal_issue_tracker"}}
-
-
-
- {{if .Repository.CanEnableTimetracker}}
-
-
-
- {{.i18n.Tr "repo.settings.enable_timetracker"}}
-
-
-
-
-
- {{.i18n.Tr "repo.settings.allow_only_contributors_to_track_time"}}
-
-
- {{end}}
-
-
-
- {{.i18n.Tr "repo.issues.dependency.setting"}}
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.use_external_issue_tracker"}}
-
-
-
-
-
{{.i18n.Tr "repo.settings.external_tracker_url"}}
-
-
{{.i18n.Tr "repo.settings.external_tracker_url_desc"}}
-
-
-
{{.i18n.Tr "repo.settings.tracker_url_format"}}
-
-
{{.i18n.Tr "repo.settings.tracker_url_format_desc" | Str2html}}
-
-
-
{{.i18n.Tr "repo.settings.tracker_issue_style"}}
-
-
- {{$externalTracker := (.Repository.MustGetUnit $.UnitTypeExternalTracker)}}
- {{$externalTrackerStyle := $externalTracker.ExternalTrackerConfig.ExternalTrackerStyle}}
-
- {{.i18n.Tr "repo.settings.tracker_issue_style.numeric"}} (#1234)
-
-
-
-
-
- {{.i18n.Tr "repo.settings.tracker_issue_style.alphanumeric"}} (ABC-123, DEFG-234)
-
-
-
-
-
-
- {{if .Repository.CanEnablePulls}}
-
- {{$pullRequestEnabled := .Repository.UnitEnabled $.UnitTypePullRequests}}
- {{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}}
-
-
{{.i18n.Tr "repo.pulls"}}
-
-
- {{.i18n.Tr "repo.settings.pulls_desc"}}
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.pulls.ignore_whitespace"}}
-
-
-
-
-
- {{.i18n.Tr "repo.settings.pulls.allow_merge_commits"}}
-
-
-
-
-
- {{.i18n.Tr "repo.settings.pulls.allow_rebase_merge"}}
-
-
-
-
-
- {{.i18n.Tr "repo.settings.pulls.allow_rebase_merge_commit"}}
-
-
-
-
-
- {{.i18n.Tr "repo.settings.pulls.allow_squash_commits"}}
-
-
-
- {{end}}
-
-
-
- {{$.i18n.Tr "repo.settings.update_settings"}}
-
-
-
-
- {{if .IsAdmin}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
- {{.i18n.Tr "repo.settings.admin_enable_health_check"}}
-
-
-
-
- {{.i18n.Tr "repo.settings.admin_enable_close_issues_via_commit_in_any_branch"}}
-
-
-
-
- {{$.i18n.Tr "repo.settings.update_settings"}}
-
-
-
- {{end}}
-
- {{if .Permission.IsOwner}}
-
-
- {{if .Repository.IsMirror}}
-
-
- {{.i18n.Tr "repo.settings.convert"}}
-
-
-
{{.i18n.Tr "repo.settings.convert"}}
-
{{.i18n.Tr "repo.settings.convert_desc"}}
-
-
-
-
- {{end}}
-
-
- {{.i18n.Tr "repo.settings.transfer"}}
-
-
-
{{.i18n.Tr "repo.settings.transfer"}}
-
{{.i18n.Tr "repo.settings.transfer_desc"}}
-
-
-
- {{if .Permission.CanRead $.UnitTypeWiki}}
-
-
-
-
- {{.i18n.Tr "repo.settings.wiki_delete"}}
-
-
-
{{.i18n.Tr "repo.settings.wiki_delete"}}
-
{{.i18n.Tr "repo.settings.wiki_delete_desc"}}
-
-
- {{end}}
-
-
-
-
-
- {{.i18n.Tr "repo.settings.delete"}}
-
-
-
{{.i18n.Tr "repo.settings.delete"}}
-
{{.i18n.Tr "repo.settings.delete_desc"}}
-
-
-
- {{if not .Repository.IsMirror}}
-
-
-
-
-
- {{if .Repository.IsArchived}}
- {{.i18n.Tr "repo.settings.unarchive.button"}}
- {{else}}
- {{.i18n.Tr "repo.settings.archive.button"}}
- {{end}}
-
-
-
- {{if .Repository.IsArchived}}
-
{{.i18n.Tr "repo.settings.unarchive.header"}}
-
{{.i18n.Tr "repo.settings.unarchive.text"}}
- {{else}}
-
{{.i18n.Tr "repo.settings.archive.header"}}
-
{{.i18n.Tr "repo.settings.archive.text"}}
- {{end}}
-
-
- {{end}}
-
- {{end}}
-
-
-
-{{if .Permission.IsOwner}}
- {{if .Repository.IsMirror}}
-
-
-
-
- {{.i18n.Tr "repo.settings.convert_notices_1"}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{.i18n.Tr "repo.settings.transfer_form_title"}}
- {{.Repository.Name}}
-
-
-
- {{.i18n.Tr "repo.repo_name"}}
-
-
-
-
-
{{.i18n.Tr "settings.cancel"}}
-
{{.i18n.Tr "repo.settings.convert_confirm"}}
-
-
-
-
- {{end}}
-
-
-
-
-
- {{.i18n.Tr "repo.settings.transfer_notices_1"}}
- {{.i18n.Tr "repo.settings.transfer_notices_2"}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{.i18n.Tr "repo.settings.transfer_form_title"}}
- {{.Repository.Name}}
-
-
-
- {{.i18n.Tr "repo.repo_name"}}
-
-
-
- {{.i18n.Tr "repo.settings.transfer_owner"}}
-
-
-
-
-
{{.i18n.Tr "settings.cancel"}}
-
{{.i18n.Tr "repo.settings.make_transfer"}}
-
-
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.delete_notices_1" | Safe}}
- {{.i18n.Tr "repo.settings.delete_notices_2" .Repository.FullName | Safe}}
- {{if .Repository.NumForks}}
- {{.i18n.Tr "repo.settings.delete_notices_fork_1"}}
- {{end}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{.i18n.Tr "repo.settings.transfer_form_title"}}
- {{.Repository.Name}}
-
-
-
- {{.i18n.Tr "repo.repo_name"}}
-
-
-
-
-
{{.i18n.Tr "settings.cancel"}}
-
{{.i18n.Tr "repo.settings.confirm_delete"}}
-
-
-
-
-
- {{if .Repository.UnitEnabled $.UnitTypeWiki}}
-
-
-
-
- {{.i18n.Tr "repo.settings.delete_notices_1" | Safe}}
- {{.i18n.Tr "repo.settings.wiki_delete_notices_1" .Repository.Name | Safe}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{.i18n.Tr "repo.settings.transfer_form_title"}}
- {{.Repository.Name}}
-
-
-
- {{.i18n.Tr "repo.repo_name"}}
-
-
-
-
-
{{.i18n.Tr "settings.cancel"}}
-
{{.i18n.Tr "repo.settings.confirm_wiki_delete"}}
-
-
-
-
- {{end}}
-
- {{if not .Repository.IsMirror}}
-
-
-
-
- {{if .Repository.IsArchived}}
- {{.i18n.Tr "repo.settings.unarchive.text"}}
- {{else}}
- {{.i18n.Tr "repo.settings.archive.text"}}
- {{end}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
{{.i18n.Tr "settings.cancel"}}
-
{{.i18n.Tr "modal.yes"}}
-
-
-
- {{end}}
-{{end}}
-
-{{template "base/footer" .}}
diff --git a/repo/settings/protected_branch.tmpl b/repo/settings/protected_branch.tmpl
deleted file mode 100644
index a433fc5..0000000
--- a/repo/settings/protected_branch.tmpl
+++ /dev/null
@@ -1,190 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{template "repo/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
{{.i18n.Tr "repo.settings.protect_this_branch"}}
-
{{.i18n.Tr "repo.settings.protect_this_branch_desc"}}
-
-
-
-
-
-
-
{{.i18n.Tr "repo.settings.protect_whitelist_committers"}}
-
{{.i18n.Tr "repo.settings.protect_whitelist_committers_desc"}}
-
-
-
-
-
{{.i18n.Tr "repo.settings.protect_whitelist_users"}}
-
-
-
{{.i18n.Tr "repo.settings.protect_whitelist_search_users"}}
-
-
-
- {{if .Owner.IsOrganization}}
-
-
-
{{.i18n.Tr "repo.settings.protect_whitelist_teams"}}
-
-
-
{{.i18n.Tr "repo.settings.protect_whitelist_search_teams"}}
-
-
-
- {{end}}
-
-
-
-
-
-
{{.i18n.Tr "repo.settings.protect_merge_whitelist_committers"}}
-
{{.i18n.Tr "repo.settings.protect_merge_whitelist_committers_desc"}}
-
-
-
-
-
{{.i18n.Tr "repo.settings.protect_merge_whitelist_users"}}
-
-
-
{{.i18n.Tr "repo.settings.protect_whitelist_search_users"}}
-
-
-
- {{if .Owner.IsOrganization}}
-
-
-
{{.i18n.Tr "repo.settings.protect_merge_whitelist_teams"}}
-
-
-
{{.i18n.Tr "repo.settings.protect_whitelist_search_teams"}}
-
-
-
- {{end}}
-
-
-
-
-
-
{{.i18n.Tr "repo.settings.protect_check_status_contexts"}}
-
{{.i18n.Tr "repo.settings.protect_check_status_contexts_desc"}}
-
-
-
-
-
-
-
{{.i18n.Tr "repo.settings.protect_required_approvals"}}
-
-
{{.i18n.Tr "repo.settings.protect_required_approvals_desc"}}
-
-
-
-
{{.i18n.Tr "repo.settings.protect_approvals_whitelist_users"}}
-
-
-
{{.i18n.Tr "repo.settings.protect_whitelist_search_users"}}
-
-
-
- {{if .Owner.IsOrganization}}
-
-
-
{{.i18n.Tr "repo.settings.protect_approvals_whitelist_teams"}}
-
-
-
{{.i18n.Tr "repo.settings.protect_whitelist_search_teams"}}
-
-
-
- {{end}}
-
-
-
-
-
-
- {{$.i18n.Tr "repo.settings.update_settings"}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/settings/webhook/base.tmpl b/repo/settings/webhook/base.tmpl
deleted file mode 100644
index 6f48613..0000000
--- a/repo/settings/webhook/base.tmpl
+++ /dev/null
@@ -1,9 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{template "repo/settings/navbar" .}}
-
- {{template "repo/settings/webhook/list" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/settings/webhook/delete_modal.tmpl b/repo/settings/webhook/delete_modal.tmpl
deleted file mode 100644
index 2a2a7c8..0000000
--- a/repo/settings/webhook/delete_modal.tmpl
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
{{.i18n.Tr "repo.settings.webhook_deletion_desc"}}
-
-
-
-
- {{.i18n.Tr "modal.no"}}
-
-
-
- {{.i18n.Tr "modal.yes"}}
-
-
-
diff --git a/repo/settings/webhook/dingtalk.tmpl b/repo/settings/webhook/dingtalk.tmpl
deleted file mode 100644
index 7a82c03..0000000
--- a/repo/settings/webhook/dingtalk.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{if eq .HookType "dingtalk"}}
- {{.i18n.Tr "repo.settings.add_dingtalk_hook_desc" "https://dingtalk.com" | Str2html}}
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.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 01f6f08..0000000
--- a/repo/settings/webhook/discord.tmpl
+++ /dev/null
@@ -1,19 +0,0 @@
-{{if eq .HookType "discord"}}
- {{.i18n.Tr "repo.settings.add_discord_hook_desc" "https://discordapp.com" | Str2html}}
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "repo.settings.payload_url"}}
-
-
-
- {{.i18n.Tr "repo.settings.discord_username"}}
-
-
-
- {{.i18n.Tr "repo.settings.discord_icon_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 8c2f032..0000000
--- a/repo/settings/webhook/gitea.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-{{if eq .HookType "gitea"}}
- {{.i18n.Tr "repo.settings.add_webhook_desc" "https://docs.gitea.io/en-us/webhooks/" | Str2html}}
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "repo.settings.payload_url"}}
-
-
-
-
{{.i18n.Tr "repo.settings.http_method"}}
-
-
-
-
{{.i18n.Tr "repo.settings.content_type"}}
-
-
-
-
- {{.i18n.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 203a0a7..0000000
--- a/repo/settings/webhook/gogs.tmpl
+++ /dev/null
@@ -1,28 +0,0 @@
-{{if eq .HookType "gogs"}}
- {{.i18n.Tr "repo.settings.add_webhook_desc" "https://docs.gitea.io/en-us/webhooks/" | Str2html}}
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "repo.settings.payload_url"}}
-
-
-
-
{{.i18n.Tr "repo.settings.content_type"}}
-
-
-
-
- {{.i18n.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 577f357..0000000
--- a/repo/settings/webhook/history.tmpl
+++ /dev/null
@@ -1,73 +0,0 @@
-{{if .PageIsSettingsHooksEdit}}
-
-
-
- {{range .History}}
-
-
-
-
-
- {{if .RequestInfo}}
-
{{$.i18n.Tr "repo.settings.webhook.headers"}}
-
Request URL: {{.URL}}
-Request method: {{if .HTTPMethod}}{{.HTTPMethod}}{{else}}POST{{end}}
-{{ range $key, $val := .RequestInfo.Headers }}{{$key}}: {{$val}}
-{{end}}
-
{{$.i18n.Tr "repo.settings.webhook.payload"}}
-
{{.PayloadContent}}
- {{else}}
- N/A
- {{end}}
-
-
- {{if .ResponseInfo}}
-
{{$.i18n.Tr "repo.settings.webhook.headers"}}
-
{{ range $key, $val := .ResponseInfo.Headers }}{{$key}}: {{$val}}
-{{end}}
-
{{$.i18n.Tr "repo.settings.webhook.body"}}
-
{{.ResponseInfo.Body}}
- {{else}}
- N/A
- {{end}}
-
-
-
- {{end}}
-
-
-{{end}}
diff --git a/repo/settings/webhook/list.tmpl b/repo/settings/webhook/list.tmpl
deleted file mode 100644
index 8fdae45..0000000
--- a/repo/settings/webhook/list.tmpl
+++ /dev/null
@@ -1,57 +0,0 @@
-{{template "base/alert" .}}
-
-
-
-
- {{.Description | Str2html}}
-
- {{range .Webhooks}}
-
- {{if eq .LastStatus 1}}
-
- {{else if eq .LastStatus 2}}
-
- {{else}}
-
- {{end}}
-
{{.URL}}
-
-
- {{end}}
-
-
-
-{{template "repo/settings/webhook/delete_modal" .}}
diff --git a/repo/settings/webhook/msteams.tmpl b/repo/settings/webhook/msteams.tmpl
deleted file mode 100644
index 146cf53..0000000
--- a/repo/settings/webhook/msteams.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{if eq .HookType "msteams"}}
- {{.i18n.Tr "repo.settings.add_msteams_hook_desc" "https://teams.microsoft.com" | Str2html}}
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.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 358827c..0000000
--- a/repo/settings/webhook/new.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{template "repo/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
- {{template "repo/settings/webhook/gitea" .}}
- {{template "repo/settings/webhook/gogs" .}}
- {{template "repo/settings/webhook/slack" .}}
- {{template "repo/settings/webhook/discord" .}}
- {{template "repo/settings/webhook/dingtalk" .}}
- {{template "repo/settings/webhook/telegram" .}}
- {{template "repo/settings/webhook/msteams" .}}
-
-
- {{template "repo/settings/webhook/history" .}}
-
-
-{{template "base/footer" .}}
diff --git a/repo/settings/webhook/settings.tmpl b/repo/settings/webhook/settings.tmpl
deleted file mode 100644
index a033ac1..0000000
--- a/repo/settings/webhook/settings.tmpl
+++ /dev/null
@@ -1,144 +0,0 @@
-{{$isNew:=or .PageIsSettingsHooksNew .PageIsAdminHooksNew}}
-
-
{{.i18n.Tr "repo.settings.event_desc"}}
-
-
-
-
- {{.i18n.Tr "repo.settings.event_push_only" | Str2html}}
-
-
-
-
-
- {{.i18n.Tr "repo.settings.event_send_everything" | Str2html}}
-
-
-
-
-
- {{.i18n.Tr "repo.settings.event_choose" | Str2html}}
-
-
-
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.event_create"}}
- {{.i18n.Tr "repo.settings.event_create_desc"}}
-
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.event_delete"}}
- {{.i18n.Tr "repo.settings.event_delete_desc"}}
-
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.event_fork"}}
- {{.i18n.Tr "repo.settings.event_fork_desc"}}
-
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.event_push"}}
- {{.i18n.Tr "repo.settings.event_push_desc"}}
-
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.event_issues"}}
- {{.i18n.Tr "repo.settings.event_issues_desc"}}
-
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.event_issue_comment"}}
- {{.i18n.Tr "repo.settings.event_issue_comment_desc"}}
-
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.event_pull_request"}}
- {{.i18n.Tr "repo.settings.event_pull_request_desc"}}
-
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.event_repository"}}
- {{.i18n.Tr "repo.settings.event_repository_desc"}}
-
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.event_release"}}
- {{.i18n.Tr "repo.settings.event_release_desc"}}
-
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.branch_filter"}}
-
- {{.i18n.Tr "repo.settings.branch_filter_desc" | Str2html}}
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.settings.active"}}
- {{.i18n.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 d7b6eeb..0000000
--- a/repo/settings/webhook/slack.tmpl
+++ /dev/null
@@ -1,28 +0,0 @@
-{{if eq .HookType "slack"}}
- {{.i18n.Tr "repo.settings.add_slack_hook_desc" "http://slack.com" | Str2html}}
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "repo.settings.payload_url"}}
-
-
-
- {{.i18n.Tr "repo.settings.slack_channel"}}
-
-
-
-
- {{.i18n.Tr "repo.settings.slack_username"}}
-
-
-
- {{.i18n.Tr "repo.settings.slack_icon_url"}}
-
-
-
- {{.i18n.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 598ac44..0000000
--- a/repo/settings/webhook/telegram.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-{{if eq .HookType "telegram"}}
- {{.i18n.Tr "repo.settings.add_telegram_hook_desc" "https://core.telegram.org/bots" | Str2html}}
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "repo.settings.bot_token"}}
-
-
-
- {{.i18n.Tr "repo.settings.chat_id"}}
-
-
- {{template "repo/settings/webhook/settings" .}}
-
-{{end}}
diff --git a/repo/sub_menu.tmpl b/repo/sub_menu.tmpl
deleted file mode 100644
index dabaa8a..0000000
--- a/repo/sub_menu.tmpl
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/repo/user_cards.tmpl b/repo/user_cards.tmpl
deleted file mode 100644
index 3677bab..0000000
--- a/repo/user_cards.tmpl
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
- {{range .Cards}}
-
-
-
-
-
-
-
-
- {{end}}
-
-
- {{ template "base/paginate" . }}
-
diff --git a/repo/view_file.tmpl b/repo/view_file.tmpl
deleted file mode 100644
index e3d346d..0000000
--- a/repo/view_file.tmpl
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
-
-
- {{if .IsMarkup}}
- {{if .FileContent}}{{.FileContent | Safe}}{{end}}
- {{else if .IsRenderedHTML}}
-
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
- {{else if not .IsTextFile}}
-
- {{if .IsImageFile}}
-
- {{else if .IsVideoFile}}
-
- {{.i18n.Tr "repo.video_not_supported_in_browser"}}
-
- {{else if .IsAudioFile}}
-
- {{.i18n.Tr "repo.audio_not_supported_in_browser"}}
-
- {{else if .IsPDFFile}}
-
- {{else}}
-
{{.i18n.Tr "repo.file_view_raw"}}
- {{end}}
-
- {{else if .FileSize}}
-
-
-
- {{if .IsFileTooLarge}}
- {{.i18n.Tr "repo.file_too_large"}}
- {{else}}
- {{.LineNums}}
- {{.FileContent}}
- {{end}}
-
-
-
- {{end}}
-
-
-
-
-
diff --git a/repo/view_list.tmpl b/repo/view_list.tmpl
deleted file mode 100644
index 4c96109..0000000
--- a/repo/view_list.tmpl
+++ /dev/null
@@ -1,97 +0,0 @@
-
-{{if .ReadmeExist}}
- {{template "repo/view_file" .}}
-{{end}}
diff --git a/repo/watchers.tmpl b/repo/watchers.tmpl
deleted file mode 100644
index 235ebf2..0000000
--- a/repo/watchers.tmpl
+++ /dev/null
@@ -1,6 +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 bf6c242..0000000
--- a/repo/wiki/new.tmpl
+++ /dev/null
@@ -1,33 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
- {{template "base/alert" .}}
-
-
- {{.CsrfTokenHtml}}
-
-
-
-
- {{if .PageIsWikiEdit}}{{.content}}{{else}}{{.i18n.Tr "repo.wiki.welcome"}}{{end}}
-
-
-
-
-
-
- {{.i18n.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 6190342..0000000
--- a/repo/wiki/pages.tmpl
+++ /dev/null
@@ -1,29 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
-
-
-
-
- {{range .Pages}}
-
-
-
- {{.Name}}
-
- {{$timeSince := TimeSinceUnix .UpdatedUnix $.Lang}}
- {{$.i18n.Tr "repo.wiki.last_updated" $timeSince | Safe}}
-
- {{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/wiki/revision.tmpl b/repo/wiki/revision.tmpl
deleted file mode 100644
index c3a4f76..0000000
--- a/repo/wiki/revision.tmpl
+++ /dev/null
@@ -1,114 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{ $title := .title}}
-
-
-
-
-
-
- {{if and .Commits (gt .CommitCount 0)}}
-
- {{end}}
-
- {{template "base/paginate" .}}
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/repo/wiki/start.tmpl b/repo/wiki/start.tmpl
deleted file mode 100644
index 0341e80..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 f775ac9..0000000
--- a/repo/wiki/view.tmpl
+++ /dev/null
@@ -1,113 +0,0 @@
-{{template "base/head" .}}
-
- {{template "repo/header" .}}
- {{ $title := .title}}
-
-
-
-
-
-
-
- {{.i18n.Tr "repo.wiki.page"}}:
- {{$title}}
-
-
-
-
-
-
-
-
-
-
- {{if .FormatWarning}}
-
- {{end}}
-
- {{if .footerPresent}}
-
- {{.footerContent | Str2html}}
-
- {{end}}
-
-
-
-
-
-
-
{{.i18n.Tr "repo.wiki.delete_page_notice_1" ($title|Escape) | Safe}}
-
- {{template "base/delete_modal_actions" .}}
-
-
-{{template "base/footer" .}}
diff --git a/status/404.tmpl b/status/404.tmpl
deleted file mode 100644
index 8e6a013..0000000
--- a/status/404.tmpl
+++ /dev/null
@@ -1,9 +0,0 @@
-{{template "base/head" .}}
-{{if .IsRepo}}{{template "repo/header" .}}
{{end}}
-
-
-
-
- {{if .ShowFooterVersion}}
Application Version: {{AppVer}}
{{end}}
-
-{{template "base/footer" .}}
diff --git a/status/500.tmpl b/status/500.tmpl
deleted file mode 100644
index 2e01e8a..0000000
--- a/status/500.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{if .ErrorMsg}}
An error has occurred :
-
{{.ErrorMsg}} {{end}}
- {{if .ShowFooterVersion}}
Application Version: {{AppVer}}
{{end}}
- {{if .IsAdmin}}
If you are sure this is Gitea bug, please search for issue on GitHub and open new issue if necessary.
{{end}}
-
-{{template "base/footer" .}}
diff --git a/swagger/ui.tmpl b/swagger/ui.tmpl
deleted file mode 100644
index 20d4f7f..0000000
--- a/swagger/ui.tmpl
+++ /dev/null
@@ -1,105 +0,0 @@
-
-
-
-
-
- Swagger UI
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/swagger/v1_json.tmpl b/swagger/v1_json.tmpl
deleted file mode 100644
index 561a67e..0000000
--- a/swagger/v1_json.tmpl
+++ /dev/null
@@ -1,11030 +0,0 @@
-{
- "consumes": [
- "application/json",
- "text/plain"
- ],
- "produces": [
- "application/json",
- "text/html"
- ],
- "schemes": [
- "http",
- "https"
- ],
- "swagger": "2.0",
- "info": {
- "description": "This documentation describes the Gitea API.",
- "title": "Gitea API.",
- "license": {
- "name": "MIT",
- "url": "http://opensource.org/licenses/MIT"
- },
- "version": "1.1.1"
- },
- "basePath": "{{AppSubUrl}}/api/v1",
- "paths": {
- "/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, maximum page size is 50",
- "name": "limit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/OrganizationList"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- }
- }
- }
- },
- "/admin/users": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "List all users",
- "operationId": "adminGetAllUsers",
- "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"
- },
- "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
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "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"
- },
- "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}/repos": {
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "admin"
- ],
- "summary": "Create a repository on behalf 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"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/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"
- }
- }
- }
- },
- "/org/{org}/repos": {
- "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"
- },
- "403": {
- "$ref": "#/responses/forbidden"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/orgs": {
- "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"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/HookList"
- }
- }
- }
- },
- "/orgs/{org}/hooks/": {
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- }
- }
- }
- },
- "/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"
- },
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TeamList"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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": "limit size of results",
- "name": "limit",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "SearchResults of a successful search",
- "schema": {
- "type": "object",
- "properties": {
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Team"
- }
- },
- "ok": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "/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/MigrateRepoForm"
- }
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Repository"
- }
- }
- }
- },
- "/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": "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": "integer",
- "description": "page number of results to return (1-based)",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "page size of results, maximum page size is 50",
- "name": "limit",
- "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"
- }
- ],
- "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"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/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": "archive to download, consisting of a git reference and archive",
- "name": "archive",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/BranchList"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Retrieve a specific branch from a repository",
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- }
- }
- }
- },
- "/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/empty"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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": "integer",
- "description": "page number of requested commits",
- "name": "page",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/CommitList"
- },
- "404": {
- "$ref": "#/responses/notFound"
- },
- "409": {
- "$ref": "#/responses/EmptyRepository"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/statuses": {
- "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",
- "name": "page",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Status"
- }
- }
- }
- },
- "/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"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- }
- },
- "/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": "the commit hash",
- "name": "sha",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Commit"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/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": "GetTag",
- "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"
- }
- }
- }
- },
- "/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; default is 1000 or what is set in app.ini as DEFAULT_GIT_TREES_PER_PAGE",
- "name": "per_page",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/GitTreeResponse"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/HookList"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- }
- }
- }
- },
- "/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
- },
- {
- "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": "integer",
- "description": "page number of requested issues",
- "name": "page",
- "in": "query"
- },
- {
- "type": "string",
- "description": "search string",
- "name": "q",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/IssueList"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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",
- "description": "if provided, only comments updated since the provided time are returned.",
- "name": "since",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/CommentList"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{id}": {
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/issues/{id}/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": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TrackedTimeList"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "issue"
- ],
- "summary": "Add a 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 to add tracked time to",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/AddTimeOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TrackedTime"
- },
- "400": {
- "$ref": "#/responses/error"
- },
- "403": {
- "$ref": "#/responses/error"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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",
- "description": "if provided, only comments updated since the specified time are returned.",
- "name": "since",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/CommentList"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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": {
- "description": "Not repo writer"
- },
- "404": {
- "description": "Issue not found"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- }
- },
- "/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": {
- "description": "Issue not found"
- },
- "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": "issueStopWatch",
- "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": {
- "description": "Issue not found"
- },
- "409": {
- "description": "Cannot stop a non existent stopwatch"
- }
- }
- }
- },
- "/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"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/DeployKeyList"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/LabelList"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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, Recognised values are open, closed and all. Defaults to \"open\"",
- "name": "state",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/MilestoneList"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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": "integer",
- "format": "int64",
- "description": "id of the milestone",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Milestone"
- }
- }
- },
- "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": "integer",
- "format": "int64",
- "description": "id of the milestone to delete",
- "name": "id",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- }
- }
- },
- "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": "integer",
- "format": "int64",
- "description": "id of the milestone",
- "name": "id",
- "in": "path",
- "required": true
- },
- {
- "name": "body",
- "in": "body",
- "schema": {
- "$ref": "#/definitions/EditMilestoneOption"
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/Milestone"
- }
- }
- }
- },
- "/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"
- }
- }
- }
- },
- "/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
- },
- {
- "type": "integer",
- "description": "Page number",
- "name": "page",
- "in": "query"
- },
- {
- "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"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PullRequestList"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "patch": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Update a pull request",
- "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"
- }
- }
- }
- },
- "/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"
- },
- "405": {
- "$ref": "#/responses/empty"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- }
- }
- }
- },
- "/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": "integer",
- "description": "page wants to load",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "items count every page wants to load",
- "name": "per_page",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/ReleaseList"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "post": {
- "consumes": [
- "multipart/form-data"
- ],
- "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",
- "required": true
- }
- ],
- "responses": {
- "201": {
- "$ref": "#/responses/Attachment"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- }
- }
- }
- },
- "/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
- },
- {
- "type": "integer",
- "description": "page number of results",
- "name": "page",
- "in": "query"
- },
- {
- "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"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/StatusList"
- }
- }
- },
- "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/Status"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TagList"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TrackedTimeList"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/times/{user}": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List a user's tracked times in a repo",
- "operationId": "userTrackedTimes",
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TopicNames"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/repos/{owner}/{repo}/topics/{topic}": {
- "put": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "repository"
- ],
- "summary": "Add a topic to a repository",
- "operationId": "repoAddTopíc",
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- }
- }
- }
- },
- "/teams/{id}/repos/{org}/{repo}": {
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/TopicListResponse"
- }
- }
- }
- },
- "/user": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Get the authenticated user",
- "operationId": "userGetCurrent",
- "responses": {
- "200": {
- "$ref": "#/responses/User"
- }
- }
- }
- },
- "/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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/user/followers": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the authenticated user's followers",
- "operationId": "userCurrentListFollowers",
- "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",
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/user/gpg_keys": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the authenticated user's GPG keys",
- "operationId": "userCurrentListGPGKeys",
- "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"
- },
- "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"
- }
- }
- }
- },
- "/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"
- }
- ],
- "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",
- "responses": {
- "200": {
- "$ref": "#/responses/OrganizationList"
- }
- }
- }
- },
- "/user/repos": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the repos that the authenticated user owns or has access to",
- "operationId": "userCurrentListRepos",
- "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"
- },
- "409": {
- "description": "The repository with the same name already exists."
- },
- "422": {
- "$ref": "#/responses/validationError"
- }
- }
- }
- },
- "/user/starred": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "The repos that the authenticated user has starred",
- "operationId": "userCurrentListStarred",
- "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"
- }
- }
- },
- "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"
- }
- }
- }
- },
- "/user/subscriptions": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List repositories watched by the authenticated user",
- "operationId": "userCurrentListSubscriptions",
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- }
- }
- }
- },
- "/user/teams": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List all the teams a user belongs to",
- "operationId": "userListTeams",
- "responses": {
- "200": {
- "$ref": "#/responses/TeamList"
- }
- }
- }
- },
- "/user/times": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "List the current user's tracked times",
- "operationId": "userCurrentTrackedTimes",
- "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": "maximum number of users to return",
- "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/{follower}/following/{followee}": {
- "get": {
- "tags": [
- "user"
- ],
- "summary": "Check if one user is following another user",
- "operationId": "userCheckFollowing",
- "parameters": [
- {
- "type": "string",
- "description": "username of following user",
- "name": "follower",
- "in": "path",
- "required": true
- },
- {
- "type": "string",
- "description": "username of followed user",
- "name": "followee",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- },
- "404": {
- "$ref": "#/responses/notFound"
- }
- }
- }
- },
- "/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}/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/UserList"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/GPGKeyList"
- }
- }
- }
- },
- "/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"
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/PublicKeyList"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/OrganizationList"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/RepositoryList"
- }
- }
- }
- },
- "/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
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/AccessTokenList"
- }
- }
- },
- "post": {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "user"
- ],
- "summary": "Create an access token",
- "operationId": "userCreateToken",
- "parameters": [
- {
- "type": "string",
- "x-go-name": "Name",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- },
- {
- "name": "accessToken",
- "in": "body",
- "schema": {
- "type": "object",
- "required": [
- "name"
- ],
- "properties": {
- "name": {
- "type": "string"
- }
- }
- }
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/AccessToken"
- }
- }
- }
- },
- "/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": "integer",
- "format": "int64",
- "description": "token to be deleted",
- "name": "token",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "204": {
- "$ref": "#/responses/empty"
- }
- }
- }
- },
- "/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"
- },
- "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"
- },
- "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": {
- "time": {
- "description": "time in seconds",
- "type": "integer",
- "format": "int64",
- "x-go-name": "Time"
- }
- },
- "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"
- },
- "Branch": {
- "description": "Branch represents a repository branch",
- "type": "object",
- "properties": {
- "commit": {
- "$ref": "#/definitions/PayloadCommit"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "Comment": {
- "description": "Comment represents a comment on a commit or issue",
- "type": "object",
- "properties": {
- "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"
- },
- "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"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "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": {
- "sha": {
- "type": "string",
- "x-go-name": "SHA"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- }
- },
- "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"
- },
- "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"
- },
- "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"
- },
- "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": "Content"
- },
- "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"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateForkOption": {
- "description": "CreateForkOption options for creating a fork",
- "type": "object",
- "properties": {
- "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"
- }
- },
- "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"
- },
- "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"
- },
- "type": {
- "type": "string",
- "enum": [
- "gitea",
- "gogs",
- "slack",
- "discord"
- ],
- "x-go-name": "Type"
- }
- },
- "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": "username of assignee",
- "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"
- },
- "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"
- },
- "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"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- }
- },
- "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"
- },
- "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"
- },
- "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-intialized?",
- "type": "boolean",
- "x-go-name": "AutoInit"
- },
- "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": "Issue 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"
- },
- "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"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateStatusOption": {
- "description": "CreateStatusOption holds the information needed to create a new Status for a Commit",
- "type": "object",
- "properties": {
- "context": {
- "type": "string",
- "x-go-name": "Context"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "state": {
- "$ref": "#/definitions/StatusState"
- },
- "target_url": {
- "type": "string",
- "x-go-name": "TargetURL"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateTeamOption": {
- "description": "CreateTeamOption options for creating a team",
- "type": "object",
- "required": [
- "name"
- ],
- "properties": {
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "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.ext_wiki"
- ]
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "CreateUserOption": {
- "description": "CreateUserOption create user options",
- "type": "object",
- "required": [
- "username",
- "email",
- "password"
- ],
- "properties": {
- "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"
- },
- "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"
- }
- },
- "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"
- },
- "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"
- }
- },
- "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"
- },
- "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"
- },
- "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"
- },
- "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": {
- "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"
- },
- "state": {
- "type": "string",
- "x-go-name": "State"
- },
- "title": {
- "type": "string",
- "x-go-name": "Title"
- }
- },
- "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"
- },
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "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"
- },
- "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": {
- "assignee": {
- "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"
- },
- "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"
- }
- },
- "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_merge_commits": {
- "description": "either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. `has_pull_requests` must be `true`.",
- "type": "boolean",
- "x-go-name": "AllowMerge"
- },
- "allow_rebase": {
- "description": "either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. `has_pull_requests` must be `true`.",
- "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. `has_pull_requests` must be `true`.",
- "type": "boolean",
- "x-go-name": "AllowRebaseMerge"
- },
- "allow_squash_merge": {
- "description": "either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. `has_pull_requests` must be `true`.",
- "type": "boolean",
- "x-go-name": "AllowSquash"
- },
- "archived": {
- "description": "set to `true` to archive this repository.",
- "type": "boolean",
- "x-go-name": "Archived"
- },
- "default_branch": {
- "description": "sets the default branch for this repository.",
- "type": "string",
- "x-go-name": "DefaultBranch"
- },
- "description": {
- "description": "a short description of the repository.",
- "type": "string",
- "x-go-name": "Description"
- },
- "external_tracker": {
- "$ref": "#/definitions/ExternalTracker"
- },
- "external_wiki": {
- "$ref": "#/definitions/ExternalWiki"
- },
- "has_issues": {
- "description": "either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "x-go-name": "HasIssues"
- },
- "has_pull_requests": {
- "description": "either `true` to allow pull requests, or `false` to prevent pull request.",
- "type": "boolean",
- "x-go-name": "HasPullRequests"
- },
- "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. `has_pull_requests` must be `true`.",
- "type": "boolean",
- "x-go-name": "IgnoreWhitespaceConflicts"
- },
- "internal_tracker": {
- "$ref": "#/definitions/InternalTracker"
- },
- "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"
- },
- "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": {
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "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.ext_wiki"
- ]
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "EditUserOption": {
- "description": "EditUserOption edit user options",
- "type": "object",
- "required": [
- "email"
- ],
- "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"
- },
- "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"
- },
- "source_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "SourceID"
- },
- "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"
- },
- "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_style": {
- "description": "External Issue Tracker Number Format, either `numeric` or `alphanumeric`",
- "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"
- },
- "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": {
- "type": "object",
- "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"
- },
- "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"
- }
- },
- "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"
- },
- "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"
- },
- "Hook": {
- "description": "Hook a hook is a web hook when one repository changed",
- "type": "object",
- "properties": {
- "active": {
- "type": "boolean",
- "x-go-name": "Active"
- },
- "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": {
- "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"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "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"
- },
- "pull_request": {
- "$ref": "#/definitions/PullRequestMeta"
- },
- "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"
- },
- "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"
- },
- "IssueLabelsOption": {
- "description": "IssueLabelsOption a collection of labels",
- "type": "object",
- "properties": {
- "labels": {
- "description": "list of label IDs",
- "type": "array",
- "items": {
- "type": "integer",
- "format": "int64"
- },
- "x-go-name": "Labels"
- }
- },
- "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"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "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": "Context to render\n\nin: body",
- "type": "string"
- },
- "Mode": {
- "description": "Mode to render\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"
- },
- "MergePullRequestOption": {
- "description": "MergePullRequestForm form for merging Pull Request",
- "type": "object",
- "required": [
- "Do"
- ],
- "properties": {
- "Do": {
- "type": "string",
- "enum": [
- "merge",
- "rebase",
- "rebase-merge",
- "squash"
- ]
- },
- "MergeMessageField": {
- "type": "string"
- },
- "MergeTitleField": {
- "type": "string"
- }
- },
- "x-go-name": "MergePullRequestForm",
- "x-go-package": "code.gitea.io/gitea/modules/auth"
- },
- "MigrateRepoForm": {
- "description": "MigrateRepoForm form for migrating repository",
- "type": "object",
- "required": [
- "clone_addr",
- "uid",
- "repo_name"
- ],
- "properties": {
- "auth_password": {
- "type": "string",
- "x-go-name": "AuthPassword"
- },
- "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"
- },
- "milestones": {
- "type": "boolean",
- "x-go-name": "Milestones"
- },
- "mirror": {
- "type": "boolean",
- "x-go-name": "Mirror"
- },
- "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"
- },
- "uid": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "UID"
- },
- "wiki": {
- "type": "boolean",
- "x-go-name": "Wiki"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/auth"
- },
- "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"
- },
- "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"
- }
- },
- "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"
- },
- "full_name": {
- "type": "string",
- "x-go-name": "FullName"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "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": {
- "type": "string",
- "x-go-name": "Visibility"
- },
- "website": {
- "type": "string",
- "x-go-name": "Website"
- }
- },
- "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"
- },
- "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"
- },
- "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": {
- "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"
- },
- "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"
- },
- "diff_url": {
- "type": "string",
- "x-go-name": "DiffURL"
- },
- "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"
- },
- "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"
- },
- "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": {
- "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"
- },
- "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"
- },
- "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"
- },
- "url": {
- "type": "string",
- "x-go-name": "URL"
- },
- "zipball_url": {
- "type": "string",
- "x-go-name": "ZipURL"
- }
- },
- "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"
- }
- },
- "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"
- },
- "Repository": {
- "description": "Repository represents a repository",
- "type": "object",
- "properties": {
- "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_squash_merge": {
- "type": "boolean",
- "x-go-name": "AllowSquash"
- },
- "archived": {
- "type": "boolean",
- "x-go-name": "Archived"
- },
- "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_branch": {
- "type": "string",
- "x-go-name": "DefaultBranch"
- },
- "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_issues": {
- "type": "boolean",
- "x-go-name": "HasIssues"
- },
- "has_pull_requests": {
- "type": "boolean",
- "x-go-name": "HasPullRequests"
- },
- "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_tracker": {
- "$ref": "#/definitions/InternalTracker"
- },
- "mirror": {
- "type": "boolean",
- "x-go-name": "Mirror"
- },
- "name": {
- "type": "string",
- "x-go-name": "Name"
- },
- "open_issues_count": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "OpenIssues"
- },
- "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"
- },
- "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"
- },
- "updated_at": {
- "type": "string",
- "format": "date-time",
- "x-go-name": "Updated"
- },
- "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"
- },
- "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"
- },
- "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"
- },
- "Status": {
- "description": "Status 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/StatusState"
- },
- "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"
- },
- "StatusState": {
- "description": "StatusState holds the state of a Status\nIt can be \"pending\", \"success\", \"error\", \"failure\", and \"warning\"",
- "type": "string",
- "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"
- },
- "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": {
- "description": {
- "type": "string",
- "x-go-name": "Description"
- },
- "id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "ID"
- },
- "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.ext_wiki"
- ]
- }
- },
- "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"
- },
- "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_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "IssueID"
- },
- "time": {
- "description": "Time in seconds",
- "type": "integer",
- "format": "int64",
- "x-go-name": "Time"
- },
- "user_id": {
- "type": "integer",
- "format": "int64",
- "x-go-name": "UserID"
- }
- },
- "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": "Content"
- },
- "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"
- }
- },
- "x-go-package": "code.gitea.io/gitea/modules/structs"
- },
- "User": {
- "description": "User represents a user",
- "type": "object",
- "properties": {
- "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"
- },
- "email": {
- "type": "string",
- "format": "email",
- "x-go-name": "Email"
- },
- "full_name": {
- "description": "the user's full name",
- "type": "string",
- "x-go-name": "FullName"
- },
- "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"
- },
- "login": {
- "description": "the user's username",
- "type": "string",
- "x-go-name": "UserName"
- }
- },
- "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"
- },
- "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": {
- "type": "object",
- "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"
- }
- },
- "responses": {
- "AccessToken": {
- "description": "AccessToken represents an API access token.",
- "headers": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "name": {
- "type": "string"
- },
- "sha1": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- }
- }
- },
- "AccessTokenList": {
- "description": "AccessTokenList represents a list of API access token.",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/AccessToken"
- }
- }
- },
- "AnnotatedTag": {
- "description": "AnnotatedTag",
- "schema": {
- "$ref": "#/definitions/AnnotatedTag"
- }
- },
- "Attachment": {
- "description": "Attachment",
- "schema": {
- "$ref": "#/definitions/Attachment"
- }
- },
- "AttachmentList": {
- "description": "AttachmentList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Attachment"
- }
- }
- },
- "Branch": {
- "description": "Branch",
- "schema": {
- "$ref": "#/definitions/Branch"
- }
- },
- "BranchList": {
- "description": "BranchList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Branch"
- }
- }
- },
- "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"
- }
- }
- },
- "ContentsListResponse": {
- "description": "ContentsListResponse",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/ContentsResponse"
- }
- }
- },
- "ContentsResponse": {
- "description": "ContentsResponse",
- "schema": {
- "$ref": "#/definitions/ContentsResponse"
- }
- },
- "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"
- }
- },
- "GPGKey": {
- "description": "GPGKey",
- "schema": {
- "$ref": "#/definitions/GPGKey"
- }
- },
- "GPGKeyList": {
- "description": "GPGKeyList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/GPGKey"
- }
- }
- },
- "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"
- }
- },
- "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"
- }
- }
- },
- "Label": {
- "description": "Label",
- "schema": {
- "$ref": "#/definitions/Label"
- }
- },
- "LabelList": {
- "description": "LabelList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Label"
- }
- }
- },
- "MarkdownRender": {
- "description": "MarkdownRender is a rendered markdown document",
- "schema": {
- "type": "string"
- }
- },
- "Milestone": {
- "description": "Milestone",
- "schema": {
- "$ref": "#/definitions/Milestone"
- }
- },
- "MilestoneList": {
- "description": "MilestoneList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Milestone"
- }
- }
- },
- "Organization": {
- "description": "Organization",
- "schema": {
- "$ref": "#/definitions/Organization"
- }
- },
- "OrganizationList": {
- "description": "OrganizationList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Organization"
- }
- }
- },
- "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"
- }
- }
- },
- "Reference": {
- "description": "Reference",
- "schema": {
- "$ref": "#/definitions/Reference"
- }
- },
- "ReferenceList": {
- "description": "ReferenceList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Reference"
- }
- }
- },
- "Release": {
- "description": "Release",
- "schema": {
- "$ref": "#/definitions/Release"
- }
- },
- "ReleaseList": {
- "description": "ReleaseList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Release"
- }
- }
- },
- "Repository": {
- "description": "Repository",
- "schema": {
- "$ref": "#/definitions/Repository"
- }
- },
- "RepositoryList": {
- "description": "RepositoryList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Repository"
- }
- }
- },
- "SearchResults": {
- "description": "SearchResults",
- "schema": {
- "$ref": "#/definitions/SearchResults"
- }
- },
- "ServerVersion": {
- "description": "ServerVersion",
- "schema": {
- "$ref": "#/definitions/ServerVersion"
- }
- },
- "Status": {
- "description": "Status",
- "schema": {
- "$ref": "#/definitions/Status"
- }
- },
- "StatusList": {
- "description": "StatusList",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Status"
- }
- }
- },
- "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"
- }
- }
- },
- "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"
- }
- }
- },
- "WatchInfo": {
- "description": "WatchInfo",
- "schema": {
- "$ref": "#/definitions/WatchInfo"
- }
- },
- "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"
- }
- }
- },
- "notFound": {
- "description": "APINotFound is a not found empty response"
- },
- "parameterBodies": {
- "description": "parameterBodies",
- "schema": {
- "$ref": "#/definitions/RepoTopicOptions"
- }
- },
- "redirect": {
- "description": "APIRedirect is a redirect response"
- },
- "validationError": {
- "description": "APIValidationError is error format response related to input validation",
- "headers": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- },
- "securityDefinitions": {
- "AccessToken": {
- "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"
- },
- "Token": {
- "type": "apiKey",
- "name": "token",
- "in": "query"
- }
- },
- "security": [
- {
- "BasicAuth": []
- },
- {
- "Token": []
- },
- {
- "AccessToken": []
- },
- {
- "AuthorizationHeaderToken": []
- },
- {
- "SudoParam": []
- },
- {
- "SudoHeader": []
- }
- ]
-}
diff --git a/user/auth/activate.tmpl b/user/auth/activate.tmpl
deleted file mode 100644
index 92b85a1..0000000
--- a/user/auth/activate.tmpl
+++ /dev/null
@@ -1,38 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
- {{if .IsActivatePage}}
- {{if .ServiceNotEnabled}}
-
{{.i18n.Tr "auth.disable_register_mail"}}
- {{else if .ResendLimited}}
-
{{.i18n.Tr "auth.resent_limit_prompt"}}
- {{else}}
-
{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .SignedUser.Email .ActiveCodeLives | Str2html}}
- {{end}}
- {{else}}
- {{if .IsSendRegisterMail}}
-
{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .ActiveCodeLives | Str2html}}
- {{else if .IsActivateFailed}}
-
{{.i18n.Tr "auth.invalid_code"}}
- {{else}}
-
{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}
-
-
- {{.i18n.Tr "auth.resend_mail"}}
-
- {{end}}
- {{end}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/change_passwd.tmpl b/user/auth/change_passwd.tmpl
deleted file mode 100644
index d847963..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 60d4a21..0000000
--- a/user/auth/change_passwd_inner.tmpl
+++ /dev/null
@@ -1,26 +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 5c637bd..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 1e06176..0000000
--- a/user/auth/forgot_passwd.tmpl
+++ /dev/null
@@ -1,34 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
- {{if .IsResetSent}}
-
{{.i18n.Tr "auth.reset_password_mail_sent_prompt" .Email .ResetPwdCodeLives | Str2html}}
- {{else if .IsResetRequest}}
-
- {{.i18n.Tr "email"}}
-
-
-
-
-
- {{.i18n.Tr "auth.send_reset_mail"}}
-
- {{else if .IsResetDisable}}
-
{{.i18n.Tr "auth.disable_forgot_password_mail"}}
- {{else if .ResendLimited}}
-
{{.i18n.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 7ac8f18..0000000
--- a/user/auth/grant.tmpl
+++ /dev/null
@@ -1,31 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
- {{template "base/alert" .}}
-
- {{.i18n.Tr "auth.authorize_application_description"}}
- {{.i18n.Tr "auth.authorize_application_created_by" .ApplicationUserLink | Str2html}}
-
-
-
-
{{.i18n.Tr "auth.authroize_redirect_notice" .ApplicationRedirectDomainHTML | Str2html}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/grant_error.tmpl b/user/auth/grant_error.tmpl
deleted file mode 100644
index 0eb175f..0000000
--- a/user/auth/grant_error.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-{{template "base/head" .}}
-{{if .IsRepo}}{{template "repo/header" .}}
{{end}}
-
-
-
-
-
{{.Error.ErrorDescription}}
-
-
{{.i18n.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 339ca85..0000000
--- a/user/auth/link_account.tmpl
+++ /dev/null
@@ -1,33 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
-
-
-
- {{template "user/auth/signup_inner" .}}
-
-
-
- {{template "user/auth/signin_inner" .}}
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/prohibit_login.tmpl b/user/auth/prohibit_login.tmpl
deleted file mode 100644
index eec0f08..0000000
--- a/user/auth/prohibit_login.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
-
-
{{.i18n.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 e7d9392..0000000
--- a/user/auth/reset_passwd.tmpl
+++ /dev/null
@@ -1,46 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
-
- {{template "base/alert" .}}
- {{if .user_email }}
-
- {{.i18n.Tr "email"}}
-
-
- {{end}}
- {{if .IsResetForm}}
-
- {{.i18n.Tr "password"}}
-
-
- {{if not .user_signed_in}}
-
-
-
- {{.i18n.Tr "auth.remember_me"}}
-
-
-
- {{end}}
-
-
-
- {{.i18n.Tr "auth.reset_password_helper"}}
-
- {{else}}
-
{{.i18n.Tr "auth.invalid_code"}}
- {{end}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/signin.tmpl b/user/auth/signin.tmpl
deleted file mode 100644
index bbb471c..0000000
--- a/user/auth/signin.tmpl
+++ /dev/null
@@ -1,8 +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 a3e7117..0000000
--- a/user/auth/signin_inner.tmpl
+++ /dev/null
@@ -1,77 +0,0 @@
- {{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn)}}
- {{template "base/alert" .}}
- {{end}}
-
-
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "home.uname_holder"}}
-
-
- {{if or (not .DisablePassword) .LinkAccountMode}}
-
- {{.i18n.Tr "password"}}
-
-
- {{end}}
- {{if not .LinkAccountMode}}
-
-
-
- {{.i18n.Tr "auth.remember_me"}}
-
-
-
- {{end}}
-
-
-
- {{if .ShowRegistrationButton}}
-
- {{end}}
-
- {{if and .OrderedOAuth2Names .OAuth2Providers}}
-
-
-
-
-
-
{{.i18n.Tr "sign_in_with"}}
- {{range $key := .OrderedOAuth2Names}}
- {{$provider := index $.OAuth2Providers $key}}
-
-
- {{end}}
-
-
-
-
- {{end}}
-
-
diff --git a/user/auth/signin_navbar.tmpl b/user/auth/signin_navbar.tmpl
deleted file mode 100644
index 345e221..0000000
--- a/user/auth/signin_navbar.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{if .EnableOpenIDSignIn}}
-
-{{end}}
diff --git a/user/auth/signin_openid.tmpl b/user/auth/signin_openid.tmpl
deleted file mode 100644
index a9c0067..0000000
--- a/user/auth/signin_openid.tmpl
+++ /dev/null
@@ -1,38 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/auth/signin_navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "auth.openid_signin_desc"}}
-
-
-
-
- OpenID URI
-
-
-
-
-
-
- {{.i18n.Tr "auth.remember_me"}}
-
-
-
-
-
- {{.i18n.Tr "sign_in"}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/signup.tmpl b/user/auth/signup.tmpl
deleted file mode 100644
index b814b46..0000000
--- a/user/auth/signup.tmpl
+++ /dev/null
@@ -1,3 +0,0 @@
-{{template "base/head" .}}
-{{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 cdacd91..0000000
--- a/user/auth/signup_inner.tmpl
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister)}}
- {{template "base/alert" .}}
- {{end}}
- {{if .DisableRegistration}}
-
{{.i18n.Tr "auth.disable_register_prompt"}}
- {{else}}
-
- {{.i18n.Tr "username"}}
-
-
-
- {{.i18n.Tr "email"}}
-
-
-
- {{if not .DisablePassword}}
-
- {{.i18n.Tr "password"}}
-
-
-
- {{.i18n.Tr "re_type"}}
-
-
- {{end}}
- {{if and .EnableCaptcha (eq .CaptchaType "image")}}
-
-
- {{.Captcha.CreateHtml}}
-
-
- {{.i18n.Tr "captcha"}}
-
-
- {{end}}
- {{if and .EnableCaptcha (eq .CaptchaType "recaptcha")}}
-
- {{end}}
-
-
-
-
- {{if .LinkAccountMode}}
- {{.i18n.Tr "auth.oauth_signup_submit"}}
- {{else}}
- {{.i18n.Tr "auth.create_new_account"}}
- {{end}}
-
-
-
- {{if not .LinkAccountMode}}
-
- {{end}}
- {{end}}
-
-
-
-
-
diff --git a/user/auth/signup_openid_connect.tmpl b/user/auth/signup_openid_connect.tmpl
deleted file mode 100644
index 72b426f..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 86f6ee7..0000000
--- a/user/auth/signup_openid_navbar.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
diff --git a/user/auth/signup_openid_register.tmpl b/user/auth/signup_openid_register.tmpl
deleted file mode 100644
index 67f03a1..0000000
--- a/user/auth/signup_openid_register.tmpl
+++ /dev/null
@@ -1,50 +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 56f9101..0000000
--- a/user/auth/twofa.tmpl
+++ /dev/null
@@ -1,27 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{.i18n.Tr "passcode"}}
-
-
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/twofa_scratch.tmpl b/user/auth/twofa_scratch.tmpl
deleted file mode 100644
index 78aab3e..0000000
--- a/user/auth/twofa_scratch.tmpl
+++ /dev/null
@@ -1,26 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{template "base/alert" .}}
-
- {{.i18n.Tr "auth.scratch_code"}}
-
-
-
-
-
- {{.i18n.Tr "auth.verify"}}
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/auth/u2f.tmpl b/user/auth/u2f.tmpl
deleted file mode 100644
index 1d1be09..0000000
--- a/user/auth/u2f.tmpl
+++ /dev/null
@@ -1,22 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
-
-
{{.i18n.Tr "u2f_insert_key"}}
- {{template "base/alert" .}}
-
{{.i18n.Tr "u2f_sign_in"}}
-
-
{{.i18n.Tr "u2f_press_button"}}
-
-
-
-
-{{template "user/auth/u2f_error" .}}
-{{template "base/footer" .}}
diff --git a/user/auth/u2f_error.tmpl b/user/auth/u2f_error.tmpl
deleted file mode 100644
index e30b064..0000000
--- a/user/auth/u2f_error.tmpl
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
- {{.i18n.Tr "u2f_unsupported_browser"}}
-
-
- {{.i18n.Tr "u2f_error_1"}}
-
-
- {{.i18n.Tr "u2f_error_2"}}
-
-
- {{.i18n.Tr "u2f_error_3"}}
-
-
- {{.i18n.Tr "u2f_error_4"}}
-
-
- {{.i18n.Tr "u2f_error_5"}}
-
-
-
-
-
{{.i18n.Tr "u2f_reload"}}
-
{{.i18n.Tr "cancel"}}
-
-
diff --git a/user/dashboard/dashboard.tmpl b/user/dashboard/dashboard.tmpl
deleted file mode 100644
index 27a0a76..0000000
--- a/user/dashboard/dashboard.tmpl
+++ /dev/null
@@ -1,132 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/dashboard/navbar" .}}
-
- {{template "base/alert" .}}
-
-
- {{if .EnableHeatmap}}
-
-
-
-
{{.i18n.Tr "user.heatmap.loading"}}
-
-
-
-
- {{end}}
- {{template "user/dashboard/feeds" .}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/dashboard/feeds.tmpl b/user/dashboard/feeds.tmpl
deleted file mode 100644
index 9c404c9..0000000
--- a/user/dashboard/feeds.tmpl
+++ /dev/null
@@ -1,100 +0,0 @@
-{{range .Feeds}}
-
-
-
-
-
-
-
-
- {{if gt .ActUser.ID 0}}
- {{.GetDisplayName}}
- {{else}}
- {{.ShortActUserName}}
- {{end}}
- {{if eq .GetOpType 1}}
- {{$.i18n.Tr "action.create_repo" .GetRepoLink .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 2}}
- {{$.i18n.Tr "action.rename_repo" .GetContent .GetRepoLink .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 5}}
- {{ $branchLink := .GetBranch | EscapePound | Escape}}
- {{$.i18n.Tr "action.commit_repo" .GetRepoLink $branchLink (Escape .GetBranch) .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 6}}
- {{ $index := index .GetIssueInfos 0}}
- {{$.i18n.Tr "action.create_issue" .GetRepoLink $index .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 7}}
- {{ $index := index .GetIssueInfos 0}}
- {{$.i18n.Tr "action.create_pull_request" .GetRepoLink $index .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 8}}
- {{$.i18n.Tr "action.transfer_repo" .GetContent .GetRepoLink .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 9}}
- {{ $branchLink := .GetBranch | EscapePound | Escape}}
- {{$.i18n.Tr "action.push_tag" .GetRepoLink $branchLink .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 10}}
- {{ $index := index .GetIssueInfos 0}}
- {{$.i18n.Tr "action.comment_issue" .GetRepoLink $index .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 11}}
- {{ $index := index .GetIssueInfos 0}}
- {{$.i18n.Tr "action.merge_pull_request" .GetRepoLink $index .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 12}}
- {{ $index := index .GetIssueInfos 0}}
- {{$.i18n.Tr "action.close_issue" .GetRepoLink $index .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 13}}
- {{ $index := index .GetIssueInfos 0}}
- {{$.i18n.Tr "action.reopen_issue" .GetRepoLink $index .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 14}}
- {{ $index := index .GetIssueInfos 0}}
- {{$.i18n.Tr "action.close_pull_request" .GetRepoLink $index .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 15}}
- {{ $index := index .GetIssueInfos 0}}
- {{$.i18n.Tr "action.reopen_pull_request" .GetRepoLink $index .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 16}}
- {{ $index := index .GetIssueInfos 0}}
- {{$.i18n.Tr "action.delete_tag" .GetRepoLink .GetBranch .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 17}}
- {{ $index := index .GetIssueInfos 0}}
- {{$.i18n.Tr "action.delete_branch" .GetRepoLink .GetBranch .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 18}}
- {{ $branchLink := .GetBranch | EscapePound}}
- {{$.i18n.Tr "action.mirror_sync_push" .GetRepoLink $branchLink .GetBranch .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 19}}
- {{$.i18n.Tr "action.mirror_sync_create" .GetRepoLink .GetBranch .ShortRepoPath | Str2html}}
- {{else if eq .GetOpType 20}}
- {{$.i18n.Tr "action.mirror_sync_delete" .GetRepoLink .GetBranch .ShortRepoPath | Str2html}}
- {{end}}
-
- {{if or (eq .GetOpType 5) (eq .GetOpType 18)}}
-
- {{else if eq .GetOpType 6}}
-
{{index .GetIssueInfos 1}}
- {{else if eq .GetOpType 7}}
-
{{index .GetIssueInfos 1}}
- {{else if eq .GetOpType 10}}
-
{{.GetIssueTitle}}
-
{{index .GetIssueInfos 1}}
- {{else if eq .GetOpType 11}}
-
{{index .GetIssueInfos 1}}
- {{else if (or (or (eq .GetOpType 12) (eq .GetOpType 13)) (or (eq .GetOpType 14) (eq .GetOpType 15)))}}
-
{{.GetIssueTitle}}
- {{end}}
-
{{TimeSince .GetCreate $.i18n.Lang}}
-
-
-
-
-
-
-
-
-{{end}}
diff --git a/user/dashboard/issues.tmpl b/user/dashboard/issues.tmpl
deleted file mode 100644
index ac5f10a..0000000
--- a/user/dashboard/issues.tmpl
+++ /dev/null
@@ -1,139 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/dashboard/navbar" .}}
-
-
-
-
-
-
-
-
-
-
- {{range .Issues}}
-
- {{ $timeStr:= TimeSinceUnix .CreatedUnix $.Lang }}
-
- {{if not $.RepoID}}{{.Repo.FullName}}{{end}}#{{.Index}}
- {{.Title}}
-
- {{if .IsPull }}
- {{if (index $.CommitStatus .PullRequest.ID)}}
- {{template "repo/commit_status" (index $.CommitStatus .PullRequest.ID)}}
- {{end}}
- {{end}}
-
- {{with .Labels}}
- {{/* If we have any labels, we should show them
- with a 2.5 line height, this way they don't look
- awful and they don't stack on top of each other,
- especially on mobile views. */}}
-
- {{range .}}
- {{.Name}}
- {{end}}
-
- {{end}}
-
- {{if .NumComments}}
-
- {{end}}
- {{if .TotalTrackedTime}}
-
- {{end}}
-
-
- {{if .OriginalAuthor}}
- {{$.i18n.Tr .GetLastEventLabelFake $timeStr .OriginalAuthor | Safe}}
- {{else if gt .Poster.ID 0}}
- {{$.i18n.Tr .GetLastEventLabel $timeStr .Poster.HomeLink (.Poster.GetDisplayName|Escape) | Safe}}
- {{else}}
- {{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName|Escape) | Safe}}
- {{end}}
- {{if .Milestone}}
-
- {{.Milestone.Name}}
-
- {{end}}
- {{if .Ref}}
-
- {{.Ref}}
-
- {{end}}
- {{range .Assignees}}
-
-
-
- {{end}}
- {{$tasks := .GetTasks}}
- {{if gt $tasks 0}}
- {{$tasksDone := .GetTasksDone}}
-
- {{$tasksDone}} / {{$tasks}}
-
- {{end}}
-
-
- {{end}}
-
- {{template "base/paginate" .}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/dashboard/navbar.tmpl b/user/dashboard/navbar.tmpl
deleted file mode 100644
index 25c4532..0000000
--- a/user/dashboard/navbar.tmpl
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
diff --git a/user/meta/followers.tmpl b/user/meta/followers.tmpl
deleted file mode 100644
index 40d7e95..0000000
--- a/user/meta/followers.tmpl
+++ /dev/null
@@ -1,6 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/meta/header" .}}
- {{template "repo/user_cards" .}}
-
-{{template "base/footer" .}}
diff --git a/user/meta/header.tmpl b/user/meta/header.tmpl
deleted file mode 100644
index 36072e8..0000000
--- a/user/meta/header.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-{{with .Owner}}
-
-
-
-
-
- {{if or $.PageIsFollowers $.PageIsFollowing}}
- {{if and $.IsSigned (ne $.SignedUserName .Name)}}
-
- {{end}}
- {{end}}
-
-
-{{end}}
-
diff --git a/user/notification/notification.tmpl b/user/notification/notification.tmpl
deleted file mode 100644
index 3c30bbe..0000000
--- a/user/notification/notification.tmpl
+++ /dev/null
@@ -1,117 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
-
-
- {{if eq (len .Notifications) 0}}
- {{if eq .Status 1}}
- {{.i18n.Tr "notification.no_unread"}}
- {{else}}
- {{.i18n.Tr "notification.no_read"}}
- {{end}}
- {{else}}
-
-
- {{range $notification := .Notifications}}
- {{$issue := $notification.GetIssue}}
- {{$repo := $notification.GetRepo}}
- {{$repoOwner := $repo.MustOwner}}
-
-
-
- {{if eq $notification.Status 3}}
-
- {{else if $issue.IsPull}}
- {{if $issue.IsClosed}}
- {{if $issue.GetPullRequest.HasMerged}}
-
- {{else}}
-
- {{end}}
- {{else}}
-
- {{end}}
- {{else}}
- {{if $issue.IsClosed}}
-
- {{else}}
-
- {{end}}
- {{end}}
-
-
-
- #{{$issue.Index}} - {{$issue.Title}}
-
-
-
-
- {{$repoOwner.Name}}/{{$repo.Name}}
-
-
-
- {{if ne $notification.Status 3}}
-
- {{$.CsrfTokenHtml}}
-
-
-
-
-
-
- {{end}}
-
-
- {{if or (eq $notification.Status 1) (eq $notification.Status 3)}}
-
- {{$.CsrfTokenHtml}}
-
-
-
-
-
-
- {{else if eq $notification.Status 2}}
-
- {{$.CsrfTokenHtml}}
-
-
-
-
-
-
- {{end}}
-
-
- {{end}}
-
-
- {{end}}
-
-
- {{template "base/paginate" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/user/profile.tmpl b/user/profile.tmpl
deleted file mode 100644
index 52c6e3e..0000000
--- a/user/profile.tmpl
+++ /dev/null
@@ -1,138 +0,0 @@
-{{template "base/head" .}}
-
-
-
-
-
- {{if eq .SignedUserName .Owner.Name}}
-
-
-
- {{else}}
-
-
-
- {{end}}
-
- {{if .Owner.FullName}}{{end}}
- {{.Owner.Name}}
-
-
-
-
-
-
-
- {{if eq .TabName "activity"}}
- {{if .EnableHeatmap}}
-
-
-
-
{{.i18n.Tr "user.heatmap.loading"}}
-
-
-
-
- {{end}}
-
- {{template "user/dashboard/feeds" .}}
-
- {{else if eq .TabName "stars"}}
-
- {{template "explore/repo_search" .}}
- {{template "explore/repo_list" .}}
- {{template "base/paginate" .}}
-
- {{else}}
- {{template "explore/repo_search" .}}
- {{template "explore/repo_list" .}}
- {{template "base/paginate" .}}
- {{end}}
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/settings/account.tmpl b/user/settings/account.tmpl
deleted file mode 100644
index dcb5770..0000000
--- a/user/settings/account.tmpl
+++ /dev/null
@@ -1,196 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
- {{if or (.SignedUser.IsLocal) (.SignedUser.IsOAuth2)}}
-
- {{.CsrfTokenHtml}}
- {{if .SignedUser.IsPasswordSet}}
-
- {{.i18n.Tr "settings.old_password"}}
-
-
- {{end}}
-
- {{.i18n.Tr "settings.new_password"}}
-
-
-
- {{.i18n.Tr "settings.retype_new_password"}}
-
-
-
-
-
- {{else}}
-
-
{{$.i18n.Tr "settings.password_change_disabled"}}
-
- {{end}}
-
-
-
-
-
-
-
- {{.i18n.Tr "settings.email_desc"}}
-
-
- {{$.i18n.Tr "settings.email_notifications.submit"}}
-
-
-
- {{$.CsrfTokenHtml}}
-
-
-
-
-
-
{{$.i18n.Tr "settings.email_notifications"}}
-
-
-
-
-
-
- {{range .Emails}}
-
- {{if not .IsPrimary}}
-
-
- {{$.i18n.Tr "settings.delete_email"}}
-
-
- {{if .IsActivated}}
-
-
- {{$.CsrfTokenHtml}}
-
-
- {{$.i18n.Tr "settings.primary_email"}}
-
-
- {{end}}
- {{end}}
-
- {{.Email}}
- {{if .IsPrimary}}{{$.i18n.Tr "settings.primary"}} {{end}}
-
-
- {{end}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "settings.add_new_email"}}
-
-
-
- {{.i18n.Tr "settings.add_email"}}
-
-
-
-
-
-
-
-
- {{.i18n.Tr "settings.theme_desc"}}
-
-
-
- {{.CsrfTokenHtml}}
-
-
{{.i18n.Tr "settings.ui"}}
-
-
-
-
- {{range $i,$a := .AllThemes}}
- {{if eq $.SignedUser.Theme $a}}{{$a}}{{end}}
- {{end}}
-
-
-
-
-
-
-
- {{$.i18n.Tr "settings.update_theme"}}
-
-
-
-
-
-
-
-
{{.i18n.Tr "settings.delete_prompt" | Str2html}}
-
-
- {{.CsrfTokenHtml}}
-
-
- {{.i18n.Tr "password"}}
-
-
-
-
-
-
-
-
-
-
-
-
{{.i18n.Tr "settings.email_deletion_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
-
-
-
-
-
{{.i18n.Tr "settings.delete_account_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
-
-{{template "base/footer" .}}
diff --git a/user/settings/applications.tmpl b/user/settings/applications.tmpl
deleted file mode 100644
index 08b2ca7..0000000
--- a/user/settings/applications.tmpl
+++ /dev/null
@@ -1,77 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
-
- {{.i18n.Tr "settings.tokens_desc"}}
-
- {{range .Tokens}}
-
-
-
- {{$.i18n.Tr "settings.delete_token"}}
-
-
-
-
-
{{.Name}}
-
- {{$.i18n.Tr "settings.add_on"}} {{.CreatedUnix.FormatShort}} — {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{.UpdatedUnix.FormatShort}} {{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}}
-
-
-
- {{end}}
-
-
-
-
-
{{.i18n.Tr "settings.new_token_desc"}}
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "settings.token_name"}}
-
-
-
- {{.i18n.Tr "settings.generate_token"}}
-
-
-
-
- {{if .EnableOAuth2}}
- {{template "user/settings/grants_oauth2" .}}
- {{template "user/settings/applications_oauth2" .}}
- {{end}}
-
-
-
-
-
-
-
{{.i18n.Tr "settings.access_token_deletion_desc"}}
-
-
-
-
- {{.i18n.Tr "modal.no"}}
-
-
-
- {{.i18n.Tr "modal.yes"}}
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/settings/applications_oauth2.tmpl b/user/settings/applications_oauth2.tmpl
deleted file mode 100644
index 42d1950..0000000
--- a/user/settings/applications_oauth2.tmpl
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
- {{.i18n.Tr "settings.oauth2_application_create_description"}}
-
- {{range $app := .Applications}}
-
- {{end}}
-
-
-
-
-
-
-
-
{{.i18n.Tr "settings.oauth2_application_remove_description"}}
-
- {{template "base/delete_modal_actions" .}}
-
diff --git a/user/settings/applications_oauth2_edit.tmpl b/user/settings/applications_oauth2_edit.tmpl
deleted file mode 100644
index d1b0beb..0000000
--- a/user/settings/applications_oauth2_edit.tmpl
+++ /dev/null
@@ -1,69 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
- {{template "base/alert" .}}
-
{{.i18n.Tr "settings.oauth2_application_create_description"}}
-
-
-
-
-
-
-
-
-
-
{{.i18n.Tr "settings.remove_oauth2_application_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
-
-{{template "base/footer" .}}
diff --git a/user/settings/grants_oauth2.tmpl b/user/settings/grants_oauth2.tmpl
deleted file mode 100644
index 4dc5b94..0000000
--- a/user/settings/grants_oauth2.tmpl
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
- {{.i18n.Tr "settings.authorized_oauth2_applications_description"}}
-
- {{range $grant := .Grants}}
-
-
-
- {{$.i18n.Tr "settings.revoke_key"}}
-
-
-
-
-
{{$grant.Application.Name}}
-
- {{$.i18n.Tr "settings.add_on"}} {{$grant.CreatedUnix.FormatShort}}
-
-
-
- {{end}}
-
-
-
-
-
-
-
{{.i18n.Tr "settings.revoke_oauth2_grant_description"}}
-
- {{template "base/delete_modal_actions" .}}
-
diff --git a/user/settings/keys.tmpl b/user/settings/keys.tmpl
deleted file mode 100644
index 86d2204..0000000
--- a/user/settings/keys.tmpl
+++ /dev/null
@@ -1,12 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/settings/navbar" .}}
-
- {{template "base/alert" .}}
- {{template "user/settings/keys_ssh" .}}
-
- {{template "user/settings/keys_gpg" .}}
-
-
-
-{{template "base/footer" .}}
diff --git a/user/settings/keys_gpg.tmpl b/user/settings/keys_gpg.tmpl
deleted file mode 100644
index 0a4afbf..0000000
--- a/user/settings/keys_gpg.tmpl
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
- {{.i18n.Tr "settings.gpg_desc"}}
-
- {{range .GPGKeys}}
-
-
-
- {{$.i18n.Tr "settings.delete_key"}}
-
-
-
-
- {{range .Emails}}
{{.Email}} {{end}}
-
- {{$.i18n.Tr "settings.key_id"}}: {{.KeyID}}
- {{$.i18n.Tr "settings.subkeys"}}: {{range .SubsKey}} {{.KeyID}} {{end}}
-
-
- {{$.i18n.Tr "settings.add_on"}} {{.AddedUnix.FormatShort}}
- -
- {{if not .ExpiredUnix.IsZero}}{{$.i18n.Tr "settings.valid_until"}} {{.ExpiredUnix.FormatShort}} {{else}}{{$.i18n.Tr "settings.valid_forever"}}{{end}}
-
-
-
- {{end}}
-
-
-
-{{.i18n.Tr "settings.gpg_helper" "https://help.github.com/articles/about-gpg/" | Str2html}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
-
- {{.i18n.Tr "settings.key_content"}}
- {{.content}}
-
-
-
- {{.i18n.Tr "settings.add_key"}}
-
-
-
-
-
-
-
-
-
{{.i18n.Tr "settings.gpg_key_deletion_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
diff --git a/user/settings/keys_ssh.tmpl b/user/settings/keys_ssh.tmpl
deleted file mode 100644
index e954472..0000000
--- a/user/settings/keys_ssh.tmpl
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
- {{.i18n.Tr "settings.ssh_desc"}}
-
- {{range .Keys}}
-
-
-
- {{$.i18n.Tr "settings.delete_key"}}
-
-
-
-
-
{{.Name}}
-
- {{.Fingerprint}}
-
-
- {{$.i18n.Tr "settings.add_on"}} {{.CreatedUnix.FormatShort}} — {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{.UpdatedUnix.FormatShort}} {{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}}
-
-
-
- {{end}}
-
-
-
-{{.i18n.Tr "settings.ssh_helper" "https://help.github.com/articles/generating-ssh-keys" "https://help.github.com/ssh-issues/" | Str2html}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "settings.key_name"}}
-
-
-
- {{.i18n.Tr "settings.key_content"}}
- {{.content}}
-
-
-
- {{.i18n.Tr "settings.add_key"}}
-
-
-
-
-
-
-
-
-
{{.i18n.Tr "settings.ssh_key_deletion_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
diff --git a/user/settings/navbar.tmpl b/user/settings/navbar.tmpl
deleted file mode 100644
index 18bd9a4..0000000
--- a/user/settings/navbar.tmpl
+++ /dev/null
@@ -1,23 +0,0 @@
-
diff --git a/user/settings/organization.tmpl b/user/settings/organization.tmpl
deleted file mode 100644
index de541dc..0000000
--- a/user/settings/organization.tmpl
+++ /dev/null
@@ -1,35 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
- {{if .Orgs}}
-
- {{range .Orgs}}
-
-
-
-
-
- {{end}}
-
- {{else}}
- {{.i18n.Tr "settings.orgs_none"}}
- {{end}}
-
-
-
-{{template "base/footer" .}}
diff --git a/user/settings/profile.tmpl b/user/settings/profile.tmpl
deleted file mode 100644
index 995bdfd..0000000
--- a/user/settings/profile.tmpl
+++ /dev/null
@@ -1,106 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
{{.i18n.Tr "settings.profile_desc"}}
-
- {{.CsrfTokenHtml}}
-
-
{{.i18n.Tr "username"}} {{.i18n.Tr "settings.change_username_prompt"}}
-
- {{if not .SignedUser.IsLocal}}
-
{{$.i18n.Tr "settings.password_username_disabled"}}
- {{end}}
-
-
- {{.i18n.Tr "settings.full_name"}}
-
-
-
- {{.i18n.Tr "email"}}
-
-
-
-
- {{.i18n.Tr "settings.keep_email_private"}}
-
-
-
-
- {{$.i18n.Tr "user.user_bio"}}
- {{.SignedUser.Description}}
-
-
- {{.i18n.Tr "settings.website"}}
-
-
-
- {{.i18n.Tr "settings.location"}}
-
-
-
-
-
{{.i18n.Tr "settings.language"}}
-
-
-
-
{{range .AllLangs}}{{if eq $.SignedUser.Language .Lang}}{{.Name}}{{end}}{{end}}
-
-
-
-
-
- {{$.i18n.Tr "settings.update_profile"}}
-
-
-
-
-
-
-
-
-{{template "base/footer" .}}
diff --git a/user/settings/repos.tmpl b/user/settings/repos.tmpl
deleted file mode 100644
index 9a0ef1a..0000000
--- a/user/settings/repos.tmpl
+++ /dev/null
@@ -1,53 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
- {{if .Repos}}
-
- {{range .Repos}}
-
- {{end}}
-
- {{else}}
-
- {{.i18n.Tr "settings.repos_none"}}
-
- {{end}}
-
-
-
-
-
-
-
-
{{.i18n.Tr "settings.remove_account_link_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
-{{template "base/footer" .}}
diff --git a/user/settings/security.tmpl b/user/settings/security.tmpl
deleted file mode 100644
index c2c99c7..0000000
--- a/user/settings/security.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/settings/navbar" .}}
-
- {{template "base/alert" .}}
- {{template "user/settings/security_twofa" .}}
- {{template "user/settings/security_u2f" .}}
- {{template "user/settings/security_accountlinks" .}}
- {{if .EnableOpenIDSignIn}}
- {{template "user/settings/security_openid" .}}
- {{end}}
-
-
-
-{{template "base/footer" .}}
diff --git a/user/settings/security_accountlinks.tmpl b/user/settings/security_accountlinks.tmpl
deleted file mode 100644
index 057a0f9..0000000
--- a/user/settings/security_accountlinks.tmpl
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
- {{.i18n.Tr "settings.manage_account_links_desc"}}
-
- {{if .AccountLinks}}
- {{range $loginSource, $provider := .AccountLinks}}
-
-
-
- {{$.i18n.Tr "settings.delete_key"}}
-
-
-
- {{$provider}}
- {{if $loginSource.IsActived}}{{$.i18n.Tr "settings.active"}} {{end}}
-
-
- {{end}}
- {{end}}
-
-
-
-
-
-
-
{{.i18n.Tr "settings.remove_account_link_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
diff --git a/user/settings/security_openid.tmpl b/user/settings/security_openid.tmpl
deleted file mode 100644
index a16501a..0000000
--- a/user/settings/security_openid.tmpl
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
- {{.i18n.Tr "settings.openid_desc"}}
-
- {{range .OpenIDs}}
-
-
-
- {{$.i18n.Tr "settings.delete_key"}}
-
-
-
-
- {{$.CsrfTokenHtml}}
-
- {{if .Show}}
-
-
- {{$.i18n.Tr "settings.hide_openid"}}
-
- {{else}}
-
-
- {{$.i18n.Tr "settings.show_openid"}}
-
- {{end}}
-
-
-
-
- {{.URI}}
-
-
- {{end}}
-
-
-
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "settings.add_new_openid"}}
-
-
-
- {{.i18n.Tr "settings.add_openid"}}
-
-
-
-
-
-
-
-
{{.i18n.Tr "settings.openid_deletion_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
diff --git a/user/settings/security_twofa.tmpl b/user/settings/security_twofa.tmpl
deleted file mode 100644
index 138872d..0000000
--- a/user/settings/security_twofa.tmpl
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
{{.i18n.Tr "settings.twofa_desc"}}
- {{if .TwofaEnrolled}}
-
{{$.i18n.Tr "settings.twofa_is_enrolled" | Str2html }}
-
- {{.CsrfTokenHtml}}
- {{.i18n.Tr "settings.regenerate_scratch_token_desc"}}
- {{$.i18n.Tr "settings.twofa_scratch_token_regenerate"}}
-
-
- {{.CsrfTokenHtml}}
- {{.i18n.Tr "settings.twofa_disable_note"}}
- {{$.i18n.Tr "settings.twofa_disable"}}
-
- {{else}}
-
{{.i18n.Tr "settings.twofa_not_enrolled"}}
-
- {{end}}
-
-
-
-
-
-
{{.i18n.Tr "settings.twofa_disable_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
diff --git a/user/settings/security_u2f.tmpl b/user/settings/security_u2f.tmpl
deleted file mode 100644
index 4703f9d..0000000
--- a/user/settings/security_u2f.tmpl
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
{{.i18n.Tr "settings.u2f_desc" | Str2html}}
- {{if .TwofaEnrolled}}
-
- {{range .U2FRegistrations}}
-
-
-
- {{$.i18n.Tr "settings.delete_key"}}
-
-
-
- {{.Name}}
-
-
- {{end}}
-
-
- {{else}}
-
{{.i18n.Tr "settings.u2f_require_twofa"}}
- {{end}}
-
-
-
-
-
- {{.i18n.Tr "settings.u2f_press_button"}}
-
-
-
{{.i18n.Tr "cancel"}}
-
-
-
-{{template "user/auth/u2f_error" .}}
-
-
-
-
-
{{.i18n.Tr "settings.u2f_delete_key_desc"}}
-
- {{template "base/delete_modal_actions" .}}
-
-
diff --git a/user/settings/twofa_enroll.tmpl b/user/settings/twofa_enroll.tmpl
deleted file mode 100644
index 0205532..0000000
--- a/user/settings/twofa_enroll.tmpl
+++ /dev/null
@@ -1,29 +0,0 @@
-{{template "base/head" .}}
-
- {{template "user/settings/navbar" .}}
-
- {{template "base/alert" .}}
-
-
-
{{.i18n.Tr "settings.scan_this_image"}}
-
-
{{.i18n.Tr "settings.or_enter_secret" .TwofaSecret}}
-
{{.i18n.Tr "settings.then_enter_passcode"}}
-
- {{.CsrfTokenHtml}}
-
- {{.i18n.Tr "passcode"}}
-
-
-
-
- {{.i18n.Tr "auth.verify"}}
-
-
-
-
-
-
-{{template "base/footer" .}}
From e6d04738a5f5081aad719116441ba5acc3a7c670 Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Tue, 4 Feb 2020 08:12:36 +0100
Subject: [PATCH 02/13] cleanup
---
base/alert.tmpl | 15 ------------
base/delete_modal_actions.tmpl | 10 --------
base/paginate.tmpl | 24 --------------------
{base => templates/base}/footer.tmpl | 0
{base => templates/base}/footer_content.tmpl | 0
{base => templates/base}/head.tmpl | 0
{base => templates/base}/head_navbar.tmpl | 0
home.tmpl => templates/home.tmpl | 0
8 files changed, 49 deletions(-)
delete mode 100644 base/alert.tmpl
delete mode 100644 base/delete_modal_actions.tmpl
delete mode 100644 base/paginate.tmpl
rename {base => templates/base}/footer.tmpl (100%)
rename {base => templates/base}/footer_content.tmpl (100%)
rename {base => templates/base}/head.tmpl (100%)
rename {base => templates/base}/head_navbar.tmpl (100%)
rename home.tmpl => templates/home.tmpl (100%)
diff --git a/base/alert.tmpl b/base/alert.tmpl
deleted file mode 100644
index 61b9948..0000000
--- a/base/alert.tmpl
+++ /dev/null
@@ -1,15 +0,0 @@
-{{if .Flash.ErrorMsg}}
-
-
{{.Flash.ErrorMsg | Str2html}}
-
-{{end}}
-{{if .Flash.SuccessMsg}}
-
-
{{.Flash.SuccessMsg | Str2html}}
-
-{{end}}
-{{if .Flash.InfoMsg}}
-
-
{{.Flash.InfoMsg | Str2html}}
-
-{{end}}
diff --git a/base/delete_modal_actions.tmpl b/base/delete_modal_actions.tmpl
deleted file mode 100644
index a889c67..0000000
--- a/base/delete_modal_actions.tmpl
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
- {{.i18n.Tr "modal.no"}}
-
-
-
- {{.i18n.Tr "modal.yes"}}
-
-
diff --git a/base/paginate.tmpl b/base/paginate.tmpl
deleted file mode 100644
index da07fd2..0000000
--- a/base/paginate.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-{{$paginationLink := .Page.GetParams}}
-{{with .Page.Paginater}}
- {{if gt .TotalPages 1}}
-
-
-
- {{end}}
-{{end}}
diff --git a/base/footer.tmpl b/templates/base/footer.tmpl
similarity index 100%
rename from base/footer.tmpl
rename to templates/base/footer.tmpl
diff --git a/base/footer_content.tmpl b/templates/base/footer_content.tmpl
similarity index 100%
rename from base/footer_content.tmpl
rename to templates/base/footer_content.tmpl
diff --git a/base/head.tmpl b/templates/base/head.tmpl
similarity index 100%
rename from base/head.tmpl
rename to templates/base/head.tmpl
diff --git a/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl
similarity index 100%
rename from base/head_navbar.tmpl
rename to templates/base/head_navbar.tmpl
diff --git a/home.tmpl b/templates/home.tmpl
similarity index 100%
rename from home.tmpl
rename to templates/home.tmpl
From a828edffdb48661f6aedb08583e6480e43b335ad Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Tue, 4 Feb 2020 12:12:54 +0100
Subject: [PATCH 03/13] add MIT
---
LICENSE | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 LICENSE
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..9c41c42
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,7 @@
+Copyright 2020 TylerByte666
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
From 2b43f73d6a3a342f9534e015fc468a5e4c10c225 Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Tue, 4 Feb 2020 08:18:31 +0100
Subject: [PATCH 04/13] update ReadMe
---
README.md | 26 +++++++++---------
...trix-preview-2.png => matrix-preview-2.png | Bin
.../matrix-preview.png => matrix-preview.png | Bin
3 files changed, 13 insertions(+), 13 deletions(-)
rename images/matrix-preview-2.png => matrix-preview-2.png (100%)
rename images/matrix-preview.png => matrix-preview.png (100%)
diff --git a/README.md b/README.md
index e42618a..cf041a0 100644
--- a/README.md
+++ b/README.md
@@ -1,23 +1,23 @@
# Gitea Matrix Template- Turn your gitea arc-green template into the matrix
## Previews:
-![preview 1](images/matrix-preview.png "Logo Title Text 1")
+![preview 1](matrix-preview.png "Preview")
-![preview 2](images/matrix-preview-2.png "Logo Title Text 1")
+![preview 2](matrix-preview-2.png "Preview")
## For Gitea Version ***1.10.3***
## How to use:
1. Find your gitea custom directory path in ***Site Administration > Configuration > Custom File Root Path***.
-2. Create a new directory in your custom root path called ***templates***.
-3. Create another directory and it's child in your custom root path called ***public/css***.
-4. Clone this repo on your gitea server and move all the files except gitea-matrix-theme.css to the templates directory in your custom root path that you created in step 2.
-5. Move the gitea-matrix-theme.css into the public/css/ folder you created in step 3.
-6. Set the ***arc-green*** built-in gitea theme active under ***Settings*** or set is as the default theme by finding your ***Site Administration > Configuration > Configuration File Path*** usually ***/.../gitea/app.ini***. Edit it to add this code to the last part of the file and save it:
+2. Create directorys ***templates*** and ***public/css*** if not exist.
+3. Copy/Move files from this repo in there counterpart locations.
+4. Add folowing lines to your gitea config:
+```ini
+[ui]
+THEMES = gitea,arc-green,matrix
+DEFAULT_THEME = matrix
+```
+7. Restart your Gitea Service and you are ready to go.
+### Welcome to the matrix!
-`[ui]`
-
-`DEFAULT_THEME = arc-green`
-
-7. Restart your Gitea Service and you are ready to go.
-### Welcome to the matrix!
\ No newline at end of file
+8. A user can still change the theme he likes in his settings avterwards
diff --git a/images/matrix-preview-2.png b/matrix-preview-2.png
similarity index 100%
rename from images/matrix-preview-2.png
rename to matrix-preview-2.png
diff --git a/images/matrix-preview.png b/matrix-preview.png
similarity index 100%
rename from images/matrix-preview.png
rename to matrix-preview.png
From ff0e4ad1a57c95c778086183991c02085c6f62bf Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Tue, 4 Feb 2020 08:19:05 +0100
Subject: [PATCH 05/13] update path
---
templates/base/head.tmpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index df9019b..21eb220 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -100,7 +100,7 @@
-
+