summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Recover panic in orgmode.Render if bad orgfile (#4982) (#5903)zeripath2019-01-301-4/+10
| | | | | | | This PR protects against the panic referred to in chaseadmsio/goorgeous#82 by recovering from the panic and just returning the raw bytes if there is an error. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Provide better panic handling (#5902)zeripath2019-01-304-2/+118
| | | | | | | This PR gitea'ises the macaron.Recovery() handler meaning that in the event of panic we get proper gitea 500 pages and the stacktrace is logged with the gitea logger. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Only allow local login if password is non-empty (#5906)zeripath2019-01-302-2/+2
|
* Fix go-get URL generation (#5905)Lauris BH2019-01-303-3/+5
|
* don't allow pull requests to be created on an archived repository (#5883)Lanre Adelowo2019-01-303-8/+15
| | | | | | * don't allow pull requests to be created on an archived repository Also disable the "PR" button if the repo is archived * Refuse creating an issue/PR via API calls too
* Don't discard the value of DISABLE_REGULAR_ORG_CREATION (#5886)Lanre Adelowo2019-01-302-0/+45
| | | | | * Consider the configuration value of DISABLE_REGULAR_ORG_CREATION when creating a user
* respect value of REQUIRE_SIGNIN_VIEW (#5901)Lanre Adelowo2019-01-301-1/+1
|
* Fix new release creation API to allow empty target (#5870)Lauris BH2019-01-3011-348/+168
| | | | | | | | * Fix new release creation API to allow empty target * Add more test cases * Update swagger
* if repo does not exist, show a 404 not a 500 (#5900)Lanre Adelowo2019-01-301-1/+4
|
* UI: Correct footer height if screen-width is to small (fixes #5878) (#5889) ↵EpicCoder2019-01-293-8/+10
| | | | (#5889)
* fix compare button on upstream repo leading to 404 (#5877)Lanre Adelowo2019-01-291-2/+2
|
* UI: Change GPG Validation colors and remove inline CSS; fixes #5404 (#5896)EpicCoder2019-01-295-8/+23
|
* Also ensure the repo is loaded (#5895)zeripath2019-01-291-0/+4
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-293-0/+20
|
* Ensure issue.Poster is loaded in mailIssueCommentToParticipants (#5891)zeripath2019-01-291-2/+2
| | | | | | Previous code could potentially dereference nil - this PR ensures that the poster is loaded before dereferencing it. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add migration test (#5773)zeripath2019-01-2812-1/+277
| | | | | | | | | | | | | | * Add migration test This commit adds a simple migration test for v1.5.3, v1.6.4 and v1.7.0-rc3 Signed-off-by: Andrew Thornton <art27@cantab.net> * Automigrate based on available dbs * remove old ini file * Standardise the dialect names
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-287-7/+1
|
* Fix wrong URL to download link. (#5881)vee w2019-01-281-3/+3
| | | | | | | | * Fix wrong URL to download link. The link does not contain trailing slash and cause error page displayed. * Update version
* New Issue ?body= query (#5851)kekero2019-01-283-2/+7
| | | | | | | | * New Issue ?body= query * Override issue template with body query * Add documentation for issue body query
* Fix "pulls.blocked_by_approvals" text (#5879)Lanre Adelowo2019-01-281-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-284-0/+89
|
* API: Fix null pointer in attempt to Sudo if not logged in (#5872)zeripath2019-01-281-1/+1
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Revert #3711 overwrite of only show "No Description" to repo admins #2167 ↵Gabriel Silva Simões2019-01-272-1/+21
| | | | | (#5836) Revert #3711 overwrite of only show "No Description" to repo admins #2167 and add tests to prevent accidental overwrite again.
* Fix wording of #5858 issue.review.reject string (#5869)zeripath2019-01-271-1/+1
| | | | | As per @lafriks comment this should be: requested changes Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-271-0/+8
|
* Fix an error while adding a dependency via UI. (#5862)Harshit Bansal2019-01-272-2/+3
| | | Fixes: #5783
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-2711-20/+18
|
* Config option to disable automatic repo watching (#5852)sebastian-sauer2019-01-275-14/+31
| | | | | | | | | Add a new config option to enable / disable the automatic watching of repos for new repositories and if a user is added to a team. Fixes #653 Signed-off-by: Sebastian Sauer <sauer.sebastian@gmail.com>
* Rename reject to 'request changes' (#5858)Lanre Adelowo2019-01-261-2/+2
| | | | | | * remame reject to 'request changes * make usee of requested changes in issue's view content
* Fix failing migration v67 (#5849)Jakub Arbet2019-01-261-8/+8
| | | Fixes #5848
* Fix MinInterval (#5856)yasuokav2019-01-261-1/+1
| | | Fixes #5847
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-261-0/+15
|
* Move input fields to add members to a team and repos to a team (#5853)sebastian-sauer2019-01-252-34/+34
| | | | | | Move input fields to the top so no scrolling is needed to add new members / repos to a team. Signed-off-by: Sebastian Sauer <sauer.sebastian@gmail.com>
* fix delete correct temp directory (#5839)yasuokav2019-01-251-1/+1
|
* update swagger for release API pagination (#5841)Lunny Xiao2019-01-252-0/+20
|
* improve the releases api paging (#5831)Lunny Xiao2019-01-245-2/+29
| | | | | | * improve the releases api paging * add max limit on API paging
* Added docs for the tree api (#5834)kolaente2019-01-243-0/+135
| | | | | | | | * Added docs for the tree api * Added missing response definition * Fixed swagger docs
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-241-0/+27
|
* Include Go toolchain to --version (#5830)Antoine GIRARD2019-01-241-2/+3
| | | | | | * Include Go version * fix import order
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-241-0/+19
|
* Ensure valid git author names passed in signatures (#5774)zeripath2019-01-246-13/+72
| | | | | | | | | | | | | | | | | | | | * Ensure valid git author names passed in signatures Fix #5772 - Git author names are not allowed to include `\n` `<` or `>` and must not be empty. Ensure that the name passed in a signature is valid. * Account for pathologically named external users LDAP and the like usernames are not checked in the same way that users who signup are. Therefore just ensure that user names are also git safe and if totally pathological - Set them to "user-$UID" * Add Tests and adjust test users Make our testcases a little more pathological so that we be sure that integration tests have a chance to spot these cases. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix topics saving internal error and disable for archived repos (#5821)Lauris BH2019-01-242-3/+3
|
* Make sure .git/info is created before generating .git/info/sparse-che… (#5825)Mura Li2019-01-241-1/+5
| | | | | | * Make sure .git/info is created before generating .git/info/sparse-checkout * fix permissions
* Remove tidb reference from docs (#5823)techknowlogick2019-01-244-4/+0
| | | | | | | | | | * Remove tidb reference from docs * Update from-source.fr-fr.md * Update from-source.zh-cn.md * Update from-source.zh-tw.md
* When creating new repository fsck option should be enabled (#5817)Lauris BH2019-01-231-6/+7
|
* Fix TLS errors when using acme/autocert for local connections (#5820)Joona Hoikkala2019-01-231-0/+1
|
* Request for public keys only if LDAP attribute is set (#5816)Lauris BH2019-01-2413-105/+293
| | | | | | * Update go-ldap dependency * Request for public keys only if attribute is set
* New API routes added (#5594)Shashvat Kedia2019-01-235-5/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New API routes added * Comments added * Build fix * swagger_v1_json.tmpl without new line character * Typo fix * Code review changes * Code review changes * Add copyright * Add copyright * Add copyright * Update per @lafriks feedback * Update org.go * Update user.go * Update user.go * make fmt
* [skip ci] Updated translations via CrowdinGiteaBot2019-01-2329-0/+29
|
* Adapt documentation to renamed ENABLE_SWAGGER option (#5811)Peter Colberg2019-01-233-3/+3
| | | | | Updates documentation to account for the renamed ENABLE_SWAGGER_ENDPOINT from #3572 (commit a74426d631e3311cc3c460ae9917f76f0221f4de) Signed-off-by: Peter Colberg <peter@colberg.org>