aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Refactor repo.isBare to repo.isEmpty #5629 (#5714)zeripath2019-01-1739-81/+125
| | | | | | | | * Refactor repo.isBare to repo.isEmpty #5629 Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove Sync call
* update docs to include THEMES config value (#5752)Lanre Adelowo2019-01-173-2/+4
| | | | | | | | * update docs to include THEMES * Update app.ini.sample * Update config-cheat-sheet.en-us.md
* Refactor notification for indexer (#5111)Lunny Xiao2019-01-178-15/+75
| | | | | | * notification for indexer * use NullNotifier as parent struct
* upgrade go-sql-driver/mysql to fix invalid connection error (#5748)Lunny Xiao2019-01-1713-522/+466
| | | should fix #5736
* api: Add missing GET teams endpoints (#5382)Harshit Bansal2019-01-1610-12/+160
| | | | | | | | | | | | | | | | | | | | * 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.
* Add Default Pull Request Title (#5735)Elijah Oyekunle2019-01-161-2/+17
| | | | | | | | * 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
* Fixing #5728: (#5747)Zsombor2019-01-163-5/+9
| | | | * 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
* backport 1.6.4 to HEAD (#5742)techknowlogick2019-01-161-0/+6
|
* Add Prerequisites (#5734)vee w2019-01-161-0/+21
| | | | Add set system user guide. Add absolute path for sqlite3 guide.
* Add proper CORS preflight origin validation (#5740)silverwind2019-01-151-2/+14
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-151-3/+4
|
* Don't list an issue on its own dependency list UI. (#5658)Harshit Bansal2019-01-152-2/+8
| | | Fixes: #4684.
* Support CORS headers to git smart http protocol (#5719)Lunny Xiao2019-01-144-18/+38
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-143-0/+11
|
* Prioritize "readme.md" (#5691)Khaled Hamed2019-01-143-7/+47
| | | | | | | | * prioritize readme.md * Improve IsReadmeFile * Add more tests
* Ensure that sessions are passed into queries that could use the database to ↵zeripath2019-01-136-22/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add flag to skip repository dumping (#5695)Zsombor2019-01-132-14/+24
|
* Discord Oauth2 support (#4476)techknowlogick2019-01-1310-26/+308
| | | | | | | | | | | | | | * add discord auth * add vendor for discord * fix syntax error * make fmt * update version of goth in use * update markbates/goth
* Refactor mail notification (#5110)Lunny Xiao2019-01-138-55/+190
| | | | | | | | * mail notification implement interface * fix file comment year * use NullNotifier as parent struct of notifiers
* fix: use correct value for "MSpan Structures Obtained" #4742 (#5706)Julian2019-01-121-1/+1
| | | Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
* Fix migration for user defined themes (#5682)Lanre Adelowo2019-01-121-1/+1
|
* Do not display the raw OpenID error in the UI (#5705)zeripath2019-01-121-1/+2
| | | | | | | | | | | | | | | | | * 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.
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-123-1/+10
|
* docker: stop modifying file permission before migrating database (#5707)Julian2019-01-121-1/+0
|
* allow user fork repo even when as a guest.. This will prompt the user to ↵Lanre Adelowo2019-01-102-1/+2
| | | | login and if authentication was successful, the user will be redirected to fork the repo (#5690)
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-113-2/+20
|
* Add docs about database migration (#5661)Shikiryu2019-01-102-0/+2
| | | | | | * Add docs about database migration * Reorder upgrade from Gogs steps
* Update xorm to fix issue #5659 and #5651 (#5680)Zsombor2019-01-094-6/+11
|
* When redirecting clean the path to avoid redirecting to //www.othersite.com ↵zeripath2019-01-091-1/+1
| | | | | | | (#5669) Fix #5627 Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix public will not be reused as public key after deleting as deploy key (#5671)Lunny Xiao2019-01-091-0/+5
|
* document command line flags (#5675)Lanre Adelowo2019-01-091-1/+7
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-091-0/+4
|
* Allow for user specific themes (#5668)Lanre Adelowo2019-01-0914-11/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Translate home template to Czech (#5665)Jan Breuer2019-01-081-0/+37
| | | Signed-off-by: Jan Breuer <jan.breuer@jaybee.cz>
* Added URL mapping for Release attachments like on github.com (#1707)gdeverlant2019-01-065-9/+71
|
* Display branch name in delete branch confirmation modal. (#5654)Harshit Bansal2019-01-063-6/+6
| | | Fixes: #5630.
* Only count users own actions for heatmap contributions (#5647)Julian2019-01-061-3/+13
| | | | Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
* fix commit page showing status for current default branch (#5650)Julian2019-01-061-1/+1
| | | Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
* migrate database if app.ini found (#5290)Pierre-Alexis Ciavaldini2019-01-051-0/+15
| | | | | | | | * migrate database if app.ini found * replacing hard-coded user id by env variable * Update per @zeripath's feedback
* Add docs on passing SSH through to container (#5019)Dane2019-01-051-0/+64
| | | | | | | | | | | | | | | | | * 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
* Fix sqlite deadlock when assigning to a PR (#5640)zeripath2019-01-046-9/+17
| | | | | | | | | | | | * 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>
* Add changelog for 1.6.3 and 1.7.0-rc2 (#5636)Jonas Franz2019-01-041-0/+10
| | | | | | | | | | * 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>
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-042-78/+1101
|
* SECURITY: protect DeleteFilePost et al with cleanUploadFileName (#5631)zeripath2019-01-041-2/+18
| | | | | This commit wraps more of the TreePaths with cleanUploadFileName Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-041-0/+9
|
* Don't close issues via commits on non-default branch. (#5622)Harshit Bansal2019-01-042-40/+63
| | | | | | | | Adds a small check to close the issues only if the referencing commits are on the default branch. Fixes: #2314.
* Documentation: Clarity for HTTPS setups (#5626)v1.7.0-dev0x5c2019-01-032-3/+16
| | | | | | [https-setup] - Made it clearer that HTTP redirection is possible [config-cheat-sheet] - Clarified the behavihour of the redirection-related config keys
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-031-0/+11
|
* Add changelog for 1.7.0-rc1 (#5616)Jonas Franz2019-01-031-0/+145
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix bug on modifying sshd username (#5624)Moshi Binyamini2019-01-021-1/+1
| | | Should fix #5623