]> source.dussan.org Git - gitea.git/log
gitea.git
4 years agofix (#9837)
6543 [Sat, 18 Jan 2020 04:31:46 +0000 (05:31 +0100)]
fix (#9837)

4 years agoChangelog 1.10.3 (#9832) (#9849)
6543 [Fri, 17 Jan 2020 22:02:30 +0000 (23:02 +0100)]
Changelog 1.10.3 (#9832) (#9849)

4 years agoFix markdown anchor links (#9673) (#9840)
Moritz [Fri, 17 Jan 2020 16:49:50 +0000 (17:49 +0100)]
Fix markdown anchor links (#9673) (#9840)

4 years agoFix download file wrong content-type (#9825) (#9834)
Lunny Xiao [Fri, 17 Jan 2020 14:11:20 +0000 (22:11 +0800)]
Fix download file wrong content-type (#9825) (#9834)

* Fix download file wrong content-type

* change the error text to be more precise

* fix test

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoFix wrong identify poster on a migrated pull request when submi… (#9827) (#9830)
Lunny Xiao [Fri, 17 Jan 2020 12:38:11 +0000 (20:38 +0800)]
Fix wrong identify poster on a migrated pull request when submi… (#9827) (#9830)

4 years agofix dump non-exist log directory (#9818) (#9819)
Lunny Xiao [Fri, 17 Jan 2020 05:02:41 +0000 (13:02 +0800)]
fix dump non-exist log directory (#9818) (#9819)

4 years agoFix compare (#9808) (#9814)
Lunny Xiao [Fri, 17 Jan 2020 02:08:28 +0000 (10:08 +0800)]
Fix compare (#9808) (#9814)

Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoFix push-to-create (#9772) (#9797)
John Olheiser [Thu, 16 Jan 2020 05:40:37 +0000 (23:40 -0600)]
Fix push-to-create (#9772) (#9797)

* Fix push-to-create

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Check URL path and service

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Send dummy payload on receive-pack GET

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* The space was actually a NUL byte

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Use real bare repo instead of manufactured payload

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years agoFix missing msteam webhook on organization (#9781) (#9794)
Lunny Xiao [Thu, 16 Jan 2020 03:09:47 +0000 (11:09 +0800)]
Fix missing msteam webhook on organization (#9781) (#9794)

4 years agoFix missing unlock in uniquequeue (#9791)
zeripath [Thu, 16 Jan 2020 00:09:31 +0000 (00:09 +0000)]
Fix missing unlock in uniquequeue (#9791)

4 years agoFix (#9761) Korean locales (#9780)
6543 [Wed, 15 Jan 2020 16:28:44 +0000 (17:28 +0100)]
Fix (#9761) Korean locales (#9780)

* backport korean 20-20-01-15 | fix #9761

* update state 14:43:10 UTC

4 years agoFix add team on collaborator page when same name as organization (#9778)
David Svantesson [Wed, 15 Jan 2020 13:18:18 +0000 (14:18 +0100)]
Fix add team on collaborator page when same name as organization (#9778)

4 years agoBackport Locales [2020-01-14] (#9773)
6543 [Wed, 15 Jan 2020 07:03:38 +0000 (08:03 +0100)]
Backport Locales [2020-01-14] (#9773)

* backport state of 2020-01-14

* Apply suggestions from code review

Co-Authored-By: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
4 years agoFix SimpleMDE quote reply (#9757) (#9768)
John Olheiser [Wed, 15 Jan 2020 02:23:55 +0000 (20:23 -0600)]
Fix SimpleMDE quote reply (#9757) (#9768)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoFix #9752 (#9769) (#9775)
6543 [Wed, 15 Jan 2020 00:41:28 +0000 (01:41 +0100)]
Fix #9752 (#9769) (#9775)

Co-authored-by: zeripath <art27@cantab.net>
4 years agoFix milestones page (#9771)
6543 [Tue, 14 Jan 2020 22:33:12 +0000 (23:33 +0100)]
Fix milestones page (#9771)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com>
4 years agoFix missing updated time on migrated issues and comments (#9744) (#9764)
Lunny Xiao [Tue, 14 Jan 2020 16:55:03 +0000 (00:55 +0800)]
Fix missing updated time on migrated issues and comments (#9744) (#9764)

* Fix missing updated time on migrated issues and comments

* Fix testing and missing updated on migrating pullrequest

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agofix webpack polyfills (#9735) (#9738)
silverwind [Sun, 12 Jan 2020 22:43:16 +0000 (23:43 +0100)]
fix webpack polyfills (#9735) (#9738)

webpack polyfills did not work because useBuiltIns: 'entry' expects a
explicit core-js import. Changed it to 'usage' which does not require
these explicit imports and polyfills based on browserslist.

As a result, the built index.js now went from 128kB to 192kB.

Ref: https://babeljs.io/docs/en/babel-preset-env#usebuiltins

4 years agoMove Errored PRs out of StatusChecking (#9675) (#9726)
zeripath [Sun, 12 Jan 2020 19:52:40 +0000 (19:52 +0000)]
Move Errored PRs out of StatusChecking (#9675) (#9726)

* Move Errored PRs out of StatusChecking (#9675)

* Set Errored PRs out of StatusChecking

* Ensure that api status is correctly set too

* Update models/pull.go

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Update services/pull/check.go

Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com>
4 years agoMake hook status printing configurable with delay (#9641) (#9725)
zeripath [Sun, 12 Jan 2020 18:02:36 +0000 (18:02 +0000)]
Make hook status printing configurable with delay (#9641) (#9725)

* Delay printing hook statuses until after 1 second

* Move to a 5s delay, wrapped writer structure and add config

* Update cmd/hook.go

* Apply suggestions from code review

* Update cmd/hook.go

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years ago[BugFix] [API] ​/repos​/issues​/search (#9698) (#9724)
6543 [Sun, 12 Jan 2020 10:20:49 +0000 (11:20 +0100)]
[BugFix] [API] ​/repos​/issues​/search (#9698) (#9724)

* fix

* fix options

* add TEST

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agosilence fomantic error regarding tabs (#9713) (#9718)
silverwind [Sun, 12 Jan 2020 04:20:33 +0000 (05:20 +0100)]
silence fomantic error regarding tabs (#9713) (#9718)

Fomantic expects all tabs to have a target element with content as
defined by the data-tab attribute. All our usage of the tab module seems
to use <a> element tabs that link to new pages so these content elements
are never present and fomantic complains about that in the console with
an "Activated tab cannot be found" error. This silences that error.

4 years agoRemove unused lock (#9710)
zeripath [Sat, 11 Jan 2020 19:06:39 +0000 (19:06 +0000)]
Remove unused lock (#9710)

4 years agoMissed q.lock.Unlock() will cause panic (#9706)
zeripath [Sat, 11 Jan 2020 17:05:24 +0000 (17:05 +0000)]
Missed q.lock.Unlock() will cause panic (#9706)

4 years agoNever allow an empty password to validate (#9682) (#9683)
zeripath [Sat, 11 Jan 2020 14:27:03 +0000 (14:27 +0000)]
Never allow an empty password to validate (#9682) (#9683)

* Restore IsPasswordSet previous value

* Update models/user.go

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoDon't attempt to close issue if already closed (#9699)
guillep2k [Sat, 11 Jan 2020 06:42:11 +0000 (03:42 -0300)]
Don't attempt to close issue if already closed (#9699)

4 years agoLoad milestone in API PR list (#9671) (#9700)
John Olheiser [Sat, 11 Jan 2020 03:58:03 +0000 (21:58 -0600)]
Load milestone in API PR list (#9671) (#9700)

4 years agoeliminate horizontal scroll caused by footer (#9674)
silverwind [Fri, 10 Jan 2020 00:45:59 +0000 (01:45 +0100)]
eliminate horizontal scroll caused by footer (#9674)

Co-authored-by: zeripath <art27@cantab.net>
4 years agoremove google font call (#9668) (#9681)
techknowlogick [Thu, 9 Jan 2020 21:40:57 +0000 (16:40 -0500)]
remove google font call (#9668) (#9681)

4 years agoPrevent redirect to Host (#9678) (#9679)
zeripath [Thu, 9 Jan 2020 21:37:37 +0000 (21:37 +0000)]
Prevent redirect to Host (#9678) (#9679)

4 years agoFix nil reference in repo generation (#9660) (#9666)
John Olheiser [Thu, 9 Jan 2020 16:50:21 +0000 (10:50 -0600)]
Fix nil reference in repo generation (#9660) (#9666)

* Fix nil reference

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Tighten

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoAdd HTML URL to API Issues (#9654) (#9661)
John Olheiser [Thu, 9 Jan 2020 06:07:21 +0000 (00:07 -0600)]
Add HTML URL to API Issues (#9654) (#9661)

* Add HTML URL to API Issues

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Swagger

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoAdd PR review webhook to Telegram (#9653) (#9655)
John Olheiser [Wed, 8 Jan 2020 19:42:28 +0000 (13:42 -0600)]
Add PR review webhook to Telegram (#9653) (#9655)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agofix #9648 (#9652)
6543 [Wed, 8 Jan 2020 16:32:25 +0000 (17:32 +0100)]
fix #9648 (#9652)

4 years agoChangelog for 1.11.0-RC1 (#9636) v1.11.0-rc1
6543 [Wed, 8 Jan 2020 02:57:44 +0000 (03:57 +0100)]
Changelog for 1.11.0-RC1 (#9636)

* generated Changelog

* cormat, sort, fix

* teamwork :)

Co-Authored-By: techknowlogick <matti@mdranta.net>
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* next()

* Next()

* add last change

* as @jolheiser suggested

* Apply suggestions from code review

Co-Authored-By: techknowlogick <matti@mdranta.net>
* Apply suggestions from code review

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Update CHANGELOG.md

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* add bugfix + topic is plural

* rest

* Apply suggestions from code review

* Apply suggestions from code review

Co-Authored-By: techknowlogick <matti@mdranta.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years agoRepository teams - disable remove button when have access to all (#9640)
David Svantesson [Wed, 8 Jan 2020 00:36:39 +0000 (01:36 +0100)]
Repository teams - disable remove button when have access to all (#9640)

Co-authored-by: zeripath <art27@cantab.net>
4 years agoFix #9530: admin auth list make readable and admin auth delete bug fix (#9628)
Shashvat Kedia [Tue, 7 Jan 2020 23:41:16 +0000 (05:11 +0530)]
Fix #9530: admin auth list make readable and admin auth delete bug fix (#9628)

4 years agoMove wiki related funtions from models to services/wiki (#9355)
Lunny Xiao [Tue, 7 Jan 2020 18:27:36 +0000 (02:27 +0800)]
Move wiki related funtions from models to services/wiki (#9355)

* Move wiki related funtions from models to services/wiki

4 years agoBranches not at ref commit ID should not be listed as Merged (#9614)
zeripath [Tue, 7 Jan 2020 17:06:14 +0000 (17:06 +0000)]
Branches not at ref commit ID should not be listed as Merged (#9614)

Once a branch has been merged if the commit ID no longer equals that of
the pulls ref commit id don't offer to delete the branch on the pull screen
and don't list it as merged on branches.

Fix #9201

When looking at the pull page we should also get the commits from the refs/pulls/x/head

Fix #9158

4 years agoFix Issue Unsubscription (#9634)
6543 [Tue, 7 Jan 2020 15:41:35 +0000 (16:41 +0100)]
Fix Issue Unsubscription (#9634)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 7 Jan 2020 14:32:33 +0000 (14:32 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoRemove stray printf (#9631)
zeripath [Tue, 7 Jan 2020 14:30:03 +0000 (14:30 +0000)]
Remove stray printf (#9631)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 7 Jan 2020 11:24:19 +0000 (11:24 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoGraceful Queues: Issue Indexing and Tasks (#9363)
zeripath [Tue, 7 Jan 2020 11:23:09 +0000 (11:23 +0000)]
Graceful Queues:  Issue Indexing and Tasks (#9363)

* Queue: Add generic graceful queues with settings

* Queue & Setting: Add worker pool implementation

* Queue: Add worker settings

* Queue: Make resizing worker pools

* Queue: Add name variable to queues

* Queue: Add monitoring

* Queue: Improve logging

* Issues: Gracefulise the issues indexer

Remove the old now unused specific queues

* Task: Move to generic queue and gracefulise

* Issues: Standardise the issues indexer queue settings

* Fix test

* Queue: Allow Redis to connect to unix

* Prevent deadlock during early shutdown of issue indexer

* Add MaxWorker settings to queues

* Merge branch 'master' into graceful-queues

* Update modules/indexer/issues/indexer.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update modules/indexer/issues/indexer.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update modules/queue/queue_channel.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update modules/queue/queue_disk.go

* Update modules/queue/queue_disk_channel.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Rename queue.Description to queue.ManagedQueue as per @guillep2k

* Cancel pool workers when removed

* Remove dependency on queue from setting

* Update modules/queue/queue_redis.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* As per @guillep2k add mutex locks on shutdown/terminate

* move unlocking out of setInternal

* Add warning if number of workers < 0

* Small changes as per @guillep2k

* No redis host specified not found

* Clean up documentation for queues

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

* Update modules/indexer/issues/indexer_test.go

* Ensure that persistable channel queue is added to manager

* Rename QUEUE_NAME REDIS_QUEUE_NAME

* Revert "Rename QUEUE_NAME REDIS_QUEUE_NAME"

This reverts commit 1f83b4fc9b9dabda186257b38c265fe7012f90df.

Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 7 Jan 2020 07:40:50 +0000 (07:40 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoMore extensive robots.txt docs (#9566)
8ctopus [Tue, 7 Jan 2020 07:38:22 +0000 (12:38 +0500)]
More extensive robots.txt docs (#9566)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 6 Jan 2020 16:52:05 +0000 (16:52 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoAdd a /user/login landing page option (#9622)
Timon Engelke [Mon, 6 Jan 2020 16:50:44 +0000 (17:50 +0100)]
Add a /user/login landing page option (#9622)

* Add a /user/login landing page option

* Add test case for login landing page

4 years agofix swagger description of reaction API (#9617)
6543 [Mon, 6 Jan 2020 04:58:13 +0000 (05:58 +0100)]
fix swagger description of reaction API (#9617)

4 years agoAdd some padding to the shadowed comment box (#9612)
zeripath [Sun, 5 Jan 2020 19:25:27 +0000 (19:25 +0000)]
Add some padding to the shadowed comment box (#9612)

* Add some padding to the shadowed comment box
* prevent the padding affecting the other comments

4 years ago[BugFix] Hide public repos owned by private orgs (#9609)
6543 [Sun, 5 Jan 2020 18:48:47 +0000 (19:48 +0100)]
[BugFix] Hide public repos owned by private orgs (#9609)

* Restrict AllPublic to actually public repos.
* Add new parameter to add in AllLimited Repos

4 years ago[Docs] introduce "make help" (#9604)
6543 [Sun, 5 Jan 2020 17:40:02 +0000 (18:40 +0100)]
[Docs] introduce "make help" (#9604)

* introduce "make help"

* fix + add more routienes

* Update Makefile

* add make vet

Co-authored-by: techknowlogick <matti@mdranta.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 5 Jan 2020 14:30:20 +0000 (14:30 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoupdate gitea.com/macaron/macaron to 1.4.0 (#9608)
6543 [Sun, 5 Jan 2020 14:27:25 +0000 (15:27 +0100)]
update gitea.com/macaron/macaron to 1.4.0 (#9608)

4 years ago!important makes me sad (#9607)
John Olheiser [Sun, 5 Jan 2020 04:56:06 +0000 (22:56 -0600)]
!important makes me sad (#9607)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoFix create bugs (#9606)
John Olheiser [Sun, 5 Jan 2020 02:39:14 +0000 (20:39 -0600)]
Fix create bugs (#9606)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoFix access issues on milestone and issue overview pages. (#9603)
David Svantesson [Sun, 5 Jan 2020 01:23:29 +0000 (02:23 +0100)]
Fix access issues on milestone and issue overview pages. (#9603)

* Fix access issues on milestone and issue overview pages.

* Fix filter algorithm

4 years agoOnly serve attachments when linked to issue/release and if accessible by user (#9340)
Antoine GIRARD [Sat, 4 Jan 2020 23:20:08 +0000 (00:20 +0100)]
Only serve attachments when linked to issue/release and if accessible by user (#9340)

* test: add current attachement responses

* refactor: check if attachement is linked and accessible by user

* chore: clean TODO

* fix: typo attachement -> attachment

* revert un-needed go.sum change

* refactor: move models logic to models

* fix TestCreateIssueAttachment which was wrongly successful

* fix unit tests with unittype added

* fix unit tests with changes

* use a valid uuid format for pgsql int. test

* test: add unit test TestLinkedRepository

* refactor: allow uploader to access unlinked attachement

* add missing blank line

* refactor: move to a separate function repo.GetAttachment

* typo

* test: remove err test return

* refactor: use repo perm for access checking generally + 404 for all reject

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 4 Jan 2020 22:21:24 +0000 (22:21 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoOnly show sender if it makes sense (#9601)
John Olheiser [Sat, 4 Jan 2020 22:20:15 +0000 (16:20 -0600)]
Only show sender if it makes sense (#9601)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 4 Jan 2020 20:29:45 +0000 (20:29 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoAdd translatable Powered by Gitea text in footer (#9600)
Lauris BH [Sat, 4 Jan 2020 20:27:19 +0000 (22:27 +0200)]
Add translatable Powered by Gitea text in footer (#9600)

4 years ago[Docs] Add guide on howto develop API (#9587)
6543 [Sat, 4 Jan 2020 02:23:40 +0000 (03:23 +0100)]
[Docs] Add guide on howto develop API (#9587)

* draft 1

* add suggestions
thanks to @bagasme @techknowlogick @davidsvantesson

* http methods

* use permalinks

* Apply suggestions from code review

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Apply suggestions from code review

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* code format + add to INDEX

Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoFix error logged when repos qs is empty (#9591)
guillep2k [Fri, 3 Jan 2020 21:39:12 +0000 (18:39 -0300)]
Fix error logged when repos qs is empty (#9591)

* Fix error logged when repos qs is empty

* Update routers/user/home.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 3 Jan 2020 18:44:08 +0000 (18:44 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoAdd footer extra links template (#9576)
Bagas Sanjaya [Fri, 3 Jan 2020 18:41:56 +0000 (01:41 +0700)]
Add footer extra links template (#9576)

* Add footer extra links template

* [Docs] Update to mention extra links footer template

* Commit suggestion from @davidsvantesson

Co-Authored-By: David Svantesson <davidsvantesson@gmail.com>
* Move template placement to right side of footer

Co-authored-by: David Svantesson <davidsvantesson@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoAdd branch protection option to block merge on requested changes. (#9592)
David Svantesson [Fri, 3 Jan 2020 17:47:10 +0000 (18:47 +0100)]
Add branch protection option to block merge on requested changes. (#9592)

* Add branch protection option to block merge on requested changes.

* Add migration step

* Fix check to correct negation

* Apply suggestions from code review

Language improvement.

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Copyright year.

Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoSome more e-mail notification fixes (#9596)
mrsdizzie [Fri, 3 Jan 2020 17:13:22 +0000 (12:13 -0500)]
Some more e-mail notification fixes (#9596)

* Some more e-mail notification fixes

A few more small e-mail notification fixes/changes

* Style footer of notification email to be smaller
* Include text for when pull request is merged
* Don't include original body of issue or PR when merging/closing by
setting issue.Content to "" in these cases

* Set Re: prefix and meessage-ID headers based on actName instead of checking for a
comment. This fixes a bug where certain actions that didn't have a
comment were setting Message-ID instead of In-Reply-To which caused some
mail programs not to show those messages as they would have had the same
Message-ID as a previous message. Also fixes the case where a final
comment and closing message would have been displayed out of order if
you didn't have a copy of the original issue/pr cretion message.

* Update other template footers for consistency

4 years ago[API] dont reqToken on GetReactions (fix #9543) (#9548)
6543 [Thu, 2 Jan 2020 21:27:31 +0000 (22:27 +0100)]
[API] dont reqToken on GetReactions (fix #9543) (#9548)

* dont reqToken on GetReactions

* ctx.Repo.CanWrite has ctx.User.IsAdmin in It

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoUpdate version in docs (#9588)
John Olheiser [Thu, 2 Jan 2020 15:53:08 +0000 (09:53 -0600)]
Update version in docs (#9588)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 2 Jan 2020 12:18:28 +0000 (12:18 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoChangelog for 1.10.2 (#9586)
6543 [Thu, 2 Jan 2020 12:15:30 +0000 (13:15 +0100)]
Changelog for 1.10.2 (#9586)

4 years agomake sure Poster is loaded (#9583)
6543 [Thu, 2 Jan 2020 07:54:22 +0000 (08:54 +0100)]
make sure Poster is loaded (#9583)

4 years agoDon't auto-init SimpleMDE for review textarea (#9574)
John Olheiser [Thu, 2 Jan 2020 03:02:11 +0000 (21:02 -0600)]
Don't auto-init SimpleMDE for review textarea (#9574)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoDont trigger notification twice on issue assignee change (#9582)
6543 [Thu, 2 Jan 2020 02:07:15 +0000 (03:07 +0100)]
Dont trigger notification twice on issue assignee change (#9582)

4 years agoFix #9189 - API Allow only specific Colums to be updated on Issue (#9539)
6543 [Wed, 1 Jan 2020 22:51:10 +0000 (23:51 +0100)]
Fix #9189 - API Allow only specific Colums to be updated on Issue (#9539)

* dont insert "-1" in any case to issue.poster_id

* Make sure API cant override importand fields

* code format

* fix lint

* WIP test

* add missing poster_id

* fix test

* user.IsGhost handle nil

* CI.restart()

* make sure no -1 is realy added

* CI.restart()

* @lunny suggestion remove some not allowed fields

* seperate issue.LoadMilestone

* load milestone and return it on IssueEdit via API

* extend Test for TestAPIEditIssue

* fix fixtures

* declare allowedColumnsUpdateIssueByAPI only once

* Update Year

* no var just write id drecty into func cal

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoswagger UI: hide iretating search field (#9554)
6543 [Wed, 1 Jan 2020 16:08:13 +0000 (17:08 +0100)]
swagger UI: hide iretating search field (#9554)

4 years agoAdd box-shadow to blue buttons in normal theme (#9573)
John Olheiser [Wed, 1 Jan 2020 05:06:15 +0000 (23:06 -0600)]
Add box-shadow to blue buttons in normal theme (#9573)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoUse limited commits (#9572)
John Olheiser [Wed, 1 Jan 2020 03:54:56 +0000 (21:54 -0600)]
Use limited commits (#9572)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoFix for a wrong URL in activity page of repository. (Using config url instead of...
Flutterlice [Wed, 1 Jan 2020 00:54:21 +0000 (05:54 +0500)]
Fix for a wrong URL in activity page of repository. (Using config url instead of an actual one) (#9571)

4 years agoUpdate default issue template (#9568)
mrsdizzie [Tue, 31 Dec 2019 19:30:46 +0000 (14:30 -0500)]
Update default issue template (#9568)

Some small changes:

* Include text if approve/comment/request changes on PR
* List filename for review comments
* Bold username when mentioned

This will stop empty body messages when approving PR on gitea.com

4 years ago[API] Fix 9544 | return 200 when reaction already exist (#9550)
6543 [Tue, 31 Dec 2019 08:21:21 +0000 (09:21 +0100)]
[API] Fix 9544 | return 200 when reaction already exist (#9550)

* add ErrReactionAlreadyExist

* extend CreateReaction

* reaction already exist = 200

* extend FindReactionsOptions

* refactor swagger options/definitions

* fix swagger-validate

* Update models/error.go

Co-Authored-By: zeripath <art27@cantab.net>
* fix test PART1

* extend FindReactionsOptions with UserID option

* catch error on test

* fix test PART2

* format ...

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoupdate swagger info (#9558)
6543 [Tue, 31 Dec 2019 04:11:15 +0000 (05:11 +0100)]
update swagger info (#9558)

4 years agoChange markdown rendering from blackfriday to goldmark (#9533)
zeripath [Tue, 31 Dec 2019 01:53:28 +0000 (01:53 +0000)]
Change markdown rendering from blackfriday to goldmark  (#9533)

* Move to goldmark

Markdown rendering moved from blackfriday to the goldmark.

Multiple subtle changes required to the goldmark extensions to keep
current rendering and defaults.

Can go further with goldmark linkify and have this work within markdown
rendering making the link processor unnecessary.

Need to think about how to go about allowing extensions - at present it
seems that these would be hard to do without recompilation.

* linter fixes

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoProvide Default messages for merges (#9393)
zeripath [Mon, 30 Dec 2019 23:34:11 +0000 (23:34 +0000)]
Provide Default messages for merges (#9393)

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Dec 2019 17:14:49 +0000 (17:14 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoIn SimpleMDE check if trigger exists before call (#9545)
zeripath [Mon, 30 Dec 2019 17:11:50 +0000 (17:11 +0000)]
In SimpleMDE check if trigger exists before call (#9545)

4 years ago[BugFix] use default avatar for ghost user (fix 500 error) (#9536)
6543 [Sun, 29 Dec 2019 14:24:50 +0000 (15:24 +0100)]
[BugFix] use default avatar for ghost user (fix 500 error) (#9536)

* remove since it is there for 3years

* fix 500 error for ghost avatar

* dont insert "-1" in any case to issue.poster_id

* fix lint

* Test: ghost avatar link

* fix test

* Revert "remove since it is there for 3years"

This reverts commit fd9ad05159c84ba804b126d2a959963d82578b22.

* Revert "dont insert "-1" in any case to issue.poster_id"

This reverts commit 05469ab6d815a6cc6478a256018b9ed1a12749e0.

Co-authored-by: zeripath <art27@cantab.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 29 Dec 2019 12:34:39 +0000 (12:34 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoremove since it is there for 3years (#9538)
6543 [Sun, 29 Dec 2019 12:32:31 +0000 (13:32 +0100)]
remove since it is there for 3years (#9538)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 28 Dec 2019 23:35:29 +0000 (23:35 +0000)]
[skip ci] Updated translations via Crowdin

4 years ago[Fix] Release attachment should use DownloadURL() not Name (#9529)
6543 [Sat, 28 Dec 2019 23:33:13 +0000 (00:33 +0100)]
[Fix] Release attachment should use DownloadURL() not Name (#9529)

* Handle if two or more attachments have the same name
* previously only the first could be downloaded - now each is downloadable
* dos also take care of  #6506 (fix was: #6512)
* use func DownloadURL() at issue attatchments too

4 years agogo-mssqldb UPDATE (#9522)
6543 [Sat, 28 Dec 2019 17:14:38 +0000 (18:14 +0100)]
go-mssqldb UPDATE (#9522)

4 years agoFix repository issues pagination bug when there are more than one label filter (...
Lunny Xiao [Sat, 28 Dec 2019 14:43:46 +0000 (22:43 +0800)]
Fix repository issues pagination bug when there are more than one label filter (#9512)

4 years agoDelete conflicting file (#9526)
techknowlogick [Sat, 28 Dec 2019 10:43:03 +0000 (05:43 -0500)]
Delete conflicting file (#9526)

Case collision with other jboss file

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoRefactor webhooks to reduce code duplication (#9422)
Cornel [Sat, 28 Dec 2019 08:55:09 +0000 (16:55 +0800)]
Refactor webhooks to reduce code duplication (#9422)

* Start webhook refactoring to reduce code duplication

* More webhook refactoring

* Unify webhook release messages

* Fix webhook release link

* Remove sql import

* More webhook refactoring

* More webhook refactoring

* Webhook tests extended

* Fixed issue opened webhook

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoResolve deprecated INI conversion (#9525)
techknowlogick [Sat, 28 Dec 2019 03:37:26 +0000 (22:37 -0500)]
Resolve deprecated INI conversion (#9525)

Per https://github.com/go-ini/ini/blob/8fe474341f7eedd6804eda75896c8f3e4b5dc36a/deprecated.go#L24

4 years agoStop various tests from adding to the source tree (#9515)
zeripath [Sat, 28 Dec 2019 02:08:05 +0000 (02:08 +0000)]
Stop various tests from adding to the source tree (#9515)

Instead of just adding test generated files to .gitignore prevent
them from being produced in the first place.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoAdd contrib/environment-to-ini (#9519)
zeripath [Sat, 28 Dec 2019 00:49:42 +0000 (00:49 +0000)]
Add contrib/environment-to-ini (#9519)

* Add contrib/environment-to-ini

This contrib command provides a mechanism to allow arbitrary setting
of ini values using the environment variable in a more docker standard
fashion.

Environment variable keys should be structured as:

"GITEA__SECTION_NAME__KEY_NAME"

Use of the command is explained in the README.

Partial fix for #350
Closes #7287

* Update contrib/environment-to-ini/environment-to-ini.go

Co-Authored-By: 6543 <6543@obermui.de>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
4 years ago[Fix] AllowedReaction code (#9518)
6543 [Fri, 27 Dec 2019 23:43:56 +0000 (00:43 +0100)]
[Fix] AllowedReaction code (#9518)

* optimize

* CI.restart()

Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: zeripath <art27@cantab.net>