7135 Commits (353282e65880147408382ac4a44473272af53101)
 

Author SHA1 Message Date
Harshit Bansal 2c7661a524 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.
6 years ago
Lanre Adelowo 945804f800 Webhook for Pull Request approval/rejection (#5027) 6 years ago
zeripath 8bb0a6f425 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
6 years ago
Tony Homrich 2058c362a8 LDAP via simple auth separate bind user and search base (#5055) 6 years ago
Shashvat Kedia 6e20b504b1 Delete organization endpoint added (#5601)
* Delete organization endpoint added

* Parameters added in comment

* Typo fix

* Newline character removed
6 years ago
Lanre Adelowo 21357a4ae0 fix nil pointer when adding a due date (#5587)
* fix nil pointer

* remove nil check and just call loadRepo regardless
6 years ago
Lanre Adelowo a82ba73346 Make sure argsSet verifies string isn't empty too (#4980) 6 years ago
Julian 4a685f8b87 Add rebase with merge commit merge style (#3844) (#4052)
Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
6 years ago
Michael Lustfield 58bdff53cd Remove MTecknology from MAINTAINERS (#5599) 6 years ago
GiteaBot b0b35493ec [skip ci] Updated translations via Crowdin 6 years ago
Shashvat Kedia ba2c02b75d Fix route in swagger (#5598) 6 years ago
GiteaBot 4586ae390f [skip ci] Updated translations via Crowdin 6 years ago
Charles f0db86b663 Gitlab does have discord integration now (#5589) 6 years ago
Antoine GIRARD 9f544e9356 drone/mssql: use golang 1.11 build like the other tests (#5586) 6 years ago
BetaCat a06ae0bdc7 Fix translation errors in doc advanced part (zh-cn) (#5112)
* ZH-CN translation of Advanced part

* Fix translation errors

* Resolve issues
6 years ago
techknowlogick b77c3eb5bd
backport 1.6.2 changelog (#5576) 6 years ago
Mura Li 9a33798b30 Fix type mismatch of format string (#5574) 6 years ago
zeripath 330bf8d3b3 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.
6 years ago
Lunny Xiao 4a02a783c4 fix bug on upload file name (#5571) 6 years ago
Antoine GIRARD 7cb1d8296d Create stale bot config (#5243) 6 years ago
GiteaBot 8dc09edb04 [skip ci] Updated translations via Crowdin 6 years ago
Lunny Xiao 9d0dee88d2
fix table name typo on SQL (#5562)
* fix table name typo on SQL

* fix reserved word user when on mssql
6 years ago
Lunny Xiao b65e37ed72
fix indexer reindex bug when gitea restart (#5563)
* fix issue indexer bug reindex when restart gitea

* also fix code indexer reindex when gitea restart
6 years ago
zeripath c64963553a Update Licenses (#5558) 6 years ago
Lunny Xiao 7fd34c0517
fix lfs version check warning log when using ssh protocol (#5501) 6 years ago
zeripath 2a660a1de1 Support reverse proxy providing email (#5554)
This PR implements #2347
6 years ago
Lunny Xiao fe55ab2a68 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
6 years ago
Jonas Franz e726e4b828 Add base repo nil check (#5555)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
6 years ago
GiteaBot 8730ee0e45 [skip ci] Updated translations via Crowdin 6 years ago
Jonas Franz 94c3963da0
Fix makefile generate buildstep (#5556)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
6 years ago
Lunny Xiao b3b7598ec6 Improve performance of dashboard (#4977) 6 years ago
GiteaBot 49ea6e0deb [skip ci] Updated translations via Crowdin 6 years ago
Greg Karékinian ebef3eff23 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
6 years ago
GiteaBot 0bd802e3e1 [skip ci] Updated translations via Crowdin 6 years ago
Lunny Xiao f0374ad1ad fix bug when a read perm user to edit his issue (#5516) 6 years ago
Lunny Xiao af6bce3ad5 fix detect force push failure on deletion of protected branches (#5522) 6 years ago
kolaente 6db7dbd333 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
6 years ago
Lunny Xiao b1f3685015 fix approvals limitation (#5521) 6 years ago
Lunny Xiao 58c4559d3b fix permission check on api create org (#5523) 6 years ago
Lunny Xiao ba75319157 fix clone wiki failed via ssh (#5503) 6 years ago
Lunny Xiao ccea91652f fix adding reaction fail for read permission (#5515) 6 years ago
Lunny Xiao 6e114f6791 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
6 years ago
Greg Karékinian 15d6cf179d 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
6 years ago
Jonas Franz 9681c83734 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>
6 years ago
Christopher 64680b72bd 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>
6 years ago
GiteaBot 205a533645 [skip ci] Updated translations via Crowdin 6 years ago
Lunny Xiao 284b0e12cb
fix code review on mssql (#5502) 6 years ago
GiteaBot 8a64e67456 [skip ci] Updated translations via Crowdin 6 years ago
Lunny Xiao 1b3404eaca fix forgot deletion of notification when delete repository (#5506) 6 years ago
Lunny Xiao 928417ae39 Fix empty wiki (#5504)
* fix wiki page when wiki path is exist but empty

* improve the error check
6 years ago