Antoine GIRARD and GitHub
e3cb4f9d0e
fix: set explicit POSTGRES_PASSWORD for pgsql on drone CI ( #10303 )
2020-02-16 16:38:54 -05:00
Antoine GIRARD and GitHub
eb064dfda2
make: add release-sources #10295 ( #10298 )
...
* make: add release-sources
* make: release-sources exclude .git and make_evidence
* fix: skip exclude MAKE_EVIDENCE_DIR not present in 1.11
2020-02-16 13:23:41 -05:00
Antoine GIRARD and Lauris BH
8b24073713
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
2020-01-05 01:20:08 +02:00
e2fc0a0dfd
chore: update license list ( #9436 )
...
go run scripts/generate-licenses.go
Co-authored-by: zeripath <art27@cantab.net >
2019-12-20 08:17:25 +08:00
Antoine GIRARD and zeripath
db5524a9ab
chore: update gitignore list ( #9437 )
...
Updated the gitignore list with the command : `go run scripts/generate-gitignores.go`
2019-12-19 23:04:12 +00:00
Antoine GIRARD and techknowlogick
559fb6ccf0
chore: update github.com/couchbase/gomemcached and github.com/couchbase/go-couchbase ( #9419 )
2019-12-18 21:03:26 -05:00
Antoine GIRARD and zeripath
8bea92c3dc
test: command keys ( #9357 )
2019-12-15 08:11:31 +00:00
Antoine GIRARD and Lauris BH
81a52442a1
deps: update and fix chardet import ( #9351 )
2019-12-14 02:15:48 +02:00
Antoine GIRARD and zeripath
c3d31e5534
refactor(models/attachement): use getAttachmentsByUUIDs ( #9317 )
2019-12-11 00:01:52 +00:00
4dc3993b22
tests: add attachement tests integration ( #9309 )
...
* tests: add attachements integration
* Update integrations/attachement_test.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com >
2019-12-10 19:06:48 +08:00
Antoine GIRARD and techknowlogick
6e578dd0c9
docker: ask s6 to stop all service when gitea stop ( #9171 )
...
* fix: ask s6 to stop all service when gitea stop
https://github.com/just-containers/s6-overlay#writing-an-optional-finish-script
* change service folder
2019-11-27 13:08:57 -05:00
f128e06ea6
fix: add search to reserved usernames ( #9063 )
...
* fix: add search to reserved usernames
* Update integrations/user_test.go
Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com >
2019-11-18 15:03:25 -05:00
Antoine GIRARD and zeripath
cda8de2004
Show repository size in repo home page and settings ( #8940 )
...
* feat: display repository size on repo home and settings
* refactor: move repo size up in setting page
2019-11-13 00:45:19 +00:00
Antoine GIRARD and zeripath
85609efaad
Display Gitea logo in Readme ( #8592 )
...
* readme: add gitea logo
* Update README.md
* Update README.md
* Update README.md
2019-10-19 22:14:38 +01:00
Antoine GIRARD and Lunny Xiao
c748deef33
don't ignore error message ( #8550 )
2019-10-17 08:15:02 +08:00
Antoine GIRARD and Lunny Xiao
ba201aaa44
vendor: update mvdan.cc/xurls/v2 to v2.1.0 ( #8495 )
2019-10-14 08:38:15 +08:00
Antoine GIRARD and GitHub
149758c912
Update to github.com/lafriks/xormstore@v1.3.0 ( #8317 )
2019-10-02 02:32:12 +02:00
9fe4437bda
Use vendored go-swagger ( #8087 )
...
* Use vendored go-swagger
* vendor go-swagger
* revert un wanteed change
* remove un-needed GO111MODULE
* Update Makefile
Co-Authored-By: techknowlogick <matti@mdranta.net >
2019-09-04 22:53:54 +03:00
Antoine GIRARD and Lunny Xiao
187ae109d0
Update to mod enabled version goquery ( #8021 )
...
* update to mod enabled version goquery
* manually set appengine new release
2019-08-29 11:18:42 +08:00
Antoine GIRARD and GitHub
256b178176
Update swagger to 0.20.1 ( #8010 )
...
* update swagger to 0.20.1
* fiw swagger version for validate
2019-08-28 08:55:22 +02:00
Antoine GIRARD and GitHub
954fe0e4e0
swagger/fix: []string are not enum by swagger definition ( #7916 )
...
* []string are not enum by swagger definition
* apply suggestion of @guillep2k
* re-generate swagger file
2019-08-26 20:13:10 +02:00
Antoine GIRARD and Lunny Xiao
c2c35d169c
lfs/lock: round locked_at timestamp to second ( #7872 )
...
* lfs/lock: round locked_at timestamp to second
* test returned locked_at values
* tests: use time RFC3339
2019-08-15 18:53:28 +08:00
Antoine GIRARD and Lunny Xiao
46d6b92ad0
Import topics during migration ( #7851 )
...
* add GetTopics interface
* CreateTopics
* remove un-needed comment
2019-08-14 14:16:12 +08:00
Antoine GIRARD and Lunny Xiao
7ffa3fcfa0
gpg/bugfix: Use .ExpiredUnix.IsZero to display green color of forever valid gpg key ( #7846 )
...
* Use .ExpiredUnix.IsZero for display green color of gpg key
* remove useless parentheses
2019-08-14 09:39:44 +08:00
Antoine GIRARD and Lauris BH
26a78fa6b3
vendor: update pdf.js to v2.1.266 ( #7834 )
2019-08-13 20:09:06 +03:00
Antoine GIRARD and techknowlogick
9692ebcc54
add details for db socket listening ( #7830 )
2019-08-12 17:52:11 -04:00
Antoine GIRARD and Lauris BH
e9bb75d8d1
Fix duplicate call of webhook ( #7821 )
2019-08-11 23:31:18 +03:00
2b6f45299d
api: fix multiple bugs with statuses endpoints ( #7785 )
...
* fix commit statuses api url
* search refs before passing sha
* adjust tests
* directly search tags and branches names + remove un-needed check in NewCommitStatus
* fix comment
* de-duplicate code
* test: use relative setting.AppURL
* Update routers/api/v1/repo/status.go
Co-Authored-By: Lauris BH <lauris@nix.lv >
* remove return
* Update routers/api/v1/repo/status.go
Co-Authored-By: Lauris BH <lauris@nix.lv >
2019-08-09 10:13:03 +08:00
Antoine GIRARD and Lauris BH
e54814dcaa
activate sum.golang.org check ( #7782 )
2019-08-08 12:38:23 +03:00
Antoine GIRARD and Lunny Xiao
52feff5a5c
deps: Upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 ( #7749 )
...
* deps: Upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 from 1.2.0 to 1.3.0
* deps: vendor updates
2019-08-05 15:52:41 +08:00
Antoine GIRARD and Lauris BH
cd238bc415
build: use GOPROXY and disable download on some steps ( #7745 )
...
* build: use GOPROXY
* disable download vendor on some steps
2019-08-05 00:58:16 +03:00
Antoine GIRARD and techknowlogick
76408d50fb
org/members: display 2FA members states + optimize sql requests ( #7621 )
...
* org/members: display 2FA state
* fix comment typo
* lay down UserList bases
* add basic test for previous methods
* add comment for UserList type
* add valid two-fa account
* test new UserList methods
* optimize MembersIsPublic by side loading info on GetMembers + fix integrations tests
* respect fmt rules
* use map for data
* Optimize GetTwoFaStatus
* rewrite by using existing sub func
* Optimize IsUserOrgOwner
* remove un-used code
* tests: cover empty org + fix import order
* tests: add ErrTeamNotExist path
* tests: fix wrong expected result
2019-08-02 12:06:27 -04:00
Antoine GIRARD and techknowlogick
c1b09c30f0
drone: a test for compat with 32 bit ( #7707 )
2019-08-01 14:00:12 -04:00
Antoine GIRARD and techknowlogick
bb22e3a1e1
update gopkg.in/src-d/go-git.v4 to v4.13.1 ( #7705 )
2019-08-01 12:31:03 -04:00
Antoine GIRARD and techknowlogick
a9b4c8171f
Update src-d/go-git to v4.13.0 ( #7688 )
...
* update gopkg.in/src-d/go-git.v4 v4.13.0
* mod tidy
* vendor
2019-07-31 12:45:42 -04:00
Antoine GIRARD and Lunny Xiao
ed3d124552
css: use flex to fix floating paginate ( #7656 )
2019-07-29 14:14:55 +08:00
Antoine GIRARD and Lunny Xiao
d02566a8ea
integration tests: Use t.Helper() ( #7654 )
2019-07-29 12:15:18 +08:00
Antoine GIRARD and techknowlogick
d4667a4949
drone/docker: prepare multi-arch release + provide arm64 image ( #7571 )
...
* drone/docker: prepare multi-arch release
* Add docker-linux-arm64 pipeline
* add arm 64 build to manifest
* tag dry-run + indent
* Fix notify dependency
2019-07-24 13:21:12 -04:00
Antoine GIRARD and techknowlogick
acf6bd42c4
drone/docker: Use a more standard format ( #7480 )
...
* drone/docker: Use a more standard format
Based on the plugin drone structure itself : https://github.com/drone-plugins/drone-docker/blob/ebce953fc443371d79b5a019fcc9c1976f60a09a/.drone.yml#L9
Use autotag : http://plugins.drone.io/drone-plugins/drone-docker/#autotag
* use latest plugins/docker:linux-amd64
* remove useless cache_from
* Don't depends on translations step
2019-07-17 10:47:34 -04:00
Antoine GIRARD and Lunny Xiao
aaf8c9f047
don't make release-version deps on transalations since translations is only triggered by push on master ( #7496 )
2019-07-17 14:12:32 +08:00
Antoine GIRARD and techknowlogick
f369788347
Refactor filetype is not allowed errors ( #7309 )
2019-07-06 22:25:05 -04:00
Antoine GIRARD and Jonas Franz
c39df04087
Display Github support button ( #7343 )
...
This need an option to be enabled on repo : https://help.github.com/en/articles/displaying-a-sponsor-button-in-your-repository
2019-07-02 12:06:25 +02:00
Antoine GIRARD and Lunny Xiao
1e46eedce7
update mssql drive to last working version 20180314172330-6a30f4e59a44 ( #7306 )
2019-06-30 11:28:17 +08:00
Antoine GIRARD and Lunny Xiao
de9b398cde
add .fa margin like .octicon ( #7258 )
2019-06-20 15:16:01 +08:00
Antoine GIRARD and techknowlogick
2d097655a6
Fix relref link in docs ( #7233 )
2019-06-17 22:57:48 -04:00
Antoine GIRARD and zeripath
367aeb169a
Use go method to calculate ssh key fingerprint ( #7128 )
...
* Use go method to calculate key fingerprint
* add gitea copyright
* use native go method only for built-in server
* refactor and add tests
* add gitea copyright
2019-06-16 08:50:46 +01:00
Antoine GIRARD and Lunny Xiao
273f1997ff
setting: don't require same running user for internal SSH (like win platform) ( #7215 )
2019-06-16 10:49:07 +08:00
Antoine GIRARD and techknowlogick
10ff527fae
internal/ssh: ignore env command totally ( #6825 )
...
* ssh: ignore env command totally
* Remove commented code
Needed fix described in issue #6889
2019-05-09 18:41:43 -04:00
Antoine GIRARD and Lauris BH
650df0bd4e
Enforce osusergo build tag for releases ( #6862 )
2019-05-06 22:48:08 +03:00
Antoine GIRARD and techknowlogick
2933ae4e88
Update https://github.com/urfave/cli to version 1.2.0 ( #6838 )
...
From un-tagged pervious version : https://github.com/urfave/cli/compare/d86a009f5e13...master
2019-05-03 08:49:14 -04:00
Antoine GIRARD and Lauris BH
eb8632b20b
Add existing issues ( #6811 )
2019-04-30 20:50:17 +03:00
Antoine GIRARD and techknowlogick
84fd24246c
Bump github.com/stretchr/testify from 1.2.2 to 1.3.0 ( #6663 )
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.2.2 to 1.3.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.2.2...v1.3.0 )
2019-04-16 23:45:40 -04:00
Antoine GIRARD and techknowlogick
4f19b08258
update swagger-ui ( #6661 )
2019-04-16 22:50:55 -04:00
Antoine GIRARD and techknowlogick
4183c846e3
[mod]: Bump gopkg.in/src-d/go-git.v4 from 4.8.0 to 4.10.0 ( #6662 )
...
Bumps [gopkg.in/src-d/go-git.v4](https://github.com/src-d/go-git ) from 4.8.0 to 4.10.0.
- [Release notes](https://github.com/src-d/go-git/releases )
- [Commits](https://github.com/src-d/go-git/compare/v4.8.0...v4.10.0 )
2019-04-16 22:04:23 -04:00
Antoine GIRARD and techknowlogick
e98565ddc7
Fix wrong GPG expire date ( #6643 )
...
* fix expire of gpg relative to key creation https://tools.ietf.org/html/rfc4880#section-5.2.3.6
* add test
2019-04-15 20:32:15 -04:00
Antoine GIRARD and techknowlogick
d699de32f2
add .gpg url (match github behaviour) ( #6610 )
...
* add .gpg url (match github behaviour)
* wildcard
* test to export maximum data
* working POC
* add comment for old imported keys
* cleaning
* Update routers/user/profile.go
Co-Authored-By: sapk <sapk@users.noreply.github.com >
* add migration script
* add integration tests
2019-04-14 12:43:56 -04:00
Antoine GIRARD and techknowlogick
9d3732dfd5
[Contrib] Checkout a PR ( #6021 )
2019-03-07 20:54:10 -05:00
Antoine GIRARD and techknowlogick
9eb00fed13
Run benchmark at tag to track performances ( #6035 )
2019-02-11 12:09:50 -05:00
Antoine GIRARD and techknowlogick
d6c229cdbe
Include Go toolchain to --version ( #5830 )
...
* Include Go version
* fix import order
2019-01-24 10:22:51 -05:00
Antoine GIRARD and techknowlogick
905e63f5b5
Force the PR close time to 60 days ( #5770 )
...
Like the comment that is posted.
Ex: https://github.com/go-gitea/gitea/pull/4749 is closed after 2 weeks and not 2 months
2019-01-19 12:21:03 -05:00
Antoine GIRARD and Lauris BH
9f544e9356
drone/mssql: use golang 1.11 build like the other tests ( #5586 )
2018-12-23 23:11:22 +02:00
Antoine GIRARD and techknowlogick
7cb1d8296d
Create stale bot config ( #5243 )
2018-12-20 15:34:55 -05:00
Antoine GIRARD and Lunny Xiao
3a95e2d0ea
app.ini.sample: add ENABLE_USER_HEATMAP default config ( #5362 )
...
Doc: https://github.com/go-gitea/gitea/blob/b97af15de67b04fd259bd70a4abbc873f12e9491/docs/content/doc/advanced/config-cheat-sheet.en-us.md#service-service
2018-11-20 17:54:09 +08:00
Antoine GIRARD and techknowlogick
4c1f1f9646
Remove x/net/context vendor by using std package ( #5202 )
...
* Update dep github.com/markbates/goth
* Update dep github.com/blevesearch/bleve
* Update dep golang.org/x/oauth2
* Fix github.com/blevesearch/bleve to c74e08f039e56cef576e4336382b2a2d12d9e026
* Update dep golang.org/x/oauth2
2018-11-10 18:55:36 -05:00
Antoine GIRARD and techknowlogick
57a8440db3
Update gitignore list ( #5258 )
...
* update gitignore
* Handle symlink in tar
* Add some logs
2018-11-03 18:06:09 -04:00
Antoine GIRARD and Lunny Xiao
617a2433a3
Make gitea serv use api/internal ( #4886 )
...
* Start to move to internal/private
* Add GetPublicKeyByID
* Add HasDeployKey
* Add private.UpdateDeployKeyUpdated
* Add private.GetUserByKeyID
* Add private.AccessLevel
* Add private.CheckUnitUser
* Fix mistakes I made
* Some cleaning + moving code to separate files
* Fix error handling
* Remove useless error handling for setup
* lint: fix comment on exported func
* fix copyright header
* Fix order of args
2018-10-30 14:20:13 +08:00
Antoine GIRARD and techknowlogick
2af57c7820
Update x/net ( #5169 )
2018-10-26 19:05:56 -04:00
Antoine GIRARD and Lunny Xiao
c258ae8ada
revert #5146 ( #5167 )
2018-10-25 16:31:26 +08:00
Antoine GIRARD and Jonas Franz
ffd5fb8139
Set heatmap color range configurable ( #5165 )
2018-10-24 16:38:04 +02:00
Antoine GIRARD and Lunny Xiao
70ad46133f
Fix JSON result of empty array ( #5154 )
2018-10-24 21:17:21 +08:00
Antoine GIRARD and techknowlogick
e4b8103ac7
Use fingerprint in place of id ( #5099 )
2018-10-18 00:15:02 -04:00
Antoine GIRARD and techknowlogick
74f9f98f78
Simply remove tidb and deps ( #3993 )
2018-07-04 16:23:23 -04:00
Antoine GIRARD and Lunny Xiao
a747a5d05f
Add gpg-sign step to drone ( #4188 )
...
* Add gpg-sign step to drone
* add compressed releases to gpg-sign targets
* Use exclude to simplify file list
drone-plugins/drone-gpgsign#2
2018-06-24 14:40:30 +08:00
Antoine GIRARD and Lunny Xiao
23ba5c870f
markup: escape short wiki link ( #4091 )
2018-06-15 20:42:49 +08:00
Antoine GIRARD and techknowlogick
6efdcaed86
Fix swagger security parts ( #4236 )
2018-06-12 19:23:00 -04:00
Antoine GIRARD and Bo-Yi Wu
908e8942cc
Fix swagger errors ( #4220 )
...
Fix all the resting errors to have a valid swagger file.
They are still some warnings but nothing blocking.
Doing so I found that some request still misses son parameters for some POST/PUT/PATCH request. This means the a client generated from the swagger file will not work completely.
Fix #4088 by activating validation in drone
Should fix #4010 .
2018-06-12 22:59:22 +08:00
Antoine GIRARD and techknowlogick
048468560f
Add security advice to contrib guide ( #4187 )
...
* Improve contributing guidelines for security
2018-06-09 12:03:23 -04:00
Antoine GIRARD and Lunny Xiao
35c3510335
Fix #4081 Check for leading / in base before removing it ( #4082 )
2018-05-30 21:23:43 +08:00
Antoine GIRARD and techknowlogick
6f31911497
Add $GOPATH/bin to PATH for make releases ( #4020 )
...
Needed to access go tool gxz
2018-05-22 12:12:10 -04:00
Antoine GIRARD and techknowlogick
08c9617caa
Provide compressed releases ( #3991 )
...
* Add release-compress to provide compressed releases
* check after compress
2018-05-21 14:50:39 -04:00
Antoine GIRARD and techknowlogick
75982127c8
[doc] Update vendor tool section to dep ( #4008 )
2018-05-21 14:10:35 -04:00
Antoine GIRARD and Lauris BH
3f3383dc0a
Migrate to dep ( #3972 )
...
* Update makefile to use dep
* Migrate to dep
* Fix some deps
* Try to find a better version for golang.org/x/net
* Try to find a better version for golang.org/x/oauth2
2018-05-21 15:34:20 +03:00
Antoine GIRARD and Lunny Xiao
edc78b9633
Update to last common x/text ( #3994 )
2018-05-20 18:09:00 +08:00
Antoine GIRARD and Lauris BH
8dca5ad526
Fetch missing file in github.com/davecgh/go-spew/spew ( #3995 )
2018-05-20 09:09:35 +03:00
Antoine GIRARD and Lunny Xiao
917b9641ec
Update to last common bleve ( #3986 )
2018-05-19 20:49:46 +08:00
Antoine GIRARD and Bo-Yi Wu
3506717e9c
Add swagger check ( #3811 )
2018-04-20 17:13:50 +08:00
Antoine GIRARD and Lauris BH
0e26db8bcd
Docker multi-stage ( #2927 )
...
* Setup docker multi-stage and little sugar at it
* Make codacy happy ?
* Revert back to what the official docker documentation suggest
Codacy don't seems to follow https://docs.docker.com/engine/reference/builder/#maintainer-deprecated
* Update golang version
2018-03-12 11:59:13 +02:00
Antoine GIRARD and Lauris BH
b3fd94c13d
Add sensitive headers ( #3429 )
...
* Add HeaderWithSensitiveCase methods to respect casing
* Update webhook.go
2018-01-31 00:09:16 +02:00
Antoine GIRARD and Lauris BH
36a94da8da
doc: Improve integrations examples ( #3416 )
2018-01-27 20:52:41 +02:00
Antoine GIRARD and Lauris BH
9e842c8a72
Fix SSH auth lfs locks ( #3152 )
...
* Fix SSH auth LFS locks
* Activate SSH/lock test
* Remove debug
* Follow @lunny recommendation for AfterLoad method
2018-01-27 18:48:15 +02:00
Antoine GIRARD and Lauris BH
1ce3572409
Remove useless check ( #3384 )
...
In #3377 , I put check inside all write key function. This one is useless no.
2018-01-19 21:45:53 +02:00
Antoine GIRARD and Lauris BH
095fb9f2e3
Add integrations tests from git cli ( #3377 )
...
* test: integration add git cli tests
Extracted form for easing review process and debug #3152
* test: integration add git cli big file commit
* fix: Don't rewrite key if internal server
2018-01-16 13:07:47 +02:00
Antoine GIRARD and Lauris BH
079273e2ff
Add MSSQL to supported database list of intall page ( #3359 )
2018-01-12 19:23:28 +02:00
Antoine GIRARD and Andrey Nering
84feb016f5
Remove useless fmt.Errorf("%v", err) ( #3337 )
2018-01-09 16:40:05 -02:00
Antoine GIRARD and Lauris BH
cb868b7851
Add missing indexer doc in configuration ( #3324 )
...
* Add missing indexer doc in configuration
* Unify MAX_FILE_SIZE to 1024 * 1024
2018-01-08 07:03:52 +02:00
Antoine GIRARD and Bo-Yi Wu
d2736e268b
Remove unused vendor github.com/stretchr/testify/require ( #3273 )
2017-12-31 09:11:08 +08:00
Antoine GIRARD and Lauris BH
cc7b8e3379
Add more bench ( #3161 )
...
* Improve makefile + Add benchs
* Apply recommendations of @ethantkoenig
2017-12-24 02:33:34 +02:00
Antoine GIRARD and Lunny Xiao
23ffdf42c8
Update alpine to 3.7 ( #3121 )
2017-12-10 10:50:50 +08:00
Antoine GIRARD and Lunny Xiao
ef78309b65
Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. ( #3092 )
...
* Add failing test
* Fix urls
* Improve url in tests
* improve testing
* Remove debug code
* Add deps
* LFS corner-case : Search on lower but store with case
* Temporary comment of blocking action
* fix hooks
* Use temporary repo for git client test
* Use userPassword in place of hard-coded password
2017-12-08 20:21:37 +08:00
Antoine GIRARD and Lauris BH
4035ab05fa
Fix git lfs path ( #3016 )
...
* add suffix .git
* Remove Content-Type on GET methods
* Add migrations to force creation before any further potential migration
2017-11-29 01:35:23 +02:00