Commit Graph

8780 Commits

Author SHA1 Message Date
Antoine GIRARD 0715f65b11 ci: remove docker-linux-amd64-dry-run 2020-01-13 01:26:31 +01:00
Antoine GIRARD a3b14cde70 Merge branch 'optimize-ci' of github.com:sapk-fork/gitea into optimize-ci 2020-01-13 01:20:41 +01:00
Antoine GIRARD 817757396b ci: remove docker-linux-amd64-dry-run 2020-01-13 01:20:26 +01:00
Antoine GIRARD 240e209211
Merge branch 'master' into optimize-ci 2020-01-13 01:07:34 +01:00
Antoine GIRARD 782370978d chore: readd maybe need for release fetch-tags 2020-01-13 00:47:48 +01:00
Antoine GIRARD ce45672d12 chore: limit change 2020-01-13 00:18:53 +01:00
silverwind 80bfd5145c add package-lock=true in .npmrc (#9736)
Some users (like me) have this option disabled in their global npm
config which can lead to package-lock.json not being updated. This
explicitely enables the option for this repo, so that the file is
always updated when adding/removing dependencies.

Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
2020-01-13 00:11:43 +01:00
Antoine GIRARD ca91ccd1e2 ci: run compliance on arm 2020-01-13 00:06:31 +01:00
Antoine GIRARD 447d19bffb Merge branch 'master' into optimize-ci 2020-01-13 00:06:08 +01:00
Antoine GIRARD 2ecf98ed2d ci: use docker image for golangci-lint (#9737) 2020-01-12 16:26:13 -05:00
silverwind a3977a3e51 fix webpack polyfills (#9735)
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

Co-authored-by: zeripath <art27@cantab.net>
2020-01-12 21:53:12 +01:00
silverwind 74e35aae11 remove deprecated targets from Makefile (#9729)
- remove deprecated targets
- ensure 1 empty line between targets

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
2020-01-12 18:22:26 +01:00
Antoine GIRARD 23382ad095
Merge branch 'master' into optimize-ci 2020-01-12 17:45:31 +01:00
GiteaBot 625057c674 [skip ci] Updated translations via Crowdin 2020-01-12 16:34:48 +00:00
Antoine GIRARD d0030d4f7f Merge branch 'optimize-ci' of github.com:sapk-fork/gitea into optimize-ci 2020-01-12 17:21:46 +01:00
Antoine GIRARD 796c14d929 ci: revert runnning mysql on arm64 2020-01-12 17:21:34 +01:00
Antoine GIRARD 1c827e55c4 Merge branch 'master' into optimize-ci 2020-01-12 17:18:56 +01:00
6543 10055bd2b1 [API] add GET /orgs endpoint (#9560)
* introduce `GET /orgs`

* add TEST

* show also other VisibleType's

* update description

* refactor a lot

* SearchUserOptions by default return only public
2020-01-12 23:43:44 +08:00
Antoine GIRARD 3f117fd06a
Merge branch 'master' into optimize-ci 2020-01-12 15:19:08 +01:00
GiteaBot 497e15fdc2 [skip ci] Updated translations via Crowdin 2020-01-12 12:12:40 +00:00
Lunny Xiao b465d0d787
Move create/fork repository from models to modules/repository (#9489)
* Move create/fork repository from models to modules/repository

* fix wrong reference

* fix test

* fix test

* fix lint

* Fix DBContext

* remove duplicated TestMain

* fix lint

* fix conflicts
2020-01-12 20:11:17 +08:00
Lunny Xiao 20cbb24972
Merge branch 'master' into optimize-ci 2020-01-12 17:39:47 +08:00
Lunny Xiao 5765212c6d
Add owner_name column for table repository for maintaince reason (#9717)
* Add owner_name column for table repository for maintaince reason

* refactor

* Fix tests

* fix test

* fix bug when fork repository

Co-authored-by: zeripath <art27@cantab.net>
2020-01-12 17:36:21 +08:00
zeripath 00a48e1895
Merge branch 'master' into optimize-ci 2020-01-12 08:48:36 +00:00
zeripath 65baacf227
Make hook status printing configurable with delay (#9641)
* 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>
2020-01-12 08:46:03 +00:00
Antoine GIRARD e278a9c69f typo 2020-01-12 08:55:14 +01:00
Antoine GIRARD b1c53ba7eb chore: clean un-needed move 2020-01-12 08:43:36 +01:00
Antoine GIRARD dd88cc49d8 ci: test mysql8 in place pgsql arm64 2020-01-12 08:42:02 +01:00
Antoine GIRARD a6ddf35cfa
Merge branch 'master' into optimize-ci 2020-01-12 08:06:33 +01:00
Antoine GIRARD 91e345450a ci: activate ldap on arm64 2020-01-12 08:05:58 +01:00
6543 83f9359a75 [BugFix] [API] ​/repos​/issues​/search (#9698)
* fix

* fix options

* add TEST

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
2020-01-12 14:35:11 +08:00
Antoine GIRARD 443efe21b6 ci: try offloading pgsql to arm64 2020-01-12 06:54:03 +01:00
Antoine GIRARD ec38ee2864 Revert "ci: try offloading mysql8 to arm64"
This reverts commit c60de5db1c.
2020-01-12 06:51:40 +01:00
Antoine GIRARD c60de5db1c ci: try offloading mysql8 to arm64 2020-01-12 06:49:04 +01:00
Antoine GIRARD 24aaa2d60d ci: try re-ordering for optimizing time 2020-01-12 06:43:10 +01:00
Antoine GIRARD d91127affc ci: try re-ordering for optimizing time 2020-01-12 06:07:27 +01:00
Antoine GIRARD 25853375d9 ci: try re-ordering for optimizing time 2020-01-12 06:03:03 +01:00
Antoine GIRARD dff29f12c8 ci: try re-ordering for optimizing time 2020-01-12 05:56:12 +01:00
Antoine GIRARD e1fa574699 ci: try re-ordering for optimizing time 2020-01-12 05:44:19 +01:00
Antoine GIRARD 7819a84853 ci: try re-ordering for optimizing time 2020-01-12 05:39:54 +01:00
silverwind 86464de0c1 silence fomantic error regarding tabs (#9713)
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.
2020-01-12 03:57:32 +01:00
techknowlogick fef49f5e2e golangci-lint 1.22.2 (#9711) 2020-01-11 22:33:40 +02:00
zeripath 960ac36099
Remove unused lock (#9709) 2020-01-11 19:06:35 +00:00
zeripath edd31770aa
Missed q.lock.Unlock() will cause panic (#9705) 2020-01-11 17:05:07 +00:00
Lunny Xiao f69f5a9f10 Add a new command doctor to check if some wrong configurations on gitea instance (#9095)
* add doctor

* Add a new command doctor to check if some wrong configurations on gitea instance

* fix import

* use regex match authorized_keys on doctor

* Add documentation
2020-01-11 15:24:57 +01:00
GiteaBot f2e6c4538e [skip ci] Updated translations via Crowdin 2020-01-11 10:51:31 +00:00
zeripath eadb45e891 Restore IsPasswordSet previous value (#9682) 2020-01-11 18:50:05 +08:00
David Svantesson 32fb813133 Allow repo admin to merge PR regardless of review status (#9611)
* Allow repo admin to merge even if review is not ok.
2020-01-11 02:29:34 -05:00
Lunny Xiao 4d06d10dba Move tracked time api convert to convert package (#9665) 2020-01-10 21:59:41 -05:00
guillep2k 705b1e49a8 Don't attempt to close issue if already closed (#9696)
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-01-11 09:20:11 +08:00