]>
source.dussan.org Git - gitea.git/log
Lunny Xiao [Thu, 17 Jan 2019 06:07:23 +0000 (14:07 +0800)]
upgrade go-sql-driver/mysql to fix invalid connection error (#5748)
should fix #5736
Harshit Bansal [Thu, 17 Jan 2019 00:39:50 +0000 (06:09 +0530)]
api: Add missing GET teams endpoints (#5382)
* api: Add an endpoint to list a particular member of team.
* models: Rename `GetUserTeams()` to `GetUserOrgTeams()` in `org_team` model.
`GetUserTeams()` sounds a bit misnomer since it actually returns
the teams that user belongs to in a given organization rather than
all the teams across all the organization that the user has joined.
* models: Add `GetUserTeams()`.
Returns all the teams that a user belongs to.
* api: Add an endpoint for GET '/user/teams'.
A GET request to this endpoint lists all the teams that a user
belongs to.
Elijah Oyekunle [Wed, 16 Jan 2019 21:50:11 +0000 (22:50 +0100)]
Add Default Pull Request Title (#5735)
* add default PR title
Set default PR title to commit summary if there's a single commit on the head branch, else set it to the head branch name
* set default PR description
If there's a single commit on the head branch, and it's multiline, then set it as the default PR description
Zsombor [Wed, 16 Jan 2019 21:24:09 +0000 (22:24 +0100)]
Fixing #5728: (#5747)
* Format boolean values to true/false even when it is returned as byte-slice,
* Fix the sequence generation, the proper sequence name is used (instead of 'table_id_seq'), and fix the next value be max+1 always
techknowlogick [Wed, 16 Jan 2019 15:37:57 +0000 (10:37 -0500)]
backport 1.6.4 to HEAD (#5742)
vee w [Wed, 16 Jan 2019 14:43:26 +0000 (21:43 +0700)]
Add Prerequisites (#5734)
Add set system user guide.
Add absolute path for sqlite3 guide.
silverwind [Wed, 16 Jan 2019 04:16:45 +0000 (05:16 +0100)]
Add proper CORS preflight origin validation (#5740)
GiteaBot [Tue, 15 Jan 2019 21:33:19 +0000 (21:33 +0000)]
[skip ci] Updated translations via Crowdin
Harshit Bansal [Tue, 15 Jan 2019 21:31:35 +0000 (03:01 +0530)]
Don't list an issue on its own dependency list UI. (#5658)
Fixes: #4684.
Lunny Xiao [Mon, 14 Jan 2019 21:05:27 +0000 (05:05 +0800)]
Support CORS headers to git smart http protocol (#5719)
GiteaBot [Mon, 14 Jan 2019 19:17:19 +0000 (19:17 +0000)]
[skip ci] Updated translations via Crowdin
Khaled Hamed [Mon, 14 Jan 2019 19:15:06 +0000 (21:15 +0200)]
Prioritize "readme.md" (#5691)
* prioritize readme.md
* Improve IsReadmeFile
* Add more tests
zeripath [Mon, 14 Jan 2019 02:29:58 +0000 (02:29 +0000)]
Ensure that sessions are passed into queries that could use the database to prevent deadlocks (#5718)
* Fixed deadlock in CreateComment
* Fix possible deadlock in UpdateIssueDeadline from createDeadlineComment
* Ensure that calls to IsTimeTracker enabled are called within session
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Ensure that calls to reactionList are also called within session
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Ensure all calls in NewPullRequest with the session are called within the session
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Deal with potential deadlocks in repo
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Ensure that isStaring is checked within our transaction
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix mistake in isOrganizationMember
Sorry.
Zsombor [Sun, 13 Jan 2019 21:52:26 +0000 (22:52 +0100)]
Add flag to skip repository dumping (#5695)
techknowlogick [Sun, 13 Jan 2019 19:06:22 +0000 (14:06 -0500)]
Discord Oauth2 support (#4476)
* add discord auth
* add vendor for discord
* fix syntax error
* make fmt
* update version of goth in use
* update markbates/goth
Lunny Xiao [Sun, 13 Jan 2019 14:42:55 +0000 (22:42 +0800)]
Refactor mail notification (#5110)
* mail notification implement interface
* fix file comment year
* use NullNotifier as parent struct of notifiers
Julian [Sat, 12 Jan 2019 22:49:44 +0000 (23:49 +0100)]
fix: use correct value for "MSpan Structures Obtained" #4742 (#5706)
Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
Lanre Adelowo [Sat, 12 Jan 2019 19:43:47 +0000 (20:43 +0100)]
Fix migration for user defined themes (#5682)
zeripath [Sat, 12 Jan 2019 19:24:47 +0000 (19:24 +0000)]
Do not display the raw OpenID error in the UI (#5705)
* 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.
GiteaBot [Sat, 12 Jan 2019 16:15:40 +0000 (16:15 +0000)]
[skip ci] Updated translations via Crowdin
Julian [Sat, 12 Jan 2019 16:14:01 +0000 (17:14 +0100)]
docker: stop modifying file permission before migrating database (#5707)
Lanre Adelowo [Fri, 11 Jan 2019 04:25:14 +0000 (05:25 +0100)]
allow user fork repo even when as a guest.. This will prompt the user to login and if authentication was successful, the user will be redirected to fork the repo (#5690)
GiteaBot [Fri, 11 Jan 2019 04:00:31 +0000 (04:00 +0000)]
[skip ci] Updated translations via Crowdin
Shikiryu [Fri, 11 Jan 2019 03:58:28 +0000 (04:58 +0100)]
Add docs about database migration (#5661)
* Add docs about database migration
* Reorder upgrade from Gogs steps
Zsombor [Wed, 9 Jan 2019 22:18:06 +0000 (23:18 +0100)]
Update xorm to fix issue #5659 and #5651 (#5680)
zeripath [Wed, 9 Jan 2019 18:39:01 +0000 (18:39 +0000)]
When redirecting clean the path to avoid redirecting to //www.othersite.com (#5669)
Fix #5627
Signed-off-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao [Wed, 9 Jan 2019 18:10:46 +0000 (02:10 +0800)]
fix public will not be reused as public key after deleting as deploy key (#5671)
Lanre Adelowo [Wed, 9 Jan 2019 17:52:10 +0000 (18:52 +0100)]
document command line flags (#5675)
GiteaBot [Wed, 9 Jan 2019 17:24:47 +0000 (17:24 +0000)]
[skip ci] Updated translations via Crowdin
Lanre Adelowo [Wed, 9 Jan 2019 17:22:57 +0000 (18:22 +0100)]
Allow for user specific themes (#5668)
* add migration and basic UI for changing a user's theme
* update user themem
* use right text on button
* load theme based on users' selection
* load theme based on users' selection in pwa too
* update sample config
* delete older theme loading
* implement AfterLoad to set users' theme properly
* set up default theme when creating a user. This uses the installation wide theme
* use flash messages for error
* set default theme when creating a user from the cli
* fix @lunny review
Jan Breuer [Tue, 8 Jan 2019 13:39:50 +0000 (14:39 +0100)]
Translate home template to Czech (#5665)
Signed-off-by: Jan Breuer <jan.breuer@jaybee.cz>
gdeverlant [Sun, 6 Jan 2019 22:37:30 +0000 (23:37 +0100)]
Added URL mapping for Release attachments like on github.com (#1707)
Harshit Bansal [Sun, 6 Jan 2019 20:08:25 +0000 (01:38 +0530)]
Display branch name in delete branch confirmation modal. (#5654)
Fixes: #5630.
Julian [Sun, 6 Jan 2019 19:29:05 +0000 (20:29 +0100)]
Only count users own actions for heatmap contributions (#5647)
Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
Julian [Sun, 6 Jan 2019 14:32:00 +0000 (15:32 +0100)]
fix commit page showing status for current default branch (#5650)
Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
Pierre-Alexis Ciavaldini [Sat, 5 Jan 2019 18:16:38 +0000 (19:16 +0100)]
migrate database if app.ini found (#5290)
* migrate database if app.ini found
* replacing hard-coded user id by env variable
* Update per @zeripath's feedback
Dane [Sat, 5 Jan 2019 17:53:23 +0000 (17:53 +0000)]
Add docs on passing SSH through to container (#5019)
* Add docs on passing SSH through to container
Wasn't clear how to pass SSH connections through the container, found a
few blog posts which described roughly the same procedure I've
documented here.
Credit should really go to:
* https://blog.sakuragawa.moe/gitea-in-docker-container-and-sharing-ssh-with-host/
* http://www.ateijelo.com/blog/2016/07/09/share-port-22-between-docker-gogs-ssh-and-local-system
Signed-off-by: Dane Elwell <dane.elwell@ukfast.co.uk>
* Add note to resolve @lafriks feedback
zeripath [Fri, 4 Jan 2019 21:51:27 +0000 (21:51 +0000)]
Fix sqlite deadlock when assigning to a PR (#5640)
* 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>
Jonas Franz [Fri, 4 Jan 2019 17:44:26 +0000 (18:44 +0100)]
Add changelog for 1.6.3 and 1.7.0-rc2 (#5636)
* Add changelog for 1.6.3 and 1.7.0-rc2
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add missing point for 1.6.3
Signed-off-by: Jonas Franz <info@jonasfranz.software>
GiteaBot [Fri, 4 Jan 2019 16:16:40 +0000 (16:16 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Fri, 4 Jan 2019 16:08:26 +0000 (16:08 +0000)]
SECURITY: protect DeleteFilePost et al with cleanUploadFileName (#5631)
This commit wraps more of the TreePaths with cleanUploadFileName
Signed-off-by: Andrew Thornton <art27@cantab.net>
GiteaBot [Fri, 4 Jan 2019 09:23:34 +0000 (09:23 +0000)]
[skip ci] Updated translations via Crowdin
Harshit Bansal [Fri, 4 Jan 2019 09:22:58 +0000 (14:52 +0530)]
Don't close issues via commits on non-default branch. (#5622)
Adds a small check to close the issues only if the referencing commits
are on the default branch.
Fixes: #2314.
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
GiteaBot [Thu, 3 Jan 2019 10:19:43 +0000 (10:19 +0000)]
[skip ci] Updated translations via Crowdin
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
Moshi Binyamini [Wed, 2 Jan 2019 22:42:33 +0000 (00:42 +0200)]
Fix bug on modifying sshd username (#5624)
Should fix #5623
techknowlogick [Wed, 2 Jan 2019 18:35:18 +0000 (13:35 -0500)]
Update @jonasfranz's username (#5619)
* Update @jonasfranz's username
* lowercase'd username
techknowlogick [Wed, 2 Jan 2019 18:00:19 +0000 (13:00 -0500)]
Update owners & Date in contributing (#5620)
GiteaBot [Wed, 2 Jan 2019 12:59:14 +0000 (12:59 +0000)]
[skip ci] Updated translations via Crowdin
Harshit Bansal [Wed, 2 Jan 2019 12:56:58 +0000 (18:26 +0530)]
branch: Trigger update when deleting branch via UI. (#5617)
Fixes: #5309.
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
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.
Daniel Wolf [Mon, 31 Dec 2018 13:23:03 +0000 (08:23 -0500)]
update v71.go to resolve #5595 (#5613)
GiteaBot [Mon, 31 Dec 2018 12:03:07 +0000 (12:03 +0000)]
[skip ci] Updated translations via Crowdin
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.
Lanre Adelowo [Thu, 27 Dec 2018 18:04:30 +0000 (19:04 +0100)]
Webhook for Pull Request approval/rejection (#5027)
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
Tony Homrich [Thu, 27 Dec 2018 16:51:19 +0000 (11:51 -0500)]
LDAP via simple auth separate bind user and search base (#5055)
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
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
Lanre Adelowo [Thu, 27 Dec 2018 12:38:38 +0000 (13:38 +0100)]
Make sure argsSet verifies string isn't empty too (#4980)
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>
Michael Lustfield [Thu, 27 Dec 2018 02:03:34 +0000 (20:03 -0600)]
Remove MTecknology from MAINTAINERS (#5599)
GiteaBot [Wed, 26 Dec 2018 19:16:27 +0000 (19:16 +0000)]
[skip ci] Updated translations via Crowdin
Shashvat Kedia [Wed, 26 Dec 2018 19:13:49 +0000 (00:43 +0530)]
Fix route in swagger (#5598)
GiteaBot [Mon, 24 Dec 2018 11:12:56 +0000 (11:12 +0000)]
[skip ci] Updated translations via Crowdin
Charles [Mon, 24 Dec 2018 11:11:18 +0000 (06:11 -0500)]
Gitlab does have discord integration now (#5589)
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)
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
techknowlogick [Fri, 21 Dec 2018 17:45:58 +0000 (12:45 -0500)]
backport 1.6.2 changelog (#5576)
Mura Li [Fri, 21 Dec 2018 16:13:31 +0000 (00:13 +0800)]
Fix type mismatch of format string (#5574)
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.
Lunny Xiao [Fri, 21 Dec 2018 02:32:11 +0000 (10:32 +0800)]
fix bug on upload file name (#5571)
Antoine GIRARD [Thu, 20 Dec 2018 20:34:55 +0000 (21:34 +0100)]
Create stale bot config (#5243)
GiteaBot [Wed, 19 Dec 2018 13:00:35 +0000 (13:00 +0000)]
[skip ci] Updated translations via Crowdin
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
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
zeripath [Wed, 19 Dec 2018 02:04:43 +0000 (02:04 +0000)]
Update Licenses (#5558)
Lunny Xiao [Wed, 19 Dec 2018 01:17:43 +0000 (09:17 +0800)]
fix lfs version check warning log when using ssh protocol (#5501)
zeripath [Tue, 18 Dec 2018 17:05:48 +0000 (17:05 +0000)]
Support reverse proxy providing email (#5554)
This PR implements #2347
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
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>
GiteaBot [Mon, 17 Dec 2018 14:08:30 +0000 (14:08 +0000)]
[skip ci] Updated translations via Crowdin
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>
Lunny Xiao [Thu, 13 Dec 2018 15:55:43 +0000 (23:55 +0800)]
Improve performance of dashboard (#4977)
GiteaBot [Wed, 12 Dec 2018 21:02:34 +0000 (21:02 +0000)]
[skip ci] Updated translations via Crowdin
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
GiteaBot [Wed, 12 Dec 2018 15:19:11 +0000 (15:19 +0000)]
[skip ci] Updated translations via Crowdin
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)
Lunny Xiao [Wed, 12 Dec 2018 08:46:17 +0000 (16:46 +0800)]
fix detect force push failure on deletion of protected branches (#5522)
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
Lunny Xiao [Tue, 11 Dec 2018 23:49:33 +0000 (07:49 +0800)]
fix approvals limitation (#5521)
Lunny Xiao [Tue, 11 Dec 2018 19:33:24 +0000 (03:33 +0800)]
fix permission check on api create org (#5523)
Lunny Xiao [Tue, 11 Dec 2018 18:37:32 +0000 (02:37 +0800)]
fix clone wiki failed via ssh (#5503)
Lunny Xiao [Tue, 11 Dec 2018 18:12:06 +0000 (02:12 +0800)]
fix adding reaction fail for read permission (#5515)
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
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
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>
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>