]> source.dussan.org Git - gitea.git/log
gitea.git
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 14 Oct 2019 21:39:15 +0000 (21:39 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd pagination to commit graph page (#8360)
jaqra [Mon, 14 Oct 2019 21:38:35 +0000 (00:38 +0300)]
Add pagination to commit graph page (#8360)

Fixes #8308

5 years agoStarting v1.11.0 development v1.11.0-dev
Lauris BH [Mon, 14 Oct 2019 21:02:16 +0000 (00:02 +0300)]
Starting v1.11.0 development

5 years agoChangelog for 1.10.0-RC1 (#8510) v1.10.0-rc1
6543 [Mon, 14 Oct 2019 19:34:21 +0000 (21:34 +0200)]
Changelog for 1.10.0-RC1 (#8510)

* Changelog for 1.10.0
* clean up | remove TESTING and DOCS sction | short BUILD section

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
Co-Authored-By: zeripath <art27@cantab.net>
5 years agoFix errors in create org UI regarding team access permission. (#8506)
David Svantesson [Mon, 14 Oct 2019 18:20:42 +0000 (20:20 +0200)]
Fix errors in create org UI regarding team access permission. (#8506)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 14 Oct 2019 17:46:01 +0000 (17:46 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd nofollow to sign in links (#8509)
guillep2k [Mon, 14 Oct 2019 17:43:48 +0000 (14:43 -0300)]
Add nofollow to sign in links (#8509)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 14 Oct 2019 15:45:33 +0000 (15:45 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoPassword Complexity Checks (#6230)
Maxim Tkachenko [Mon, 14 Oct 2019 15:24:26 +0000 (22:24 +0700)]
Password Complexity Checks  (#6230)

Add password complexity checks. The default settings require a lowercase, uppercase, number and a special character within passwords.

Co-Authored-By: T-M-A <maxim.tkachenko@gmail.com>
Co-Authored-By: Lanre Adelowo <adelowomailbox@gmail.com>
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agofix bug on FindExternalUsersByProvider (#8504)
Lunny Xiao [Mon, 14 Oct 2019 07:22:46 +0000 (15:22 +0800)]
fix bug on FindExternalUsersByProvider (#8504)

5 years agoUpdate migrated repositories' issues/comments/prs poster id if user has a github...
Lunny Xiao [Mon, 14 Oct 2019 06:10:42 +0000 (14:10 +0800)]
Update migrated repositories' issues/comments/prs poster id if user has a github external user saved (#7751)

* update migrated issues/comments when login as github

* add get userid when migrating or login with github oauth2

* fix lint

* add migrations for repository service type

* fix build

* remove unnecessary dependencies on migrations

* add cron task to update migrations poster ids and fix posterid when migrating

* fix lint

* fix lint

* improve code

* fix lint

* improve code

* replace releases publish id to actual author id

* fix import

* fix bug

* fix lint

* fix rawdata definition

* fix some bugs

* fix error message

5 years agovendor: update mvdan.cc/xurls/v2 to v2.1.0 (#8495)
Antoine GIRARD [Mon, 14 Oct 2019 00:38:15 +0000 (02:38 +0200)]
vendor: update mvdan.cc/xurls/v2 to v2.1.0 (#8495)

5 years agoRewrite reference processing code in preparation for opening/closing from comment...
guillep2k [Sun, 13 Oct 2019 22:29:10 +0000 (19:29 -0300)]
Rewrite reference processing code in preparation for opening/closing from comment references (#8261)

* Add a markdown stripper for mentions and xrefs

* Improve comments

* Small code simplification

* Move reference code to modules/references

* Fix typo

* Make MarkdownStripper return [][]byte

* Implement preliminary keywords parsing

* Add FIXME comment

* Fix comment

* make fmt

* Fix permissions check

* Fix text assumptions

* Fix imports

* Fix lint, fmt

* Fix unused import

* Add missing export comment

* Bypass revive on implemented interface

* Move mdstripper into its own package

* Support alphanumeric patterns

* Refactor FindAllMentions

* Move mentions test to references

* Parse mentions from reference package

* Refactor code to implement renderizable references

* Fix typo

* Move patterns and tests to the references package

* Fix nil reference

* Preliminary rendering attempt of closing keywords

* Normalize names, comments, general tidy-up

* Add CSS style for action keywords

* Fix permission for admin and owner

* Fix golangci-lint

* Fix golangci-lint

5 years agoUpdate seek-help.zh-cn.md (#8488)
Benson Muite [Sun, 13 Oct 2019 21:36:09 +0000 (00:36 +0300)]
Update seek-help.zh-cn.md (#8488)

Update link to Mandarin help forum

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 13 Oct 2019 20:23:11 +0000 (20:23 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUpdate seek-help.en-us.md (#8487)
Benson Muite [Sun, 13 Oct 2019 20:07:30 +0000 (23:07 +0300)]
Update seek-help.en-us.md (#8487)

Update link to Mandarin help

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 13 Oct 2019 16:31:19 +0000 (16:31 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoIsBranchExist: return false if provided name is empty (#8485)
zeripath [Sun, 13 Oct 2019 16:29:08 +0000 (17:29 +0100)]
IsBranchExist: return false if provided name is empty (#8485)

* IsBranchExist: return false if provided name is empty

* Ensure that the reference returned is actually of a valid type

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 13 Oct 2019 14:37:37 +0000 (14:37 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFixes #8369: Create .ssh dir as necessary (#8486)
zeripath [Sun, 13 Oct 2019 14:35:19 +0000 (15:35 +0100)]
Fixes #8369: Create .ssh dir as necessary (#8486)

* Ensure .ssh dir exists before rewriting public keys

* Ensure .ssh dir exists before appending to authorized_keys

* Log the error because it would be useful to know where it is trying to MkdirAll

* Only try to create RootPath if it's not empty

5 years agoMove migrating repository from frontend to backend (#6200)
Lunny Xiao [Sun, 13 Oct 2019 13:23:14 +0000 (21:23 +0800)]
Move migrating repository from frontend to backend (#6200)

* move migrating to backend

* add loading image when migrating and fix tests

* fix format

* fix lint

* add redis task queue support and improve docs

* add redis vendor

* fix vet

* add database migrations and fix app.ini sample

* add comments for task section on app.ini.sample

* Update models/migrations/v84.go

Co-Authored-By: lunny <xiaolunwen@gmail.com>
* Update models/repo.go

Co-Authored-By: lunny <xiaolunwen@gmail.com>
* move migrating to backend

* add loading image when migrating and fix tests

* fix fmt

* add redis task queue support and improve docs

* fix fixtures

* fix fixtures

* fix duplicate function on index.js

* fix tests

* rename repository statuses

* check if repository is being create when SSH request

* fix lint

* fix template

* some improvements

* fix template

* unified migrate options

* fix lint

* fix loading page

* refactor

* When gitea restart, don't restart the running tasks because we may have servel gitea instances, that may break the migration

* fix js

* Update models/repo.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

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

* rename ErrTaskIsNotExist to ErrTaskDoesNotExist

* delete release after add one on tests to make it run happy

* fix tests

* fix tests

* improve codes

* fix lint

* fix lint

* fix migrations

5 years agoFix #8453 by making openssh listen on SSH_LISTEN_PORT not SSH_PORT (#8477)
zeripath [Sat, 12 Oct 2019 15:45:00 +0000 (16:45 +0100)]
Fix #8453 by making openssh listen on SSH_LISTEN_PORT not SSH_PORT (#8477)

5 years agoAdd check for empty set when dropping indexes during migration (#8471)
guillep2k [Sat, 12 Oct 2019 04:55:07 +0000 (01:55 -0300)]
Add check for empty set when dropping indexes during migration (#8471)

* Add check for empty set when dropping indexes during migration

5 years agoRestore functionality for early gits (#7775)
zeripath [Sat, 12 Oct 2019 00:13:27 +0000 (01:13 +0100)]
Restore functionality for early gits (#7775)

* Change tests to make it possible to run TestGit with 1.7.2

* Make merge run on 1.7.2

* Fix tracking and staging branch name problem

* Ensure that git 1.7.2 works on tests

* ensure that there is no chance for conflicts

* Fix-up missing merge issues

* Final rm

* Ensure LFS filters run on the tests

* Do not sign commits from temp repo

* Restore tracking fetch change

* Apply suggestions from code review

* Update modules/repofiles/temp_repo.go

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 11 Oct 2019 21:34:17 +0000 (21:34 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoLatvian translation for home page (#8468)
Lauris BH [Fri, 11 Oct 2019 21:32:52 +0000 (00:32 +0300)]
Latvian translation for home page (#8468)

5 years agoAdd home template italian translation (#8352)
spaeps [Fri, 11 Oct 2019 17:04:59 +0000 (19:04 +0200)]
Add home template italian translation (#8352)

It was just missing

5 years agoMove change issue title from models to issue service package (#8456)
Lunny Xiao [Fri, 11 Oct 2019 06:44:43 +0000 (14:44 +0800)]
Move change issue title from models to issue service package (#8456)

* move change issue title from models to issue service package

* make the change less

* fix typo

5 years agoEnsure that LFS files are relative to the LFS content path (#8455)
zeripath [Thu, 10 Oct 2019 21:08:33 +0000 (22:08 +0100)]
Ensure that LFS files are relative to the LFS content path (#8455)

5 years agoEnsure Request Body Readers are closed in LFS server (#8454)
zeripath [Thu, 10 Oct 2019 17:42:28 +0000 (18:42 +0100)]
Ensure Request Body Readers are closed in LFS server (#8454)

5 years agoIgnore mentions for users with no access (#8395)
guillep2k [Thu, 10 Oct 2019 16:45:11 +0000 (13:45 -0300)]
Ignore mentions for users with no access (#8395)

* Draft for ResolveMentionsByVisibility()

* Correct typo

* Resolve teams instead of orgs for mentions

* Create test for ResolveMentionsByVisibility

* Fix check for individual users and doer

* Test and fix team mentions

* Run all mentions through visibility filter

* Fix error check

* Simplify code, fix doer included in teams

* Simplify team id list build

5 years agoAdd @yasarciv67 to TRANSLATORS file (#8451)
Yaşar Çiv [Thu, 10 Oct 2019 13:47:38 +0000 (16:47 +0300)]
Add @yasarciv67 to TRANSLATORS file (#8451)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 10 Oct 2019 12:44:06 +0000 (12:44 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoDOCS: add mention of swagger api reference (#8452)
pseudocoder [Thu, 10 Oct 2019 12:42:01 +0000 (15:42 +0300)]
DOCS: add mention of swagger api reference (#8452)

It's(swagger api link) mentioned vaguely in the FAQ but IMHO missing from API usage page.

5 years agoadd crowdin badge (#8447)
6543 [Thu, 10 Oct 2019 02:16:58 +0000 (04:16 +0200)]
add crowdin badge (#8447)

5 years agoDoc recommend to use reverse proxy if Apache/nginx is also running on… (#8384)
8ctopus [Wed, 9 Oct 2019 23:11:25 +0000 (04:11 +0500)]
Doc recommend to use reverse proxy if Apache/nginx is also running on… (#8384)

* Doc recommend to use reverse proxy if Apache/nginx is also running on server

* Update docs/content/doc/usage/https-support.md

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
5 years agoDoc updated list of supported webhooks and added example (#8388)
8ctopus [Wed, 9 Oct 2019 22:33:03 +0000 (03:33 +0500)]
Doc updated list of supported webhooks and added example (#8388)

* Doc updated list of supported webhooks and added example

* Replaced webhook password verification by signature verification

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 9 Oct 2019 19:02:21 +0000 (19:02 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoCheck for either escaped or unescaped wiki filenames (#8408)
Tekaoh [Wed, 9 Oct 2019 18:49:37 +0000 (13:49 -0500)]
Check for either escaped or unescaped wiki filenames (#8408)

* Check for either escaped or unescaped wiki filenames

+ Gitea currently saves wiki pages with escaped filenames.
+ Wikis mirrored from other places like Github use unescaped filenames.
+ We need to be checking for filenames in either format to increase compatibility.

* Better logic for escaped and unescaped wiki filenames

Co-Authored-By: null <guillep2k@users.noreply.github.com>
5 years agofix template bug on mirror repository setting page (#8438)
Lunny Xiao [Wed, 9 Oct 2019 13:09:02 +0000 (21:09 +0800)]
fix template bug on mirror repository setting page (#8438)

5 years agoFix migration v96 to keep issue attachments (#8435)
guillep2k [Wed, 9 Oct 2019 09:36:53 +0000 (06:36 -0300)]
Fix migration v96 to keep issue attachments (#8435)

* Fix migration v96 to keep issue attachments

* Fix == operator

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 9 Oct 2019 01:29:16 +0000 (01:29 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoChangelog for v1.9.4 (#8422) (#8433)
guillep2k [Wed, 9 Oct 2019 01:27:45 +0000 (22:27 -0300)]
Changelog for v1.9.4 (#8422) (#8433)

* changelog

* Update CHANGELOG.md

We ned to revert this then ...

Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agoUpdate golangci to v1.20 (#8432)
kolaente [Tue, 8 Oct 2019 20:42:30 +0000 (22:42 +0200)]
Update golangci to v1.20 (#8432)

* Update golangci to v1.20

Signed-off-by: kolaente <k@knt.li>
* Use the timeout flag instead of deadline, move it to config

Signed-off-by: kolaente <k@knt.li>
5 years agoUpdate strk.kbt.io/projects/go/libravatar to latest; closes #7860 (#8429)
guillep2k [Tue, 8 Oct 2019 19:48:57 +0000 (16:48 -0300)]
Update strk.kbt.io/projects/go/libravatar to latest; closes #7860 (#8429)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 8 Oct 2019 19:20:34 +0000 (19:20 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAllow users with explicit read access to give approvals (#8382)
guillep2k [Tue, 8 Oct 2019 19:18:17 +0000 (16:18 -0300)]
Allow users with explicit read access to give approvals (#8382)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 8 Oct 2019 18:23:11 +0000 (18:23 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoRevert "Fix issues/pr list broken when there are many repositories (#8409)" (#8427)
Lunny Xiao [Tue, 8 Oct 2019 17:55:16 +0000 (01:55 +0800)]
Revert "Fix issues/pr list broken when there are many repositories (#8409)" (#8427)

This reverts commit 78438d310be42f9c5e0e2937ee54e6050cc8f381.

5 years agoFix issues/pr list broken when there are many repositories (#8409)
Lunny Xiao [Tue, 8 Oct 2019 02:57:41 +0000 (10:57 +0800)]
Fix issues/pr list broken when there are many repositories (#8409)

* fix issues/pr list broken when there are many repositories

* remove unused codes

* fix counting error on issues/prs

* keep the old logic

* fix panic

* fix tests

5 years agoadd 6543 to maintainers (#8417)
6543 [Tue, 8 Oct 2019 02:03:44 +0000 (04:03 +0200)]
add 6543 to maintainers (#8417)

5 years agoSingular form for files that has only one line (#8416)
Lauris BH [Mon, 7 Oct 2019 23:38:41 +0000 (02:38 +0300)]
Singular form for files that has only one line (#8416)

5 years agoUpdate milestone issues numbers when save milestone and other code improvements ...
Lunny Xiao [Mon, 7 Oct 2019 21:44:58 +0000 (05:44 +0800)]
Update milestone issues numbers when save milestone and other code improvements (#8411)

* update milestone issues numbers when save milestone and other code improvements

* fix tests

* extract duplicate codes as a new function

5 years agoFix backers badge (#8399)
guillep2k [Mon, 7 Oct 2019 19:51:54 +0000 (16:51 -0300)]
Fix backers badge (#8399)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 7 Oct 2019 17:24:26 +0000 (17:24 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUpdate golangci to v1.19.1 (#8414)
kolaente [Mon, 7 Oct 2019 17:22:35 +0000 (19:22 +0200)]
Update golangci to v1.19.1 (#8414)

Signed-off-by: kolaente <k@knt.li>
5 years agoReduce test sensibility (#8393)
guillep2k [Mon, 7 Oct 2019 05:49:14 +0000 (02:49 -0300)]
Reduce test sensibility (#8393)

5 years agoadd file line count info on UI (#8396)
silverwind [Mon, 7 Oct 2019 04:59:17 +0000 (06:59 +0200)]
add file line count info on UI (#8396)

Also reworked the header to remove the filename (which is redundant with
the file path above) and made the header a flexbox with a monospace
font.

Fixes: https://github.com/go-gitea/gitea/issues/8170
5 years agoFix milestone num_issues (#8221)
Lunny Xiao [Sun, 6 Oct 2019 21:26:19 +0000 (05:26 +0800)]
Fix milestone num_issues (#8221)

* fix milestone num_issues

* update missing completeness

* only update milestone closed number when closed issue is assigned a new milestone or clear milestone

* fix tests

* fix update milestone num

* fix completeness calculate

* make completeness calucation more clear

5 years agoAdd unix socket help (#8377)
Thomas McWork [Sun, 6 Oct 2019 18:32:23 +0000 (20:32 +0200)]
Add unix socket help (#8377)

When using unix socket as listener (`HTTP_ADDR = /run/gitea/gitea.socket`) then it's required to have the folder `/run/gitea` with appropriate owner/group. Manual creation leads to vanishing after reboot. This directive enables Systemd to handle this.

5 years agoDoc added instructions for Git LFS support (#8391)
8ctopus [Sun, 6 Oct 2019 04:38:10 +0000 (09:38 +0500)]
Doc added instructions for Git LFS support (#8391)

5 years agoDoc config file should not be readable by others as it contains sensitive info (...
8ctopus [Sat, 5 Oct 2019 14:16:30 +0000 (19:16 +0500)]
Doc config file should not be readable by others as it contains sensitive info (#8385)

5 years agoAdd extra user information when migrating release (#8331)
Lunny Xiao [Sat, 5 Oct 2019 11:09:27 +0000 (19:09 +0800)]
Add extra user information when migrating release (#8331)

* add extra user information when migrating release

* add migrations

* fix tests

5 years agoFix editor commit to new branch if PR disabled (#8375)
guillep2k [Sat, 5 Oct 2019 02:09:19 +0000 (23:09 -0300)]
Fix editor commit to new branch if PR disabled (#8375)

5 years agoBugfix for image compare and minor improvements to image compare (#8289)
Mario Lubenka [Fri, 4 Oct 2019 19:58:54 +0000 (21:58 +0200)]
Bugfix for image compare and minor improvements to image compare (#8289)

* Resolve error when comparing images

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Check blob existence instead of git-ls when checking if file exists

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Show file metadata also when a file was newly added

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Fixes error in commit view

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Excludes assigning path and image infos for compare routers to service package

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Removes nil default and fixes import order

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Adds missing comments

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Moves methods for assigning compare data to context into repo router package

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Show image compare for deleted images as well. Simplify check if image should be displayed

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
5 years agoAdd buildbot CI (#8378)
Km [Fri, 4 Oct 2019 17:30:05 +0000 (19:30 +0200)]
Add buildbot CI (#8378)

Buildbot can work with Gitea

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 4 Oct 2019 07:22:20 +0000 (07:22 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMake 100% width issues page left menu and add reponame as title attribute (#8359)
jaqra [Fri, 4 Oct 2019 07:18:46 +0000 (10:18 +0300)]
Make 100% width issues page left menu and add reponame as title attribute (#8359)

5 years agoCleanup https support code snippet (#8370)
8ctopus [Fri, 4 Oct 2019 00:54:05 +0000 (05:54 +0500)]
Cleanup https support code snippet (#8370)

5 years agoreadd .markdown class to all markup renderers (#8357)
Norwin [Thu, 3 Oct 2019 16:54:33 +0000 (16:54 +0000)]
readd .markdown class to all markup renderers (#8357)

fixes #8299, a regression from 867f46f.
unlike it's name suggests, the .markdown class is needed for most markup types.
a future refactor should rename this class to something more generic

5 years agoFix lfs locks (#8361)
guillep2k [Thu, 3 Oct 2019 07:56:26 +0000 (04:56 -0300)]
Fix lfs locks (#8361)

* Extend time window for TestAPILFSLocksLogged

5 years agoFix column name ambiguity in GetUserIssueStats() (#8347)
guillep2k [Thu, 3 Oct 2019 00:03:18 +0000 (21:03 -0300)]
Fix column name ambiguity in GetUserIssueStats() (#8347)

* Add test for FilterModeMention

* Fix column name ambiguity

* Fix fmt

5 years agoTransaction-aware retry create issue to cope with duplicate keys (#8307)
guillep2k [Wed, 2 Oct 2019 22:28:30 +0000 (19:28 -0300)]
Transaction-aware retry create issue to cope with duplicate keys (#8307)

* Revert #7898

* Transaction-aware retry create issue to cope with duplicate keys

* Restore INSERT ... WHERE usage

* Rearrange code for clarity

* Fix error return in newIssue()

* Fix error message

5 years agoUpgrade xorm to v0.7.9 to fix some bugs (#8354)
Lunny Xiao [Wed, 2 Oct 2019 20:47:20 +0000 (04:47 +0800)]
Upgrade xorm to v0.7.9 to fix some bugs (#8354)

* upgrade xorm to v0.7.9 to fix some bugs

* upgrade xormstore to v1.3.1

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 2 Oct 2019 20:04:16 +0000 (20:04 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix a comment typo (#8358)
Tekaoh [Wed, 2 Oct 2019 20:02:04 +0000 (15:02 -0500)]
Fix a comment typo (#8358)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 2 Oct 2019 13:01:01 +0000 (13:01 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoChange general form binding to gogs form (#8334)
Aam Surganda [Wed, 2 Oct 2019 12:58:40 +0000 (19:58 +0700)]
Change general form binding to gogs form (#8334)

5 years agoApi: advanced settings for repository (external wiki, issue tracker etc.) (#7756)
David Svantesson [Wed, 2 Oct 2019 09:30:41 +0000 (11:30 +0200)]
Api: advanced settings for repository (external wiki, issue tracker etc.) (#7756)

* Add API for Repo Advanced Settings of wiki and issue tracker

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add some integration tests for tracker and wiki settings through API

* Should return StatusUnprocessableEntity in case of invalid API values.

* Add tests for invalid URLs for external tracker and wiki.

* Do not set inital values if they are default of type

* Make issue tracker and wiki units separate structures in Repository API structure.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix comment of structures

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Rewrite API to use struct for setting tracker and wiki settings.

* LetOnlyContributorsTrackTime -> AllowOnlyContributorsToTrackTime

5 years ago[arc-green] white on hover for active menu items (#8344)
spaeps [Wed, 2 Oct 2019 07:20:30 +0000 (09:20 +0200)]
[arc-green] white on hover for active menu items (#8344)

* [arc-green] white on hover for active menu items

Actually, hovered active menu elements are in an unreadable black text colour.
This should be changed to white.

* [arc-green] white on hover for active menu items
Actually, hovered active menu elements are in an unreadable black text colour.
This should be changed to white.

Now editing less files and commiting with `make css`.

5 years agoUpdate to github.com/lafriks/xormstore@v1.3.0 (#8317)
Antoine GIRARD [Wed, 2 Oct 2019 00:32:12 +0000 (02:32 +0200)]
Update to github.com/lafriks/xormstore@v1.3.0 (#8317)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 1 Oct 2019 23:27:07 +0000 (23:27 +0000)]
[skip ci] Updated translations via Crowdin

5 years agotypo fix (#8345)
helix84 [Tue, 1 Oct 2019 23:25:32 +0000 (01:25 +0200)]
typo fix (#8345)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 1 Oct 2019 13:43:35 +0000 (13:43 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMove mirror to a standalone package from models (#7486)
Lunny Xiao [Tue, 1 Oct 2019 13:40:17 +0000 (21:40 +0800)]
Move mirror to a standalone package from models (#7486)

* move mirror to a standalone package

* fix mirror address in template

* fix tests

* fix lint

* fix comment

* fix tests

* fix tests

* fix vendor

* fix fmt

* fix lint

* remove wrong file submitted

* fix conflict

* remove unrelated changes

* fix go mod

* fix tests

* clean go mod

* make vendor work

* make vendor work

* fix tests

* remove duplicated test

5 years ago[skip ci] Updated translations via Crowdin 8333/head
GiteaBot [Tue, 1 Oct 2019 05:35:37 +0000 (05:35 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAPI endpoint for searching teams. (#8108)
David Svantesson [Tue, 1 Oct 2019 05:32:28 +0000 (07:32 +0200)]
API endpoint for searching teams. (#8108)

* Api endpoint for searching teams.

Signed-off-by: dasv <david.svantesson@qrtech.se>
* Move API to /orgs/:org/teams/search

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Regenerate swagger

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix search is Get

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add test for search team API.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Update routers/api/v1/org/team.go

grammar

Co-Authored-By: Richard Mahn <richmahn@users.noreply.github.com>
* Fix review comments

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix some issues in repo collaboration team search, after changes in this PR.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Remove teamUser which is not used and replace with actual user id.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Remove unused search variable UserIsAdmin.

* Add paging to team search.

* Re-genereate swagger

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix review comments

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* fix

* Regenerate swagger

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Sep 2019 16:12:50 +0000 (16:12 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoExtract actions on deletereleasebyid from models to release service (#8219)
Lunny Xiao [Mon, 30 Sep 2019 16:10:00 +0000 (00:10 +0800)]
Extract actions on deletereleasebyid from models to release service (#8219)

* extract actions on deletereleasebyid from models to release service

* fix tests

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Sep 2019 14:00:59 +0000 (14:00 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoExtract actions on new issue from models to services (#8217)
Lunny Xiao [Mon, 30 Sep 2019 13:50:44 +0000 (21:50 +0800)]
Extract actions on new issue from models to services (#8217)

* extract actions on new issue from models to services

* improve code

* rename services/issues to services/issue

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Sep 2019 09:21:01 +0000 (09:21 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix pull request commit status in user dashboard list (#8321)
Elias Norberg [Mon, 30 Sep 2019 09:16:29 +0000 (11:16 +0200)]
Fix pull request commit status in user dashboard list (#8321)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Sep 2019 02:36:41 +0000 (02:36 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoIf no specific context is required for status check, require an overall success ...
Elias Norberg [Mon, 30 Sep 2019 02:33:40 +0000 (04:33 +0200)]
If no specific context is required for status check, require an overall success (#8318)

Signed-off-by: Elias Norberg <elias@aisle.se>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Sep 2019 01:11:00 +0000 (01:11 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoShow correct commit status in PR list (#8316)
Elias Norberg [Mon, 30 Sep 2019 01:07:43 +0000 (03:07 +0200)]
Show correct commit status in PR list (#8316)

* Use correct index when fetching commit status

Signed-off-by: Elias Norberg <elias@aisle.se>
* Compare against base repo to avoid mismatch when merging from fork

Signed-off-by: Elias Norberg <elias@aisle.se>
5 years agoFix repo_admin_change_team_access always checked in org settings (#8319)
David Svantesson [Sun, 29 Sep 2019 23:20:27 +0000 (01:20 +0200)]
Fix repo_admin_change_team_access always checked in org settings (#8319)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 29 Sep 2019 20:38:07 +0000 (20:38 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd 'make revive' to instructions for checking code (#8314)
David Svantesson [Sun, 29 Sep 2019 20:36:52 +0000 (22:36 +0200)]
Add 'make revive' to instructions for checking code (#8314)

* Add 'make revive' to instructions for checking code

This is performed on drone, hacking instructions should contain the same to avoid unnecessary PR builds.

* lint is deprecated. Denote revive +vet as code analysis in continuous text.