summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* If no specific context is required for status check, require an overall ↵Elias Norberg2019-09-302-2/+10
| | | | | success (#8318) Signed-off-by: Elias Norberg <elias@aisle.se>
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-301-0/+9
|
* Show correct commit status in PR list (#8316)Elias Norberg2019-09-302-5/+8
| | | | | | | | | | * Use correct index when fetching commit status Signed-off-by: Elias Norberg <elias@aisle.se> * Compare against base repo to avoid mismatch when merging from fork Signed-off-by: Elias Norberg <elias@aisle.se>
* Fix repo_admin_change_team_access always checked in org settings (#8319)David Svantesson2019-09-302-1/+2
| | | Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-291-0/+6
|
* Add 'make revive' to instructions for checking code (#8314)David Svantesson2019-09-291-4/+4
| | | | | | | | * Add 'make revive' to instructions for checking code This is performed on drone, hacking instructions should contain the same to avoid unnecessary PR builds. * lint is deprecated. Denote revive +vet as code analysis in continuous text.
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-291-4/+587
|
* Upgrade xorm to latest to fix insert issue bug (#8309)Lunny Xiao2019-09-2914-75/+465
| | | | | | | | | | * upgrade xorm to latest to fix insert issue bug * add newissue unit tests * update xorm version * fix tests
* Fix API for edit and delete release attachment (#8285)David Svantesson2019-09-271-2/+6
| | | | | | * Add logging for when user requested attachment doesn't belong to the specified release. * Fix API to use correct variable for release asset (attachment)
* Extract actions on new pull request from models to pulls service and move ↵Lunny Xiao2019-09-279-36/+56
| | | | | | | | | | | | | | code.gitea.io/gitea/modules/pull to code.gitea.io/gitea/services/pull (#8218) * extract actions on new pull request from models to pulls service * improve code * move code.gitea.io/gitea/modules/pull to code.gitea.io/gitea/services/pull * fix fmt * Rename pulls.go to pull.go
* Alwaywas return local url for users avatar (#8245)Sandro Santilli2019-09-264-3/+53
| | | | | | | | | | | * Always return local url for users avatar Avoids having to wait for DNS lookups when libravatar is activated fixing #6046 * Avoid double slash in avatar link * Move avatar route to the correct place
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-261-1/+10
|
* Added myself to translators list (#8292)Adam2019-09-261-0/+1
|
* [docs] Docker build - ZeroMQ dependency for Jupyter (#8262)Bill Wenrich2019-09-261-2/+2
| | | | | | | | | | | | * doc py3-zmq - ZeroMQ bindings for jupyter #7970 https://github.com/go-gitea/gitea/issues/7970 * rebase Dockerfile to 1.9.x for jupyter * [docs] external-renderers.en-us.md - use templated variable for version Co-Authored-By: techknowlogick <matti@mdranta.net>
* Update xorm (#8286)John Olheiser2019-09-256-11/+61
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Improve integration tests (#8276)Lunny Xiao2019-09-258-68/+143
| | | | | | | | * improve integration tests * fix Makefile * improve makefile and integration docs
* Fix nil ref (#8281)guillep2k2019-09-251-1/+1
|
* Update hacking-on-gitea.en-us.md (#8275)David Svantesson2019-09-241-1/+1
| | | Fix spelling of misspell in command to validate swagger.
* Move create issue comment to comments package (#8212)Lunny Xiao2019-09-244-117/+117
| | | | | | | | | | * move create issue comment to comments package * extract actions on update/delete comment from models to comment service * fix lint * fix lint
* Test more reserved usernames (#8263)Sandro Santilli2019-09-242-1/+15
| | | | | | | | | | * Test more reserved usernames * Add more reserved usernames, sort them * Reserve "attachments" username (is a used route) * It's "avatars" being reserved, not "avatar"
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-241-0/+9
|
* Fix label count (#8267)Lunny Xiao2019-09-2438-579/+958
| | | | | | | | | | | | | | * fix label count * fix vendor * fix import order * update xorm to fix bug * fix tests * fix mssql bug
* Fix assets key on release webhook (#8253)Daniel Fonseca de Lira2019-09-241-2/+4
| | | | | | | | * Fix assets key on release webhook * Fix assets key on release webhook * Add message to log on AddReleaseAttachments failure
* Move all mail related codes from models to services/mailer (#7200)Lunny Xiao2019-09-2422-134/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move all mail related codes from models to modules/mailer * fix lint * use DBContext instead Engine * use WithContext not WithEngine * Use DBContext instead of Engine * don't use defer when sess.Close() * move DBContext to context.go and add some methods * move mailer from modules/ to services * fix lint * fix tests * fix fmt * add gitea copyright * fix tests * don't expose db functions * make code clear * add DefaultDBContext * fix build * fix bug
* Do only show teams access for organization repositories, not for personal ↵David Svantesson2019-09-242-0/+3
| | | | | repositories (#8265) Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-231-0/+15
|
* Add teams to repo on collaboration page. (#8045)David Svantesson2019-09-2330-79/+575
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add teams to repo on collaboration page. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add option for repository admins to change teams access to repo. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add comment for functions Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Make RepoAdminChangeTeamAccess default false in xorm and make it default checked in template instead. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Make proper language strings and fix error redirection. * Add unit tests for adding and deleting team from repository. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add database migration Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix redirect Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix locale string mismatch. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Move team access mode text logic to template. * Move collaborator access mode text logic to template.
* Delete releases attachments if release is deleted (#6068)Lanre Adelowo2019-09-224-1/+63
| | | | | | | | | | | | | | | | | | | | | | * delete attachments from the database and file system * add migration * fix import statements * fix package name * remove conditional should in case the confi has been changed and the server restarted * simplify deletion of attachments in DB * fix CI build * fix review * add copyright in the proper place * fix review
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-213-0/+26
|
* Fix utf8 tests (#8192)guillep2k2019-09-212-35/+81
| | | | | | | | * Prevent compiler environment from making the tests fail * Remove unused function * Pass lint
* Remove unnecessary backslash (#8249)John Olheiser2019-09-201-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-201-0/+21
|
* Change link on issue milestone (#8246)guillep2k2019-09-201-1/+1
| | | | | | * Change link on issue milestone * Fix the sidebar link for milestone
* Reference issues from pull requests and other issues (#8137)guillep2k2019-09-2010-16/+610
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update ref comment * Generate comment on simple ref * Make fmt + remove unneeded repo load * Add TODO comments * Add ref-check in issue creation; re-arrange template * Make unit tests pass; rearrange code * Make fmt * Filter out xref comment if user can't see the referencing issue * Add TODOs * Add cross reference * Rearrange code; add cross-repository references * Striketrhough obsolete references * Remove unnecesary TODO * Add "not supported" note * Support for edits and deletes, and issue title * Revert changes to go.mod * Fix fmt * Add support for xref from API * Add first integration test * Add integration tests * Correct formatting * Fix add comment test * Add migration * Remove outdated comments; fix typo * Some code refactoring and rearranging * Rename findCrossReferences to createCrossReferences * Delete xrefs when repository is deleted * Corrections as suggested by @lafriks * Prepare for merge * Fix log for errors
* Allow registration when button is hidden (#8237)guillep2k2019-09-191-1/+1
|
* README: add License shield (#8235)65432019-09-192-0/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-193-0/+32
|
* Fix release API URL generation (#8234)Daniel Fonseca de Lira2019-09-181-1/+1
|
* update cache item_ttl docs (#8222)Lunny Xiao2019-09-182-3/+5
|
* Add 'Mentioning you' group to /issues page (#8201)jaqra2019-09-183-0/+29
|
* Refuse merge until all required status checks success (#7481)Lunny Xiao2019-09-1815-116/+387
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refuse merge until ci successfully * deny merge request when required status checkes not succeed on merge Post and API * add database migration for added columns on protected_branch * fix migration * fix protected branch check bug * fix protected branch settings * remove duplicated code on check pull request's required commit statuses pass * remove unused codes * fix migration * add newline for template file * fix go mod * rename function name and some other fixes * fix template * fix bug pull view * remove go1.12 wrong dependencies * add administrator bypass when protected branch status check enabled * fix bug * improve the codes
* move some milestone functions to a standalone package (#8213)Lunny Xiao2019-09-185-44/+65
|
* MS Teams webhook misses commit messages (#8209)Bjoern Petri2019-09-171-0/+1
| | | | | The current webhook just shows the amount of commits, but misses the actual commit description. While the code is actually there to include the description, it is just not included. Signed-off-by: Bjoern Petri <bjoern.petri@sundevil.de>
* Disable max height property of comment textarea (#8203)jaqra2019-09-172-0/+5
|
* Remove legacy handling of drone token (#8191)techknowlogick2019-09-171-6/+0
| | | Now Drone has removed Gitea user/pass handling we can remove legacy handling
* Fix data race (#8204)Mura Li2019-09-173-20/+57
| | | | | | | | | | | | | | * Fix data race * Fix data race in modules/log * Make the scope of lock finner-grained * Use syc.Map * Fix missing change in the test * Do not export LoggerMap
* [skip ci] Updated translations via CrowdinGiteaBot2019-09-171-0/+6
|
* faq: mention EMAIL_DOMAIN_WHITELIST on allowing email domains (#8198)Mikaela Suomalainen2019-09-171-3/+7
| | | | | | | | | | | | | | | | | | | | | | * faq: mention EMAIL_DOMAIN_WHITELIST on allowing email domains Signed-off-by: Mikaela Suomalainen <mikaela+git@mikaela.info> * faq: separate openid from allow/block email domain Signed-off-by: Mikaela Suomalainen <mikaela+git@mikaela.info> * faq: update ToC Signed-off-by: Mikaela Suomalainen <mikaela+git@mikaela.info> * Update docs/content/doc/help/faq.en-us.md Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> * Update docs/content/doc/help/faq.en-us.md Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Adds side-by-side diff for images (#6784)Mario Lubenka2019-09-1610-15/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adds side-by-side diff for images Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Explain blank imports Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use complete word for width and height labels on image compare Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update index.css from master Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Moves ImageInfo to git commit file Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Assign ImageInfo function for template and sets correct target for BeforeSourcePath Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds missing comment Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return error if ImageInfo failed Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Avoid template panic when ImageInfo failed for some reason Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Show file size on image diff Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes unused helper function Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Reverts copyright year change Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Close file reader Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update commit.go Sets correct data key * Moves reader.Close() up a few lines * Updates index.css * Updates CSS file Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Transfers adjustments for image compare to compare.go file Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adjusts variable name Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Apply lesshint recommendations Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Do not show old image on image compare if it is not in index of base commit Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Change file size text Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Fix pull merge 500 error caused by git-fetch breaking behaviors (#8161)Mura Li2019-09-151-1/+1
|