]> source.dussan.org Git - gitea.git/log
gitea.git
5 years agoFix approvals counting (#7757)
Lunny Xiao [Wed, 7 Aug 2019 04:22:41 +0000 (12:22 +0800)]
Fix approvals counting (#7757)

* fix approvals counting

* fix tests

* fmt

5 years agoFix Slack webhook fork message (#7774)
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.

5 years agoAdd migration step to remove old repo_indexer_status orphaned records (#7746)
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

5 years agofix rename failed when rewrite public keys (#7761)
Lunny Xiao [Tue, 6 Aug 2019 06:32:11 +0000 (14:32 +0800)]
fix rename failed when rewrite public keys (#7761)

5 years agoRemove camel case tokenization from repo indexer (#7733)
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

5 years agoFix dropTableColumns sqlite implementation (#7710)
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

5 years agoBe more strict with git arguments (#7715)
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

5 years agoAdd a lot of extension to language mappings for syntax highlights (#7741)
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
5 years agoAdd SQL execution on log and indexes on table repository and comment (#7740)
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

5 years agodeps: Upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 (#7749)
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

5 years agobuild: use GOPROXY and disable download on some steps (#7745)
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

5 years agoadd pagination for admin api get orgs and fix only list public orgs bug (#7742)
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)

5 years agoApply emoji on commit graph page (#7743)
jaqra [Sun, 4 Aug 2019 14:49:29 +0000 (17:49 +0300)]
Apply emoji on commit graph page (#7743)

5 years agoTweak label border CSS (#7739)
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
5 years agoFix specific highlighting (CMakeLists.txt ...) (#7686)
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.

5 years agoFix repo_index_status lingering when deleting a repository (#7734)
guillep2k [Sun, 4 Aug 2019 06:53:17 +0000 (03:53 -0300)]
Fix repo_index_status lingering when deleting a repository (#7734)

5 years agoFix milestone completness calculation when migrating (#7725)
Lauris BH [Sat, 3 Aug 2019 18:38:42 +0000 (21:38 +0300)]
Fix milestone completness calculation when migrating (#7725)

5 years agoFixes indexed repos keeping outdated indexes when files grow too large (#7712)
guillep2k [Sat, 3 Aug 2019 17:42:09 +0000 (14:42 -0300)]
Fixes indexed repos keeping outdated indexes when files grow too large (#7712)

5 years agodisplay as error (#7724)
Lunny Xiao [Sat, 3 Aug 2019 07:07:51 +0000 (15:07 +0800)]
display as error (#7724)

5 years agoorg/members: display 2FA members states + optimize sql requests (#7621)
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

5 years agoInclude "executable" files in the index, as they are not necessarily binary (#7718)
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)

5 years agoSkip non-regular files (e.g. submodules) on repo indexing (#7711)
guillep2k [Fri, 2 Aug 2019 06:57:53 +0000 (03:57 -0300)]
Skip non-regular files (e.g. submodules) on repo indexing (#7711)

5 years agoFix create menu item widths (#7708)
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
5 years agodrone: a test for compat with 32 bit (#7707)
Antoine GIRARD [Thu, 1 Aug 2019 18:00:12 +0000 (20:00 +0200)]
drone: a test for compat with 32 bit (#7707)

5 years agoremove unnecessary fmt on generate bindata (#7706)
Lunny Xiao [Thu, 1 Aug 2019 17:34:46 +0000 (01:34 +0800)]
remove unnecessary fmt on generate bindata (#7706)

5 years agoupdate gopkg.in/src-d/go-git.v4 to v4.13.1 (#7705)
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)

5 years agoimprove branches list performance and fix protected branch icon when no-login (#7695)
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)

5 years agoCorrect wrong datetime format for git (#7689)
zeripath [Wed, 31 Jul 2019 19:19:47 +0000 (20:19 +0100)]
Correct wrong datetime format for git (#7689)

5 years agoUpdate src-d/go-git to v4.13.0 (#7688)
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

5 years agofrontport 1.9.0 changelog (#7687)
techknowlogick [Wed, 31 Jul 2019 13:38:28 +0000 (09:38 -0400)]
frontport 1.9.0 changelog (#7687)

5 years agofix duplicated webhook when creating issue with assignees (#7681)
Lunny Xiao [Wed, 31 Jul 2019 09:24:38 +0000 (17:24 +0800)]
fix duplicated webhook when creating issue with assignees (#7681)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 31 Jul 2019 06:16:57 +0000 (06:16 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMove add to hook queue for created repo to outside xorm session. (#7675)
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>
5 years agosugestion to use range .Branches (#7674)
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

5 years agoMove commit repo action from models to repofiles package (#7645)
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

5 years agoSetDefaultBranch on pushing to empty repository (#7610)
zeripath [Tue, 30 Jul 2019 01:05:33 +0000 (02:05 +0100)]
SetDefaultBranch on pushing to empty repository (#7610)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 29 Jul 2019 15:43:57 +0000 (15:43 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofix bug on migrating milestone from github (#7665)
Lunny Xiao [Mon, 29 Jul 2019 15:41:22 +0000 (23:41 +0800)]
fix bug on migrating milestone from github (#7665)

5 years agocss: use flex to fix floating paginate (#7656)
Antoine GIRARD [Mon, 29 Jul 2019 06:14:56 +0000 (08:14 +0200)]
css: use flex to fix floating paginate (#7656)

5 years agohide delete/restor button on archived repos (#7658)
6543 [Mon, 29 Jul 2019 05:00:43 +0000 (07:00 +0200)]
hide delete/restor button on archived repos (#7658)

close issue #7653

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 29 Jul 2019 04:21:31 +0000 (04:21 +0000)]
[skip ci] Updated translations via Crowdin

5 years agointegration tests: Use t.Helper() (#7654)
Antoine GIRARD [Mon, 29 Jul 2019 04:15:18 +0000 (06:15 +0200)]
integration tests: Use t.Helper() (#7654)

5 years agochange length of some repository's columns (#7652)
Lunny Xiao [Mon, 29 Jul 2019 03:29:42 +0000 (11:29 +0800)]
change length of some repository's columns (#7652)

5 years ago[Branch View] add download button (#7604)
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

5 years ago[Branch View] Protection Symbole (delete dublicate) (#7624)
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

5 years agofix wrong email when use gitea as OAuth2 provider (#7640)
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.

5 years agoFix regression in reverse proxy documentation (#7634)
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

5 years agoreserve .well-known username (#7637)
Andreas Shimokawa [Fri, 26 Jul 2019 20:06:21 +0000 (22:06 +0200)]
reserve .well-known username (#7637)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 26 Jul 2019 11:23:16 +0000 (11:23 +0000)]
[skip ci] Updated translations via Crowdin

5 years ago[Branch View] Delete Table Header (#7622)
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

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 26 Jul 2019 04:28:01 +0000 (04:28 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUpdate to latest mssqldriver (#7613)
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

5 years ago[Branch View] icons to buttons (#7602)
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

5 years agoFix syntax highlight initialization (#7617)
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

5 years agoFix bug create/edit wiki pages when code master branch protected (#7580)
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

5 years agoMake PKCS8, PEM and SSH2 keys work (#7600)
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

5 years agoFix panic on push at #7611 (#7615)
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

5 years agoFix #7136: Add paging and extend API GetCommitStatuses (#7141)
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

5 years agoUpdate to xorm@v0.7.4 (#7596)
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>
5 years agodrone/docker: prepare multi-arch release + provide arm64 image (#7571)
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

5 years agoSwagger: Add information to API Token header (#7585)
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

5 years agoMove models.PushUpdate to repofiles.PushUpdate (#7485)
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

5 years agouse 403 instead of 401 for ErrUserProhibitLogin (#7591)
zeripath [Tue, 23 Jul 2019 20:38:47 +0000 (21:38 +0100)]
use 403 instead of 401 for ErrUserProhibitLogin (#7591)

5 years agoAdded missing error checks in tests (#7554)
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.

5 years agoRemoved unnecessary conversions (#7557)
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.

5 years agoHandle ErrUserProhibitLogin in http git (#7586)
zeripath [Tue, 23 Jul 2019 17:32:53 +0000 (18:32 +0100)]
Handle ErrUserProhibitLogin in http git (#7586)

5 years agofix #7568 (#7587)
zeripath [Tue, 23 Jul 2019 14:31:51 +0000 (15:31 +0100)]
fix #7568 (#7587)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 23 Jul 2019 13:28:00 +0000 (13:28 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoImprove SSH key parser to handle newlines in keys (#7522)
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

5 years agoFix file header overflow in file and blame views (#7562)
silverwind [Tue, 23 Jul 2019 02:12:09 +0000 (04:12 +0200)]
Fix file header overflow in file and blame views (#7562)

5 years agoFixes #7564 - Malformed URLs in API git/commits response (#7565)
Richard Mahn [Mon, 22 Jul 2019 17:32:22 +0000 (13:32 -0400)]
Fixes #7564 - Malformed URLs in API git/commits response (#7565)

5 years agoFix empty commits now showing in repo overview (#7521)
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

5 years agoFixed ineffectual assignments (#7555)
Christian Muehlhaeuser [Mon, 22 Jul 2019 09:35:54 +0000 (11:35 +0200)]
Fixed ineffectual assignments (#7555)

Don't assign values we never use.

5 years agoUn-lambda base.FileSize (#7556)
Christian Muehlhaeuser [Mon, 22 Jul 2019 08:58:26 +0000 (10:58 +0200)]
Un-lambda base.FileSize (#7556)

No need to wrap this.

5 years agoFixed ineffectual assignments in tests (#7553)
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.

5 years agoSpecify using AllowEncodedSlashes and nocanon for httpd (#7540)
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>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 20 Jul 2019 14:44:10 +0000 (14:44 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd self to maintainers (#7541)
Gary Kim [Sat, 20 Jul 2019 14:41:22 +0000 (14:41 +0000)]
Add self to maintainers (#7541)

5 years agoFix repository's pull request count error (#7518)
Lunny Xiao [Thu, 18 Jul 2019 21:51:33 +0000 (05:51 +0800)]
Fix repository's pull request count error (#7518)

* fix pr count error

* fix tests

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 18 Jul 2019 20:25:42 +0000 (20:25 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix markdown invoke sequence (#7513)
Lunny Xiao [Thu, 18 Jul 2019 20:23:27 +0000 (04:23 +0800)]
Fix markdown invoke sequence (#7513)

5 years agoAdded total count of contributions to heatmap (#7517)
kolaente [Thu, 18 Jul 2019 17:04:28 +0000 (19:04 +0200)]
Added total count of contributions to heatmap (#7517)

* Added total count of contributions to heatmap

Signed-off-by: kolaente <k@knt.li>
* make css

Signed-off-by: kolaente <k@knt.li>
5 years agoMake default branch name link to default branch (#7519)
Gary Kim [Thu, 18 Jul 2019 16:39:51 +0000 (16:39 +0000)]
Make default branch name link to default branch (#7519)

The default branch's name on the branches page
for a repo was previously simply text and did
not link anywhere.

The name is now a link to the default branch
just like the non-default branch names.

Signed-off-by: Gary Kim <gary@garykim.dev>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 18 Jul 2019 08:57:48 +0000 (08:57 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoremove duplicated webhook trigger (#7511)
Lunny Xiao [Thu, 18 Jul 2019 08:54:55 +0000 (16:54 +0800)]
remove duplicated webhook trigger (#7511)

5 years agoFixes for README_ZH (#7506)
John Olheiser [Thu, 18 Jul 2019 01:38:47 +0000 (20:38 -0500)]
Fixes for README_ZH (#7506)

5 years agoUpdate CONTRIBUTING.md with information about DCO (#7397)
techknowlogick [Wed, 17 Jul 2019 20:03:16 +0000 (16:03 -0400)]
Update CONTRIBUTING.md with information about DCO (#7397)

* Update CONTRIBUTING.md with information about DCO

References: #7389
More information: https://about.gitlab.com/handbook/marketing/community-relations/code-contributor-program/#developer-certificate-of-origin-dco

* Update CONTRIBUTING.md

Co-Authored-By: zeripath <art27@cantab.net>
5 years agoAdd Extra Info to Branches Page (#7461)
Gary Kim [Wed, 17 Jul 2019 20:02:41 +0000 (20:02 +0000)]
Add Extra Info to Branches Page (#7461)

* Add branch protection information to branches page

This change will add a tag on the ui that indicates
whether a branch is protected on the repository
branches page.

Signed-off-by: Gary Kim <gary@garykim.dev>
* Add last commit information to repo branches page

This change adds the ID and commit message of the last
commit on a branch to the branches page for repositories.

Signed-off-by: Gary Kim <gary@garykim.dev>
* Make branch page commit message truncate in css rather then template

The truncating of commit messages shown under branches
in the repository branches page has been moved to using
css rather then the Go template as the template was causing
some issues when the commit messaged had a link when rendered.

This commit also makes the commit message paragraph itself
use flex in order to make managing its elements easier.

Signed-off-by: Gary Kim <gary@garykim.dev>
5 years agoFix backer badge (#7505)
John Olheiser [Wed, 17 Jul 2019 19:03:43 +0000 (14:03 -0500)]
Fix backer badge (#7505)

5 years agoInclude thread related headers in issue/coment mail (#7484)
mrsdizzie [Wed, 17 Jul 2019 19:02:42 +0000 (15:02 -0400)]
Include thread related headers in issue/coment mail (#7484)

* Include thread related headers in issue/coment mail

Make it so mail programs will group comments from an issue into the same
thread by setting Message-ID on initial issue and then using In-Reply-To
and References headers to reference that later on.

* Add tests

* more tests

* fix typo

5 years agoFixes #7474 - Handles all redirects for Web UI File CRUD (#7478)
Richard Mahn [Wed, 17 Jul 2019 18:40:28 +0000 (14:40 -0400)]
Fixes #7474 - Handles all redirects for Web UI File CRUD (#7478)

* Fixes #7474 - Handles all redirects for Web UI File CRUD

* Fixes lint errors

* Typo fix

* Adds unit tests for a few helper functions

* Fixes per review

* Fix for new branch creation and to unit test

* Fixes the template used for errors on delete

5 years agoUpdate User.NumRepos atomically in createRepository (#7493)
Monty Taylor [Wed, 17 Jul 2019 17:34:13 +0000 (13:34 -0400)]
Update User.NumRepos atomically in createRepository (#7493)

The update call on the user call races if there is more than one
repository creation concurrently, leading to incorrect count of
repos. Split things in two, so that we call the update for last
visibility (which isn't problematic if it races, since it can only
ever be best-effort anyway). This way we can atomically increment
the count of repos.

5 years agofix missing queue type on app.ini.sample (#7494)
Lunny Xiao [Wed, 17 Jul 2019 16:23:54 +0000 (00:23 +0800)]
fix missing queue type on app.ini.sample (#7494)

5 years agodrone/docker: Use a more standard format (#7480)
Antoine GIRARD [Wed, 17 Jul 2019 14:47:34 +0000 (16:47 +0200)]
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

5 years agodon't make release-version deps on transalations since translations is only triggered...
Antoine GIRARD [Wed, 17 Jul 2019 06:12:32 +0000 (08:12 +0200)]
don't make release-version deps on transalations since translations is only triggered by push on master (#7496)

5 years agoRemove settting dependency on modules/session (#7237)
Lunny Xiao [Wed, 17 Jul 2019 01:04:37 +0000 (09:04 +0800)]
Remove settting dependency on modules/session (#7237)

* remove settting dependency on modules/session

* fix fmt

* fix tests

* fix lint

5 years agoFixes #7475 - Settings pages giving UnitType error message (#7482)
Richard Mahn [Tue, 16 Jul 2019 03:43:30 +0000 (23:43 -0400)]
Fixes #7475 - Settings pages giving UnitType error message (#7482)

5 years agoconvert all js var to let/const (#7464)
silverwind [Tue, 16 Jul 2019 01:51:46 +0000 (03:51 +0200)]
convert all js var to let/const (#7464)

Most of the work was done by `eslint --fix`, I fixed around 10 cases
where it could not auto-convert.

5 years agoMove status table to cron package (#7370)
Lunny Xiao [Tue, 16 Jul 2019 00:13:03 +0000 (08:13 +0800)]
Move status table to cron package (#7370)

5 years agoFix typo in home.tmpl (#7452)
vadim s. sabinich [Mon, 15 Jul 2019 23:26:23 +0000 (02:26 +0300)]
Fix typo in home.tmpl (#7452)