summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [skip ci] Updated translations via CrowdinGiteaBot2020-02-051-0/+2
|
* Fix push-create SSH bugs (#10145)John Olheiser2020-02-053-1/+33
| | | | | | | | | | | | | | * Attempt to fix push-create SSH bugs Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix binding Signed-off-by: jolheiser <john.olheiser@gmail.com> * Invalid ctx Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-02-042-0/+4
|
* Ensure DeleteUser is not allowed to Delete Orgs and visa versa (#10134)65432020-02-044-6/+13
| | | | | | | | | | | | | | * add check to DeleteUser * add check to DeleteOrganization * add Test * remove redundancy (deleteOrg is only used in DeleteOrganization) * Update models/org.go Co-authored-by: zeripath <art27@cantab.net>
* [API] expose RepoOwner on Issue responce (#10126)65432020-02-043-0/+6
| | | | | | * add RepoOwner on issue api responce * CI.restart()
* Show if a PR has conflicting files on the PR lists (#10130)James Lakin2020-02-044-8/+23
| | | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Show download count info in release list (#10124)Lauris BH2020-02-0323-40/+1207
| | | | | | * Show download count info in release list * Use go-humanize
* Prevent DeleteUser API abuse (#10125)65432020-02-032-1/+7
| | | | | | * fix & co * word suggestions from @jolheiser
* [skip ci] Updated translations via CrowdinGiteaBot2020-02-031-0/+4
|
* Move PushUpdateAddDeleteTags to repository module from models (#10106)Lunny Xiao2020-02-038-166/+176
| | | | | | * Move PushUpdateAddDeleteTags to repository module from models * Fix deadlock on sqlite
* working part of #9998 (#10114)65432020-02-031-2/+6
| | | | Co-authored-by: zeripath <art27@cantab.net>
* Add Unique Queue infrastructure and move TestPullRequests to this (#9856)zeripath2020-02-0229-500/+1934
| | | | | | | | | | | | | | | | | | | | | * Upgrade levelqueue to version 0.2.0 This adds functionality for Unique Queues * Add UniqueQueue interface and functions to create them * Add UniqueQueue implementations * Move TestPullRequests over to use UniqueQueue * Reduce code duplication * Add bytefifos * Ensure invalid types are logged * Fix close race in PersistableChannelQueue Shutdown
* Update aria-fixed semantic-dropdown to fomantic master (#10096)zeripath2020-02-021-43/+38
| | | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Improve push update options (#10105)Lunny Xiao2020-02-025-152/+192
| | | | | | | | | | | | | | * Improve push update options * fix test * More refactor and fix lint * fix lint * Fix lint Co-authored-by: Lauris BH <lauris@nix.lv>
* Add warning when using relative path to app.ini (#10104)guillep2k2020-02-021-0/+1
| | | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Check if go exists before generating the GOPATH (#10100)zeripath2020-02-011-2/+6
| | | | | | | | * Check if go exists before generating the GOPATH * Move export PATH into Go protected section Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Implement "embedded" command to extract static resources (#9982)guillep2k2020-02-028-6/+568
| | | | | | | | | | | | | | | | | | | | | | | * draft * Implement extract command * Fix nits and force args on extract * Add !bindata stub, support Windows, fmt * fix vendored flag * Remove leading slash for matching * Add docs * Fix typos * Add embedded view command Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix broken FlushAll (#10101)zeripath2020-02-011-4/+4
| | | | | | | | | | * go function contexting is not what you expect * Apply suggestions from code review Co-Authored-By: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv>
* Use a file as make evidence for fomantic instead of a directory (#10032)guillep2k2020-02-012-4/+11
| | | | | | | | | | | | | | | * Use evidence file as dependency instead of dir * fix eol * Update .gitignore Co-Authored-By: silverwind <me@silverwind.io> * Use FOMANTIC_SOURCES to establish dependencies as per @silverwind Co-authored-by: silverwind <me@silverwind.io>
* Cache last commit to accelerate the repository directory page visit (#10069)Lunny Xiao2020-02-0110-23/+273
| | | | | | | | | | | | | | | * Cache last commit to accelerate the repository directory page visit * Default use default cache configuration * add tests for last commit cache * Simplify last commit cache * Revert Enabled back * Change the last commit cache default ttl to 8760h * Fix test
* remove VERSIONS file (#10070)silverwind2020-02-011-63/+0
| | | | | It serves no clear purpose and is not used anywhere to my knowledge. Also, it's name to version mapping doesn't work with bundling.
* Accept punctuation after simple+cross repository issue references (#10091)guillep2k2020-02-012-13/+97
| | | | | | | | | | * Support references ending in , . and ; * Accept :;, in simple refs; fix 2+ consecutive refs * Include cross-repository references * Add ?!, fix spacing problem
* Add button to revert SimpleMDE to plain textarea (#10099)zeripath2020-02-011-3/+30
|
* enable babel-loader cache (#10083)silverwind2020-02-012-1/+9
| | | | | | | this speeds up repeated webpack builds by around 20%. It will use the default cache directory `node_modules/.cache/babel-loader`. Also added cache invalidation to workaround https://github.com/babel/babel-loader/issues/690
* Fix branch page pull request title and link error (#10092)Lunny Xiao2020-02-012-6/+6
| | | | | | * Fix branch page pull request title and link error * Fix ui
* Fix IsErrPullClosed (#10093)Lunny Xiao2020-02-011-2/+2
|
* [BugFix] [API] Pull.API.Convert: Only try to get HeadBranch if HeadRepo ↵65432020-01-313-29/+53
| | | | | | | | | | | | | | exist (#10029) * only try to get HeadBranch if HeadRepo exist * impruve * no nil error * add TEST * correct error msg
* API endpoint for repo transfer (#9947)65432020-01-319-10/+265
| | | | | | | | | | * squash * optimize * fail before make any changes * fix-header
* Remove migration support from versions earlier than 1.6.0 (#10026)guillep2k2020-01-3163-3443/+53
| | | | | | | | | | | | | | * Remove migration support from versions earlier than 1.6.0 * Remove unused functions * Update gogs upgrade instructions * Improve "latest" link as per @jolheiser Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Update topics repo count when deleting repository (#10051)Lauris BH2020-01-314-3/+54
| | | | | | | | * Update topics repo count when deleting repository * Add migration to fix incorrect data * Optimize to use single update to recalculate values
* update (#10079)65432020-01-311-14/+20
|
* Remove unused config on UI (#10078)John Olheiser2020-01-311-2/+0
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-301-0/+4
|
* Fix leveldb test race (#10054)Lunny Xiao2020-01-301-0/+18
| | | | | Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* fix apple-touch-icon, regenerate images (#10065)silverwind2020-01-306-3/+3
| | | | | | | | | | | | | * fix apple-touch-icon, regenerate images Fixed semi-transparent pixels of apple-touch-icon.png. I had to manually exclude public/img/loading.png from the commit because it's an APNG and one of the tools destroys the animation. * exclude loading.png Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Implement basic app.ini and path checks to doctor cmd (#10064)guillep2k2020-01-303-15/+122
| | | | | | | | | | | | | | | | | | | | | | | | | * Add doctor check of app.ini paths * Make /custom dir not mandatory * Fix message and improve interface * Update cmd/doctor.go Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> * Apaise lint * Isn't the linter a sweet? (1) * Isn't the linter a sweet? (2) * Isn't the linter a sweet?? (3) * Restart CI Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net>
* move jquery.are-you-sure to npm/webpack (#10063)silverwind2020-01-299-216/+11
|
* [UI] Show pull icon on pull (#10061)65432020-01-292-1/+3
| | | | | * make fmt * show pull icon on pull
* Add RACE_ENABLED=1 envs for make test* (#10055)Lunny Xiao2020-01-291-13/+17
|
* Movde dependents on macaron from modules/setting (#10050)Lunny Xiao2020-01-296-35/+74
| | | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix milestone API state parameter unhandled (#10049)Lunny Xiao2020-01-295-6/+79
| | | | | | * Fix milestone API state parameter unhandled * Fix test
* Refactor api repo dir (#10048)65432020-01-293-234/+264
| | | | | | | | * mv migrate * mv mirror Co-authored-by: zeripath <art27@cantab.net>
* Update documentation for the go module era (#9751)zeripath2020-01-284-27/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update documentation for the go module era use go env instead of $GOPATH Update instructions to just use git clone Slight update to readme Signed-off-by: Andrew Thornton <art27@cantab.net> * fixup * Apply suggestions from code review Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> Co-Authored-By: Bagas Sanjaya <bagasdotme@gmail.com> * Apply suggestions from code review * Fix GOPATH settings Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Bagas Sanjaya <bagasdotme@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* add touch-icon with background (#10022)NiTRoeSE2020-01-283-1/+3
| | | | | | | | | | | | * add touch-icon with background ...to prevent ugly glitch while minimize app to homescreen * add / generate apple-touch-icon * run make command Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Queue: Make WorkerPools and Queues flushable (#10001)zeripath2020-01-2827-327/+1030
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make WorkerPools and Queues flushable Adds Flush methods to Queues and the WorkerPool Further abstracts the WorkerPool Adds a final step to Flush the queues in the defer from PrintCurrentTest Fixes an issue with Settings inheritance in queues Signed-off-by: Andrew Thornton <art27@cantab.net> * Change to for loop * Add IsEmpty and begin just making the queues composed WorkerPools * subsume workerpool into the queues and create a flushable interface * Add manager command * Move flushall to queue.Manager and add to testlogger * As per @guillep2k * as per @guillep2k * Just make queues all implement flushable and clean up the wrapped queue flushes * cope with no timeout Co-authored-by: Lauris BH <lauris@nix.lv>
* fix gitgraph commit hashes in dark theme (#10046)silverwind2020-01-283-6/+2
| | | | | | because the CSS was lazy-loaded the rules in arc-green did not win. included the css file in the main bundle to fix. the black dots can not be fixed via CSS because they are drawn in a `<canvas>` element unfortunately.
* move highlight.js to npm/webpack (#10011)silverwind2020-01-2816-254/+53
| | | | | | | | | | - introduced window.config to help with js-based lazy-loading - adjusted webpack chunk naming to avoid 'vendors~name.js' that webpack defaults to for vendor chunks. - added theme class to html and prefixed all selectors. this is neccesary so that the theme styles win over the lazy-loaded ones. Co-authored-by: zeripath <art27@cantab.net>
* Minor typo fix (#10043)Andy Harrison2020-01-282-2/+2
|
* More expansions in template repositories (#10021)John Olheiser2020-01-2818-80/+1814
| | | | | | | | * Super expansion * Explain which features are in 1.11 vs 1.12 * Move imports Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Ensure that feeds are appropriately restricted (#10018)zeripath2020-01-282-5/+6
| | | | | | | | | | * Always limit results by what is accessible to the user * Change signature of AccessibleRepoIDsQuery * Ensure that user with ID <= 0 is handled * Update models/repo_list.go