]> source.dussan.org Git - gitea.git/commit
Template Repositories (#8768)
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>
Mon, 11 Nov 2019 15:15:29 +0000 (09:15 -0600)
committerLunny Xiao <xiaolunwen@gmail.com>
Mon, 11 Nov 2019 15:15:29 +0000 (23:15 +0800)
commit74a6add4d90beb8133bcbf8ca6b43de35e0aa983
tree868e452d41d71094c5b2cccce67f4211fd14e77b
parent74bb292fe3f4c02fc1dc5f32622c74d820cadd78
Template Repositories (#8768)

* Start work on templates

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Continue work

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix IsTemplate vs IsGenerated

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix tabs vs spaces

* Tabs vs Spaces

* Add templates to API & start adding tests

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix integration tests

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove unused User

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move template tests to existing repos

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Minor re-check updates and cleanup

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* make fmt

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Test cleanup

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix optionalbool

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* make fmt

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Test fixes and icon change

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add new user and repo for tests

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix tests (finally)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update meta repo with env variables

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move generation to create page

Combine with repo create template
Modify API search to prioritize owner for repo

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix tests and coverage

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix swagger and JS lint

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix API searching for own private repos

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Change wording

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix repo search test. User had a private repo that didn't show up

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Another search test fix

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Clarify git content

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Feedback updates

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add topics WIP

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Finish adding topics

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update locale

Signed-off-by: jolheiser <john.olheiser@gmail.com>
58 files changed:
integrations/api_repo_test.go
integrations/gitea-repositories-meta/user27/template1.git/HEAD [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/config [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/description [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/applypatch-msg.sample [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/commit-msg.sample [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/fsmonitor-watchman.sample [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/post-receive [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/post-receive.d/gitea [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/post-update.sample [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/pre-applypatch.sample [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/pre-commit.sample [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/pre-push.sample [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/pre-rebase.sample [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/pre-receive [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/pre-receive.d/gitea [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/pre-receive.sample [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/prepare-commit-msg.sample [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/update [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/update.d/gitea [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/hooks/update.sample [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/info/exclude [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/info/refs [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/objects/47/34b1f84a367fa1b81c31aa4234a5bad11cafa3 [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/objects/4d/31f3a12656368a8d9180f431d40d0fc408be2d [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/objects/51/f84af231345367fd5d61ceb89efb3b6d757061 [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/objects/79/3aa682b06ae032641abf70c5dfeade28c07c52 [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/objects/aa/cbdfe9e1c4b47f60abe81849045fa4e96f1d75 [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/objects/dd/392e939ea4936b2459219c9c9a1f25547ccaeb [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/objects/f2/8eeca3df7614fd4f10c1030f13feb418ef3c6f [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/objects/info/packs [new file with mode: 0644]
integrations/gitea-repositories-meta/user27/template1.git/refs/heads/master [new file with mode: 0644]
integrations/integration_test.go
integrations/repo_generate_test.go [new file with mode: 0644]
models/fixtures/repo_unit.yml
models/fixtures/repository.yml
models/fixtures/user.yml
models/migrations/migrations.go
models/migrations/v107.go [new file with mode: 0644]
models/repo.go
models/repo_list.go
models/repo_list_test.go
models/user_test.go
modules/auth/repo_form.go
modules/context/repo.go
modules/structs/repo.go
options/locale/locale_en-US.ini
public/js/index.js
routers/api/v1/repo/repo.go
routers/repo/pull.go
routers/repo/repo.go
routers/repo/setting.go
services/repository/repository.go
templates/repo/create.tmpl
templates/repo/header.tmpl
templates/repo/home.tmpl
templates/repo/settings/options.tmpl
templates/swagger/v1_json.tmpl