]> source.dussan.org Git - gitea.git/log
gitea.git
5 years ago1.7.0 changelog (#5802) v1.7.0
techknowlogick [Tue, 22 Jan 2019 19:21:46 +0000 (14:21 -0500)]
1.7.0 changelog (#5802)

5 years agoDisallow empty titles (#5785) (#5794)
Lanre Adelowo [Mon, 21 Jan 2019 15:55:12 +0000 (16:55 +0100)]
Disallow empty titles (#5785) (#5794)

* add util method and tests

* make sure the title of an issue cannot be empty

* wiki title cannot be empty

* pull request title cannot be empty

* update to make use of the new util methof

5 years ago1.7.0-rc3 changelog (#5756) v1.7.0-rc3
techknowlogick [Fri, 18 Jan 2019 06:08:41 +0000 (01:08 -0500)]
1.7.0-rc3 changelog (#5756)

5 years agobackport 1.6.4 changelog to 1.7 branch (#5741)
techknowlogick [Wed, 16 Jan 2019 12:43:06 +0000 (07:43 -0500)]
backport 1.6.4 changelog to 1.7 branch (#5741)

5 years agofix: use correct value for "MSpan Structures Obtained" #4742 (#5706) (#5716)
Julian Tölle [Sun, 13 Jan 2019 14:32:55 +0000 (15:32 +0100)]
fix: use correct value for "MSpan Structures Obtained" #4742 (#5706) (#5716)

Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
5 years agoDo not display the raw OpenID error in the UI (#5705) (#5712)
zeripath [Sun, 13 Jan 2019 13:05:20 +0000 (13:05 +0000)]
Do not display the raw OpenID error in the UI (#5705) (#5712)

* Do not display the raw OpenID error in the UI

If there are no `WHITELIST_URIS` or `BLACKLIST_URIS` set in the openid
section of the app.ini, it is possible that gitea can leak sensitive
information about the local network through the error provided by the
UI. This PR hides the error information and logs it.

Fix #4973

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update auth_openid.go

Place error log within the `err != nil` branch.

5 years agoUpdate xorm to fix issue #5659 and #5651 (#5680) (#5692)
Zsombor [Thu, 10 Jan 2019 19:43:29 +0000 (20:43 +0100)]
Update xorm to fix issue #5659 and #5651 (#5680) (#5692)

5 years agofix public will not be reused as public key after deleting as deploy key (#5671)...
Lunny Xiao [Thu, 10 Jan 2019 14:23:33 +0000 (22:23 +0800)]
fix public will not be reused as public key after deleting as deploy key (#5671) (#5684)

5 years agoWhen redirecting clean the path to avoid redirecting to //www.othersite.com (#5669...
zeripath [Wed, 9 Jan 2019 22:32:49 +0000 (22:32 +0000)]
When redirecting clean the path to avoid redirecting to //www.othersite.com (#5669) (#5679)

Fix #5627

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoOnly count users own actions for heatmap contributions (#5647) (#5655)
Julian [Sun, 6 Jan 2019 20:16:55 +0000 (21:16 +0100)]
Only count users own actions for heatmap contributions (#5647) (#5655)

Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
5 years agofix commit page showing status for current default branch (#5650) (#5653)
Julian [Sun, 6 Jan 2019 18:11:49 +0000 (19:11 +0100)]
fix commit page showing status for current default branch (#5650) (#5653)

Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
5 years agoDon't close issues via commits on non-default branch. (#5622) (#5643)
Harshit Bansal [Sat, 5 Jan 2019 20:04:02 +0000 (01:34 +0530)]
Don't close issues via commits on non-default branch. (#5622) (#5643)

Adds a small check to close the issues only if the referencing commits
are on the default branch.

Fixes: #2314.
5 years agoFix sqlite deadlock when assigning to a PR (#5640) (#5642)
zeripath [Sat, 5 Jan 2019 15:18:17 +0000 (15:18 +0000)]
Fix sqlite deadlock when assigning to a PR (#5640) (#5642)

* Fix sqlite deadlock when assigning to a PR

Fix 5639

Signed-off-by: Andrew Thornton <art27@cantab.net>
* More possible deadlocks found and fixed

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoAdd changelog for 1.6.3 and 1.7.0-rc2 (#5638) v1.7.0-rc2
Jonas Franz [Fri, 4 Jan 2019 18:17:32 +0000 (19:17 +0100)]
Add changelog for 1.6.3 and 1.7.0-rc2 (#5638)

Signed-off-by: Jonas Franz <info@jonasfranz.software>
5 years agoSECURITY: protect DeleteFilePost et al with cleanUploadFileName (#5631) (#5635)
zeripath [Fri, 4 Jan 2019 16:41:30 +0000 (16:41 +0000)]
SECURITY: protect DeleteFilePost et al with cleanUploadFileName (#5631) (#5635)

This commit wraps more of the TreePaths with cleanUploadFileName

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoBackport latest translation changes
Lauris BH [Fri, 4 Jan 2019 09:26:23 +0000 (11:26 +0200)]
Backport latest translation changes

5 years agoDocumentation: Clarity for HTTPS setups (#5626) v1.7.0-rc1
0x5c [Thu, 3 Jan 2019 15:46:07 +0000 (10:46 -0500)]
Documentation: Clarity for HTTPS setups (#5626)

[https-setup]
- Made it clearer that HTTP redirection is possible
[config-cheat-sheet]
- Clarified the behavihour of the redirection-related config keys

Signed-off-by: Matti Ranta <matti@mdranta.net>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 3 Jan 2019 10:19:43 +0000 (10:19 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd changelog for 1.7.0-rc1 (#5616)
Jonas Franz [Thu, 3 Jan 2019 10:17:28 +0000 (11:17 +0100)]
Add changelog for 1.7.0-rc1 (#5616)

* Add changelog for 1.7.0-rc1

* Change position of refactoring of heatmap

* Refactoring some items in changelog

* Fix wrong PR title in changelog

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Remove backported PRs

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix wrong date

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add new PR to list

* Security fixes have been backported

5 years agoFix bug on modifying sshd username (#5624)
Moshi Binyamini [Wed, 2 Jan 2019 22:42:33 +0000 (00:42 +0200)]
Fix bug on modifying sshd username (#5624)

Should fix #5623

5 years agoUpdate @jonasfranz's username (#5619)
techknowlogick [Wed, 2 Jan 2019 18:35:18 +0000 (13:35 -0500)]
Update @jonasfranz's username (#5619)

* Update @jonasfranz's username

* lowercase'd username

5 years agoUpdate owners & Date in contributing (#5620)
techknowlogick [Wed, 2 Jan 2019 18:00:19 +0000 (13:00 -0500)]
Update owners & Date in contributing (#5620)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 2 Jan 2019 12:59:14 +0000 (12:59 +0000)]
[skip ci] Updated translations via Crowdin

5 years agobranch: Trigger update when deleting branch via UI. (#5617)
Harshit Bansal [Wed, 2 Jan 2019 12:56:58 +0000 (18:26 +0530)]
branch: Trigger update when deleting branch via UI. (#5617)

Fixes: #5309.
5 years agoIssue is not overdue when it is on the same date #5566 (#5568)
Rodrigo Villablanca Vásquez [Tue, 1 Jan 2019 17:56:47 +0000 (14:56 -0300)]
Issue is not overdue when it is on the same date #5566 (#5568)

* Due date time of issues and milestones is set to 23:59:59

* Add docs

* make gen swagger

* fix swagger gen

5 years agomirror: Delete tags in mirror which are removed for original repo. (#5609)
Harshit Bansal [Mon, 31 Dec 2018 23:00:54 +0000 (04:30 +0530)]
mirror: Delete tags in mirror which are removed for original repo. (#5609)

This bug was being caused by an error in the logic in `release.go`.
Credit to @yasuokav for tracing the root of the issue.

Fixes: #5192.
5 years agoupdate v71.go to resolve #5595 (#5613)
Daniel Wolf [Mon, 31 Dec 2018 13:23:03 +0000 (08:23 -0500)]
update v71.go to resolve #5595 (#5613)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 31 Dec 2018 12:03:07 +0000 (12:03 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix wrong text getting saved on editing second comment on an issue. (#5608)
Harshit Bansal [Mon, 31 Dec 2018 12:01:20 +0000 (17:31 +0530)]
Fix wrong text getting saved on editing second comment on an issue. (#5608)

* comments: Fix an incorrent DOM element selection.

This commit fixes a bug that was causing text from previously edited
comment to get saved when two comments were edited one after other.
Text area with id of `#content` isn't unique on the page but it was
being treated as unique by the event handling code.

Fixes: #5581.
* templates: Remove `id` from textarea in commit edit form.

An element is assigned an `id` only if it is unique for the whole page
but in this case there can be multiple textarea so it should have one.

5 years agoWebhook for Pull Request approval/rejection (#5027)
Lanre Adelowo [Thu, 27 Dec 2018 18:04:30 +0000 (19:04 +0100)]
Webhook for Pull Request approval/rejection (#5027)

5 years agoSynchronize SSH keys on login with LDAP + Fix SQLite deadlock on ldap ssh key deletio...
zeripath [Thu, 27 Dec 2018 17:28:48 +0000 (17:28 +0000)]
Synchronize SSH keys on login with LDAP + Fix SQLite deadlock on ldap ssh key deletion (#5557)

* Synchronize SSH keys on login with LDAP

* BUG: Fix hang on sqlite during LDAP key deletion

5 years agoLDAP via simple auth separate bind user and search base (#5055)
Tony Homrich [Thu, 27 Dec 2018 16:51:19 +0000 (11:51 -0500)]
LDAP via simple auth separate bind user and search base (#5055)

5 years agoDelete organization endpoint added (#5601)
Shashvat Kedia [Thu, 27 Dec 2018 15:36:58 +0000 (21:06 +0530)]
Delete organization endpoint added (#5601)

* Delete organization endpoint added

* Parameters added in comment

* Typo fix

* Newline character removed

5 years agofix nil pointer when adding a due date (#5587)
Lanre Adelowo [Thu, 27 Dec 2018 15:02:43 +0000 (16:02 +0100)]
fix nil pointer when adding a due date  (#5587)

* fix nil pointer

* remove nil check and just call loadRepo regardless

5 years agoMake sure argsSet verifies string isn't empty too (#4980)
Lanre Adelowo [Thu, 27 Dec 2018 12:38:38 +0000 (13:38 +0100)]
Make sure argsSet verifies string isn't empty too (#4980)

5 years agoAdd rebase with merge commit merge style (#3844) (#4052)
Julian [Thu, 27 Dec 2018 10:27:08 +0000 (11:27 +0100)]
Add rebase with merge commit merge style (#3844) (#4052)

Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
5 years agoRemove MTecknology from MAINTAINERS (#5599)
Michael Lustfield [Thu, 27 Dec 2018 02:03:34 +0000 (20:03 -0600)]
Remove MTecknology from MAINTAINERS (#5599)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 26 Dec 2018 19:16:27 +0000 (19:16 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix route in swagger (#5598)
Shashvat Kedia [Wed, 26 Dec 2018 19:13:49 +0000 (00:43 +0530)]
Fix route in swagger (#5598)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 24 Dec 2018 11:12:56 +0000 (11:12 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoGitlab does have discord integration now (#5589)
Charles [Mon, 24 Dec 2018 11:11:18 +0000 (06:11 -0500)]
Gitlab does have discord integration now (#5589)

5 years agodrone/mssql: use golang 1.11 build like the other tests (#5586)
Antoine GIRARD [Sun, 23 Dec 2018 21:11:22 +0000 (22:11 +0100)]
drone/mssql: use golang 1.11 build like the other tests (#5586)

5 years agoFix translation errors in doc advanced part (zh-cn) (#5112)
BetaCat [Sun, 23 Dec 2018 10:57:49 +0000 (18:57 +0800)]
Fix translation errors in doc advanced part (zh-cn) (#5112)

* ZH-CN translation of Advanced part

* Fix translation errors

* Resolve issues

5 years agobackport 1.6.2 changelog (#5576)
techknowlogick [Fri, 21 Dec 2018 17:45:58 +0000 (12:45 -0500)]
backport 1.6.2 changelog (#5576)

5 years agoFix type mismatch of format string (#5574)
Mura Li [Fri, 21 Dec 2018 16:13:31 +0000 (00:13 +0800)]
Fix type mismatch of format string (#5574)

5 years agoImmediate fix to htmlEncode user added text (#5570)
zeripath [Fri, 21 Dec 2018 13:40:40 +0000 (13:40 +0000)]
Immediate fix to htmlEncode user added text (#5570)

There are likely problems remaining with the way that initCommentForm
is creating its elements. I suspect that a malformed avatar url could
be used maliciously.

5 years agofix bug on upload file name (#5571)
Lunny Xiao [Fri, 21 Dec 2018 02:32:11 +0000 (10:32 +0800)]
fix bug on upload file name (#5571)

5 years agoCreate stale bot config (#5243)
Antoine GIRARD [Thu, 20 Dec 2018 20:34:55 +0000 (21:34 +0100)]
Create stale bot config (#5243)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 19 Dec 2018 13:00:35 +0000 (13:00 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofix table name typo on SQL (#5562)
Lunny Xiao [Wed, 19 Dec 2018 12:58:46 +0000 (20:58 +0800)]
fix table name typo on SQL (#5562)

* fix table name typo on SQL

* fix reserved word user when on mssql

5 years agofix indexer reindex bug when gitea restart (#5563)
Lunny Xiao [Wed, 19 Dec 2018 08:37:48 +0000 (16:37 +0800)]
fix indexer reindex bug when gitea restart (#5563)

* fix issue indexer bug reindex when restart gitea

* also fix code indexer reindex when gitea restart

5 years agoUpdate Licenses (#5558)
zeripath [Wed, 19 Dec 2018 02:04:43 +0000 (02:04 +0000)]
Update Licenses (#5558)

5 years agofix lfs version check warning log when using ssh protocol (#5501)
Lunny Xiao [Wed, 19 Dec 2018 01:17:43 +0000 (09:17 +0800)]
fix lfs version check warning log when using ssh protocol (#5501)

5 years agoSupport reverse proxy providing email (#5554)
zeripath [Tue, 18 Dec 2018 17:05:48 +0000 (17:05 +0000)]
Support reverse proxy providing email (#5554)

This PR implements #2347

5 years agofix forgot removed records when deleting user (#5429)
Lunny Xiao [Tue, 18 Dec 2018 16:26:26 +0000 (00:26 +0800)]
fix forgot removed records when deleting user (#5429)

* fix forgot removed records when deleting user

* fix migration

* fix rewritekey lock on sqlite

* remove unused codes

5 years agoAdd base repo nil check (#5555)
Jonas Franz [Mon, 17 Dec 2018 17:35:21 +0000 (18:35 +0100)]
Add base repo nil check (#5555)

Signed-off-by: Jonas Franz <info@jonasfranz.software>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 17 Dec 2018 14:08:30 +0000 (14:08 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix makefile generate buildstep (#5556)
Jonas Franz [Mon, 17 Dec 2018 14:05:49 +0000 (15:05 +0100)]
Fix makefile generate buildstep (#5556)

Signed-off-by: Jonas Franz <info@jonasfranz.software>
5 years agoImprove performance of dashboard (#4977)
Lunny Xiao [Thu, 13 Dec 2018 15:55:43 +0000 (23:55 +0800)]
Improve performance of dashboard (#4977)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 12 Dec 2018 21:02:34 +0000 (21:02 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoRemove a double slash in the HTTPS redirection when Let's Encrypt is enabled (#5537)
Greg Karékinian [Wed, 12 Dec 2018 21:00:24 +0000 (22:00 +0100)]
Remove a double slash in the HTTPS redirection when Let's Encrypt is enabled (#5537)

Before:

$ curl 0.0.0.0:3001
<a href="https://gitea.example.com:3000//">Found</a>.

After:

$ curl 0.0.0.0:3001
<a href="https://gitea.example.com:3000/">Found</a>.

Fixes #5536

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 12 Dec 2018 15:19:11 +0000 (15:19 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofix bug when a read perm user to edit his issue (#5516)
Lunny Xiao [Wed, 12 Dec 2018 15:17:25 +0000 (23:17 +0800)]
fix bug when a read perm user to edit his issue (#5516)

5 years agofix detect force push failure on deletion of protected branches (#5522)
Lunny Xiao [Wed, 12 Dec 2018 08:46:17 +0000 (16:46 +0800)]
fix detect force push failure on deletion of protected branches (#5522)

5 years agoAdded test environment for mssql (#4282)
kolaente [Wed, 12 Dec 2018 01:01:41 +0000 (02:01 +0100)]
Added test environment for mssql (#4282)

* Added test environment for m$sql

* Added template for test environment for m$sql

* Fix password

* Fix password (again)

* Fix password (again again)

* Fix db

* Ci trigger (Looking at you drone....)

* Ci trigger (Looking at you drone....)

* Ci trigger (Looking at you drone....)

* Ci trigger (Looking at you drone....)

* Create master database for mssql integration tests

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Create database only if master do not exist

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix mssql integration tests by using custom database "gitea"

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Moved defer

* bump xorm

* updated xorm

* Fixed build

5 years agofix approvals limitation (#5521)
Lunny Xiao [Tue, 11 Dec 2018 23:49:33 +0000 (07:49 +0800)]
fix approvals limitation (#5521)

5 years agofix permission check on api create org (#5523)
Lunny Xiao [Tue, 11 Dec 2018 19:33:24 +0000 (03:33 +0800)]
fix permission check on api create org (#5523)

5 years agofix clone wiki failed via ssh (#5503)
Lunny Xiao [Tue, 11 Dec 2018 18:37:32 +0000 (02:37 +0800)]
fix clone wiki failed via ssh (#5503)

5 years agofix adding reaction fail for read permission (#5515)
Lunny Xiao [Tue, 11 Dec 2018 18:12:06 +0000 (02:12 +0800)]
fix adding reaction fail for read permission (#5515)

5 years agoadd git protocol v2 support via SSH on Docker image (#5520)
Lunny Xiao [Tue, 11 Dec 2018 17:20:04 +0000 (01:20 +0800)]
add git protocol v2 support via SSH on Docker image (#5520)

* add git protocol v2 support via SSH on Docker image

* remove new layer on dockerfile

5 years agoFix the Let's Encrypt handler by listening on a valid address (#5525)
Greg Karékinian [Tue, 11 Dec 2018 15:46:12 +0000 (16:46 +0100)]
Fix the Let's Encrypt handler by listening on a valid address (#5525)

* Fix the Let's Encrypt handler by listening on a valid address

Also handle errors in the HTTP server go routine, return a fatal error
when something goes wrong.

Thanks to @gbl08ma for finding the actual bug

Here is an example of the error handling:

    2018/12/11 14:23:07 [....io/gitea/cmd/web.go:87 func1()] [E] Failed to
    start the Let's Encrypt handler on port 30: listen tcp 0.0.0.0:30: bind:
    permission denied

Closes #5280

* Fix a typo

5 years agoApprovals at Branch Protection (#5350)
Jonas Franz [Tue, 11 Dec 2018 11:28:37 +0000 (12:28 +0100)]
Approvals at Branch Protection (#5350)

* Add branch protection for approvals

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add required approvals

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add missing comments and fmt

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add type = approval and group by reviewer_id to review

* Prevent users from adding negative review limits

* Add migration for approval whitelists

Signed-off-by: Jonas Franz <info@jonasfranz.software>
5 years agoFixing MSSQL timestamp type (#5511)
Christopher [Tue, 11 Dec 2018 02:05:24 +0000 (03:05 +0100)]
Fixing MSSQL timestamp type (#5511)

MSSQL is using the wrong type here which results in a strconv.ParseInt: parsing "2018-12-07T00:00:00Z": invalid syntax error.
The added datediff(SECOND, '19700101', x) results in the unix timestamp to be returned.

Signed-off-by: Christopher Dziomba <christopher.dziomba@gmail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 11 Dec 2018 01:12:24 +0000 (01:12 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofix code review on mssql (#5502)
Lunny Xiao [Tue, 11 Dec 2018 01:09:46 +0000 (09:09 +0800)]
fix code review on mssql (#5502)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 10 Dec 2018 20:03:39 +0000 (20:03 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofix forgot deletion of notification when delete repository (#5506)
Lunny Xiao [Mon, 10 Dec 2018 20:01:01 +0000 (04:01 +0800)]
fix forgot deletion of notification when delete repository (#5506)

5 years agoFix empty wiki (#5504)
Lunny Xiao [Sun, 9 Dec 2018 22:45:44 +0000 (06:45 +0800)]
Fix empty wiki (#5504)

* fix wiki page when wiki path is exist but empty

* improve the error check

5 years agobackport 1.6.1 changelog (#5507)
techknowlogick [Sun, 9 Dec 2018 21:33:13 +0000 (16:33 -0500)]
backport 1.6.1 changelog (#5507)

5 years agoImprove team members and repositories settings UI (#5457)
Lunny Xiao [Sun, 9 Dec 2018 06:42:11 +0000 (14:42 +0800)]
Improve team members and repositories settings UI (#5457)

* improve team members and repositories settings UI

* use tab on team pages

* add default description on team members and repos

* add blank on numbers and texts

* improve translation

5 years agoadd tests for api user orgs (#5494)
Lunny Xiao [Sun, 9 Dec 2018 02:19:50 +0000 (10:19 +0800)]
add tests for api user orgs (#5494)

* add tests for api user orgs

* add permission for admin to list user's orgs even he is a private user of org

5 years agofix topic name length on database (#5493)
Lunny Xiao [Sat, 8 Dec 2018 12:27:30 +0000 (20:27 +0800)]
fix topic name length on database (#5493)

5 years agoAllow link verification for services like Mastodon (#5481)
koyu [Thu, 6 Dec 2018 20:15:48 +0000 (21:15 +0100)]
Allow link verification for services like Mastodon (#5481)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 4 Dec 2018 22:42:54 +0000 (22:42 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoimprove the git-scm url's in docs and sample.ini (#5467)
Roman [Tue, 4 Dec 2018 22:40:42 +0000 (23:40 +0100)]
improve the git-scm url's in docs and sample.ini (#5467)

* remove old git-version from git-scm url in app.ini

The url includes the version of git, which is not required to view the
page. If you open the page without the version you get the current
version and it's possible to switch the used version.

Signed-off-by: Roman <romaaan.git@gmail.com>
* docs: mention the git-scm url for git configs

Signed-off-by: Roman <romaaan.git@gmail.com>
5 years agorefactor: replace lint to revive (#5422)
Bo-Yi Wu [Mon, 3 Dec 2018 14:28:46 +0000 (22:28 +0800)]
refactor: replace lint to revive (#5422)

* refactor: replace lint to revive

* make changes.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
5 years agoensure that the `closed_at` is set for closed (#5449)
romankl [Sun, 2 Dec 2018 20:43:01 +0000 (21:43 +0100)]
ensure that the `closed_at` is set for closed (#5449)

right now the `closed_at` field for json responses is not filled during
the `APIIssue` creation for api responses.

For a closed issue you get a result like:
```json
"state":"open","comments":0,"created_at":"2018-11-29T16:39:24+01:00",
"updated_at":"2018-11-30T10:49:19+01:00","closed_at":null,
"due_date":null,"pull_request":null}
```
which has no information about the closing date. (which exists in the
db and ui)
with this PR the result changes to this:

```json
:null,"assignee":null,"assignees":null,
"state":"closed",
"comments":0,"created_at":"2018-11-29T16:43:05+01:00",
"updated_at":"2018-12-02T19:17:05+01:00",
"closed_at":"2018-12-02T19:17:05+01:00",
"due_date":null,"pull_request":null}
```

fixes: https://github.com/go-gitea/gitea/issues/5446
Signed-off-by: Roman <romaaan.git@gmail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 2 Dec 2018 16:10:08 +0000 (16:10 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoadmin should be able to delete repos even if he is not a member of the organization...
Lanre Adelowo [Sun, 2 Dec 2018 16:08:33 +0000 (17:08 +0100)]
admin should be able to delete repos even if he is not a member of the organization (#5443)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 1 Dec 2018 06:07:46 +0000 (06:07 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoRemoving Labels via EditPullRequest API (#5348)
Lucien Kerl [Sat, 1 Dec 2018 06:05:57 +0000 (07:05 +0100)]
Removing Labels via EditPullRequest API (#5348)

* added the ability to provide an empty array at the EditPullRequests API to remove all labels

Signed-off-by: Lucien Kerl <lucien.kerl@wuerth-it.com>
* Update pull.go

5 years agoword-break the WebHook url to prevent a ui-break (#5432)
romankl [Fri, 30 Nov 2018 14:52:05 +0000 (15:52 +0100)]
word-break the WebHook url to prevent a ui-break (#5432)

right now, the url is displayed with an anchor tag with no classes. If
the url is really really long, the url will break out of the containing
div and (depending on the url length) the browser shows the horizontal
scrollbar.
This pr makes use of the already existing css class `dont-break-out`
which gives all the anchor the necessary properties to prevent the
break.
Another solution could be to introduce some classes like
`text text-break-word`, but that would duplicate the `dont-break-out`
class just for text elements that use the `text` class.

fixes: https://github.com/go-gitea/gitea/issues/5416
Signed-off-by: Roman <romaaan.git@gmail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 30 Nov 2018 13:01:54 +0000 (13:01 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix repository deletion when there is large number of issues in it (#5426)
Lunny Xiao [Fri, 30 Nov 2018 12:59:12 +0000 (20:59 +0800)]
Fix repository deletion when there is large number of issues in it (#5426)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 30 Nov 2018 08:51:59 +0000 (08:51 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAllow to add organization members as collaborators on organization owned repositories...
Lanre Adelowo [Fri, 30 Nov 2018 08:49:55 +0000 (09:49 +0100)]
Allow to add organization members as collaborators on organization owned repositories (#4748)

repository... Fixes #4507

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 29 Nov 2018 16:49:36 +0000 (16:49 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoRemove the required class from optional ssh port in installation page (#5428)
romankl [Thu, 29 Nov 2018 16:47:57 +0000 (17:47 +0100)]
Remove the required class from optional ssh port in installation page (#5428)

the ssh port is optional during the installation process. The
translations even mention that it is optional and can be blank. Right
now it has the `required` class which creates the red `*` behind the
field caption - used for required fields.
If you leave it blank, the SSH option is disabled
(not touched by this PR)

Signed-off-by: Roman <romaaan.git@gmail.com>
5 years agoUpgrade alpine to 3.8 (#5423)
techknowlogick [Thu, 29 Nov 2018 02:33:35 +0000 (21:33 -0500)]
Upgrade alpine to 3.8 (#5423)

5 years agoMilestone issues and pull requests (#5293)
Lunny Xiao [Thu, 29 Nov 2018 01:46:30 +0000 (09:46 +0800)]
Milestone issues and pull requests (#5293)

* add milestone issues and pulls page instead of redirecting issues page

* add milestone when creating issue from milestone page

* refactor to merge similiar codes as a new function issues

* remove milestone info on milestone issues list

* fix missing params