]> source.dussan.org Git - gitea.git/log
gitea.git
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 27 Aug 2019 20:36:39 +0000 (20:36 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUse "Pull Request" instead of "Merge Request" (#8003)
kolaente [Tue, 27 Aug 2019 20:33:48 +0000 (22:33 +0200)]
Use "Pull Request" instead of "Merge Request" (#8003)

Signed-off-by: kolaente <k@knt.li>
5 years agoBump eslint-utils from 1.3.1 to 1.4.2 (#7993)
dependabot[bot] [Tue, 27 Aug 2019 04:29:25 +0000 (00:29 -0400)]
Bump eslint-utils from 1.3.1 to 1.4.2 (#7993)

Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
5 years agoFixes #7945 - makes sure we are only getting tag refs (#7990)
Richard Mahn [Tue, 27 Aug 2019 03:11:24 +0000 (23:11 -0400)]
Fixes #7945 - makes sure we are only getting tag refs (#7990)

5 years agoRetry create issue to cope with duplicate keys (#7898)
guillep2k [Tue, 27 Aug 2019 02:17:23 +0000 (23:17 -0300)]
Retry create issue to cope with duplicate keys (#7898)

* Retry create issue to cope with duplicate keys

* Use  .SetExpr().Where().Insert()

5 years agoFix adding default Telegram webhook (#7972)
Gary Kim [Mon, 26 Aug 2019 22:59:10 +0000 (22:59 +0000)]
Fix adding default Telegram webhook (#7972)

* Fix adding default Telegram webhook

Fixes #7932

Signed-off-by: Gary Kim <gary@garykim.dev>
* Run goimports

Signed-off-by: Gary Kim <gary@garykim.dev>
5 years agoAdds details about what tags can use the Git tags API (#7989)
Richard Mahn [Mon, 26 Aug 2019 19:52:04 +0000 (15:52 -0400)]
Adds details about what tags can use the Git tags API (#7989)

5 years agoswagger/fix: []string are not enum by swagger definition (#7916)
Antoine GIRARD [Mon, 26 Aug 2019 18:13:10 +0000 (20:13 +0200)]
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

5 years agoAPI method to list all commits of a repository (#6408)
Mike Schwörer [Mon, 26 Aug 2019 14:09:10 +0000 (16:09 +0200)]
API method to list all commits of a repository (#6408)

* Added API endpoint ListAllCommits (/repos/{owner}/{repo}/git/commits)

Signed-off-by: Mike Schwörer <mailport@mikescher.de>
* Fixed failing drone build

Signed-off-by: Mike Schwörer <mailport@mikescher.de>
* Implemented requested changes (PR reviews)

Signed-off-by: Mike Schwörer <mailport@mikescher.de>
* gofmt

Signed-off-by: Mike Schwörer <mailport@mikescher.de>
* Changed api route from "/repos/{owner}/{repo}/git/commits" to "/repos/{owner}/{repo}/commits"

* Removed unnecessary line

* better error message when git repo is empty

* make generate-swagger

* fixed removed return

* Update routers/api/v1/repo/commits.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Update routers/api/v1/repo/commits.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
* go fmt

* Refactored common code into ToCommit()

* made toCommit not exported

* added check for userCache == nil

5 years agoRun CORS handler first for /api routes (#7967)
Tamal Saha [Mon, 26 Aug 2019 11:33:06 +0000 (04:33 -0700)]
Run CORS handler first for /api routes (#7967)

Signed-off-by: Tamal Saha <tamal@appscode.com>
5 years ago[Branch View] show "New Pull Request" Button only if posible (#7977)
6543 [Mon, 26 Aug 2019 10:47:41 +0000 (12:47 +0200)]
[Branch View] show "New Pull Request" Button only if posible (#7977)

* add check Commits Ahead is gt 0

* code format
to start drone-ci test again
and formate code is also nice :)

5 years agoInclude description in repository search. (#7942)
David Svantesson [Sun, 25 Aug 2019 17:06:36 +0000 (19:06 +0200)]
Include description in repository search. (#7942)

* Add description in repository search.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Refactor SearchRepositoryByName with a general function SearchRepository

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Allow to specify if description shall be included in API repo search.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add new app.ini setting for whether to search within repo description.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Search keyword in description (if setting enabled) on:
 - Explore page
 - Organization profile page
 - User profile page
 - Admin repo page

Do not search keyword in description on:
 - Any non-keyword search (not relevant)
 - Incremental search (uses API)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Put parameters related to keyword directly after it

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add test cases for including (and not including) repository description in search.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Rename test function from TestSearchRepositoryByName to TestSearchRepository.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Make setting SEARCH_REPO_DESCRIPTION default to true

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
5 years agoAbort syncrhonization from LDAP source if there is some error. (#7960)
David Svantesson [Sat, 24 Aug 2019 18:53:37 +0000 (20:53 +0200)]
Abort syncrhonization from LDAP source if there is some error. (#7960)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
5 years agoAdd support for DEFAULT_ORG_MEMBER_VISIBLE (#7669)
guillep2k [Sat, 24 Aug 2019 12:28:59 +0000 (09:28 -0300)]
Add support for DEFAULT_ORG_MEMBER_VISIBLE (#7669)

* Add support for DEFAULT_ORG_MEMBER_VISIBLE

* Correct formatting

* Improved description in cheat sheet.

* Add test for DefaultOrgMemberVisible

* Remove dead code

5 years agoMove database settings from models to setting (#7806)
Lunny Xiao [Sat, 24 Aug 2019 09:24:45 +0000 (17:24 +0800)]
Move database settings from models to setting (#7806)

* move database settings from models to setting

* update docs

* fix checkout pr

* fix tests

* fix lint

* remove unsupported tidb options

* correct wrong variable name

* remove tidb totally

5 years agoDocument possibility to limit API Repo search to topics only. (#7957)
David Svantesson [Sat, 24 Aug 2019 03:17:10 +0000 (05:17 +0200)]
Document possibility to limit API Repo search to topics only. (#7957)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
5 years agoAllow token as authorization for accessing attachments (#7909)
David Svantesson [Sat, 24 Aug 2019 00:33:32 +0000 (02:33 +0200)]
Allow token as authorization for accessing attachments (#7909)

* Allow token as authorization for accessing attachments

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Only allow token authentication for attachments if it is a download (GET)

5 years agoSupport SSH_LISTEN_PORT env var in docker app.ini template (#7829)
leigh capili [Fri, 23 Aug 2019 23:44:24 +0000 (17:44 -0600)]
Support SSH_LISTEN_PORT env var in docker app.ini template (#7829)

Signed-off-by: leigh capili <leigh@null.net>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 23 Aug 2019 16:42:05 +0000 (16:42 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUse gitea forked macaron (#7933)
Tamal Saha [Fri, 23 Aug 2019 16:40:30 +0000 (09:40 -0700)]
Use gitea forked macaron (#7933)

Signed-off-by: Tamal Saha <tamal@appscode.com>
5 years agoChange repo search to use exact match for topic search. (#7941)
David Svantesson [Fri, 23 Aug 2019 02:37:35 +0000 (04:37 +0200)]
Change repo search to use exact match for topic search. (#7941)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
5 years agoAdd config option and shortcode for Gitea version (#7940)
John Olheiser [Fri, 23 Aug 2019 01:55:06 +0000 (20:55 -0500)]
Add config option and shortcode for Gitea version (#7940)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoAdd release notes of 1.9.2 (#7934) (#7939)
Lunny Xiao [Thu, 22 Aug 2019 16:42:28 +0000 (00:42 +0800)]
Add release notes of 1.9.2 (#7934) (#7939)

* Add release notes of 1.9.2

* add missing issue

5 years agodon't convert buffer to string (#7115)
Lunny Xiao [Thu, 22 Aug 2019 04:52:40 +0000 (12:52 +0800)]
don't convert buffer to string (#7115)

5 years agoAdd file status on API (#7671)
Lunny Xiao [Wed, 21 Aug 2019 05:16:22 +0000 (13:16 +0800)]
Add file status on API (#7671)

* add file status on API

* fix tests

* fix tests

* fix tests

5 years agoRevert RenderCommitMessageLink part of #7659 (#7923)
Gary Kim [Tue, 20 Aug 2019 21:08:16 +0000 (21:08 +0000)]
Revert RenderCommitMessageLink part of #7659 (#7923)

RenderCommitMessageLink may have the
potential for issues and is overall
not very intuitive for the user in its
current state.

This commit will revert the usage
of RenderCommitMessageLink that was
added in #7659 to work on addressing
some of those issues to and merge this
feature again in a more polished state.

Signed-off-by: Gary Kim <gary@garykim.dev>
5 years agofix bug when migrating a private repository (#7917)
Lunny Xiao [Tue, 20 Aug 2019 20:21:07 +0000 (04:21 +0800)]
fix bug when migrating a private repository (#7917)

5 years agoFix pull creation with empty changes (#7920)
Mura Li [Tue, 20 Aug 2019 17:43:00 +0000 (01:43 +0800)]
Fix pull creation with empty changes (#7920)

* Logs the stderr of git-apply
* Add an integration test
* Skip testPatch when patch is empty

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 20 Aug 2019 15:09:59 +0000 (15:09 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofix wrong sender when send slack webhook (#7918)
Lunny Xiao [Tue, 20 Aug 2019 15:05:30 +0000 (23:05 +0800)]
fix wrong sender when send slack webhook (#7918)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 20 Aug 2019 12:43:28 +0000 (12:43 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoProvide links in commit summaries in commits table/view list (#7659)
Gary Kim [Tue, 20 Aug 2019 12:40:06 +0000 (12:40 +0000)]
Provide links in commit summaries in commits table/view list (#7659)

* Provide links in commit summaries in commits table/view list

Signed-off-by: Gary Kim <gary@garykim.dev>
* Check that hashes are commits before making them links

Signed-off-by: Gary Kim <gary@garykim.dev>
* Revert "Check that hashes are commits before making them links"

This reverts commit a88564b8bc9872d4bf11062a4ebcb2f42b702200.

* Add Commit Message Links to Files List

Signed-off-by: Gary Kim <gary@garykim.dev>
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)