aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* rework eslint config (#11615)silverwind2020-06-098-163/+725
| | | | | | | | | | | | | | | | | | | | | | | | * rework eslint config - use explicit config that only enables rules - upgrade eslint to 7.1.0 - add new plugins with selected rules enabled - fix discovered issues, remove global wipPrefixes * remove if * undo template change * add disabled rules as well for easier config updating * add missing disabled rule * update eslint and plugins * fix new violation * remove deprecated rules Co-authored-by: Lauris BH <lauris@nix.lv>
* Refactor: Remove Dependencys from Migration v112-v119 (#11811)65432020-06-093-8/+18
| | | | | | | * v119 * v116 * v112
* Fix reply octicon (#11821)John Olheiser2020-06-092-2/+2
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Use crispEdges rendering for octicon-internal-repo (#11801)Cirno the Strongest2020-06-091-0/+8
| | | | | | | * Use crispEdges rendering for octicon-internal-repo * Update _svg.less Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Remove page size limit comment from swagger (#11806)Cirno the Strongest2020-06-0940-120/+120
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Honor DEFAULT_PAGING_NUM for API (#11805)Cirno the Strongest2020-06-085-15/+16
| | | | | | | | | | * Honor DEFAULT_PAGING_NUM for API * set pagination to 10 for tests * lint Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* give gitea time to calculate language stats (#11812)65432020-06-081-0/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-082-5/+5
|
* Ensure rejected push to refs/pull/index/head fails nicely (#11724)zeripath2020-06-082-5/+37
| | | | | | | | | | A pre-receive hook that rejects pushes to refs/pull/index/head will cause a broken PR which causes an internal server error whenever it is viewed. This PR handles prevents the internal server error by handling non-existent pr heads and sends a flash error informing the creator there was a problem. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add option to API to update PullRequest base branch (#11666)65432020-06-074-3/+52
| | | | | * EditPull: add option to change base Close #11552
* Work around fomantic 2.8.5 bugs (#11767)Cirno the Strongest2020-06-072-1/+9
| | | | | | | | Work around fomantic 2.8.5 bugs Closes #11759 Related fomantic/Fomantic-UI#1372 and fomantic/Fomantic-UI#1473
* In File Create/Update API return 404 if Branch does not exist (#11791)65432020-06-071-0/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-073-17/+17
|
* Fix doer of rename repo (#11789)赵智超2020-06-071-1/+1
| | | | | | | fix #11725 Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-071-4/+4
|
* Add language statistics API endpoint (#11737)Lauris BH2020-06-075-0/+184
| | | | | * Add language statistics API * Add tests
* Fix visibility of forked public repos from private orgs (#11717)Cirno the Strongest2020-06-065-9/+30
| | | | | | | | | * Fix visibility of forked public repos from private orgs * update forks visibility when org visibility is changed Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix missing CGO_EXTRA_FLAGS build arg for docker (#11782)Cirno the Strongest2020-06-062-1/+2
| | | Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-061-2/+2
|
* Fix align issues and decrease avatar size on PR timeline (#11689)Cirno the Strongest2020-06-061-11/+14
| | | | | | | | * Fix margin for referenced issue title * Change avatar size to 20px, align referenced issue title to avatar * better align
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-061-4/+4
|
* Initialize SimpleMDE when making a code comment (#11749)zeripath2020-06-062-13/+26
| | | | | | Fix #11704 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-Authored-By: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>
* 1.11.6 is latest version (#11780)techknowlogick2020-06-061-1/+1
|
* Increase maximum SQLite variables count to 32766 (#11696)Cirno the Strongest2020-06-052-15/+8
| | | | | per https://www.sqlite.org/limits.html Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-052-8/+8
|
* Fix timezone on issue deadline (#11697)Cirno the Strongest2020-06-053-3/+8
| | | | | | | * Fix timezone on issue deadline * FormatDate Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-0532-3/+131
|
* Dump: add output format tar and output to stdout (#10376)PhilippHomann2020-06-05303-1181/+301315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Dump: Use mholt/archive/v3 to support tar including many compressions Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * Dump: Allow dump output to stdout Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * Dump: Fixed bug present since #6677 where SessionConfig.Provider is never "file" Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * Dump: never pack RepoRootPath, LFS.ContentPath and LogRootPath when they are below AppDataPath Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * Dump: also dump LFS (fixes #10058) Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * Dump: never dump CustomPath if CustomPath is a subdir of or equal to AppDataPath (fixes #10365) Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * Use log.Info instead of fmt.Fprintf Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * import ordering * make fmt Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Matti R <matti@mdranta.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-0532-32/+64
|
* Add hide activity option (#11353)l-jonas2020-06-0513-16/+488
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add hide activity option This closes https://github.com/go-gitea/gitea/issues/7927 * Adjust for linter * Adjust for linter * Add tests * Remove info that admins can view the activity * Adjust new tests for linter * Rename v139.go to v140.go * Rename v140.go to v141.go * properly indent * gofmt Co-authored-by: Jonas Lochmann <git@inkompetenz.org> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add compare link to releases (#11752)John Olheiser2020-06-052-3/+4
| | | | | Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-051-2/+2
|
* Fix typo (#11773)successgo2020-06-052-14/+14
| | | | | * Fix typo of MSSQL * Fix typo: validates
* Add internal-repo octicon for public repos of private org (#11529)Cirno the Strongest2020-06-057-1/+17
| | | | | | | | | | | | | | | | | | | * Show multiple octicons on repo list * fix mixed spaces/tabs * Internal repo octicon * show internal icon in dashboard repolist * swagger * fix icon for normal repo on repo page * don't expose owner visibility directly; provide internal in repo api * fix icons for forks and mirrors Co-authored-by: Lauris BH <lauris@nix.lv>
* Provide diff and patch API endpoints (#11751)zeripath2020-06-054-0/+182
| | | | | | | | | | | | | | | | | | | | | * Provide diff and patch API endpoints The diff and patch endpoints on the main routes are not accessible by token therefore we provide new API based endpoints for these Fix #10923 Signed-off-by: Andrew Thornton <art27@cantab.net> * placate swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * Make the response an actual string Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix to allow comment poster to edit or delete his own comments (#11671)赵智超2020-06-054-4/+4
| | | | | | | | | | | | | | | | | | | | | | | * bug: fix comment update permision check No the ui only allow poster to update or delet comment, which is not reasonable and different with handle logic, this pr change it to allow poster of comment do it ref code: https://github.com/go-gitea/gitea/blob/e8955173a9be1acaa9a3755c37b6059422acda20/routers/repo/issue.go#L1636 https://github.com/go-gitea/gitea/blob/e8955173a9be1acaa9a3755c37b6059422acda20/routers/repo/issue.go#L1681 fix #11663 Signed-off-by: a1012112796 <1012112796@qq.com> * simplify code * fix sign in Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* European Portuguese translation (#11568)Emanuel Angelo2020-06-055-8/+58
| | | | This PR includes the modifications necessary to make use of the European Portuguese translation from the default setting.
* Fix bug with globally disabling mirror (#11760)65432020-06-042-1/+4
| | | Ensure we return after `ctx.Error(...)`
* API: Return error when Mirrors globaly disabled and like to create one (#11757)65432020-06-041-1/+5
| | | | | | | | | * API: return an error when Mirrors globaly disabled * keep it consistent with UI Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* [API] Expose allowed Reactions (#11735)65432020-06-045-0/+75
| | | | | | | | | | | * [API] Expose allowed Reactions * dont be in soutch a rush * add TEST * use ElementsMatch Co-authored-by: Lauris BH <lauris@nix.lv>
* Include query in sign in redirect (#11579)mrsdizzie2020-06-032-1/+2
| | | | | | | | | | | | | | | | | | | * Include query in sign in redirect Include query string in ctx.Data["SignInLink"] so people are redirected to the right page after singing in. Fixes case of: Visit: https://try.gitea.io/mrsdizzie/testcase/issues?q=&type=all&sort=&state=open&labels=7071&milestone=0&assignee=0 Sign in, then redirected to: https://try.gitea.io/mrsdizzie/testcase/issues Create a new "SignInLink" instead of updating the existing "Link" because too many places in the code assume "Link" won't have a query * Apply suggestions from code review Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Update fomantic-ui to 2.8.5 (#11736)silverwind2020-06-035-309/+79
| | | | | | Update to [2.8.5](https://github.com/fomantic/Fomantic-UI/releases/tag/2.8.5) and remove the workaround for the CSS build race condition. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Alpine 3.12 (#11720)techknowlogick2020-06-032-4/+4
| | | | | * increase alpine to 3.12 * Update .drone.yml
* Don't put integration test data outside of test folder (#11746)mrsdizzie2020-06-034-18/+40
| | | | | | Some integration test data is being put outside of the integration test folders which means it isn't deleted properly with make clean. Update config so it works as expected. Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-031-2/+2
|
* [API] on 500 error only show message if gitea in dev mode (#11641)65432020-06-031-0/+4
| | | | | | | * add API specific InternalServerError() * return 500 error msg only if not Production mode * rm unnessesary change
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-0330-140/+25638
|
* Fix verification of subkeys of default gpg key (#11713)zeripath2020-06-032-2/+64
| | | | | | | | | | | | | | | | | * Fix verification of subkeys of default gpg key Fix #10309 Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove debug log * Update models/gpg_key.go * As per @6543 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* export monaco editor on window.codeEditors (#11739)silverwind2020-06-031-0/+8
| | | | | Fixes: https://github.com/go-gitea/gitea/issues/10409 Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-031-0/+2
|