]> source.dussan.org Git - gitea.git/log
gitea.git
4 years agoAdd fluid-icon (#10491)
silverwind [Thu, 27 Feb 2020 03:40:14 +0000 (04:40 +0100)]
Add fluid-icon (#10491)

This provides Firefox (and possible other browsers) with a
high-resolution rich icon, in place of the previously removed
apple-touch-icon without having to use that one as it lacks an
alpha channel. This is the same method GH uses.

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/UI_considerations#Rich_icons

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoFix SQLite concurrency problems by using BEGIN IMMEDIATE (#10368)
guillep2k [Wed, 26 Feb 2020 23:51:37 +0000 (20:51 -0300)]
Fix SQLite concurrency problems by using BEGIN IMMEDIATE (#10368)

* Test locking immediate for SQLite3

* fix url field separator

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years agoShow the username as a fallback on feeds if full name is blank (#10438)
James Lakin [Wed, 26 Feb 2020 22:08:24 +0000 (22:08 +0000)]
Show the username as a fallback on feeds if full name is blank (#10438)

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoTweak language stats bar (#10487)
silverwind [Wed, 26 Feb 2020 20:44:14 +0000 (21:44 +0100)]
Tweak language stats bar (#10487)

- Ensure bar does not overflow parent
- Remove unneccessary borders/background
- Fix shaky animation caused by JS animation miscalculation by setting
  fixed height on the summary box. Box itself is still shaky during
  animation, but better it then the whole page.

Fixes: https://github.com/go-gitea/gitea/issues/10474
4 years agoFixed formatting (#10485)
Karsten Lehmann [Wed, 26 Feb 2020 18:28:39 +0000 (19:28 +0100)]
Fixed formatting (#10485)

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
4 years agoFix double PR notification from API (#10482)
John Olheiser [Wed, 26 Feb 2020 18:12:34 +0000 (12:12 -0600)]
Fix double PR notification from API (#10482)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoFix admin notices (#10480)
John Olheiser [Wed, 26 Feb 2020 16:25:54 +0000 (10:25 -0600)]
Fix admin notices (#10480)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoCode Refactor of IssueWatch related things (#10401)
6543 [Wed, 26 Feb 2020 06:32:22 +0000 (07:32 +0100)]
Code Refactor of IssueWatch related things (#10401)

* refactor

* optimize

* remove Iretating function
LoadWatchUsers do not load Users into IW object and it is used only in api ... so move this logic

* remove unessesary

* Apply suggestions from code review

Thx

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* make Tests more robust

* fix rebase

* restart CI

* CI no dont hit sqlites deadlock

Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 years agoChange admin dashboard to POST (#10465)
John Olheiser [Tue, 25 Feb 2020 22:54:13 +0000 (16:54 -0600)]
Change admin dashboard to POST (#10465)

* Add form and convert to POST

* Redirect for flash

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoChange action GETs to POST (#10462)
John Olheiser [Tue, 25 Feb 2020 20:28:47 +0000 (14:28 -0600)]
Change action GETs to POST (#10462)

* Change action GETs to POST

* submite = submit + smite

* No more # href

* Fix test

* Match other tests

* Explicit csrf

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 years ago[API] enable paggination for ListRepoTags (#10454)
6543 [Tue, 25 Feb 2020 19:07:07 +0000 (20:07 +0100)]
[API] enable paggination for ListRepoTags (#10454)

* enable paggination for repoTags

* precalculate first, cut slice second

* Apply suggestions from code review

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 years agoUse documentation IPs for example IPs (#10434)
Ask Bjørn Hansen [Tue, 25 Feb 2020 18:25:17 +0000 (10:25 -0800)]
Use documentation IPs for example IPs (#10434)

See https://tools.ietf.org/html/rfc5737

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoupdate discord link (#10455)
6543 [Tue, 25 Feb 2020 17:36:45 +0000 (18:36 +0100)]
update discord link (#10455)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 25 Feb 2020 16:01:35 +0000 (16:01 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFixed wrong AppSubUrl in multiple templates (#10447)
Philipp A. Beckmann [Tue, 25 Feb 2020 15:58:37 +0000 (16:58 +0100)]
Fixed wrong AppSubUrl in multiple templates (#10447)

* Fixed wrong AppSubUrl in OAuth2 app edit page

* Replaced all other occurrences of $.AppSubURL for support of sub-paths

4 years agoUpdate JS dependencies (#10450)
silverwind [Tue, 25 Feb 2020 04:56:59 +0000 (05:56 +0100)]
Update JS dependencies (#10450)

Fomantic's update process did fail to update via 'npm install' because
of our config initially but it did work after manually bumping the
version in semantic.json.

Fomantic changes:

https://github.com/fomantic/Fomantic-UI/blob/master/CHANGELOG.md#284

4 years agoUse local timezone to compare (#10446)
6543 [Tue, 25 Feb 2020 03:05:00 +0000 (04:05 +0100)]
Use local timezone to compare (#10446)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 24 Feb 2020 22:53:36 +0000 (22:53 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFIX Pagination of ListAccessTokens and GetIssueWatchers (#10449)
6543 [Mon, 24 Feb 2020 22:50:32 +0000 (23:50 +0100)]
FIX Pagination of ListAccessTokens and GetIssueWatchers (#10449)

* fix a pagination bug

* fix pagination of ListAccessTokens

4 years agoUpdate markbates/goth (#10444)
oscar.lofwenhamn [Mon, 24 Feb 2020 17:08:43 +0000 (18:08 +0100)]
Update markbates/goth (#10444)

- Fixes a JWT decoding issue in the OpenID provider
- Updates the GitHub provider to use the authorization header for authentication
- Updates the Twitch provider for Twitch's v5 API changes
- Adds the email and is_private_email fields to the Apple provider's GetUser implementation
- Modifies gothic to export a non-collidable context key for setting the Provider in a context.Context
- Adds new scopes to the Spotify provider
- Adds the IDToken from OpenID providers on the user struct
- Make Apple provider's SecretParams public
- Adds support for sign in with Apple, and drops support for Go versions 1.7 and 1.8
- Fixes the Slack provider's FetchURL logic to use the appropriate scope for the info it needs
Signed-off-by: Oscar LÃfwenhamn <oscar.lofwenhamn@cgi.com>
4 years agodocs: Fix MySQL create database syntax (#10436)
Ask Bjørn Hansen [Mon, 24 Feb 2020 12:15:16 +0000 (04:15 -0800)]
docs: Fix MySQL create database syntax (#10436)

Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
4 years agoTrigger webhooks on issue label-change via API too (#10421)
6543 [Sun, 23 Feb 2020 22:53:08 +0000 (23:53 +0100)]
Trigger webhooks on issue label-change via API too (#10421)

* trigger webhooks with api too

* fix comment

* notify report old too

* CI restart

* restart CI again

* remove duplicated code

4 years agomove vue and vue-calendar-heatmap to webpack (#10188)
silverwind [Sun, 23 Feb 2020 21:34:28 +0000 (22:34 +0100)]
move vue and vue-calendar-heatmap to webpack (#10188)

- unvendor vue and vue-calendar-heatmap
- remove unused moment.js leftover from previous heatmap version
- ensure webpack loads the full version of vue
- fix vue devmode warning related to 'searchLimit' type

I wanted to name the chunk heatmap.js but adblockers don't like that
filename [1].

[1] https://github.com/easylist/easylist/blob/3899d5dff33216c0bc64f09ff15d376f346d3e33/easyprivacy/easyprivacy_general.txt#L2095

4 years agoVarious fixes in login sources (#10428)
guillep2k [Sun, 23 Feb 2020 19:52:05 +0000 (16:52 -0300)]
Various fixes in login sources (#10428)

4 years agoFix webhook bug (#10427)
Lunny Xiao [Sun, 23 Feb 2020 18:49:40 +0000 (02:49 +0800)]
Fix webhook bug (#10427)

Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoDisallow leading zeroes in Less (#10407)
silverwind [Sun, 23 Feb 2020 16:48:27 +0000 (17:48 +0100)]
Disallow leading zeroes in Less (#10407)

4 years agoPrevent Firefox from using apple-touch-icon (#10402)
silverwind [Sun, 23 Feb 2020 14:34:53 +0000 (15:34 +0100)]
Prevent Firefox from using apple-touch-icon (#10402)

* Prevent Firefox from using apple-touch-icon

The opaque background does not work well in Firefox which uses the icon
as a "rich icon". Prevent this by not specifying it in HTML. Real Apple
devices will still request the icon on the static path.

Fixes: https://github.com/go-gitea/gitea/issues/10394
Also adjust gitignore so app.ini.sample becomes searchable and fixed a
variable name in app.ini.sample.

* fix gitignore

4 years agoSupport NODE_ENV in webpack (#10245)
silverwind [Sun, 23 Feb 2020 08:47:42 +0000 (09:47 +0100)]
Support NODE_ENV in webpack (#10245)

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoVarious dark theme fixes (#10416)
silverwind [Sun, 23 Feb 2020 04:32:15 +0000 (05:32 +0100)]
Various dark theme fixes (#10416)

- beatify simplemde, remove header hover effect (does not play well with
  border colors), remove double border separators
- fix colored outline buttons
- fix disabled style
- fix positive messages
- fix markdown header border and quote block
- adjust footer color
- adjust file icons and release list timeline

4 years agoupdate integration README (#10400)
6543 [Sat, 22 Feb 2020 22:45:20 +0000 (23:45 +0100)]
update integration README (#10400)

4 years agoFix profile page CSS (#10406)
John Olheiser [Sat, 22 Feb 2020 14:06:07 +0000 (08:06 -0600)]
Fix profile page CSS (#10406)

* Fix profile page

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove redundant CSS

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix .username and change em to rem

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoHandle push rejection message in Merge & Web Editor (#10373)
zeripath [Sat, 22 Feb 2020 13:08:48 +0000 (13:08 +0000)]
Handle push rejection message in Merge & Web Editor (#10373)

* Handle push rejection message in Merge

* placate golangci-lint

* Fix sanitize, adjust message handling

* oops

* Oops

* Handle push-rejection in webeditor CRUD too

* Apply suggestions from code review

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoAdd frontend/backend make targets, fix source release (#10325)
silverwind [Sat, 22 Feb 2020 09:15:11 +0000 (10:15 +0100)]
Add frontend/backend make targets, fix source release (#10325)

* Add frontend/backend make targets, fix source release

- Add 'make backend' and 'make frontend' make targets which are used to
  build go and js/css/svg files respectively.

- The 'backend' target can be invoked without requiring Node.js to be
  present on the system if pre-built frontend assets are present like
  in the release source tarballs.

- Fix source releases missing 'dist' folders inside 'node_modules' which
  were erronously excluded from tar.

- Store VERSION in file VERSION for the release tarballs and prefer that
  file over git-derived version.

* fix release task

* fix typo

* fix another typo

4 years agoRender READMEs in docs/ .gitea or .github from root (#10361)
zeripath [Fri, 21 Feb 2020 23:04:20 +0000 (23:04 +0000)]
Render READMEs in docs/ .gitea or .github from root (#10361)

* Render READMEs in docs/ .gitea or .github from root

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 21 Feb 2020 18:19:29 +0000 (18:19 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoPrevent panic on merge to PR (#10403)
zeripath [Fri, 21 Feb 2020 18:18:13 +0000 (18:18 +0000)]
Prevent panic on merge to PR (#10403)

If you attempt to merge to a branch which on a PR there will be a nil pointer error in the pull request checker.

This panic is uncaught and will bring down the gitea server.

This PR adds protection to prevent this.

4 years agoEnsure only own addresses are updated (#10397)
guillep2k [Fri, 21 Feb 2020 13:08:04 +0000 (10:08 -0300)]
Ensure only own addresses are updated (#10397)

4 years agoFixes (#10386)
John Olheiser [Thu, 20 Feb 2020 23:44:13 +0000 (17:44 -0600)]
Fixes (#10386)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agofix input[type=file] on dark theme (#10382)
silverwind [Thu, 20 Feb 2020 22:36:47 +0000 (23:36 +0100)]
fix input[type=file] on dark theme (#10382)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 20 Feb 2020 21:04:58 +0000 (21:04 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoupdate crypto vendors (#10385)
techknowlogick [Thu, 20 Feb 2020 21:03:34 +0000 (16:03 -0500)]
update crypto vendors (#10385)

4 years agoAdd detected file language to code search (#10256)
Lauris BH [Thu, 20 Feb 2020 19:53:55 +0000 (21:53 +0200)]
Add detected file language to code search (#10256)

Move langauge detection to separate module to be more reusable

Add option to disable vendored file exclusion from file search

Allways show all language stats for search

4 years agoFix wrong num closed issues on repository when close issue via commit (#10364)
Lunny Xiao [Thu, 20 Feb 2020 07:46:46 +0000 (15:46 +0800)]
Fix wrong num closed issues on repository when close issue via commit (#10364)

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agooptimize public/img/loading.png (#10372)
silverwind [Wed, 19 Feb 2020 22:16:30 +0000 (23:16 +0100)]
optimize public/img/loading.png (#10372)

4 years agofix typo of english content page (#10370)
Andres Mazzo [Wed, 19 Feb 2020 21:48:33 +0000 (18:48 -0300)]
fix typo of english content page (#10370)

4 years agoChange loading animation frame order (#10358)
Lauris BH [Wed, 19 Feb 2020 20:59:55 +0000 (22:59 +0200)]
Change loading animation frame order (#10358)

4 years agoFix test (#10363)
Lunny Xiao [Wed, 19 Feb 2020 15:46:14 +0000 (23:46 +0800)]
Fix test (#10363)

4 years agoremove release-dirs make target (#10350)
silverwind [Wed, 19 Feb 2020 03:10:25 +0000 (04:10 +0100)]
remove release-dirs make target (#10350)

- only `mkdir`the dist dirs when they are absent
- add the dist dirs as prereqs so targets like `make release-sources`
  can run standalone

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoRe-order GPG signing docs and fix code blocks (#10349)
John Olheiser [Wed, 19 Feb 2020 01:23:45 +0000 (19:23 -0600)]
Re-order GPG signing docs and fix code blocks (#10349)

* Move chunk and format

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

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoReading pull attachments should depend on read UnitTypePullRequests (#10346)
zeripath [Wed, 19 Feb 2020 00:36:19 +0000 (00:36 +0000)]
Reading pull attachments should depend on read UnitTypePullRequests (#10346)

* Make pull attachments depend on read UnitTypePullRequests

Fixes #10336

* Fix test

4 years agoSet max-width on review-box comment box (#10348)
zeripath [Tue, 18 Feb 2020 23:07:00 +0000 (23:07 +0000)]
Set max-width on review-box comment box (#10348)

4 years ago[Docs] Database Preparation (#9826)
Bagas Sanjaya [Tue, 18 Feb 2020 21:51:24 +0000 (04:51 +0700)]
[Docs] Database Preparation (#9826)

* Database Preparation

* Apply suggestions from @guillep2k

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Repeat strong password notice on PostgreSQL

* Add prerequisite note

* Use utf8mb4 instead of utf8

* Use utf8mb4 if complete character coverage wanted

* utf8mb4 recommended

* Reword utf8mb4 recommendation

* Set InnoDB global variables may be needed

* Reorder step number

* Whoops, bump year date

* Remove `SET GLOBAL`s and step number reorder

It is assumed that such global variables value are already as default on MySQL 5.7 and later, so those are redundant.

* Syntax edit on MySQL GRANT PRIVILEGEs

* DB engine uniformity intro edit

Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoRevert "Do docker releases for pushes to release branches (#10330)" (#10345)
zeripath [Tue, 18 Feb 2020 20:46:21 +0000 (20:46 +0000)]
Revert "Do docker releases for pushes to release branches (#10330)" (#10345)

This reverts commit 69f80fd9f69c08b2320523adc99c9257df52108d.

4 years agoPrevent nil pointer in GetPullRequestCommitStatusState (#10342)
zeripath [Tue, 18 Feb 2020 19:34:08 +0000 (19:34 +0000)]
Prevent nil pointer in GetPullRequestCommitStatusState (#10342)

Ensure that pr.HeadRepo is loaded before using it in GetPullRequestCommitStatusState.

Fixes error on merging with successful commit merge statuses.

4 years agoFix status check enable (#10341)
John Olheiser [Tue, 18 Feb 2020 18:58:16 +0000 (12:58 -0600)]
Fix status check enable (#10341)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoDo docker releases for pushes to release branches (#10330)
zeripath [Tue, 18 Feb 2020 10:24:09 +0000 (10:24 +0000)]
Do docker releases for pushes to release branches (#10330)

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoFix notification (#10331)
Lunny Xiao [Tue, 18 Feb 2020 08:52:57 +0000 (16:52 +0800)]
Fix notification (#10331)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 18 Feb 2020 06:11:13 +0000 (06:11 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix JS and Vue (#10328)
John Olheiser [Tue, 18 Feb 2020 06:07:58 +0000 (00:07 -0600)]
Fix JS and Vue (#10328)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 18 Feb 2020 03:17:09 +0000 (03:17 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix cron.repo_health_check schedule example in config cheat sheet (#10324)
Mike Gerber [Tue, 18 Feb 2020 03:14:11 +0000 (04:14 +0100)]
Fix cron.repo_health_check schedule example in config cheat sheet (#10324)

Fixes #10274.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoFix migration information update bug when linked github account (#10310)
Lunny Xiao [Tue, 18 Feb 2020 00:42:13 +0000 (08:42 +0800)]
Fix migration information update bug when linked github account (#10310)

* Fix bug on upgrade migrated reactions

* Fix migration information update bug when linked github account

Co-authored-by: zeripath <art27@cantab.net>
4 years agoInject SVG sprite via ajax (#10320)
John Olheiser [Mon, 17 Feb 2020 23:11:59 +0000 (17:11 -0600)]
Inject SVG sprite via ajax (#10320)

* AJAX SVG
* Fix PWA
* Remove unused PWA assets

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-Authored-by: silverwind <me@silverwind.io>
4 years agoCreate Changelog for v1.11.1 release (#10286) (#10321)
zeripath [Mon, 17 Feb 2020 21:43:20 +0000 (21:43 +0000)]
Create Changelog for v1.11.1 release (#10286) (#10321)

* Create Changelog
* Update CHANGELOG.md
* Include

Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoSet the initial commit status to Success otherwise it will always be Pending (#10317)
zeripath [Mon, 17 Feb 2020 20:22:36 +0000 (20:22 +0000)]
Set the initial commit status to Success otherwise it will always be Pending (#10317)

The commit status code has a bug whereby setting the initial status to Pending means you can never have the status of Success - it should be set to Success.

4 years agoTruncate long commit message header (#10301)
zeripath [Mon, 17 Feb 2020 17:45:55 +0000 (17:45 +0000)]
Truncate long commit message header (#10301)

* Truncate long commit message header

* Fix overflow in view commit table

* Use @media less

* Further improvements

* Fix the commit message on small screens

* adjust width of minimal table

4 years agoDon't manually replace whitespace during render (#10291)
mrsdizzie [Mon, 17 Feb 2020 05:46:51 +0000 (00:46 -0500)]
Don't manually replace whitespace during render (#10291)

* Don't manually replace whitespace during render

For historical reasons Gitea manually alters the urlPrefix and replaces
a whitespace with a +. This Works for URLs, but we're also passing
urlPrefix to git calls and adding the + is breaking the tree path.

Goldmark will automatically convert a white space to the proper %20, so
we should leave the string as is which lets us pass it to git unmodified
and then let Goldmark fix it.

Also fixed separate bug in URLJoin I noticed while testing where it will
silently discard sections of a path that have # in them (possibly
others). We should just escape it first.

Fixes 10156

* Escape elems as well

* Revert "Escape elems as well"

This reverts commit 8bf49596fee6fac4d9da256cd1e90a0ec0183671.

* restart ci

* remove changes to URLJoin

* restart ci

Co-authored-by: techknowlogick <matti@mdranta.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 16 Feb 2020 21:43:17 +0000 (21:43 +0000)]
[skip ci] Updated translations via Crowdin

4 years agov1.10.4 Changelog (#10294) (#10306)
zeripath [Sun, 16 Feb 2020 21:38:24 +0000 (21:38 +0000)]
v1.10.4 Changelog (#10294) (#10306)

* v1.10.4 Changelog

* Add backport identifier for #10261

* Update CHANGELOG.md entry for #9884

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agofix: set explicit POSTGRES_PASSWORD for pgsql on drone CI (#10302)
Antoine GIRARD [Sun, 16 Feb 2020 20:46:29 +0000 (21:46 +0100)]
fix: set explicit POSTGRES_PASSWORD for pgsql on drone CI (#10302)

4 years agoui: better mobile review-box sizing (#10297)
Antoine GIRARD [Sun, 16 Feb 2020 20:44:52 +0000 (21:44 +0100)]
ui: better mobile review-box sizing (#10297)

4 years ago make: add release-sources (#10295)
Antoine GIRARD [Sun, 16 Feb 2020 17:53:02 +0000 (18:53 +0100)]
 make: add release-sources  (#10295)

* make: add release-sources

* make: release-sources exclude .git and make_evidence

4 years agomake/pr: enforce vendor for run (#10296)
Antoine GIRARD [Sun, 16 Feb 2020 16:30:09 +0000 (17:30 +0100)]
make/pr: enforce vendor for run (#10296)

4 years agoBlacklist manifest.json & milestones user (#10292)
techknowlogick [Sun, 16 Feb 2020 07:56:49 +0000 (02:56 -0500)]
Blacklist manifest.json & milestones user (#10292)

Fix #10290

4 years agoNotification: queue ui.go notification-service (#10281)
zeripath [Sun, 16 Feb 2020 00:29:43 +0000 (00:29 +0000)]
Notification: queue ui.go notification-service (#10281)

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoUpdate static resources documentation (#10270)
Gary Kim [Sat, 15 Feb 2020 23:00:40 +0000 (07:00 +0800)]
Update static resources documentation (#10270)

Signed-off-by: Gary Kim <gary@garykim.dev>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 15 Feb 2020 18:47:31 +0000 (18:47 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix Workerpool deadlock (#10283)
zeripath [Sat, 15 Feb 2020 18:44:58 +0000 (18:44 +0000)]
Fix Workerpool deadlock (#10283)

* Prevent deadlock on boost

* Force a boost in testchannelqueue

4 years agoDivide GetIssueStats query in smaller chunks (#10176)
guillep2k [Sat, 15 Feb 2020 10:51:25 +0000 (07:51 -0300)]
Divide GetIssueStats query in smaller chunks (#10176)

* Divide GetIssueStats query in smaller chunks

* Skip chunking if count is low enough

* Fix lint

* Define maxQueryParameters

* Remove absMaxQueryParameters because of lint

* Restart CI

* Restart CI

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoMove fixture generation to contrib and add test (#10277)
guillep2k [Sat, 15 Feb 2020 08:59:43 +0000 (05:59 -0300)]
Move fixture generation to contrib and add test  (#10277)

* Add fixture gen tool and fix "access" test

* Close file before exiting

* Add missing repo_unit for repo id: 5

* Fix count on TestAPIOrgRepos

* Generate access fixture from contrib and add test

* Remove old access fixture generation

* Fix lint

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoFix "access" fixtures and tests (#10247)
guillep2k [Sat, 15 Feb 2020 04:29:06 +0000 (01:29 -0300)]
Fix "access" fixtures and tests (#10247)

* Add fixture gen tool and fix "access" test

* Close file before exiting

* Add missing repo_unit for repo id: 5

* Fix count on TestAPIOrgRepos

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 14 Feb 2020 12:44:14 +0000 (12:44 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoIndex code and stats only for non-empty repositories (#10251)
Lauris BH [Fri, 14 Feb 2020 12:42:30 +0000 (14:42 +0200)]
Index code and stats only for non-empty repositories (#10251)

Fix test and switch to unique queue

Fix MySQL support when deleting old statistics

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 14 Feb 2020 03:09:58 +0000 (03:09 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoUpdate discord link (#10263)
John Olheiser [Fri, 14 Feb 2020 03:07:10 +0000 (21:07 -0600)]
Update discord link (#10263)

4 years agoIssue search support elasticsearch (#9428)
Lunny Xiao [Thu, 13 Feb 2020 06:06:17 +0000 (14:06 +0800)]
Issue search support elasticsearch (#9428)

* Issue search support elasticsearch

* Fix lint

* Add indexer name on app.ini

* add a warnning on SearchIssuesByKeyword

* improve code

4 years agoFix reply on code review (#10227)
Lunny Xiao [Thu, 13 Feb 2020 05:22:15 +0000 (13:22 +0800)]
Fix reply on code review (#10227)

Co-authored-by: zeripath <art27@cantab.net>
4 years agoAdd API branch protection endpoint (#9311)
David Svantesson [Wed, 12 Feb 2020 23:19:35 +0000 (00:19 +0100)]
Add API branch protection endpoint (#9311)

* add API branch protection endpoint

* lint

* Change to use team names instead of ids.

* Status codes.

* fix

* Fix

* Add new branch protection options (BlockOnRejectedReviews, DismissStaleApprovals, RequireSignedCommits)

* Do xorm query directly

* fix xorm GetUserNamesByIDs

* Add some tests

* Improved GetTeamNamesByID

* http status created for CreateBranchProtection

* Correct status code in integration test

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 12 Feb 2020 19:33:28 +0000 (19:33 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoAdd note about which version embedded tool is implemented (#10255)
techknowlogick [Wed, 12 Feb 2020 19:30:48 +0000 (14:30 -0500)]
Add note about which version embedded tool is implemented (#10255)

4 years agoFix queue pop error and stat empty repository error (#10248)
Lunny Xiao [Wed, 12 Feb 2020 10:12:27 +0000 (18:12 +0800)]
Fix queue pop error and stat empty repository error (#10248)

* Fix queue pop error and stat empty repository error

* Fix error

4 years agoAdd feishu webhook support (#10229)
Lunny Xiao [Wed, 12 Feb 2020 08:48:28 +0000 (16:48 +0800)]
Add feishu webhook support (#10229)

Add feishu webhook support

4 years agofix margin on attached segments with headers (#10235)
silverwind [Wed, 12 Feb 2020 03:38:32 +0000 (04:38 +0100)]
fix margin on attached segments with headers (#10235)

Fixes: https://github.com/go-gitea/gitea/issues/10210
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 12 Feb 2020 01:54:51 +0000 (01:54 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoSVG Octicon fixes (#10237)
John Olheiser [Wed, 12 Feb 2020 01:53:18 +0000 (19:53 -0600)]
SVG Octicon fixes (#10237)

* SVG fixes

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Colorize span->svg only

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

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

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Convert suburl and staticPrefix to window.config

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

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agofix label menu text on miletone issues (#10242)
jaqra [Wed, 12 Feb 2020 00:07:07 +0000 (03:07 +0300)]
fix label menu text on miletone issues (#10242)

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoStop hanging issue indexer initialisation from preventing shutdown (#10243)
zeripath [Tue, 11 Feb 2020 23:21:20 +0000 (23:21 +0000)]
Stop hanging issue indexer initialisation from preventing shutdown (#10243)

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agofix filter label emoji width (#10241)
jaqra [Tue, 11 Feb 2020 21:25:41 +0000 (00:25 +0300)]
fix filter label emoji width (#10241)

4 years agoFix issue sidebar menus having an infinite height (#10239)
James Lakin [Tue, 11 Feb 2020 20:40:47 +0000 (20:40 +0000)]
Fix issue sidebar menus having an infinite height (#10239)

* Revert "Limit label list height on edit issue page"

* Fix issue sidebar menus having an infinite height

4 years agoadd TAGS variable prereq on make targets that use it (#10219)
silverwind [Tue, 11 Feb 2020 19:42:03 +0000 (20:42 +0100)]
add TAGS variable prereq on make targets that use it (#10219)

Write out TAGS to .make_evidence/tags and compare it to the previous
invocation. If they differ, insert the evidence file into the prereqs
of targets that use TAGS. I made it .PHONY so it always builds.

I did not include the prereq on release tasks, asssuming the will always
do a clean build.

Fixes: https://github.com/go-gitea/gitea/issues/10196
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>