]>
source.dussan.org Git - gitea.git/log
techknowlogick [Wed, 14 Aug 2019 03:32:38 +0000 (23:32 -0400)]
Update golangci-lint to v1.17.1 (#7848)
clavinet [Wed, 14 Aug 2019 03:28:11 +0000 (05:28 +0200)]
Update app.ini.sample (#7816)
grammar fix
Antoine GIRARD [Wed, 14 Aug 2019 01:39:44 +0000 (03:39 +0200)]
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
GiteaBot [Tue, 13 Aug 2019 17:11:27 +0000 (17:11 +0000)]
[skip ci] Updated translations via Crowdin
Antoine GIRARD [Tue, 13 Aug 2019 17:09:06 +0000 (19:09 +0200)]
vendor: update pdf.js to v2.1.266 (#7834)
Mura Li [Tue, 13 Aug 2019 08:30:44 +0000 (16:30 +0800)]
Do not fetch all refs (#7797)
Which would unnecessarily slow down the pull compare operation.
GiteaBot [Mon, 12 Aug 2019 21:54:26 +0000 (21:54 +0000)]
[skip ci] Updated translations via Crowdin
Antoine GIRARD [Mon, 12 Aug 2019 21:52:11 +0000 (23:52 +0200)]
add details for db socket listening (#7830)
WGH [Mon, 12 Aug 2019 02:17:25 +0000 (05:17 +0300)]
Fix lax comparison in validation tests (#7815)
If you add t.Logf("%+v %+v", actual, testCase.expectedErrors) to
the test code, you'll notice that only Errors' Messages are being
compared:
--- PASS: Test_ValidURLValidation/Invalid_schema (0.00s)
binding_test.go:43: [Url] [Url]
FieldNames and Classification are ignored in comparison.
Moreover, an Errors slice with a single Error with empty message
is formatted as '[]' (the same as empty slice), which is also
error-prone. I discovered this when working on #7791 when one test which
was not supposed to pass did pass. https://play.golang.org/p/qC4wVLrm4NG
This commit changes the test to do the comparison properly.
Antoine GIRARD [Sun, 11 Aug 2019 20:31:18 +0000 (22:31 +0200)]
Fix duplicate call of webhook (#7821)
Mario Lubenka [Sun, 11 Aug 2019 15:23:49 +0000 (17:23 +0200)]
Enable switching to a different source branch when PR already exists (#7819)
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
clavinet [Sun, 11 Aug 2019 12:15:58 +0000 (14:15 +0200)]
Update serv.go (#7822)
small semantics fix
"Hi there, user!" looks better than "Hi there: user!"
clavinet [Sat, 10 Aug 2019 19:25:26 +0000 (21:25 +0200)]
Update app.ini.sample (#7817)
small grammar fix
David Svantesson [Sat, 10 Aug 2019 09:32:46 +0000 (11:32 +0200)]
Rewrite existing repo units if setting is not included in api body (#7763)
* Rewrite existing repo units if setting is not included in api body
Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* else-if on one row
Gary Kim [Fri, 9 Aug 2019 12:57:29 +0000 (12:57 +0000)]
Prevent Commit Status and Message From Overflowing On Branch Page (#7800)
* Prevent Commit Status From Overflowing On Branch Page
It is possible for the commit ci status
on the branches page for a repository to
become an ellipsis due to overflowing.
This commit will fix that issue by
using flex.
Signed-off-by: Gary Kim <gary@garykim.dev>
* Fix multiple overflowing issues in commits table
It was possible that the commit message would
overflow hiding the expand commits button
and commit status. This change ensures that
the correct elements overflow without hiding
anything else.
This change also reverts using flex in the
commits list because it was causing issues
in Blink based browsers.
Signed-off-by: Gary Kim <gary@garykim.dev>
* Remove unnecessary html element and fix indentation issues
Antoine GIRARD [Fri, 9 Aug 2019 02:13:03 +0000 (04:13 +0200)]
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>
Mason [Thu, 8 Aug 2019 15:40:31 +0000 (11:40 -0400)]
Add SSH_LISTEN_HOST to the config cheatsheet (#7793)
This was missing before, and this commit adds it with the correct
default value and description
silverwind [Thu, 8 Aug 2019 14:46:03 +0000 (16:46 +0200)]
Fix global search result CSS, misc CSS tweaks (#7789)
- Fixes double line-numbers and padding in Explore > Code > Search
- Moved code-view specific CSS out of their parents to share those
styles better.
- Fix misc issues discovered in code,diff and blame view, especially for
the dark theme.
Antoine GIRARD [Thu, 8 Aug 2019 09:38:23 +0000 (11:38 +0200)]
activate sum.golang.org check (#7782)
guillep2k [Thu, 8 Aug 2019 04:47:57 +0000 (01:47 -0300)]
Correct formatting of bullet list (#7794)
Lunny Xiao [Wed, 7 Aug 2019 16:33:29 +0000 (00:33 +0800)]
Display error as string but not bytes (#7780)
* display error as string but not bytes
* Update routers/repo/http.go
Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
Lars Kistner [Wed, 7 Aug 2019 09:05:18 +0000 (11:05 +0200)]
remove `-i` flag from GOFLAGS (#7778)
this flag is not needed for Go versions >=1.10 and creates problems
while building. see https://github.com/golang/go/issues/27285#issuecomment-
424382413
Lunny Xiao [Wed, 7 Aug 2019 04:22:41 +0000 (12:22 +0800)]
Fix approvals counting (#7757)
* fix approvals counting
* fix tests
* fmt
WGH [Tue, 6 Aug 2019 23:27:10 +0000 (02:27 +0300)]
Fix Slack webhook fork message (#7774)
The order of forkee and fork was mixed up.
guillep2k [Tue, 6 Aug 2019 08:57:55 +0000 (05:57 -0300)]
Add migration step to remove old repo_indexer_status orphaned records (#7746)
* Add migration step to remove old repo_indexer_status orphaned records
* Include RepoIndexerStatus struct definition in the migrate function
* Change .Delete(o) into ID(o.ID).Delete(new(RepoIndexerStatus))
* Simplification of the delete procedure
* Rename v91.go to v92.go
Lunny Xiao [Tue, 6 Aug 2019 06:32:11 +0000 (14:32 +0800)]
fix rename failed when rewrite public keys (#7761)
guillep2k [Tue, 6 Aug 2019 04:38:16 +0000 (01:38 -0300)]
Remove camel case tokenization from repo indexer (#7733)
* Make repository indexer tokenize by camel case selectable
* Revert "Make repository indexer tokenize by camel case selectable"
This reverts commit
a8d4e40af56ffeab9c040a13e01b9e0d5487bd3b .
* Remove app.ini setting, permanently remove camel case tokenizer
* Increase repoIndexerLatestVersion to force indexes to be rebuilt
* Changes introduced by the commmand make vendor
zeripath [Mon, 5 Aug 2019 21:49:49 +0000 (22:49 +0100)]
Fix dropTableColumns sqlite implementation (#7710)
* Fix dropTableColumns sqlite implementation
* use droptables and its index dropping support in v78 and v85
* golang-ci fixes
* Add migration from gitea 1.3.3 for sqlite which reveals the droptables bug - thus showing this works
zeripath [Mon, 5 Aug 2019 20:39:39 +0000 (21:39 +0100)]
Be more strict with git arguments (#7715)
* Be more strict with git arguments
* fix-up commit test
* use bindings for branch name
silverwind [Mon, 5 Aug 2019 15:48:31 +0000 (17:48 +0200)]
Add a lot of extension to language mappings for syntax highlights (#7741)
Data partially based on [CodeMirror's meta.js](https://github.com/codemirror/CodeMirror/blob/master/mode/meta.js).
Fixes: https://github.com/go-gitea/gitea/issues/6057
Lunny Xiao [Mon, 5 Aug 2019 14:29:40 +0000 (22:29 +0800)]
Add SQL execution on log and indexes on table repository and comment (#7740)
* add index on comment
* add SQL execution time on log and index owner_id on repository
* add migration
Antoine GIRARD [Mon, 5 Aug 2019 07:52:41 +0000 (09:52 +0200)]
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
Antoine GIRARD [Sun, 4 Aug 2019 21:58:16 +0000 (23:58 +0200)]
build: use GOPROXY and disable download on some steps (#7745)
* build: use GOPROXY
* disable download vendor on some steps
Lunny Xiao [Sun, 4 Aug 2019 18:33:36 +0000 (02:33 +0800)]
add pagination for admin api get orgs and fix only list public orgs bug (#7742)
jaqra [Sun, 4 Aug 2019 14:49:29 +0000 (17:49 +0300)]
Apply emoji on commit graph page (#7743)
silverwind [Sun, 4 Aug 2019 12:55:20 +0000 (14:55 +0200)]
Tweak label border CSS (#7739)
Also did various tweaks to label hover and dark theme.
Fixes: https://github.com/go-gitea/gitea/pull/5487
FlorianBen [Sun, 4 Aug 2019 08:11:27 +0000 (10:11 +0200)]
Fix specific highlighting (CMakeLists.txt ...) (#7686)
* Fix specific highlighting.
* Highlighting CMakeLists.txt:
remove case sensitive checks.
use lowercase checks instead.
guillep2k [Sun, 4 Aug 2019 06:53:17 +0000 (03:53 -0300)]
Fix repo_index_status lingering when deleting a repository (#7734)
Lauris BH [Sat, 3 Aug 2019 18:38:42 +0000 (21:38 +0300)]
Fix milestone completness calculation when migrating (#7725)
guillep2k [Sat, 3 Aug 2019 17:42:09 +0000 (14:42 -0300)]
Fixes indexed repos keeping outdated indexes when files grow too large (#7712)
Lunny Xiao [Sat, 3 Aug 2019 07:07:51 +0000 (15:07 +0800)]
display as error (#7724)
Antoine GIRARD [Fri, 2 Aug 2019 16:06:28 +0000 (18:06 +0200)]
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
guillep2k [Fri, 2 Aug 2019 15:14:50 +0000 (12:14 -0300)]
Include "executable" files in the index, as they are not necessarily binary (#7718)
guillep2k [Fri, 2 Aug 2019 06:57:53 +0000 (03:57 -0300)]
Skip non-regular files (e.g. submodules) on repo indexing (#7711)
silverwind [Thu, 1 Aug 2019 20:06:34 +0000 (22:06 +0200)]
Fix create menu item widths (#7708)
Fixes: https://github.com/go-gitea/gitea/issues/7098
Antoine GIRARD [Thu, 1 Aug 2019 18:00:12 +0000 (20:00 +0200)]
drone: a test for compat with 32 bit (#7707)
Lunny Xiao [Thu, 1 Aug 2019 17:34:46 +0000 (01:34 +0800)]
remove unnecessary fmt on generate bindata (#7706)
Antoine GIRARD [Thu, 1 Aug 2019 16:31:04 +0000 (18:31 +0200)]
update gopkg.in/src-d/go-git.v4 to v4.13.1 (#7705)
Lunny Xiao [Thu, 1 Aug 2019 14:50:06 +0000 (22:50 +0800)]
improve branches list performance and fix protected branch icon when no-login (#7695)
zeripath [Wed, 31 Jul 2019 19:19:47 +0000 (20:19 +0100)]
Correct wrong datetime format for git (#7689)
Antoine GIRARD [Wed, 31 Jul 2019 16:45:42 +0000 (18:45 +0200)]
Update src-d/go-git to v4.13.0 (#7688)
* update gopkg.in/src-d/go-git.v4 v4.13.0
* mod tidy
* vendor
techknowlogick [Wed, 31 Jul 2019 13:38:28 +0000 (09:38 -0400)]
frontport 1.9.0 changelog (#7687)
Lunny Xiao [Wed, 31 Jul 2019 09:24:38 +0000 (17:24 +0800)]
fix duplicated webhook when creating issue with assignees (#7681)
GiteaBot [Wed, 31 Jul 2019 06:16:57 +0000 (06:16 +0000)]
[skip ci] Updated translations via Crowdin
David Svantesson [Wed, 31 Jul 2019 06:13:04 +0000 (08:13 +0200)]
Move add to hook queue for created repo to outside xorm session. (#7675)
Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
6543 [Tue, 30 Jul 2019 15:02:58 +0000 (17:02 +0200)]
sugestion to use range .Branches (#7674)
https://github.com/go-gitea/gitea/pull/7668/files/
d57973a8041a741fdb7e77bc6ab18431bbf95ba4
Lunny Xiao [Tue, 30 Jul 2019 01:59:10 +0000 (09:59 +0800)]
Move commit repo action from models to repofiles package (#7645)
* move commit repo action from models to repofiles package
* fix unit tests
zeripath [Tue, 30 Jul 2019 01:05:33 +0000 (02:05 +0100)]
SetDefaultBranch on pushing to empty repository (#7610)
GiteaBot [Mon, 29 Jul 2019 15:43:57 +0000 (15:43 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Mon, 29 Jul 2019 15:41:22 +0000 (23:41 +0800)]
fix bug on migrating milestone from github (#7665)
Antoine GIRARD [Mon, 29 Jul 2019 06:14:56 +0000 (08:14 +0200)]
css: use flex to fix floating paginate (#7656)
6543 [Mon, 29 Jul 2019 05:00:43 +0000 (07:00 +0200)]
hide delete/restor button on archived repos (#7658)
close issue #7653
GiteaBot [Mon, 29 Jul 2019 04:21:31 +0000 (04:21 +0000)]
[skip ci] Updated translations via Crowdin
Antoine GIRARD [Mon, 29 Jul 2019 04:15:18 +0000 (06:15 +0200)]
integration tests: Use t.Helper() (#7654)
Lunny Xiao [Mon, 29 Jul 2019 03:29:42 +0000 (11:29 +0800)]
change length of some repository's columns (#7652)
6543 [Mon, 29 Jul 2019 02:27:05 +0000 (04:27 +0200)]
[Branch View] add download button (#7604)
* add download-button info message
* add overflow-visible css for table colum class
* right colum is always there
* add download button for default branch
* add download button for all other branchs
* resize table colum so two buttons fit in
* code indent avter rebase
* show commit divergence corect
https://github.com/go-gitea/gitea/issues/7625
* changes because of merge master into ...
* optimize if statement for protected branches
* dont downloat a deleted branch - fix error 404
6543 [Sat, 27 Jul 2019 14:11:14 +0000 (16:11 +0200)]
[Branch View] Protection Symbole (delete dublicate) (#7624)
* delet protectin symbol on "action column"
* code format
renothing [Sat, 27 Jul 2019 13:15:30 +0000 (21:15 +0800)]
fix wrong email when use gitea as OAuth2 provider (#7640)
when you use gitea as OAuth2 provider, the /api/v1/user should return
user primary email as identifier, which is unique in OAuth2 clients.
this patch use convert.ToUser replace all u.APIFormat in api requests,
return primary email when caller is yourself or admin.
mrsdizzie [Fri, 26 Jul 2019 22:09:12 +0000 (18:09 -0400)]
Fix regression in reverse proxy documentation (#7634)
From Apache: AllowEncodedSlashes not allowed in <Proxy> context
Move this out of <Proxy> block
Fixes #7632
Andreas Shimokawa [Fri, 26 Jul 2019 20:06:21 +0000 (22:06 +0200)]
reserve .well-known username (#7637)
GiteaBot [Fri, 26 Jul 2019 11:23:16 +0000 (11:23 +0000)]
[skip ci] Updated translations via Crowdin
6543 [Fri, 26 Jul 2019 11:21:14 +0000 (13:21 +0200)]
[Branch View] Delete Table Header (#7622)
* add class trom table header to table body
* remove table header
GiteaBot [Fri, 26 Jul 2019 04:28:01 +0000 (04:28 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Fri, 26 Jul 2019 04:10:20 +0000 (05:10 +0100)]
Update to latest mssqldriver (#7613)
* New driver does not tolerate USE - handle this by closing db and reopening db in the new dbname
6543 [Fri, 26 Jul 2019 00:01:25 +0000 (02:01 +0200)]
[Branch View] icons to buttons (#7602)
* add restore-button info message
* branch deltete undo icon to button
* branch deltete icon to button
silverwind [Thu, 25 Jul 2019 22:29:54 +0000 (00:29 +0200)]
Fix syntax highlight initialization (#7617)
* Fix syntax highlight initialization
Previously hljs was initialized via a function that relies on the
DOMContentLoaded event, registerd after jQuery's 'ready' event. I assume
that with the recent jQuery update, DOMContentLoaded may not be
guaranteed to fire after 'ready'. Fixed this via vanilla JS initalization.
Fixes: https://github.com/go-gitea/gitea/issues/7559
* semicolon
Lunny Xiao [Thu, 25 Jul 2019 21:50:20 +0000 (05:50 +0800)]
Fix bug create/edit wiki pages when code master branch protected (#7580)
* fix bug create/edit wiki pages when code master branch protected
* improve FullPushingEnvironment function
zeripath [Thu, 25 Jul 2019 19:33:38 +0000 (20:33 +0100)]
Make PKCS8, PEM and SSH2 keys work (#7600)
* Make PEM and SSH2 keys work
* add ssh2 testcases and PEM cases - and fix PEM
* Add final test to parse the proposed key
zeripath [Thu, 25 Jul 2019 18:05:51 +0000 (19:05 +0100)]
Fix panic on push at #7611 (#7615)
* Fix panic in #7611
Use pr.IssueID instead of pr.Issue.ID as Issue may not be loaded and is unnecessary
* Only fetch the head branch from the remote
zeripath [Thu, 25 Jul 2019 10:55:06 +0000 (11:55 +0100)]
Fix #7136: Add paging and extend API GetCommitStatuses (#7141)
* Fix #7136: Add paging and extend API GetCommitStatuses
* update swagger
* Update routers/api/v1/repo/status.go
Co-Authored-By: techknowlogick <matti@mdranta.net>
* Update routers/api/v1/repo/status.go
Co-Authored-By: techknowlogick <matti@mdranta.net>
* Update routers/api/v1/repo/status.go
Co-Authored-By: techknowlogick <matti@mdranta.net>
* Apply suggestions from code review
Tamal Saha [Wed, 24 Jul 2019 21:39:14 +0000 (14:39 -0700)]
Update to xorm@v0.7.4 (#7596)
Signed-off-by: Tamal Saha <tamal@appscode.com>
Antoine GIRARD [Wed, 24 Jul 2019 17:21:12 +0000 (19:21 +0200)]
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
zeripath [Wed, 24 Jul 2019 08:34:11 +0000 (09:34 +0100)]
Swagger: Add information to API Token header (#7585)
* Add a description to the API Token header for swagger
Lunny Xiao [Wed, 24 Jul 2019 07:13:26 +0000 (15:13 +0800)]
Move models.PushUpdate to repofiles.PushUpdate (#7485)
* move models.PushUpdate to repofiles.PushUpdate
* remove duplicated code to load repo
zeripath [Tue, 23 Jul 2019 20:38:47 +0000 (21:38 +0100)]
use 403 instead of 401 for ErrUserProhibitLogin (#7591)
Christian Muehlhaeuser [Tue, 23 Jul 2019 19:28:43 +0000 (21:28 +0200)]
Added missing error checks in tests (#7554)
Whenever we assign a value to err, check for it being nil.
Christian Muehlhaeuser [Tue, 23 Jul 2019 18:50:39 +0000 (20:50 +0200)]
Removed unnecessary conversions (#7557)
No need to convert to the same type.
zeripath [Tue, 23 Jul 2019 17:32:53 +0000 (18:32 +0100)]
Handle ErrUserProhibitLogin in http git (#7586)
zeripath [Tue, 23 Jul 2019 14:31:51 +0000 (15:31 +0100)]
fix #7568 (#7587)
GiteaBot [Tue, 23 Jul 2019 13:28:00 +0000 (13:28 +0000)]
[skip ci] Updated translations via Crowdin
silverwind [Tue, 23 Jul 2019 13:25:06 +0000 (15:25 +0200)]
Improve SSH key parser to handle newlines in keys (#7522)
* Strip newlines from SSH keys before adding them
Fixes: https://github.com/go-gitea/gitea/issues/7500
* add test for CheckPublicKeyString
* add one more test
* simplify test
* further simplify
* make fmt
silverwind [Tue, 23 Jul 2019 02:12:09 +0000 (04:12 +0200)]
Fix file header overflow in file and blame views (#7562)
Richard Mahn [Mon, 22 Jul 2019 17:32:22 +0000 (13:32 -0400)]
Fixes #7564 - Malformed URLs in API git/commits response (#7565)
silverwind [Mon, 22 Jul 2019 12:03:15 +0000 (14:03 +0200)]
Fix empty commits now showing in repo overview (#7521)
* Fix empty commits now showing in repo overview
* add test
* make fmt
Christian Muehlhaeuser [Mon, 22 Jul 2019 09:35:54 +0000 (11:35 +0200)]
Fixed ineffectual assignments (#7555)
Don't assign values we never use.
Christian Muehlhaeuser [Mon, 22 Jul 2019 08:58:26 +0000 (10:58 +0200)]
Un-lambda base.FileSize (#7556)
No need to wrap this.
Christian Muehlhaeuser [Mon, 22 Jul 2019 07:11:16 +0000 (09:11 +0200)]
Fixed ineffectual assignments in tests (#7553)
Just makes it a bit more obvious which values we want to test for, and which
ones we want to ignore.
Gary Kim [Sat, 20 Jul 2019 18:44:53 +0000 (18:44 +0000)]
Specify using AllowEncodedSlashes and nocanon for httpd (#7540)
When using wiki page names that include a slash
behind a Apache HTTPD reverse proxy,
AllowEncodedSlashes NoDecode
and appending nocanon to the ProxyPass
directive is required. This commit adds that
information to the documentation.
Signed-off-by: Gary Kim <gary@garykim.dev>
GiteaBot [Sat, 20 Jul 2019 14:44:10 +0000 (14:44 +0000)]
[skip ci] Updated translations via Crowdin
Gary Kim [Sat, 20 Jul 2019 14:41:22 +0000 (14:41 +0000)]
Add self to maintainers (#7541)