]> source.dussan.org Git - gitea.git/log
gitea.git
5 years agoEvaluate emojis in commit messages in list view (#7906)
Mario Lubenka [Sun, 18 Aug 2019 15:53:50 +0000 (17:53 +0200)]
Evaluate emojis in commit messages in list view (#7906)

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
5 years agoFix upload file type check (#7890)
Lunny Xiao [Sat, 17 Aug 2019 10:10:17 +0000 (18:10 +0800)]
Fix upload file type check (#7890)

* fix upload file type check

* make the function simple and added tests

* Update comment as per @silverwind

5 years agoUpdate MAINTAINERS (#7896)
Mura Li [Sat, 17 Aug 2019 03:17:34 +0000 (11:17 +0800)]
Update MAINTAINERS (#7896)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 16 Aug 2019 22:53:51 +0000 (22:53 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoReduce quote usage to bypass bug in GIT_SSH_COMMAND (#7893)
guillep2k [Fri, 16 Aug 2019 22:28:55 +0000 (19:28 -0300)]
Reduce quote usage to bypass bug in GIT_SSH_COMMAND (#7893)

5 years agoExtract the username and password from the mirror url (#7651)
zeripath [Fri, 16 Aug 2019 21:56:57 +0000 (22:56 +0100)]
Extract the username and password from the mirror url (#7651)

* Explode out mirror username and password

* Update models/repo_mirror.go

* Just roundtrip the password

* remove unused declaration

* Update templates/repo/settings/options.tmpl

5 years agoDetect delimiter in CSV rendering (#7869)
Norwin [Thu, 15 Aug 2019 22:09:50 +0000 (22:09 +0000)]
Detect delimiter in CSV rendering (#7869)

* detect csv delimiter in csv rendering

fixes #7868

* make linter happy

* fix failing testcase & use ints where possible

* expose markup type to template

previously all markup had the .markdown class, which is incorrect,
as it applies markdown CSS & JS logic to CSV rendering

* fix build (missing `make css`)

* ignore quoted csv content for delimiter scoring

also fix html generation

5 years agoAdd myself to maintainers (#7881)
guillep2k [Thu, 15 Aug 2019 17:23:57 +0000 (14:23 -0300)]
Add myself to maintainers (#7881)

* Add myself to maintainers

* Add missing handle

Co-Authored-By: techknowlogick <matti@mdranta.net>
5 years agoRemove unique filter from repo indexer analyzer. (#7878)
guillep2k [Thu, 15 Aug 2019 15:38:55 +0000 (12:38 -0300)]
Remove unique filter from repo indexer analyzer. (#7878)

* Remove unique filter from repo indexer analyzer.

* Bump repoIndexerLatestVersion to 4

* Corrrect fmt

* make vendor to remove unique dependency

5 years agoDisplay ui time with customize time location (#7792)
Lunny Xiao [Thu, 15 Aug 2019 14:46:21 +0000 (22:46 +0800)]
Display ui time with customize time location (#7792)

* display ui time with customize time location

* fix lint

* rename UILocation to DefaultUILocation

* move time related functions to modules/timeutil

* fix tests

* fix tests

* fix build

* fix swagger

5 years agoConvert files to utf-8 for indexing (#7814)
guillep2k [Thu, 15 Aug 2019 12:07:28 +0000 (09:07 -0300)]
Convert files to utf-8 for indexing (#7814)

* Convert files to utf-8 for indexing

* Move utf8 functions to modules/base

* Bump repoIndexerLatestVersion to 3

* Add tests for base/encoding.go

* Changes to pass gosimple

* Move UTF8 funcs into new modules/charset package

5 years agolfs/lock: round locked_at timestamp to second (#7872)
Antoine GIRARD [Thu, 15 Aug 2019 10:53:28 +0000 (12:53 +0200)]
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

5 years agoAdd changelog of v1.9.1 (#7859) (#7866)
Lunny Xiao [Thu, 15 Aug 2019 02:45:21 +0000 (10:45 +0800)]
Add changelog of v1.9.1 (#7859) (#7866)

* add changelog of v1.9.1

* Update CHANGELOG.md

Co-Authored-By: Lauris BH <lauris@nix.lv>
* mention releases build by go1.12.8

* Update CHANGELOG.md

Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agofix non existent milestone with 500 error (#7867)
Lanre Adelowo [Wed, 14 Aug 2019 23:43:50 +0000 (00:43 +0100)]
fix non existent milestone with 500 error (#7867)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 14 Aug 2019 15:35:51 +0000 (15:35 +0000)]
[skip ci] Updated translations via Crowdin

5 years agomove CreateReview to moduels/pull (#7841)
Lunny Xiao [Wed, 14 Aug 2019 15:32:19 +0000 (23:32 +0800)]
move CreateReview to moduels/pull (#7841)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 14 Aug 2019 11:34:49 +0000 (11:34 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix local runs of ssh-requiring integration tests (#7855)
zeripath [Wed, 14 Aug 2019 11:19:13 +0000 (12:19 +0100)]
Fix local runs of ssh-requiring integration tests (#7855)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 14 Aug 2019 09:39:51 +0000 (09:39 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAttempt to fix hook problem (#7854)
zeripath [Wed, 14 Aug 2019 09:25:05 +0000 (10:25 +0100)]
Attempt to fix hook problem (#7854)

5 years agoCheck commit message hashes before making links (#7713)
Gary Kim [Wed, 14 Aug 2019 08:04:55 +0000 (08:04 +0000)]
Check commit message hashes before making links (#7713)

* Check commit message hashes before making links

Previously, when formatting commit messages, anything
that looked like SHA1 hashes was turned into a link
using regex. This meant that certain phrases or numbers
such as `777777` or `deadbeef` could be recognized as a commit
even if the repository has no commit with those hashes.

This change will make it so that anything that looks
like a SHA1 hash using regex will then also be checked
to ensure that there is a commit in the repository
with that hash before making a link.

Signed-off-by: Gary Kim <gary@garykim.dev>
* Use gogit to check if commit exists

This commit modifies the commit hash check
in the render for commit messages to use
gogit for better performance.

Signed-off-by: Gary Kim <gary@garykim.dev>
* Make code cleaner

Signed-off-by: Gary Kim <gary@garykim.dev>
* Use rev-parse to check if commit exists

Signed-off-by: Gary Kim <gary@garykim.dev>
* Add and modify tests for checking hashes in html link rendering

Signed-off-by: Gary Kim <gary@garykim.dev>
* Return error in sha1CurrentPatternProcessor

Co-Authored-By: mrsdizzie <info@mrsdizzie.com>
* Import Gitea log module

Signed-off-by: Gary Kim <gary@garykim.dev>
* Revert "Return error in sha1CurrentPatternProcessor"

This reverts commit 28f561cac46ef7e51aa26aefcbe9aca4671366a6.

Signed-off-by: Gary Kim <gary@garykim.dev>
* Add debug logging to sha1CurrentPatternProcessor

This will log errors by the git command run in
sha1CurrentPatternProcessor if the error is one
that was unexpected.

Signed-off-by: Gary Kim <gary@garykim.dev>
5 years agoImport topics during migration (#7851)
Antoine GIRARD [Wed, 14 Aug 2019 06:16:12 +0000 (08:16 +0200)]
Import topics during migration (#7851)

* add GetTopics interface

* CreateTopics

* remove un-needed comment

5 years agoUpdate golangci-lint to v1.17.1 (#7848)
techknowlogick [Wed, 14 Aug 2019 03:32:38 +0000 (23:32 -0400)]
Update golangci-lint to v1.17.1 (#7848)

5 years agoUpdate app.ini.sample (#7816)
clavinet [Wed, 14 Aug 2019 03:28:11 +0000 (05:28 +0200)]
Update app.ini.sample (#7816)

grammar fix

5 years agogpg/bugfix: Use .ExpiredUnix.IsZero to display green color of forever valid gpg key...
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

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 13 Aug 2019 17:11:27 +0000 (17:11 +0000)]
[skip ci] Updated translations via Crowdin

5 years agovendor: update pdf.js to v2.1.266 (#7834)
Antoine GIRARD [Tue, 13 Aug 2019 17:09:06 +0000 (19:09 +0200)]
vendor: update pdf.js to v2.1.266 (#7834)

5 years agoDo not fetch all refs (#7797)
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.

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 12 Aug 2019 21:54:26 +0000 (21:54 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoadd details for db socket listening (#7830)
Antoine GIRARD [Mon, 12 Aug 2019 21:52:11 +0000 (23:52 +0200)]
add details for db socket listening (#7830)

5 years agoFix lax comparison in validation tests (#7815)
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.

5 years agoFix duplicate call of webhook (#7821)
Antoine GIRARD [Sun, 11 Aug 2019 20:31:18 +0000 (22:31 +0200)]
Fix duplicate call of webhook (#7821)

5 years agoEnable switching to a different source branch when PR already exists (#7819)
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>
5 years agoUpdate serv.go (#7822)
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!"

5 years agoUpdate app.ini.sample (#7817)
clavinet [Sat, 10 Aug 2019 19:25:26 +0000 (21:25 +0200)]
Update app.ini.sample (#7817)

small grammar fix

5 years agoRewrite existing repo units if setting is not included in api body (#7763)
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

5 years agoPrevent Commit Status and Message From Overflowing On Branch Page (#7800)
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

5 years agoapi: fix multiple bugs with statuses endpoints (#7785)
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>
5 years agoAdd SSH_LISTEN_HOST to the config cheatsheet (#7793)
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

5 years agoFix global search result CSS, misc CSS tweaks (#7789)
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.

5 years agoactivate sum.golang.org check (#7782)
Antoine GIRARD [Thu, 8 Aug 2019 09:38:23 +0000 (11:38 +0200)]
activate sum.golang.org check (#7782)

5 years agoCorrect formatting of bullet list (#7794)
guillep2k [Thu, 8 Aug 2019 04:47:57 +0000 (01:47 -0300)]
Correct formatting of bullet list (#7794)

5 years agoDisplay error as string but not bytes (#7780)
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>
5 years agoremove `-i` flag from GOFLAGS (#7778)
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

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