]> source.dussan.org Git - gitea.git/log
gitea.git
7 years ago '[skip ci] Updated translations via Crowdin'
lafriks [Fri, 3 Nov 2017 23:24:26 +0000 (23:24 +0000)]
 '[skip ci] Updated translations via Crowdin'

7 years agoFix API raw requests for commits and tags (#2841)
Lauris BH [Fri, 3 Nov 2017 23:23:59 +0000 (01:23 +0200)]
Fix API raw requests for commits and tags (#2841)

7 years agoTranslator pt-BR (#2838)
Joel da Rosa [Fri, 3 Nov 2017 14:45:21 +0000 (12:45 -0200)]
Translator pt-BR (#2838)

* Translator pt-BR

* rectification translators pt-BR

7 years agoIssue content should not be updated when closing with comment (#2833)
Lauris BH [Fri, 3 Nov 2017 09:23:17 +0000 (11:23 +0200)]
Issue content should not be updated when closing with comment (#2833)

7 years agoSet session and indexers' data files rel to AppDataPath (#2192)
Guillaume Dube [Fri, 3 Nov 2017 08:56:20 +0000 (04:56 -0400)]
Set session and indexers' data files rel to AppDataPath (#2192)

* Set session and indexers' data files rel to AppDataPath

The setting AppDataPath is now relative to the working directory.
The session svc's PROVIDER_CONFIG now defaults to AppDataPath/data/sessions.
The issue indexer's IssuePath now defaults to AppDataPath/indexers/issues.bleves.

* fix bug

7 years agoFix order of comments (#2835)
Morlinest [Fri, 3 Nov 2017 03:11:42 +0000 (04:11 +0100)]
Fix order of comments (#2835)

7 years agoUse different directories for session files in integration tests (#2834)
Lauris BH [Fri, 3 Nov 2017 00:48:47 +0000 (02:48 +0200)]
Use different directories for session files in integration tests (#2834)

7 years ago '[skip ci] Updated translations via Crowdin'
lafriks [Thu, 2 Nov 2017 23:33:59 +0000 (23:33 +0000)]
 '[skip ci] Updated translations via Crowdin'

7 years agoFix removing backslash before quotes in translations (#2831)
Lauris BH [Thu, 2 Nov 2017 23:33:43 +0000 (01:33 +0200)]
Fix removing backslash before quotes in translations (#2831)

7 years agoFix redirect url of legacy commits route (#2825)
Morlinest [Thu, 2 Nov 2017 22:01:22 +0000 (23:01 +0100)]
Fix redirect url of legacy commits route (#2825)

7 years agoFix ordering in app.ini and fix run mode option (#2829)
Morlinest [Thu, 2 Nov 2017 21:08:21 +0000 (22:08 +0100)]
Fix ordering in app.ini and fix run mode option (#2829)

7 years agoAdd git clone test on integration test (#1682)
Lunny Xiao [Thu, 2 Nov 2017 17:51:03 +0000 (01:51 +0800)]
Add git clone test on integration test (#1682)

7 years agoConfigurable SSH key exchange algorithm and MAC suite (#2806)
Cum Gun [Thu, 2 Nov 2017 15:26:41 +0000 (16:26 +0100)]
Configurable SSH key exchange algorithm and MAC suite (#2806)

7 years ago '[skip ci] Updated translations via Crowdin'
lafriks [Thu, 2 Nov 2017 13:01:46 +0000 (13:01 +0000)]
 '[skip ci] Updated translations via Crowdin'

7 years agoadded myself to the translation list (#2828)
Jonathan Lozada D [Thu, 2 Nov 2017 13:00:42 +0000 (09:00 -0400)]
added myself to the translation list (#2828)

7 years agoFix commits page url (#2823)
Morlinest [Thu, 2 Nov 2017 00:30:19 +0000 (01:30 +0100)]
Fix commits page url (#2823)

* Fix commits page url

* Check all view types

7 years ago '[skip ci] Updated translations via Crowdin'
lafriks [Wed, 1 Nov 2017 19:44:17 +0000 (19:44 +0000)]
 '[skip ci] Updated translations via Crowdin'

7 years agoUse custom search for each filter type in dashboard (#2343)
Morlinest [Wed, 1 Nov 2017 19:39:05 +0000 (20:39 +0100)]
Use custom search for each filter type in dashboard (#2343)

* Do custom search for each filter in repo-search

* Fix search url

* Simplify code

* Remove loader and reset counts when changing filter

7 years agoRevert en-US locale (#2821)
Lauris BH [Wed, 1 Nov 2017 16:03:10 +0000 (18:03 +0200)]
Revert en-US locale (#2821)

7 years ago '[skip ci] Updated translations via Crowdin'
lunny [Wed, 1 Nov 2017 15:47:40 +0000 (15:47 +0000)]
 '[skip ci] Updated translations via Crowdin'

7 years agofix update-translations on drone (#2822)
Lunny Xiao [Wed, 1 Nov 2017 15:46:28 +0000 (23:46 +0800)]
fix update-translations on drone (#2822)

7 years ago '[skip ci] Updated translations via Crowdin'
lunny [Wed, 1 Nov 2017 12:53:57 +0000 (12:53 +0000)]
 '[skip ci] Updated translations via Crowdin'

7 years agoFix wrong translations (#2818)
Lunny Xiao [Wed, 1 Nov 2017 12:52:48 +0000 (20:52 +0800)]
Fix wrong translations (#2818)

* fix wrong translations

* fix tab on yml

7 years ago '[skip ci] Updated translations via Crowdin'
appleboy [Wed, 1 Nov 2017 09:14:08 +0000 (09:14 +0000)]
 '[skip ci] Updated translations via Crowdin'

7 years agoadd gitea remote in drone. (#2817)
Bo-Yi Wu [Wed, 1 Nov 2017 09:13:47 +0000 (04:13 -0500)]
add gitea remote in drone. (#2817)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
7 years agoadd remote name for git push. (#2816)
Bo-Yi Wu [Wed, 1 Nov 2017 08:48:40 +0000 (03:48 -0500)]
add remote name for git push. (#2816)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
7 years agoDownload and pushing translations (#2727)
Jonas Franz [Wed, 1 Nov 2017 06:14:49 +0000 (07:14 +0100)]
Download and pushing translations (#2727)

* Download and pushing translations

* Adding empty line between build steps

7 years agoInclude HTTP method in test error message (#2815)
Ethan Koenig [Wed, 1 Nov 2017 05:54:24 +0000 (22:54 -0700)]
Include HTTP method in test error message (#2815)

7 years agoUse api.TrackedTime in API (#2807)
Ethan Koenig [Wed, 1 Nov 2017 02:25:14 +0000 (19:25 -0700)]
Use api.TrackedTime in API (#2807)

* Use api.TrackedTime in API

* APIFormat() method

* Rename function

7 years agoFix dropdown menu position on explore repo (#2808)
Mulia Nasution [Tue, 31 Oct 2017 19:16:07 +0000 (02:16 +0700)]
Fix dropdown menu position on explore repo (#2808)

Signed-off-by: Mulia Arifandi Nasution <mul14.net@gmail.com>
7 years agoFix typo (#2810)
Mulia Nasution [Tue, 31 Oct 2017 17:10:22 +0000 (00:10 +0700)]
Fix typo (#2810)

Signed-off-by: Mulia Arifandi Nasution <mul14.net@gmail.com>
7 years agoAdd environment variable support for Docker image (#2201)
Tao Wang [Tue, 31 Oct 2017 08:55:46 +0000 (19:55 +1100)]
Add environment variable support for Docker image (#2201)

* Add `gettext` dependencies as we need `envsubst` command;
* Modified s6's gitea setup script, instead of `cp` the template if no
`app.ini` exist, it will substitude the envvars and generate the new
`app.ini`;
* Make `/docker/etc/templates/app.ini` a template contains environment
variables;

Signed-off-by: Tao Wang <twang2218@gmail.com>
7 years agoUse RelAvatarLink() in GetActAvatar() (#2800)
cstyles [Tue, 31 Oct 2017 08:08:23 +0000 (01:08 -0700)]
Use RelAvatarLink() in GetActAvatar() (#2800)

7 years agoFix Git LFS object/repo link storage in database and small refactoring (#2803)
Lauris BH [Mon, 30 Oct 2017 12:11:56 +0000 (14:11 +0200)]
Fix Git LFS object/repo link storage in database and small refactoring (#2803)

7 years agoMake URL scheme unambiguous (#2408)
Ethan Koenig [Mon, 30 Oct 2017 02:04:25 +0000 (19:04 -0700)]
Make URL scheme unambiguous (#2408)

* Make URL scheme unambiguous

Redirect old routes to new routes

* Fix redirects to new URL scheme, and update template

* Fix branches/_new endpoints, and update integration test

7 years agoFix copy in email templates (#2801)
Arif [Sun, 29 Oct 2017 21:57:05 +0000 (05:57 +0800)]
Fix copy in email templates (#2801)

7 years agoAdd Safari pinned tab icon (#2799)
Bastian Rinsche [Sun, 29 Oct 2017 01:01:42 +0000 (02:01 +0100)]
Add Safari pinned tab icon (#2799)

Closes #2753

Signed-off-by: Bastian Rinsche <bastian.rinsche@gmail.com>
7 years agoimprove force push detect when push (#2798)
Lunny Xiao [Sat, 28 Oct 2017 19:36:20 +0000 (03:36 +0800)]
improve force push detect when push (#2798)

7 years agoFix Various Grammar Issues and Adjust Unnatural Wording (#2737)
Omar Assadi [Sat, 28 Oct 2017 15:22:44 +0000 (11:22 -0400)]
Fix Various Grammar Issues and Adjust Unnatural Wording (#2737)

* Fix Comma Splices

Replace comma splices with more fitting punctuation—usually semicolons.

Signed-off-by: Omar Assadi <omar@assadi.ru>
* Turn Some Conjunctions into Sentences

Turn conjunctions—which are capable of standing on their own—into their standalone sentences.

Signed-off-by: Omar Assadi <omar@assadi.ru>
* Reword Sections and Fix Issues in Docs

Reword sections of the contributing docs and readme file to be more
natural and clear. Additionally, fix the majority of the grammar
mistakes.

Signed-off-by: Omar Assadi <omar@assadi.co.il>
7 years agoCode/repo search (#2582)
Ethan Koenig [Fri, 27 Oct 2017 06:10:54 +0000 (23:10 -0700)]
Code/repo search (#2582)

Indexed search of repository contents (for default branch only)

7 years agoAdd wrapping to long diff lines (#2789)
Lauris BH [Fri, 27 Oct 2017 04:30:54 +0000 (07:30 +0300)]
Add wrapping to long diff lines (#2789)

* Add wrapping to long diff lines to fix #1827

* Fix  css class and make changes to source (less) files

* Fix wrong space indentation

* Fix indentation inconsistencies and remove very old WebKit workaround

7 years agoAdd search mode option to /api/repo/search (#2756)
Morlinest [Thu, 26 Oct 2017 21:16:13 +0000 (23:16 +0200)]
Add search mode option to /api/repo/search (#2756)

* Add repo type option to /api/repo/search

* Add tests and fix result of collaborative filter in specific condition

* Fix/optimize search & tests

* Improve integration tests

* Fix lint errors

* Fix unit tests

* Change and improve internal implementation of repo search

* Use NonexistentID

* Make search api more general

* Change mirror and fork search behaviour

* Fix tests & typo in comment

7 years agoShow Sendmail settings on admin config page (#2782)
Jonas Bröms [Thu, 26 Oct 2017 08:47:16 +0000 (10:47 +0200)]
Show Sendmail settings on admin config page (#2782)

* Show Sendmail settings on admin config page

* Remove unecessary if statement

7 years agoAdd checks for commits with missing author and time (#2771)
Lauris BH [Thu, 26 Oct 2017 07:45:14 +0000 (10:45 +0300)]
Add checks for commits with missing author and time (#2771)

* Add checks for commits with missing author and time

* Fix validate commits with emails if it has no Author

7 years agodon't check minimum key size when disabled (#1754)
Gibheer [Thu, 26 Oct 2017 01:49:41 +0000 (03:49 +0200)]
don't check minimum key size when disabled (#1754)

* cleanup old comments for ed25519

These comments were added when x/crypto/ed25519 could not yet handle
ed25519. It does now, so it should be removed.
Also the key type is now replaced with the proper constant.

* move the minimum key size config before the check

This moves the actual config lookup before any check is done. This
avoids problems with calling to ssh-keygen which doesn't support the
expected output format and returning an error, when the check is disabled.

7 years agoAdd commit count caching (#2774)
Lauris BH [Thu, 26 Oct 2017 01:37:33 +0000 (04:37 +0300)]
Add commit count caching (#2774)

* Add commit count caching

* Small refactoring

* Add different key prefix for refs and commits

* Add configuratuion option to allow to change caching time or disable it

7 years agoAdd branch overiew page (#2108)
Bwko [Thu, 26 Oct 2017 00:49:16 +0000 (02:49 +0200)]
Add branch overiew page (#2108)

* Add branch overiew page

* fix changed method name on sub menu

* remove unused code

7 years agoAdd support for extra sendmail arguments (#2731)
Jonas Bröms [Wed, 25 Oct 2017 19:27:25 +0000 (21:27 +0200)]
Add support for extra sendmail arguments (#2731)

* Add support for extra sendmail arguments

* Sendmail args to exec.command should be a list

* Add go-shellquote package

* Use go-shellquote lib for parsing Sendmail args

* Only parse if sendmail is configured

7 years agoSync MaxGitDiffLineCharacters with conf/app.ini (#2779)
Michael Kuhn [Wed, 25 Oct 2017 08:28:58 +0000 (10:28 +0200)]
Sync MaxGitDiffLineCharacters with conf/app.ini (#2779)

MAX_GIT_DIFF_LINE_CHARACTERS was updated in #1845 but the corresponding
default value of MaxGitDiffLineCharacters was not changed. This can lead
to inconsistencies.

7 years agofix imports
Lunny Xiao [Wed, 25 Oct 2017 05:30:29 +0000 (13:30 +0800)]
fix imports

7 years agosome fixes
Lunny Xiao [Wed, 25 Oct 2017 05:26:14 +0000 (13:26 +0800)]
some fixes

7 years agofix discord hook bug (#2778)
Lunny Xiao [Wed, 25 Oct 2017 05:13:45 +0000 (13:13 +0800)]
fix discord hook bug (#2778)

7 years agoFix Polish language name spelling (#2766)
Piotr Orzechowski [Wed, 25 Oct 2017 02:35:34 +0000 (04:35 +0200)]
Fix Polish language name spelling (#2766)

7 years agoHide unactive on explore users and some refactors (#2741)
Lunny Xiao [Tue, 24 Oct 2017 17:36:19 +0000 (01:36 +0800)]
Hide unactive on explore users and some refactors (#2741)

* hide unactive on explore users and some refactors

* fix test for removed Organizations

* fix test for removed Organizations

* fix imports

* fix logic bug

* refactor the toConds

* Rename TestOrganizations to TestSearchUsers and add tests for users

* fix other tests

* fix other tests

* fix watchers tests

* fix comments and remove unused code

7 years agoadd default ssh ciphers (#2761)
Lunny Xiao [Mon, 23 Oct 2017 15:20:44 +0000 (23:20 +0800)]
add default ssh ciphers (#2761)

7 years agoUpdate vendor git (#2765)
Lauris BH [Mon, 23 Oct 2017 13:36:14 +0000 (16:36 +0300)]
Update vendor git (#2765)

7 years agoUse identicon image for default gravatar. (#2767)
harry [Mon, 23 Oct 2017 08:50:07 +0000 (03:50 -0500)]
Use identicon image for default gravatar. (#2767)

* Use identicon image for default gravatar.

* Fixed tests.

7 years agoFix emojify image URL (#2769)
Lauris BH [Mon, 23 Oct 2017 08:48:56 +0000 (11:48 +0300)]
Fix emojify image URL (#2769)

7 years agoRemove manual of unsupported option (#2757) 1954/head 2754/head
Morlinest [Sat, 21 Oct 2017 23:17:48 +0000 (01:17 +0200)]
Remove manual of unsupported option (#2757)

7 years agoFix activity css conflit with semantic ui (#2758)
Lauris BH [Sat, 21 Oct 2017 20:07:06 +0000 (23:07 +0300)]
Fix activity css conflit with semantic ui (#2758)

7 years agoMove swagger-ui under /api/v1 (#2746)
Antoine GIRARD [Sat, 21 Oct 2017 14:05:50 +0000 (16:05 +0200)]
Move swagger-ui under /api/v1 (#2746)

* Move swagger interface under /api/v1

* Update swagger-ui

* Add /api/swagger and prepare for multiple api version

* Update test links

* Fix footer link

7 years agoAdmin grammar fixes and improvements (#2056)
Patrick G [Sat, 21 Oct 2017 13:30:21 +0000 (09:30 -0400)]
Admin grammar fixes and improvements (#2056)

7 years agoConfigurable SSH cipher suite (#913)
spacetourist [Sat, 21 Oct 2017 13:13:41 +0000 (14:13 +0100)]
Configurable SSH cipher suite (#913)

* Configurable SSH cipher suite

* Update configuration file comment

* Add default in settings loading code

* Fix fmt and log messsage

* Remove default from code as this could probably might not be good idea

7 years agoUse buffersize to reduce database connection when iterate (#2724)
Lunny Xiao [Sat, 21 Oct 2017 06:26:23 +0000 (14:26 +0800)]
Use buffersize to reduce database connection when iterate (#2724)

* use buffersize to reduce database connection when iterate

* fix typo

* add default value on app.ini comment

7 years agoUpdate vendor github.com/lib/pq (#2752)
Antoine GIRARD [Sat, 21 Oct 2017 04:05:58 +0000 (06:05 +0200)]
Update vendor github.com/lib/pq (#2752)

7 years agoSet default lfs content path (#2521)
Jonas Bröms [Thu, 19 Oct 2017 06:52:37 +0000 (08:52 +0200)]
Set default lfs content path (#2521)

7 years agoFix IE unsupported javascript construction (#2736)
Lauris BH [Thu, 19 Oct 2017 06:00:36 +0000 (09:00 +0300)]
Fix IE unsupported javascript construction (#2736)

7 years agoOnly update mirror last update after successful sync (#2730)
Jonas Bröms [Wed, 18 Oct 2017 18:50:41 +0000 (20:50 +0200)]
Only update mirror last update after successful sync (#2730)

7 years agoFix tabs according to semantic-ui docs (#2733)
Patrick G [Wed, 18 Oct 2017 18:18:31 +0000 (14:18 -0400)]
Fix tabs according to semantic-ui docs (#2733)

7 years agoFix typos in app.ini (#2732)
Jonas Bröms [Wed, 18 Oct 2017 02:11:23 +0000 (04:11 +0200)]
Fix typos in app.ini (#2732)

7 years agoFix repository search function (#2689)
Morlinest [Tue, 17 Oct 2017 15:20:22 +0000 (17:20 +0200)]
Fix repository search function (#2689)

* Fix and remove FIXME

* Respect membership visibility

* Fix/rewrite searchRepositoryByName function

* Add unit tests

* Add integration tests

* Remove Searcher completely

* Remove trailing space

7 years agoFix semantic-ui style conflict with v-cloak (#2722)
Lauris BH [Tue, 17 Oct 2017 07:24:43 +0000 (10:24 +0300)]
Fix semantic-ui style conflict with v-cloak (#2722)

7 years agoRender plain text README.txt monospaced (#2721)
Jonas Franz [Mon, 16 Oct 2017 23:17:22 +0000 (01:17 +0200)]
Render plain text README.txt monospaced (#2721)

Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years agoFixing wrong translations on sorttype oldest/latest (#2720)
Jonas Franz [Mon, 16 Oct 2017 20:26:11 +0000 (22:26 +0200)]
Fixing wrong translations on sorttype oldest/latest (#2720)

7 years agoMerge password and 2fa page on user settings (#2695)
Lunny Xiao [Mon, 16 Oct 2017 09:14:12 +0000 (17:14 +0800)]
Merge password and 2fa page on user settings (#2695)

* merge password and 2fa page on user settings

7 years agoFix PR, milestone and label functionality if issue unit is disabled (#2710)
Lauris BH [Mon, 16 Oct 2017 07:55:43 +0000 (10:55 +0300)]
Fix PR, milestone and label functionality if issue unit is disabled (#2710)

* Fix PR, milestone and label functionality if issue unit is disabled or not assigned to user

* Fix multi-actions in PR page

* Change error message

* Fix comment update and delete functionality in PR

7 years agoFix plain readme didn't render correctly on repo home page (#2705)
Lunny Xiao [Mon, 16 Oct 2017 07:04:34 +0000 (15:04 +0800)]
Fix plain readme didn't render correctly on repo home page (#2705)

* fix plain readme didn't render correctly on repo home page

* fix missing render

* remove unused template variables

7 years agoIntegration test for activity page (#2704)
Lauris BH [Sun, 15 Oct 2017 21:54:53 +0000 (00:54 +0300)]
Integration test for activity page (#2704)

* Integration test for activity page

* Small code refactoring for acitvity page

* Move activity stats calculation logic to model

7 years agoCreate new branch from branch selection dropdown (#2130)
Lauris BH [Sun, 15 Oct 2017 19:59:24 +0000 (22:59 +0300)]
Create new branch from branch selection dropdown (#2130)

* Create new branch from branch selection dropdown and rewrite it to VueJS

* Make updateLocalCopyToCommit as not exported

* Move branch name validation to model

* Fix possible race condition

7 years agoFix activity locale (#2709)
Ethan Koenig [Sun, 15 Oct 2017 18:30:26 +0000 (11:30 -0700)]
Fix activity locale (#2709)

7 years agofix .netrc authentication (#2700)
David Schneiderbauer [Sun, 15 Oct 2017 15:35:43 +0000 (17:35 +0200)]
fix .netrc authentication (#2700)

* provide both possible authentication solutions

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
7 years agoFix so that user can still fork his own repository to owned organizations (#2699)
Lauris BH [Sun, 15 Oct 2017 15:06:07 +0000 (18:06 +0300)]
Fix so that user can still fork his own repository to owned organizations (#2699)

* Fix so that user can still fork his own repository to his organizations

* Fix to only use owned organizations

* Add integration test for forking own repository to owned organization

7 years agoRemove direct user adding to organization members (#2641)
Lauris BH [Sun, 15 Oct 2017 02:24:24 +0000 (05:24 +0300)]
Remove direct user adding to organization members (#2641)

7 years agoAdd Activity page to repository (#2674)
Lauris BH [Sat, 14 Oct 2017 23:17:39 +0000 (02:17 +0300)]
Add Activity page to repository (#2674)

* Add Activity page to repository

* Add request data for activity

* Add issue data for activity

* Add user unit right checks

* Add releases to activity

* Log repository unit loading error

7 years agoFix organization watch migration (#2703)
Lauris BH [Sat, 14 Oct 2017 17:47:05 +0000 (20:47 +0300)]
Fix organization watch migration (#2703)

7 years agoAllow custom SSH user in UI for built-in SSH server (#2617) (#2678)
Patrick G [Sat, 14 Oct 2017 15:51:00 +0000 (11:51 -0400)]
Allow custom SSH user in UI for built-in SSH server (#2617) (#2678)

* Allow custom SSH user in UI for built-in SSH server (#2617)

* Some fixes

* Did make fmt

* Updated according to review

- Renamed config to BUILTIN_SSH_SERVER_USER
- Removed unnecessary default string value for config item

* Updated according to review

* Fixed some minor issues

7 years agoFix orgnization user watch repository (#2670)
Lunny Xiao [Sat, 14 Oct 2017 14:37:43 +0000 (22:37 +0800)]
Fix orgnization user watch repository (#2670)

* remove orgnization watch repositories

* fix migration

* fix typo and missing change

* remove unused code

7 years agoUpdate hard-coded version to 1.3.0-dev (#2390)
Sandro Santilli [Thu, 12 Oct 2017 11:40:42 +0000 (13:40 +0200)]
Update hard-coded version to 1.3.0-dev (#2390)

* Use -dev (1.3.0-dev is less than 1.3.0, according to semver)

* Use fake version for testing purpose

7 years agoRemove redudant functions and code (#2652)
Morlinest [Tue, 10 Oct 2017 20:37:18 +0000 (22:37 +0200)]
Remove redudant functions and code (#2652)

* Remove redudant functions and code

7 years agoAdd repository search unit and integration tests (#2575)
Morlinest [Tue, 10 Oct 2017 01:23:29 +0000 (03:23 +0200)]
Add repository search unit and integration tests (#2575)

* Add more repo search tests

* Fix repo search tests

* Always test returned repos length

* Add test with lower pagesize limit (test more pages)

* Add and fix /api/repo/search integration tests

* Simplify unit tests code

* Simplify and unify integration tests code

* Improve test coverage

* Temporary fix tests due to bugs in current repo search implementation

* Revert removing not nil Searcher

* Add more checks to tests

* Simplify privacy checks in /api/repo tests

* Temporary remove privacy check from repo search tests

7 years agofix panic on gogs webhook creation (#2675)
David Schneiderbauer [Sun, 8 Oct 2017 11:37:31 +0000 (13:37 +0200)]
fix panic on gogs webhook creation (#2675)

* fix panic on gogs webhook creation

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* fix panic in gogs webhook edit

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
7 years agoRewrite migrations to not depend on future code changes (#2604)
David Schneiderbauer [Sun, 8 Oct 2017 11:08:18 +0000 (13:08 +0200)]
Rewrite migrations to not depend on future code changes (#2604)

* v38 migration used an outdated version of RepoUnit model (#2602)

* change repoUnit model in migration

* fix v16 migration repo_unit table

* fix lint error

* move type definition inside function

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* fix lint error

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Fix time tracking migration

* Refactor code

* Fix migration from Gogs

* v38 migration used an outdated version of RepoUnit model (#2602)

* change repoUnit model in migration

* fix v16 migration repo_unit table

* fix lint error

* move type definition inside function

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* fix lint error

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Fix time tracking migration

* Refactor code

* Fix migration from Gogs

* add error check

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Additiomal fixes for migrations

* Fix timetracking migration

* Add back nil check

7 years agoGPG key email verification no longer case sensitive (#2661) (#2663)
Julian Scholle [Fri, 6 Oct 2017 20:28:21 +0000 (22:28 +0200)]
GPG key email verification no longer case sensitive (#2661) (#2663)

* GPG key email verification no longer case sensitive (#2661)

* case insensitive GPG key email verification now cached (#2661)

Signed-off-by: Julian Scholle <julian.scholle@googlemail.com>
7 years agotable `pull_request` wasn't updated correctly (#2649)
Kazuki Sawada [Thu, 5 Oct 2017 21:25:40 +0000 (06:25 +0900)]
table `pull_request` wasn't updated correctly (#2649)

* Fix: table `pull_request` won't be updated correctly

* Update also status column when manually merged

7 years agoUpdate MAINTAINERS (#2660)
Morlinest [Thu, 5 Oct 2017 08:57:37 +0000 (10:57 +0200)]
Update MAINTAINERS (#2660)

7 years agoAdd maintainer label for docker file (#2658)
Bo-Yi Wu [Thu, 5 Oct 2017 08:41:10 +0000 (03:41 -0500)]
Add maintainer label for docker file (#2658)

* Add maintainer label for docker file

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* update

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
7 years agoRefactor duplicated code in repo handlers (#2657)
Ethan Koenig [Thu, 5 Oct 2017 07:32:25 +0000 (00:32 -0700)]
Refactor duplicated code in repo handlers (#2657)

* Refactor duplicated code in repo handlers

* ctx.Handle

7 years agoChange default sort order (#2647)
Kazuki Sawada [Thu, 5 Oct 2017 05:02:43 +0000 (14:02 +0900)]
Change default sort order (#2647)

* sort repositories by `updated_unix` in Explore

* Fix UI problem

* Added missing sort order "newest"

* Change default sort order

* fmt

7 years agoReplace deprecated Id method with ID (#2655)
Ethan Koenig [Thu, 5 Oct 2017 04:43:04 +0000 (21:43 -0700)]
Replace deprecated Id method with ID (#2655)

7 years agoChange pull description text (#2075) (#2646)
Kazuki Sawada [Wed, 4 Oct 2017 17:35:01 +0000 (02:35 +0900)]
Change pull description text (#2075) (#2646)

* Change pull description text

* move duplicated code into helper function