From a79eb48de30ae72ebc6183e7bef5fd7012d4b5a0 Mon Sep 17 00:00:00 2001 From: Thibault Meyer Date: Thu, 3 Nov 2016 09:32:55 +0100 Subject: [PATCH 1/4] Fix SHA regexp and commit comparisons --- cmd/web.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/web.go b/cmd/web.go index 97f6a0f15c..b335b0cbca 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -99,7 +99,7 @@ func checkVersion() { for _, c := range checkers { if !version.Compare(c.Version(), c.Expected, ">=") { log.Fatal(4, `Dependency outdated! -Package '%s' current version (%s) is below requirement (%s), +Package '%s' current version (%s) is below requirement (%s), please use following command to update this package and recompile Gogs: go get -u %[1]s`, c.ImportPath, c.Version(), c.Expected) } @@ -585,12 +585,12 @@ func runWeb(ctx *cli.Context) error { m.Get("/src/*", repo.Home) m.Get("/raw/*", repo.SingleDownload) m.Get("/commits/*", repo.RefCommits) - m.Get("/commit/:sha([a-z0-9]{7,40})$", repo.Diff) + m.Get("/commit/:sha([a-f0-9]{7,40})$", repo.Diff) m.Get("/forks", repo.Forks) }, context.RepoRef()) - m.Get("/commit/:sha([a-z0-9]{7,40})\\.:ext(patch|diff)", repo.RawDiff) + m.Get("/commit/:sha([a-f0-9]{7,40})\\.:ext(patch|diff)", repo.RawDiff) - m.Get("/compare/:before([a-z0-9]{7,40})\\.\\.\\.:after([a-z0-9]{7,40})", repo.CompareDiff) + m.Get("/compare/:before([a-z0-9]{40})\\.\\.\\.:after([a-z0-9]{40})", repo.CompareDiff) }, ignSignIn, context.RepoAssignment(), repo.MustBeNotBare) m.Group("/:username/:reponame", func() { m.Get("/stars", repo.Stars) From 8ea63f8c506410d09e6b8b0dbcb102271bd9cbbe Mon Sep 17 00:00:00 2001 From: Thibault Meyer Date: Thu, 3 Nov 2016 09:37:24 +0100 Subject: [PATCH 2/4] Restore whitespace --- cmd/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web.go b/cmd/web.go index b335b0cbca..a3a214e19d 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -99,7 +99,7 @@ func checkVersion() { for _, c := range checkers { if !version.Compare(c.Version(), c.Expected, ">=") { log.Fatal(4, `Dependency outdated! -Package '%s' current version (%s) is below requirement (%s), +Package '%s' current version (%s) is below requirement (%s), please use following command to update this package and recompile Gogs: go get -u %[1]s`, c.ImportPath, c.Version(), c.Expected) } From 2d68bd1ef98849da54c869b103e93719d1accb5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Boulanouar?= Date: Thu, 3 Nov 2016 13:29:56 +0100 Subject: [PATCH 3/4] Change import reference to match gitea instead of gogs (#37) --- .github/CONTRIBUTING.md | 6 +++--- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .gopmfile | 2 +- Makefile | 4 ++-- README.md | 12 +++++------ README_ZH.md | 6 +++--- cmd/admin.go | 4 ++-- cmd/dump.go | 4 ++-- cmd/serve.go | 10 ++++----- cmd/update.go | 6 +++--- cmd/web.go | 28 ++++++++++++------------- conf/app.ini | 2 +- docker/build.sh | 4 ++-- glide.yaml | 2 +- gogs.go | 4 ++-- models/access.go | 2 +- models/action.go | 6 +++--- models/admin.go | 6 +++--- models/git_diff.go | 10 ++++----- models/issue.go | 6 +++--- models/issue_comment.go | 4 ++-- models/issue_label.go | 2 +- models/issue_mail.go | 6 +++--- models/login_source.go | 6 +++--- models/mail.go | 10 ++++----- models/migrations/migrations.go | 6 +++--- models/models.go | 4 ++-- models/org.go | 4 ++-- models/pull.go | 8 +++---- models/release.go | 2 +- models/repo.go | 12 +++++------ models/repo_editor.go | 6 +++--- models/repo_mirror.go | 8 +++---- models/repo_test.go | 4 ++-- models/ssh_key.go | 8 +++---- models/ssh_key_test.go | 2 +- models/token.go | 2 +- models/update.go | 2 +- models/user.go | 10 ++++----- models/webhook.go | 8 +++---- models/webhook_slack.go | 2 +- models/wiki.go | 4 ++-- modules/auth/auth.go | 8 +++---- modules/auth/ldap/ldap.go | 2 +- modules/auth/repo_form.go | 2 +- modules/base/tool.go | 4 ++-- modules/context/api.go | 6 +++--- modules/context/api_org.go | 2 +- modules/context/auth.go | 4 ++-- modules/context/context.go | 10 ++++----- modules/context/org.go | 4 ++-- modules/context/repo.go | 6 +++--- modules/cron/cron.go | 6 +++--- modules/mailer/mailer.go | 4 ++-- modules/markdown/markdown.go | 4 ++-- modules/markdown/markdown_test.go | 4 ++-- modules/process/manager.go | 2 +- modules/setting/setting.go | 6 +++--- modules/ssh/ssh.go | 6 +++--- modules/template/highlight/highlight.go | 2 +- modules/template/template.go | 10 ++++----- routers/admin/admin.go | 12 +++++------ routers/admin/auths.go | 14 ++++++------- routers/admin/notice.go | 10 ++++----- routers/admin/orgs.go | 10 ++++----- routers/admin/repos.go | 12 +++++------ routers/admin/users.go | 14 ++++++------- routers/api/v1/admin/org.go | 8 +++---- routers/api/v1/admin/org_repo.go | 4 ++-- routers/api/v1/admin/org_team.go | 8 +++---- routers/api/v1/admin/repo.go | 6 +++--- routers/api/v1/admin/user.go | 10 ++++----- routers/api/v1/api.go | 16 +++++++------- routers/api/v1/convert/convert.go | 2 +- routers/api/v1/convert/utils.go | 2 +- routers/api/v1/misc/markdown.go | 4 ++-- routers/api/v1/org/org.go | 8 +++---- routers/api/v1/org/team.go | 4 ++-- routers/api/v1/repo/branch.go | 4 ++-- routers/api/v1/repo/collaborators.go | 4 ++-- routers/api/v1/repo/file.go | 6 +++--- routers/api/v1/repo/hook.go | 6 +++--- routers/api/v1/repo/issue.go | 6 +++--- routers/api/v1/repo/issue_comment.go | 4 ++-- routers/api/v1/repo/issue_label.go | 4 ++-- routers/api/v1/repo/key.go | 8 +++---- routers/api/v1/repo/label.go | 4 ++-- routers/api/v1/repo/milestone.go | 4 ++-- routers/api/v1/repo/repo.go | 12 +++++------ routers/api/v1/user/app.go | 4 ++-- routers/api/v1/user/email.go | 8 +++---- routers/api/v1/user/follower.go | 4 ++-- routers/api/v1/user/key.go | 10 ++++----- routers/api/v1/user/user.go | 4 ++-- routers/dev/template.go | 8 +++---- routers/home.go | 10 ++++----- routers/install.go | 24 ++++++++++----------- routers/org/members.go | 10 ++++----- routers/org/org.go | 12 +++++------ routers/org/setting.go | 14 ++++++------- routers/org/teams.go | 10 ++++----- routers/repo/branch.go | 4 ++-- routers/repo/commit.go | 8 +++---- routers/repo/download.go | 4 ++-- routers/repo/editor.go | 14 ++++++------- routers/repo/http.go | 10 ++++----- routers/repo/issue.go | 14 ++++++------- routers/repo/pull.go | 12 +++++------ routers/repo/release.go | 12 +++++------ routers/repo/repo.go | 12 +++++------ routers/repo/setting.go | 12 +++++------ routers/repo/view.go | 16 +++++++------- routers/repo/webhook.go | 10 ++++----- routers/repo/wiki.go | 10 ++++----- routers/user/auth.go | 12 +++++------ routers/user/home.go | 8 +++---- routers/user/profile.go | 10 ++++----- routers/user/setting.go | 12 +++++------ scripts/supervisor/gogs | 4 ++-- templates/base/footer.tmpl | 2 +- templates/home.tmpl | 28 ++++++++++++------------- templates/install.tmpl | 2 +- templates/status/404.tmpl | 2 +- 123 files changed, 440 insertions(+), 440 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index bd4ff08745..5e98bc2e40 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -15,7 +15,7 @@ Depends on the situation, you will: ### Bug Report -If you find something you consider a bug, please create a issue on [GitHub](https://github.com/gogits/gogs/issues). To avoid wasting time and reduce back-and-forth communication with team members, please include at least the following information in a form comfortable for you: +If you find something you consider a bug, please create a issue on [GitHub](https://github.com/go-gitea/gitea/issues). To avoid wasting time and reduce back-and-forth communication with team members, please include at least the following information in a form comfortable for you: - Bug Description - Gogs Version @@ -24,7 +24,7 @@ If you find something you consider a bug, please create a issue on [GitHub](http - Error Log - Other information -Please take a moment to check that an issue on [GitHub](https://github.com/gogits/gogs/issues) doesn't already exist documenting your bug report or improvement proposal. If it does, it never hurts to add a quick "+1" or "I have this problem too". This will help prioritize the most common problems and requests. +Please take a moment to check that an issue on [GitHub](https://github.com/go-gitea/gitea/issues) doesn't already exist documenting your bug report or improvement proposal. If it does, it never hurts to add a quick "+1" or "I have this problem too". This will help prioritize the most common problems and requests. #### Bug Report Example @@ -42,7 +42,7 @@ There is no standard form of making a feature request. Just try to describe the ### Pull Request -Please read detailed information on [Wiki](https://github.com/gogits/gogs/wiki/Contributing-Code). +Please read detailed information on [Wiki](https://github.com/go-gitea/gitea/wiki/Contributing-Code). ### Ask For Help diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index b1cf1a4eca..23a7bfeb40 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -2,7 +2,7 @@ The pull request will be closed without any reasons if it does not satisfy any o 1. Please make sure you are targeting the `develop` branch. 2. Please read contributing guidelines: -https://github.com/gogits/gogs/wiki/Contributing-Code +https://github.com/go-gitea/gitea/wiki/Contributing-Code 3. Please describe what your pull request does and which issue you're targeting 4. ... if it is not related to any particular issues, explain why we should not reject your pull request. diff --git a/.gopmfile b/.gopmfile index 604038b666..45eb20f2e4 100644 --- a/.gopmfile +++ b/.gopmfile @@ -1,5 +1,5 @@ [target] -path = github.com/gogits/gogs +path = github.com/go-gitea/gitea [deps] github.com/bradfitz/gomemcache = commit:fb1f79c diff --git a/Makefile b/Makefile index c321f82bad..b3ee101959 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -LDFLAGS += -X "github.com/gogits/gogs/modules/setting.BuildTime=$(shell date -u '+%Y-%m-%d %I:%M:%S %Z')" -LDFLAGS += -X "github.com/gogits/gogs/modules/setting.BuildGitHash=$(shell git rev-parse HEAD)" +LDFLAGS += -X "github.com/go-gitea/gitea/modules/setting.BuildTime=$(shell date -u '+%Y-%m-%d %I:%M:%S %Z')" +LDFLAGS += -X "github.com/go-gitea/gitea/modules/setting.BuildGitHash=$(shell git rev-parse HEAD)" DATA_FILES := $(shell find conf | sed 's/ /\\ /g') LESS_FILES := $(wildcard public/less/gogs.less public/less/_*.less) diff --git a/README.md b/README.md index e465972dff..7eaeea9e9e 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?branch=master)](https://travis-ci.org/gogits/gogs) [![Crowdin](https://d322cqt584bo4o.cloudfront.net/gogs/localized.svg)](https://crowdin.com/project/gogs) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gogits/gogs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ===================== -![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true) +![](https://github.com/go-gitea/gitea/blob/master/public/img/gogs-large-resize.png?raw=true) -##### Current tip version: 0.9.99 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions or submit a task on [alpha stage automated binary building system](https://build.gogs.io/)) +##### Current tip version: 0.9.99 (see [Releases](https://github.com/go-gitea/gitea/releases) for binary versions or submit a task on [alpha stage automated binary building system](https://build.gogs.io/)) | Web | UI | Preview | |:-------------:|:-------:|:-------:| @@ -13,7 +13,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra ### Important Notes -1. **YOU MUST READ [Contributing Code](https://github.com/gogits/gogs/wiki/Contributing-Code) BEFORE STARTING TO WORK ON A PULL REQUEST**. +1. **YOU MUST READ [Contributing Code](https://github.com/go-gitea/gitea/wiki/Contributing-Code) BEFORE STARTING TO WORK ON A PULL REQUEST**. 2. Due to testing purpose, data of [try.gogs.io](https://try.gogs.io) was reset in **Jan 28, 2015** and will reset multiple times after. Please do **NOT** put your important data on the site. 3. The demo site [try.gogs.io](https://try.gogs.io) is running under `develop` branch. 4. If you think there are vulnerabilities in the project, please talk privately to **u@gogs.io**. Thanks! @@ -72,7 +72,7 @@ There are 5 ways to install Gogs: - [Install from binary](https://gogs.io/docs/installation/install_from_binary.html) - [Install from source](https://gogs.io/docs/installation/install_from_source.html) - [Install from packages](https://gogs.io/docs/installation/install_from_packages.html) -- [Ship with Docker](https://github.com/gogits/gogs/tree/master/docker) +- [Ship with Docker](https://github.com/go-gitea/gitea/tree/master/docker) - [Install with Vagrant](https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs) ### Tutorials @@ -130,9 +130,9 @@ There are 5 ways to install Gogs: ## Contributors - Ex-team members [@lunny](https://github.com/lunny), [@fuxiaohei](https://github.com/fuxiaohei) and [@slene](https://github.com/slene). -- See [contributors page](https://github.com/gogits/gogs/graphs/contributors) for full list of contributors. +- See [contributors page](https://github.com/go-gitea/gitea/graphs/contributors) for full list of contributors. - See [TRANSLATORS](conf/locale/TRANSLATORS) for public list of translators. ## License -This project is under the MIT License. See the [LICENSE](https://github.com/gogits/gogs/blob/master/LICENSE) file for the full license text. +This project is under the MIT License. See the [LICENSE](https://github.com/go-gitea/gitea/blob/master/LICENSE) file for the full license text. diff --git a/README_ZH.md b/README_ZH.md index 077cf86d5c..c3605da594 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -53,7 +53,7 @@ Gogs 的目标是打造一个最简单、最快速和最轻松的方式搭建自 - [二进制安装](https://gogs.io/docs/installation/install_from_binary.html) - [源码安装](https://gogs.io/docs/installation/install_from_source.html) - [包管理安装](https://gogs.io/docs/installation/install_from_packages.html) -- [采用 Docker 部署](https://github.com/gogits/gogs/tree/master/docker) +- [采用 Docker 部署](https://github.com/go-gitea/gitea/tree/master/docker) - [通过 Vagrant 安装](https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs) ### 使用教程 @@ -99,9 +99,9 @@ Gogs 的目标是打造一个最简单、最快速和最轻松的方式搭建自 ## 贡献成员 - 前团队成员 [@lunny](https://github.com/lunny)、[@fuxiaohei](https://github.com/fuxiaohei) 和 [@slene](https://github.com/slene)。 -- 您可以通过查看 [贡献者页面](https://github.com/gogits/gogs/graphs/contributors) 获取完整的贡献者列表。 +- 您可以通过查看 [贡献者页面](https://github.com/go-gitea/gitea/graphs/contributors) 获取完整的贡献者列表。 - 您可以通过查看 [TRANSLATORS](conf/locale/TRANSLATORS) 文件获取公开的翻译人员列表。 ## 授权许可 -本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 [LICENSE](https://github.com/gogits/gogs/blob/master/LICENSE) 文件中。 +本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 [LICENSE](https://github.com/go-gitea/gitea/blob/master/LICENSE) 文件中。 diff --git a/cmd/admin.go b/cmd/admin.go index bad36b1c85..a10e0e5fe5 100644 --- a/cmd/admin.go +++ b/cmd/admin.go @@ -9,8 +9,8 @@ import ( "github.com/urfave/cli" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/setting" ) var ( diff --git a/cmd/dump.go b/cmd/dump.go index c1361f9328..1e03ef74f0 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -16,8 +16,8 @@ import ( "github.com/Unknwon/cae/zip" "github.com/urfave/cli" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/setting" ) var CmdDump = cli.Command{ diff --git a/cmd/serve.go b/cmd/serve.go index 53d33b2edd..051e215db1 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -18,11 +18,11 @@ import ( gouuid "github.com/satori/go.uuid" "github.com/urfave/cli" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/httplib" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/httplib" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/cmd/update.go b/cmd/update.go index bebc101609..450d18a08a 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -9,9 +9,9 @@ import ( "github.com/urfave/cli" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) var CmdUpdate = cli.Command{ diff --git a/cmd/web.go b/cmd/web.go index 97f6a0f15c..5f92c77413 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -32,20 +32,20 @@ import ( "github.com/gogits/git-module" "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/bindata" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/modules/template" - "github.com/gogits/gogs/routers" - "github.com/gogits/gogs/routers/admin" - apiv1 "github.com/gogits/gogs/routers/api/v1" - "github.com/gogits/gogs/routers/dev" - "github.com/gogits/gogs/routers/org" - "github.com/gogits/gogs/routers/repo" - "github.com/gogits/gogs/routers/user" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/bindata" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/modules/template" + "github.com/go-gitea/gitea/routers" + "github.com/go-gitea/gitea/routers/admin" + apiv1 "github.com/go-gitea/gitea/routers/api/v1" + "github.com/go-gitea/gitea/routers/dev" + "github.com/go-gitea/gitea/routers/org" + "github.com/go-gitea/gitea/routers/repo" + "github.com/go-gitea/gitea/routers/user" ) var CmdWeb = cli.Command{ diff --git a/conf/app.ini b/conf/app.ini index 8110ac851d..0f6163c4f4 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -179,7 +179,7 @@ DISABLE_REGISTRATION = false REQUIRE_SIGNIN_VIEW = false ; Mail notification ENABLE_NOTIFY_MAIL = false -; More detail: https://github.com/gogits/gogs/issues/165 +; More detail: https://github.com/go-gitea/gitea/issues/165 ENABLE_REVERSE_PROXY_AUTHENTICATION = false ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false ; Enable captcha validation for registration diff --git a/docker/build.sh b/docker/build.sh index da36d7e6e0..fb98b12b87 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -20,8 +20,8 @@ go install # Build Gogs mkdir -p ${GOPATH}/src/github.com/gogits/ -ln -s /app/gogs/ ${GOPATH}/src/github.com/gogits/gogs -cd ${GOPATH}/src/github.com/gogits/gogs +ln -s /app/gogs/ ${GOPATH}/src/github.com/go-gitea/gitea +cd ${GOPATH}/src/github.com/go-gitea/gitea glide install make build TAGS="sqlite cert pam" diff --git a/glide.yaml b/glide.yaml index e761d9c2d9..1de38e02d1 100644 --- a/glide.yaml +++ b/glide.yaml @@ -1,4 +1,4 @@ -package: github.com/gogits/gogs +package: github.com/go-gitea/gitea import: - package: github.com/Unknwon/cae subpackages: diff --git a/gogs.go b/gogs.go index 2cabeeda78..0235a20883 100644 --- a/gogs.go +++ b/gogs.go @@ -13,8 +13,8 @@ import ( "github.com/urfave/cli" - "github.com/gogits/gogs/cmd" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/cmd" + "github.com/go-gitea/gitea/modules/setting" ) const APP_VER = "0.9.99.0915" diff --git a/models/access.go b/models/access.go index b3be9b5bb6..e46819f2d4 100644 --- a/models/access.go +++ b/models/access.go @@ -7,7 +7,7 @@ package models import ( "fmt" - "github.com/gogits/gogs/modules/log" + "github.com/go-gitea/gitea/modules/log" ) type AccessMode int diff --git a/models/action.go b/models/action.go index 54695417a7..d47ba87d7f 100644 --- a/models/action.go +++ b/models/action.go @@ -19,9 +19,9 @@ import ( "github.com/gogits/git-module" api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) type ActionType int diff --git a/models/admin.go b/models/admin.go index 68731a2433..3f17c2fdaa 100644 --- a/models/admin.go +++ b/models/admin.go @@ -14,9 +14,9 @@ import ( "github.com/Unknwon/com" "github.com/go-xorm/xorm" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) type NoticeType int diff --git a/models/git_diff.go b/models/git_diff.go index 107f630ff9..e3d5df2648 100644 --- a/models/git_diff.go +++ b/models/git_diff.go @@ -23,11 +23,11 @@ import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/process" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/modules/template/highlight" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/process" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/modules/template/highlight" ) type DiffLineType uint8 diff --git a/models/issue.go b/models/issue.go index 208204b076..be9eedcd2b 100644 --- a/models/issue.go +++ b/models/issue.go @@ -19,9 +19,9 @@ import ( api "github.com/gogits/go-gogs-client" gouuid "github.com/satori/go.uuid" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) var ( diff --git a/models/issue_comment.go b/models/issue_comment.go index ccfa765f92..1c615ab511 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -14,8 +14,8 @@ import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/markdown" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/markdown" ) // CommentType defines whether a comment is just a simple comment, an action (like close) or a reference. diff --git a/models/issue_label.go b/models/issue_label.go index 13bf2005f3..0b9644c249 100644 --- a/models/issue_label.go +++ b/models/issue_label.go @@ -15,7 +15,7 @@ import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/modules/base" + "github.com/go-gitea/gitea/modules/base" ) var labelColorPattern = regexp.MustCompile("#([a-fA-F0-9]{6})") diff --git a/models/issue_mail.go b/models/issue_mail.go index 02548bc3ed..8a4945c645 100644 --- a/models/issue_mail.go +++ b/models/issue_mail.go @@ -9,9 +9,9 @@ import ( "github.com/Unknwon/com" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/markdown" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/markdown" + "github.com/go-gitea/gitea/modules/setting" ) func (issue *Issue) MailSubject() string { diff --git a/models/login_source.go b/models/login_source.go index 584f3f9bc9..c9a0c73764 100644 --- a/models/login_source.go +++ b/models/login_source.go @@ -19,9 +19,9 @@ import ( "github.com/go-xorm/core" "github.com/go-xorm/xorm" - "github.com/gogits/gogs/modules/auth/ldap" - "github.com/gogits/gogs/modules/auth/pam" - "github.com/gogits/gogs/modules/log" + "github.com/go-gitea/gitea/modules/auth/ldap" + "github.com/go-gitea/gitea/modules/auth/pam" + "github.com/go-gitea/gitea/modules/log" ) type LoginType int diff --git a/models/mail.go b/models/mail.go index 85f1560b44..df5fd789bc 100644 --- a/models/mail.go +++ b/models/mail.go @@ -12,11 +12,11 @@ import ( "gopkg.in/gomail.v2" "gopkg.in/macaron.v1" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/mailer" - "github.com/gogits/gogs/modules/markdown" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/mailer" + "github.com/go-gitea/gitea/modules/markdown" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index edd07a66ec..66e5d831e8 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -20,9 +20,9 @@ import ( gouuid "github.com/satori/go.uuid" "gopkg.in/ini.v1" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) const _MIN_DB_VER = 4 diff --git a/models/models.go b/models/models.go index 0cf422a9a1..a9da884624 100644 --- a/models/models.go +++ b/models/models.go @@ -18,8 +18,8 @@ import ( "github.com/go-xorm/xorm" _ "github.com/lib/pq" - "github.com/gogits/gogs/models/migrations" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models/migrations" + "github.com/go-gitea/gitea/modules/setting" ) // Engine represents a xorm engine or session. diff --git a/models/org.go b/models/org.go index 706b188979..1fd6039b6d 100644 --- a/models/org.go +++ b/models/org.go @@ -12,8 +12,8 @@ import ( "github.com/go-xorm/xorm" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" ) var ( diff --git a/models/pull.go b/models/pull.go index 100d4db435..f582adccb0 100644 --- a/models/pull.go +++ b/models/pull.go @@ -17,10 +17,10 @@ import ( "github.com/gogits/git-module" api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/process" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/modules/sync" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/process" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/modules/sync" ) var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength) diff --git a/models/release.go b/models/release.go index c79ff222e5..2fd47813d1 100644 --- a/models/release.go +++ b/models/release.go @@ -14,7 +14,7 @@ import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/modules/process" + "github.com/go-gitea/gitea/modules/process" ) // Release represents a release of repository. diff --git a/models/repo.go b/models/repo.go index 010c9fad60..7c4e475dda 100644 --- a/models/repo.go +++ b/models/repo.go @@ -28,12 +28,12 @@ import ( git "github.com/gogits/git-module" api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/modules/bindata" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/markdown" - "github.com/gogits/gogs/modules/process" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/modules/sync" + "github.com/go-gitea/gitea/modules/bindata" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/markdown" + "github.com/go-gitea/gitea/modules/process" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/modules/sync" ) const ( diff --git a/models/repo_editor.go b/models/repo_editor.go index dfdb864a1c..33d69e35b2 100644 --- a/models/repo_editor.go +++ b/models/repo_editor.go @@ -20,9 +20,9 @@ import ( git "github.com/gogits/git-module" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/process" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/process" + "github.com/go-gitea/gitea/modules/setting" ) // ___________ .___.__ __ ___________.__.__ diff --git a/models/repo_mirror.go b/models/repo_mirror.go index 8835c40d2f..9688f579ab 100644 --- a/models/repo_mirror.go +++ b/models/repo_mirror.go @@ -13,10 +13,10 @@ import ( "github.com/go-xorm/xorm" "gopkg.in/ini.v1" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/process" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/modules/sync" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/process" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/modules/sync" ) var MirrorQueue = sync.NewUniqueQueue(setting.Repository.MirrorQueueLength) diff --git a/models/repo_test.go b/models/repo_test.go index 69d90b938f..9ab27ba619 100644 --- a/models/repo_test.go +++ b/models/repo_test.go @@ -1,11 +1,11 @@ package models_test import ( - . "github.com/gogits/gogs/models" + . "github.com/go-gitea/gitea/models" . "github.com/smartystreets/goconvey/convey" "testing" - "github.com/gogits/gogs/modules/markdown" + "github.com/go-gitea/gitea/modules/markdown" ) func TestRepo(t *testing.T) { diff --git a/models/ssh_key.go b/models/ssh_key.go index 0925b9ba76..77adce9f3b 100644 --- a/models/ssh_key.go +++ b/models/ssh_key.go @@ -22,10 +22,10 @@ import ( "github.com/go-xorm/xorm" "golang.org/x/crypto/ssh" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/process" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/process" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/models/ssh_key_test.go b/models/ssh_key_test.go index 1cda60c508..e748f381c3 100644 --- a/models/ssh_key_test.go +++ b/models/ssh_key_test.go @@ -11,7 +11,7 @@ import ( . "github.com/smartystreets/goconvey/convey" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/setting" ) func init() { diff --git a/models/token.go b/models/token.go index 2c1f64ce03..5d9053cc20 100644 --- a/models/token.go +++ b/models/token.go @@ -10,7 +10,7 @@ import ( "github.com/go-xorm/xorm" gouuid "github.com/satori/go.uuid" - "github.com/gogits/gogs/modules/base" + "github.com/go-gitea/gitea/modules/base" ) // AccessToken represents a personal access token. diff --git a/models/update.go b/models/update.go index 79d62c8f6a..80d222c5d3 100644 --- a/models/update.go +++ b/models/update.go @@ -12,7 +12,7 @@ import ( git "github.com/gogits/git-module" - "github.com/gogits/gogs/modules/log" + "github.com/go-gitea/gitea/modules/log" ) type UpdateTask struct { diff --git a/models/user.go b/models/user.go index 946c6c94d4..32242e0ea6 100644 --- a/models/user.go +++ b/models/user.go @@ -27,11 +27,11 @@ import ( "github.com/gogits/git-module" api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/modules/avatar" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/markdown" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/avatar" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/markdown" + "github.com/go-gitea/gitea/modules/setting" ) type UserType int diff --git a/models/webhook.go b/models/webhook.go index 084a7ee73f..534e69135b 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -17,10 +17,10 @@ import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/modules/httplib" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/modules/sync" + "github.com/go-gitea/gitea/modules/httplib" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/modules/sync" ) var HookQueue = sync.NewUniqueQueue(setting.Webhook.QueueLength) diff --git a/models/webhook_slack.go b/models/webhook_slack.go index edc26a78f3..9cfbaf25c2 100644 --- a/models/webhook_slack.go +++ b/models/webhook_slack.go @@ -13,7 +13,7 @@ import ( "github.com/gogits/git-module" api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/setting" ) type SlackMeta struct { diff --git a/models/wiki.go b/models/wiki.go index bc8aaf666e..f4bf7a3b7f 100644 --- a/models/wiki.go +++ b/models/wiki.go @@ -17,8 +17,8 @@ import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/modules/sync" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/modules/sync" ) var wikiWorkingPool = sync.NewExclusivePool() diff --git a/modules/auth/auth.go b/modules/auth/auth.go index 3265b326c6..c19bffe710 100644 --- a/modules/auth/auth.go +++ b/modules/auth/auth.go @@ -15,10 +15,10 @@ import ( gouuid "github.com/satori/go.uuid" "gopkg.in/macaron.v1" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) func IsAPIPath(url string) bool { diff --git a/modules/auth/ldap/ldap.go b/modules/auth/ldap/ldap.go index 55364bfcce..b110fe6234 100644 --- a/modules/auth/ldap/ldap.go +++ b/modules/auth/ldap/ldap.go @@ -13,7 +13,7 @@ import ( "gopkg.in/ldap.v2" - "github.com/gogits/gogs/modules/log" + "github.com/go-gitea/gitea/modules/log" ) type SecurityProtocol int diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index d1e28dc119..589997f151 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -12,7 +12,7 @@ import ( "github.com/go-macaron/binding" "gopkg.in/macaron.v1" - "github.com/gogits/gogs/models" + "github.com/go-gitea/gitea/models" ) // _______________________________________ _________.______________________ _______________.___. diff --git a/modules/base/tool.go b/modules/base/tool.go index 52d1e178db..8cc90c0b9a 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -26,8 +26,8 @@ import ( "github.com/gogits/chardet" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) // EncodeMD5 encodes string to md5 hex value. diff --git a/modules/context/api.go b/modules/context/api.go index 770daa3ad3..62be56d320 100644 --- a/modules/context/api.go +++ b/modules/context/api.go @@ -11,9 +11,9 @@ import ( "github.com/Unknwon/paginater" "gopkg.in/macaron.v1" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) type APIContext struct { diff --git a/modules/context/api_org.go b/modules/context/api_org.go index ecf60a1905..c0cdf7b3ab 100644 --- a/modules/context/api_org.go +++ b/modules/context/api_org.go @@ -5,7 +5,7 @@ package context import ( - "github.com/gogits/gogs/models" + "github.com/go-gitea/gitea/models" ) type APIOrganization struct { diff --git a/modules/context/auth.go b/modules/context/auth.go index 746771791e..807183e452 100644 --- a/modules/context/auth.go +++ b/modules/context/auth.go @@ -10,8 +10,8 @@ import ( "github.com/go-macaron/csrf" "gopkg.in/macaron.v1" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/setting" ) type ToggleOptions struct { diff --git a/modules/context/context.go b/modules/context/context.go index ac46bb38fb..82e3cbf27b 100644 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -18,11 +18,11 @@ import ( "github.com/go-macaron/session" "gopkg.in/macaron.v1" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) // Context represents context of a request. diff --git a/modules/context/org.go b/modules/context/org.go index 24ef5ef6a8..880554a4b1 100644 --- a/modules/context/org.go +++ b/modules/context/org.go @@ -9,8 +9,8 @@ import ( "gopkg.in/macaron.v1" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/setting" ) type Organization struct { diff --git a/modules/context/repo.go b/modules/context/repo.go index f078523e75..e4c2c597c5 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -16,9 +16,9 @@ import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) type PullRequest struct { diff --git a/modules/cron/cron.go b/modules/cron/cron.go index 7695b974bb..d0c769ca99 100644 --- a/modules/cron/cron.go +++ b/modules/cron/cron.go @@ -9,9 +9,9 @@ import ( "github.com/gogits/cron" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) var c = cron.New() diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go index 32f25f5b57..098e136721 100644 --- a/modules/mailer/mailer.go +++ b/modules/mailer/mailer.go @@ -17,8 +17,8 @@ import ( "github.com/jaytaylor/html2text" "gopkg.in/gomail.v2" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) type Message struct { diff --git a/modules/markdown/markdown.go b/modules/markdown/markdown.go index 6724b248ad..100a4df10f 100644 --- a/modules/markdown/markdown.go +++ b/modules/markdown/markdown.go @@ -18,8 +18,8 @@ import ( "github.com/russross/blackfriday" "golang.org/x/net/html" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/modules/markdown/markdown_test.go b/modules/markdown/markdown_test.go index d4071ba356..9de8f11dc4 100644 --- a/modules/markdown/markdown_test.go +++ b/modules/markdown/markdown_test.go @@ -1,12 +1,12 @@ package markdown_test import ( - . "github.com/gogits/gogs/modules/markdown" + . "github.com/go-gitea/gitea/modules/markdown" . "github.com/smartystreets/goconvey/convey" "testing" "bytes" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/setting" "github.com/russross/blackfriday" ) diff --git a/modules/process/manager.go b/modules/process/manager.go index 1f98ca7cfb..b259a27783 100644 --- a/modules/process/manager.go +++ b/modules/process/manager.go @@ -11,7 +11,7 @@ import ( "os/exec" "time" - "github.com/gogits/gogs/modules/log" + "github.com/go-gitea/gitea/modules/log" ) var ( diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 7696c09127..102d758dd6 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -25,9 +25,9 @@ import ( "strk.kbt.io/projects/go/libravatar" "gopkg.in/ini.v1" - "github.com/gogits/gogs/modules/bindata" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/user" + "github.com/go-gitea/gitea/modules/bindata" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/user" ) type Scheme string diff --git a/modules/ssh/ssh.go b/modules/ssh/ssh.go index ceecc9bbfc..b6dc1d15a4 100644 --- a/modules/ssh/ssh.go +++ b/modules/ssh/ssh.go @@ -17,9 +17,9 @@ import ( "github.com/Unknwon/com" "golang.org/x/crypto/ssh" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) func cleanCommand(cmd string) string { diff --git a/modules/template/highlight/highlight.go b/modules/template/highlight/highlight.go index bbf08e0436..360ab6a73e 100644 --- a/modules/template/highlight/highlight.go +++ b/modules/template/highlight/highlight.go @@ -8,7 +8,7 @@ import ( "path" "strings" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/setting" ) var ( diff --git a/modules/template/template.go b/modules/template/template.go index 3a6eb042bb..3fe49fa380 100644 --- a/modules/template/template.go +++ b/modules/template/template.go @@ -19,11 +19,11 @@ import ( "golang.org/x/text/transform" "gopkg.in/editorconfig/editorconfig-core-go.v1" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/markdown" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/markdown" + "github.com/go-gitea/gitea/modules/setting" ) func NewFuncMap() []template.FuncMap { diff --git a/routers/admin/admin.go b/routers/admin/admin.go index 1b22251e55..843860306b 100644 --- a/routers/admin/admin.go +++ b/routers/admin/admin.go @@ -13,12 +13,12 @@ import ( "github.com/Unknwon/com" "gopkg.in/macaron.v1" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/cron" - "github.com/gogits/gogs/modules/process" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/cron" + "github.com/go-gitea/gitea/modules/process" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/admin/auths.go b/routers/admin/auths.go index df2512aa06..dcd9a225a7 100644 --- a/routers/admin/auths.go +++ b/routers/admin/auths.go @@ -10,13 +10,13 @@ import ( "github.com/Unknwon/com" "github.com/go-xorm/core" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/auth/ldap" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/auth/ldap" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/admin/notice.go b/routers/admin/notice.go index 5d4e807ee4..80b7aa2945 100644 --- a/routers/admin/notice.go +++ b/routers/admin/notice.go @@ -8,11 +8,11 @@ import ( "github.com/Unknwon/com" "github.com/Unknwon/paginater" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/admin/orgs.go b/routers/admin/orgs.go index 3200072107..efda1e5165 100644 --- a/routers/admin/orgs.go +++ b/routers/admin/orgs.go @@ -5,11 +5,11 @@ package admin import ( - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/routers" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/routers" ) const ( diff --git a/routers/admin/repos.go b/routers/admin/repos.go index 5eacb5ed38..2c32070ed3 100644 --- a/routers/admin/repos.go +++ b/routers/admin/repos.go @@ -5,12 +5,12 @@ package admin import ( - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/routers" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/routers" ) const ( diff --git a/routers/admin/users.go b/routers/admin/users.go index eb91ea2fdf..0eaa3c995c 100644 --- a/routers/admin/users.go +++ b/routers/admin/users.go @@ -9,13 +9,13 @@ import ( "github.com/Unknwon/com" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/routers" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/routers" ) const ( diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go index e82fc3ed66..5e594e1e5f 100644 --- a/routers/api/v1/admin/org.go +++ b/routers/api/v1/admin/org.go @@ -7,10 +7,10 @@ package admin import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/routers/api/v1/convert" - "github.com/gogits/gogs/routers/api/v1/user" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/routers/api/v1/convert" + "github.com/go-gitea/gitea/routers/api/v1/user" ) // https://github.com/gogits/go-gogs-client/wiki/Administration-Organizations#create-a-new-organization diff --git a/routers/api/v1/admin/org_repo.go b/routers/api/v1/admin/org_repo.go index 71c84ad0ef..01835fa2ab 100644 --- a/routers/api/v1/admin/org_repo.go +++ b/routers/api/v1/admin/org_repo.go @@ -5,8 +5,8 @@ package admin import ( - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" ) func GetRepositoryByParams(ctx *context.APIContext) *models.Repository { diff --git a/routers/api/v1/admin/org_team.go b/routers/api/v1/admin/org_team.go index c0f3487e11..7a28d9566e 100644 --- a/routers/api/v1/admin/org_team.go +++ b/routers/api/v1/admin/org_team.go @@ -7,10 +7,10 @@ package admin import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/routers/api/v1/convert" - "github.com/gogits/gogs/routers/api/v1/user" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/routers/api/v1/convert" + "github.com/go-gitea/gitea/routers/api/v1/user" ) func CreateTeam(ctx *context.APIContext, form api.CreateTeamOption) { diff --git a/routers/api/v1/admin/repo.go b/routers/api/v1/admin/repo.go index 0f0c3862de..e673447c4b 100644 --- a/routers/api/v1/admin/repo.go +++ b/routers/api/v1/admin/repo.go @@ -7,9 +7,9 @@ package admin import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/routers/api/v1/repo" - "github.com/gogits/gogs/routers/api/v1/user" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/routers/api/v1/repo" + "github.com/go-gitea/gitea/routers/api/v1/user" ) // https://github.com/gogits/go-gogs-client/wiki/Administration-Repositories#create-a-new-repository diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go index 6d38dee128..b25c687d2f 100644 --- a/routers/api/v1/admin/user.go +++ b/routers/api/v1/admin/user.go @@ -7,11 +7,11 @@ package admin import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/routers/api/v1/user" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/routers/api/v1/user" ) func parseLoginSource(ctx *context.APIContext, u *models.User, sourceID int64, loginName string) { diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 0591cddb86..2d468eae5f 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -12,14 +12,14 @@ import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/routers/api/v1/admin" - "github.com/gogits/gogs/routers/api/v1/misc" - "github.com/gogits/gogs/routers/api/v1/org" - "github.com/gogits/gogs/routers/api/v1/repo" - "github.com/gogits/gogs/routers/api/v1/user" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/routers/api/v1/admin" + "github.com/go-gitea/gitea/routers/api/v1/misc" + "github.com/go-gitea/gitea/routers/api/v1/org" + "github.com/go-gitea/gitea/routers/api/v1/repo" + "github.com/go-gitea/gitea/routers/api/v1/user" ) func repoAssignment() macaron.Handler { diff --git a/routers/api/v1/convert/convert.go b/routers/api/v1/convert/convert.go index fcadb51fd4..49c1941a46 100644 --- a/routers/api/v1/convert/convert.go +++ b/routers/api/v1/convert/convert.go @@ -12,7 +12,7 @@ import ( "github.com/gogits/git-module" api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" + "github.com/go-gitea/gitea/models" ) func ToEmail(email *models.EmailAddress) *api.Email { diff --git a/routers/api/v1/convert/utils.go b/routers/api/v1/convert/utils.go index f34fb3d2b6..0062157c84 100644 --- a/routers/api/v1/convert/utils.go +++ b/routers/api/v1/convert/utils.go @@ -5,7 +5,7 @@ package convert import ( - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/modules/setting" ) // ToCorrectPageSize makes sure page size is in allowed range. diff --git a/routers/api/v1/misc/markdown.go b/routers/api/v1/misc/markdown.go index 64895db072..8ca5cde953 100644 --- a/routers/api/v1/misc/markdown.go +++ b/routers/api/v1/misc/markdown.go @@ -7,8 +7,8 @@ package misc import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/markdown" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/markdown" ) // https://github.com/gogits/go-gogs-client/wiki/Miscellaneous#render-an-arbitrary-markdown-document diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go index 7b2cfcd1dc..3f26f5510d 100644 --- a/routers/api/v1/org/org.go +++ b/routers/api/v1/org/org.go @@ -7,10 +7,10 @@ package org import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/routers/api/v1/convert" - "github.com/gogits/gogs/routers/api/v1/user" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/routers/api/v1/convert" + "github.com/go-gitea/gitea/routers/api/v1/user" ) func listUserOrgs(ctx *context.APIContext, u *models.User, all bool) { diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go index 70f8d84206..0c87ce26b9 100644 --- a/routers/api/v1/org/team.go +++ b/routers/api/v1/org/team.go @@ -7,8 +7,8 @@ package org import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/routers/api/v1/convert" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/routers/api/v1/convert" ) func ListTeams(ctx *context.APIContext) { diff --git a/routers/api/v1/repo/branch.go b/routers/api/v1/repo/branch.go index a141921eac..f4327378dc 100644 --- a/routers/api/v1/repo/branch.go +++ b/routers/api/v1/repo/branch.go @@ -7,8 +7,8 @@ package repo import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/routers/api/v1/convert" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/routers/api/v1/convert" ) // https://github.com/gogits/go-gogs-client/wiki/Repositories#get-branch diff --git a/routers/api/v1/repo/collaborators.go b/routers/api/v1/repo/collaborators.go index e14875cbec..cfb2118905 100644 --- a/routers/api/v1/repo/collaborators.go +++ b/routers/api/v1/repo/collaborators.go @@ -7,8 +7,8 @@ package repo import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" ) func AddCollaborator(ctx *context.APIContext, form api.AddCollaboratorOption) { diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go index ee9d15a322..0dabea8b96 100644 --- a/routers/api/v1/repo/file.go +++ b/routers/api/v1/repo/file.go @@ -7,9 +7,9 @@ package repo import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/routers/repo" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/routers/repo" ) // https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-raw-content diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go index 3b36055db5..315172199b 100644 --- a/routers/api/v1/repo/hook.go +++ b/routers/api/v1/repo/hook.go @@ -11,9 +11,9 @@ import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/routers/api/v1/convert" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/routers/api/v1/convert" ) // https://github.com/gogits/go-gogs-client/wiki/Repositories#list-hooks diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index fe967ae0a5..9193c02106 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -10,9 +10,9 @@ import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/setting" ) func ListIssues(ctx *context.APIContext) { diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go index 3957600b7b..71ce19fe33 100644 --- a/routers/api/v1/repo/issue_comment.go +++ b/routers/api/v1/repo/issue_comment.go @@ -8,8 +8,8 @@ import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" ) func ListIssueComments(ctx *context.APIContext) { diff --git a/routers/api/v1/repo/issue_label.go b/routers/api/v1/repo/issue_label.go index f1eed2112a..0d520a4f93 100644 --- a/routers/api/v1/repo/issue_label.go +++ b/routers/api/v1/repo/issue_label.go @@ -7,8 +7,8 @@ package repo import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" ) func ListIssueLabels(ctx *context.APIContext) { diff --git a/routers/api/v1/repo/key.go b/routers/api/v1/repo/key.go index 563dac2615..ec60bc516b 100644 --- a/routers/api/v1/repo/key.go +++ b/routers/api/v1/repo/key.go @@ -9,10 +9,10 @@ import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/routers/api/v1/convert" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/routers/api/v1/convert" ) func composeDeployKeysAPILink(repoPath string) string { diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go index 705206cef7..efa68b0a1d 100644 --- a/routers/api/v1/repo/label.go +++ b/routers/api/v1/repo/label.go @@ -7,8 +7,8 @@ package repo import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" ) func ListLabels(ctx *context.APIContext) { diff --git a/routers/api/v1/repo/milestone.go b/routers/api/v1/repo/milestone.go index 652ccbb5c6..8913190f6d 100644 --- a/routers/api/v1/repo/milestone.go +++ b/routers/api/v1/repo/milestone.go @@ -9,8 +9,8 @@ import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" ) func ListMilestones(ctx *context.APIContext) { diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index cc75f5bf4e..e6890ca33d 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -9,12 +9,12 @@ import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/routers/api/v1/convert" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/routers/api/v1/convert" ) // https://github.com/gogits/go-gogs-client/wiki/Repositories#search-repositories diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go index 165f6eb8ec..90b571dbba 100644 --- a/routers/api/v1/user/app.go +++ b/routers/api/v1/user/app.go @@ -7,8 +7,8 @@ package user import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" ) // https://github.com/gogits/go-gogs-client/wiki/Users#list-access-tokens-for-a-user diff --git a/routers/api/v1/user/email.go b/routers/api/v1/user/email.go index 1f615cdff3..1643f2b0ae 100644 --- a/routers/api/v1/user/email.go +++ b/routers/api/v1/user/email.go @@ -7,10 +7,10 @@ package user import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/routers/api/v1/convert" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/routers/api/v1/convert" ) // https://github.com/gogits/go-gogs-client/wiki/Users-Emails#list-email-addresses-for-a-user diff --git a/routers/api/v1/user/follower.go b/routers/api/v1/user/follower.go index 58a162444b..0f0e7fcec3 100644 --- a/routers/api/v1/user/follower.go +++ b/routers/api/v1/user/follower.go @@ -7,8 +7,8 @@ package user import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" ) func responseApiUsers(ctx *context.APIContext, users []*models.User) { diff --git a/routers/api/v1/user/key.go b/routers/api/v1/user/key.go index 3e407feff8..ba4c1e1ee1 100644 --- a/routers/api/v1/user/key.go +++ b/routers/api/v1/user/key.go @@ -7,11 +7,11 @@ package user import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/routers/api/v1/convert" - "github.com/gogits/gogs/routers/api/v1/repo" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/routers/api/v1/convert" + "github.com/go-gitea/gitea/routers/api/v1/repo" ) func GetUserByParamsName(ctx *context.APIContext, name string) *models.User { diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index b526af5da7..6258662b68 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.go @@ -9,8 +9,8 @@ import ( api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/context" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/context" ) func Search(ctx *context.APIContext) { diff --git a/routers/dev/template.go b/routers/dev/template.go index ee81f3804a..515b2e3bd1 100644 --- a/routers/dev/template.go +++ b/routers/dev/template.go @@ -5,10 +5,10 @@ package dev import ( - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/setting" ) func TemplatePreview(ctx *context.Context) { diff --git a/routers/home.go b/routers/home.go index 22a131a626..10e75269b8 100644 --- a/routers/home.go +++ b/routers/home.go @@ -9,11 +9,11 @@ import ( "github.com/Unknwon/paginater" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/routers/user" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/routers/user" ) const ( diff --git a/routers/install.go b/routers/install.go index 651f2f2f5d..0118791635 100644 --- a/routers/install.go +++ b/routers/install.go @@ -19,18 +19,18 @@ import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/cron" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/mailer" - "github.com/gogits/gogs/modules/markdown" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/modules/ssh" - "github.com/gogits/gogs/modules/template/highlight" - "github.com/gogits/gogs/modules/user" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/cron" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/mailer" + "github.com/go-gitea/gitea/modules/markdown" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/modules/ssh" + "github.com/go-gitea/gitea/modules/template/highlight" + "github.com/go-gitea/gitea/modules/user" ) const ( diff --git a/routers/org/members.go b/routers/org/members.go index 15998aa274..e3aab7481e 100644 --- a/routers/org/members.go +++ b/routers/org/members.go @@ -7,11 +7,11 @@ package org import ( "github.com/Unknwon/com" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/org/org.go b/routers/org/org.go index 1a7800d955..156ccb3ee6 100644 --- a/routers/org/org.go +++ b/routers/org/org.go @@ -5,12 +5,12 @@ package org import ( - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/org/setting.go b/routers/org/setting.go index 14681e4c59..2169779232 100644 --- a/routers/org/setting.go +++ b/routers/org/setting.go @@ -7,13 +7,13 @@ package org import ( "strings" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/routers/user" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/routers/user" ) const ( diff --git a/routers/org/teams.go b/routers/org/teams.go index 3d0456423a..c6636aa836 100644 --- a/routers/org/teams.go +++ b/routers/org/teams.go @@ -9,11 +9,11 @@ import ( "github.com/Unknwon/com" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" ) const ( diff --git a/routers/repo/branch.go b/routers/repo/branch.go index 00f30b0f13..139b3fb237 100644 --- a/routers/repo/branch.go +++ b/routers/repo/branch.go @@ -5,8 +5,8 @@ package repo import ( - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" ) const ( diff --git a/routers/repo/commit.go b/routers/repo/commit.go index b9ced49ed2..a8e96f0e5e 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -12,10 +12,10 @@ import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/repo/download.go b/routers/repo/download.go index faa30ac9d7..c1f8142cd8 100644 --- a/routers/repo/download.go +++ b/routers/repo/download.go @@ -10,8 +10,8 @@ import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" ) func ServeData(ctx *context.Context, name string, reader io.Reader) error { diff --git a/routers/repo/editor.go b/routers/repo/editor.go index 428a25d568..641cadcb92 100644 --- a/routers/repo/editor.go +++ b/routers/repo/editor.go @@ -12,13 +12,13 @@ import ( "strings" "github.com/gogits/git-module" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/modules/template" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/modules/template" ) const ( diff --git a/routers/repo/http.go b/routers/repo/http.go index 80afcec410..a97593f26e 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -22,11 +22,11 @@ import ( git "github.com/gogits/git-module" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) func HTTP(ctx *context.Context) { diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 21d4c7d964..76d81d0e76 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -17,13 +17,13 @@ import ( "github.com/Unknwon/com" "github.com/Unknwon/paginater" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/markdown" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/markdown" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/repo/pull.go b/routers/repo/pull.go index d5d9bc9b07..d345dbee06 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -13,12 +13,12 @@ import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/repo/release.go b/routers/repo/release.go index d612a1cec5..9d87f0967e 100644 --- a/routers/repo/release.go +++ b/routers/repo/release.go @@ -7,12 +7,12 @@ package repo import ( "fmt" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/markdown" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/markdown" ) const ( diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 74ee3c4ff8..6816124721 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -14,12 +14,12 @@ import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/repo/setting.go b/routers/repo/setting.go index 80b44ad220..4bcc470e99 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -10,12 +10,12 @@ import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/repo/view.go b/routers/repo/view.go index c04ef1ee3f..3bb551f2e0 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -16,14 +16,14 @@ import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/markdown" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/modules/template" - "github.com/gogits/gogs/modules/template/highlight" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/markdown" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/modules/template" + "github.com/go-gitea/gitea/modules/template/highlight" ) const ( diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go index d3605b2a42..0c2f7c383e 100644 --- a/routers/repo/webhook.go +++ b/routers/repo/webhook.go @@ -15,11 +15,11 @@ import ( git "github.com/gogits/git-module" api "github.com/gogits/go-gogs-client" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/repo/wiki.go b/routers/repo/wiki.go index a20bea25df..4043a96bee 100644 --- a/routers/repo/wiki.go +++ b/routers/repo/wiki.go @@ -11,11 +11,11 @@ import ( "github.com/gogits/git-module" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/markdown" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/markdown" ) const ( diff --git a/routers/user/auth.go b/routers/user/auth.go index 7117f1ec7f..b50a360561 100644 --- a/routers/user/auth.go +++ b/routers/user/auth.go @@ -10,12 +10,12 @@ import ( "github.com/go-macaron/captcha" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/user/home.go b/routers/user/home.go index 83b4b26166..fb079546e7 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -11,10 +11,10 @@ import ( "github.com/Unknwon/com" "github.com/Unknwon/paginater" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/routers/user/profile.go b/routers/user/profile.go index 363705dd01..6c3f51a9da 100644 --- a/routers/user/profile.go +++ b/routers/user/profile.go @@ -11,11 +11,11 @@ import ( "github.com/Unknwon/paginater" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/setting" - "github.com/gogits/gogs/routers/repo" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/setting" + "github.com/go-gitea/gitea/routers/repo" ) const ( diff --git a/routers/user/setting.go b/routers/user/setting.go index 10e8fd02b6..35763ab48d 100644 --- a/routers/user/setting.go +++ b/routers/user/setting.go @@ -12,12 +12,12 @@ import ( "github.com/Unknwon/com" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/context" - "github.com/gogits/gogs/modules/log" - "github.com/gogits/gogs/modules/setting" + "github.com/go-gitea/gitea/models" + "github.com/go-gitea/gitea/modules/auth" + "github.com/go-gitea/gitea/modules/base" + "github.com/go-gitea/gitea/modules/context" + "github.com/go-gitea/gitea/modules/log" + "github.com/go-gitea/gitea/modules/setting" ) const ( diff --git a/scripts/supervisor/gogs b/scripts/supervisor/gogs index 51531fb79d..39323521aa 100644 --- a/scripts/supervisor/gogs +++ b/scripts/supervisor/gogs @@ -1,6 +1,6 @@ [program:gogs] -directory=/home/git/go/src/github.com/gogits/gogs/ -command=/home/git/go/src/github.com/gogits/gogs/gogs web +directory=/home/git/go/src/github.com/go-gitea/gitea/ +command=/home/git/go/src/github.com/go-gitea/gitea/gogs web autostart=true autorestart=true startsecs=10 diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 3f0190528d..7b5398633d 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -11,7 +11,7 @@
@@ -46,7 +46,7 @@ Quelloffen

- Der komplette Code befindet sich auf GitHub! Unterstütze uns bei der Verbesserung dieses Projekts. Trau dich! + Der komplette Code befindet sich auf GitHub! Unterstütze uns bei der Verbesserung dieses Projekts. Trau dich!

@@ -57,7 +57,7 @@ 易安装

- 您除了可以根据操作系统平台通过 二进制运行,还可以通过 DockerVagrant,以及 包管理 安装。 + 您除了可以根据操作系统平台通过 二进制运行,还可以通过 DockerVagrant,以及 包管理 安装。

@@ -83,7 +83,7 @@ 开源化

- 所有的代码都开源在 GitHub 上,赶快加入我们来共同发展这个伟大的项目!还等什么?成为贡献者吧! + 所有的代码都开源在 GitHub 上,赶快加入我们来共同发展这个伟大的项目!还等什么?成为贡献者吧!

@@ -95,7 +95,7 @@

Il suffit de lancer l'exécutable correspondant à votre système. - Ou d'utiliser Gogs avec Docker ou + Ou d'utiliser Gogs avec Docker ou Vagrant ou en l'installant depuis un package.

@@ -123,7 +123,7 @@ Open Source

- Toutes les sources sont sur GitHub ! Rejoignez-nous et contribuez à rendre ce projet encore meilleur. + Toutes les sources sont sur GitHub ! Rejoignez-nous et contribuez à rendre ce projet encore meilleur.

@@ -134,7 +134,7 @@ Fácil de instalar

- Simplemente arranca el binario para tu plataforma. O usa Gogs con Docker o Vagrant, o utilice el paquete. + Simplemente arranca el binario para tu plataforma. O usa Gogs con Docker o Vagrant, o utilice el paquete.

@@ -160,7 +160,7 @@ Open Source

- ¡Está todo en GitHub! Uniros contribuyendo a hacer este proyecto todavía mejor. ¡No seas tímido y colabora! + ¡Está todo en GitHub! Uniros contribuyendo a hacer este proyecto todavía mejor. ¡No seas tímido y colabora!

@@ -171,7 +171,7 @@ Fácil de instalar

- Simplesmente rode o executável para o seu sistema operacional. Ou obtenha o Gogs com o Docker ou Vagrant, ou baixe o pacote. + Simplesmente rode o executável para o seu sistema operacional. Ou obtenha o Gogs com o Docker ou Vagrant, ou baixe o pacote.

@@ -197,7 +197,7 @@ Código aberto

- Está tudo no GitHub! Contribua e torne este projeto ainda melhor. Não tenha vergonha de contribuir! + Está tudo no GitHub! Contribua e torne este projeto ainda melhor. Não tenha vergonha de contribuir!

@@ -208,7 +208,7 @@ Простой в установке

- Просто запустите исполняемый файл для вашей платформы. Изпользуйте Gogs с Docker или Vagrant, или загрузите пакет. + Просто запустите исполняемый файл для вашей платформы. Изпользуйте Gogs с Docker или Vagrant, или загрузите пакет.

@@ -234,7 +234,7 @@ Открытый исходный код

- Всё это на GitHub! Присоединяйтесь к нам, внося вклад, чтобы сделать этот проект еще лучше. Не бойтесь помогать! + Всё это на GitHub! Присоединяйтесь к нам, внося вклад, чтобы сделать этот проект еще лучше. Не бойтесь помогать!

@@ -245,7 +245,7 @@ Easy to install

- Simply run the binary for your platform. Or ship Gogs with Docker or Vagrant, or get it packaged. + Simply run the binary for your platform. Or ship Gogs with Docker or Vagrant, or get it packaged.

@@ -271,7 +271,7 @@ Open Source

- It's all on GitHub! Join us by contributing to make this project even better. Don't be shy to be a contributor! + It's all on GitHub! Join us by contributing to make this project even better. Don't be shy to be a contributor!

diff --git a/templates/install.tmpl b/templates/install.tmpl index c8c2cbd05a..2f1de90d8e 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -8,7 +8,7 @@
{{template "base/alert" .}} -

{{.i18n.Tr "install.docker_helper" "https://github.com/gogits/gogs/tree/master/docker" | Safe}}

+

{{.i18n.Tr "install.docker_helper" "https://github.com/go-gitea/gitea/tree/master/docker" | Safe}}

diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl index 776f4fb78e..fa3d340dd5 100644 --- a/templates/status/404.tmpl +++ b/templates/status/404.tmpl @@ -4,6 +4,6 @@

{{if .ShowFooterVersion}}

Application Version: {{AppVer}}

{{end}} -

If you think this is an error, please open an issue on GitHub.

+

If you think this is an error, please open an issue on GitHub.

{{template "base/footer" .}} From 42a744d9e61168765f97884a8efec13cd3fedff7 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 3 Nov 2016 15:50:44 +0100 Subject: [PATCH 4/4] Badges and travis testing (#40) * Added badges to the README * Restructured the travis config --- .travis.yml | 30 +++++++++++++++++------------- README.md | 10 ++++++++-- README_ZH.md | 10 ++++++++-- 3 files changed, 33 insertions(+), 17 deletions(-) diff --git a/.travis.yml b/.travis.yml index 82387935a7..77093af494 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,30 +1,34 @@ language: go go: - - 1.4 - - 1.5 - 1.6 - 1.7 before_install: - sudo apt-get update -qq - sudo apt-get install -y libpam-dev - - go get github.com/msteinert/pam + - go get github.com/msteinert/pam install: - go get -t -v ./... -script: - - go build -v -tags "pam" - - go test -v -cover -race ./... +script: | + go build -v -tags "pam" + + for pkg in $(go list ./... | grep -v /vendor/) + do + go test -v -race -cover -coverprofile $GOPATH/src/$pkg/coverage.out $pkg || exit 1 + done + +after_success: + - bash <(curl -s https://codecov.io/bash) notifications: - email: - - u@gogs.io - slack: gophercn:o5pSanyTeNhnfYc3QnG0X7Wx webhooks: + on_success: change + on_failure: always + on_start: never urls: - - https://webhooks.gitter.im/e/b590f8e03882f7aedc3e - on_success: change - on_failure: always - on_start: never + - https://webhooks.gitter.im/e/ee6b822f3cf54c98e70c + - https://webhooks.gitter.im/e/87428658ef177ce8a7e4 + - https://webhooks.gitter.im/e/a1d2b69804dfda72187e diff --git a/README.md b/README.md index 7eaeea9e9e..bfd30ba006 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ -Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?branch=master)](https://travis-ci.org/gogits/gogs) [![Crowdin](https://d322cqt584bo4o.cloudfront.net/gogs/localized.svg)](https://crowdin.com/project/gogs) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gogits/gogs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -===================== +# Gitea - Git with a cup of tea + +[![Build Status](https://travis-ci.org/go-gitea/gitea.svg?branch=master)](https://travis-ci.org/go-gitea/gitea) +[![codecov](https://codecov.io/gh/go-gitea/gitea/branch/master/graph/badge.svg)](https://codecov.io/gh/go-gitea/gitea) +[![Go Report Card](https://goreportcard.com/badge/github.com/go-gitea/gitea)](https://goreportcard.com/report/github.com/go-gitea/gitea) +[![GoDoc](https://godoc.org/github.com/go-gitea/gitea?status.svg)](https://godoc.org/github.com/go-gitea/gitea) +[![](https://images.microbadger.com/badges/image/gitea/gitea.svg)](http://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com") +[![Join the chat at https://gitter.im/go-gitea/gitea](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-gitea/gitea?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ![](https://github.com/go-gitea/gitea/blob/master/public/img/gogs-large-resize.png?raw=true) diff --git a/README_ZH.md b/README_ZH.md index c3605da594..bd61851dff 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -1,5 +1,11 @@ -Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?branch=master)](https://travis-ci.org/gogits/gogs) -===================== +# Gitea - Git with a cup of tea + +[![Build Status](https://travis-ci.org/go-gitea/gitea.svg?branch=master)](https://travis-ci.org/go-gitea/gitea) +[![codecov](https://codecov.io/gh/go-gitea/gitea/branch/master/graph/badge.svg)](https://codecov.io/gh/go-gitea/gitea) +[![Go Report Card](https://goreportcard.com/badge/github.com/go-gitea/gitea)](https://goreportcard.com/report/github.com/go-gitea/gitea) +[![GoDoc](https://godoc.org/github.com/go-gitea/gitea?status.svg)](https://godoc.org/github.com/go-gitea/gitea) +[![](https://images.microbadger.com/badges/image/gitea/gitea.svg)](http://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com") +[![Join the chat at https://gitter.im/go-gitea/gitea](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-gitea/gitea?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) Gogs (Go Git Service) 是一款极易搭建的自助 Git 服务。