]> source.dussan.org Git - gitea.git/log
gitea.git
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

7 years agohide navbar when only 1 sign-in method is available (#2648)
Kazuki Sawada [Wed, 4 Oct 2017 16:57:00 +0000 (01:57 +0900)]
hide navbar when only 1 sign-in method is available (#2648)

7 years agoFix index column deletion (#2651)
Morlinest [Wed, 4 Oct 2017 11:26:13 +0000 (13:26 +0200)]
Fix index column deletion (#2651)

7 years agoUse session when creating user (#2638)
Ethan Koenig [Tue, 3 Oct 2017 06:29:26 +0000 (23:29 -0700)]
Use session when creating user (#2638)

7 years agoUse Semantic UI's Search component for user and repo search (#2636)
harry [Tue, 3 Oct 2017 03:27:48 +0000 (22:27 -0500)]
Use Semantic UI's Search component for user and repo search (#2636)

* Use search component on org invitation user input.

* Search component for collaboration and members.

* Search component for repo search.

* minCharacters for search input

* Display full_name for user search.

* Fixed missing uid query parameter for repo search.

* Removed unused comment.

7 years agoRemove repo unit index (#2621)
Morlinest [Mon, 2 Oct 2017 20:22:25 +0000 (22:22 +0200)]
Remove repo unit index (#2621)

* Remove repo unit index

* Fix sqlite

7 years agoFix go get response if only app URL is custom in configuration (#2634)
Lauris BH [Mon, 2 Oct 2017 13:55:09 +0000 (16:55 +0300)]
Fix go get response if only app URL is custom in configuration (#2634)

* Fix go get response if only app URL is custom in configuration

* Rewrite to update Domain setting to match AppURL

7 years agoUse AfterLoad instead of AfterSet on Structs (#2628)
Lunny Xiao [Sun, 1 Oct 2017 16:52:35 +0000 (00:52 +0800)]
Use AfterLoad instead of AfterSet on Structs (#2628)

* use AfterLoad instead of AfterSet on Structs

* fix the comments on AfterLoad

* fix the comments on action AfterLoad

7 years agoFix implementation of repo Home func (#2601)
Morlinest [Sun, 1 Oct 2017 13:50:56 +0000 (15:50 +0200)]
Fix implementation of repo Home func (#2601)

* Fix implementation of repo Home func

* Make fixture changes for testing

7 years agoRemove redudant CheckUnit calls in router (#2627)
Morlinest [Sat, 30 Sep 2017 04:04:16 +0000 (06:04 +0200)]
Remove redudant CheckUnit calls in router (#2627)

7 years agoLink to gitea-specific Vagrant example (#2624)
Sandro Santilli [Sat, 30 Sep 2017 00:50:19 +0000 (02:50 +0200)]
Link to gitea-specific Vagrant example (#2624)

.. rather than a gogs one

7 years agoFix doubled issue tab introduced in migration v16 (#2611)
David Schneiderbauer [Thu, 28 Sep 2017 13:14:51 +0000 (15:14 +0200)]
Fix doubled issue tab introduced in migration v16 (#2611)

* fix duplicate issue tab as UnitTypeIssue and UnitTypeExternalTracker are existing at the same time

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
7 years agoRemove redudant issue LoadAttributes() calls (#2614)
Morlinest [Wed, 27 Sep 2017 12:41:52 +0000 (14:41 +0200)]
Remove redudant issue LoadAttributes() calls (#2614)

7 years agoFix translation upload to crowdin (#2599)
Lauris BH [Mon, 25 Sep 2017 07:59:19 +0000 (10:59 +0300)]
Fix translation upload to crowdin (#2599)

7 years agoReduce usage of allcols on update (#2596)
Lunny Xiao [Mon, 25 Sep 2017 04:59:27 +0000 (12:59 +0800)]
Reduce usage of allcols on update (#2596)

* reduce usage of allcols on update

* fix bug and tests

7 years agobackport from v1.2 branch: add secrets for github release (#2588) (#2598)
Bo-Yi Wu [Mon, 25 Sep 2017 03:40:34 +0000 (11:40 +0800)]
backport from v1.2 branch: add secrets for github release (#2588) (#2598)

7 years agoMake indexer code more reusable (#2590)
Ethan Koenig [Mon, 25 Sep 2017 00:08:48 +0000 (17:08 -0700)]
Make indexer code more reusable (#2590)

7 years agoAdd pre-build step for nodejs stuff (#2581)
Morlinest [Sun, 24 Sep 2017 21:49:32 +0000 (23:49 +0200)]
Add pre-build step for nodejs stuff (#2581)

7 years agoCompress css with nodejs (#2580)
Morlinest [Sun, 24 Sep 2017 19:47:10 +0000 (21:47 +0200)]
Compress css with nodejs (#2580)

7 years agoAutomatic update of translations (#2585)
Jonas Franz [Sat, 23 Sep 2017 16:08:42 +0000 (18:08 +0200)]
Automatic update of translations (#2585)

* Adding build step for uploading translations

* Fixing crowdin project name

* Using crowdin plugin

* Changing secret name

* Adding pull: true

7 years agofix go get subpackage bug (#2584)
Lunny Xiao [Sat, 23 Sep 2017 13:24:24 +0000 (21:24 +0800)]
fix go get subpackage bug (#2584)

* fix go get subpackage bug

* merge the duplicated funtions

7 years agoFix broken migration to add can_push field back to table (#2574)
Lauris BH [Sat, 23 Sep 2017 08:45:41 +0000 (11:45 +0300)]
Fix broken migration to add can_push field back to table (#2574)

7 years agoAutomatically regenerate indexer for incompatible versions (#2524)
Ethan Koenig [Fri, 22 Sep 2017 21:30:56 +0000 (14:30 -0700)]
Automatically regenerate indexer for incompatible versions (#2524)

7 years agoFix drone for tags (#2573)
Lauris BH [Fri, 22 Sep 2017 15:34:02 +0000 (18:34 +0300)]
Fix drone for tags (#2573)

7 years agoUse custom type and constants to hold order by options (#2572)
Morlinest [Fri, 22 Sep 2017 12:53:21 +0000 (14:53 +0200)]
Use custom type and constants to hold order by options (#2572)

7 years agoExpand fixtures (#2571)
Morlinest [Fri, 22 Sep 2017 10:51:16 +0000 (12:51 +0200)]
Expand fixtures (#2571)

* Add more repo search tests

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

* Add owner to access table for organization repositories

* Remove tests

7 years agoCtrl + Enter to submit forms (#2540)
Jonas Franz [Fri, 22 Sep 2017 06:17:31 +0000 (08:17 +0200)]
Ctrl + Enter to submit forms (#2540)

* Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125)

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Submit forms if Ctrl+Enter is pressed inside a textarea

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Adding separate class for Ctrl+Enter-Submit
Checking if alt key is pressed too

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Changing .ctrlenter to .js-quick-submit

Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years agofix readme view bug (#2566)
Lunny Xiao [Thu, 21 Sep 2017 18:24:19 +0000 (02:24 +0800)]
fix readme view bug (#2566)

7 years agoComplete push webhooks (#2530)
David Schneiderbauer [Thu, 21 Sep 2017 07:43:26 +0000 (09:43 +0200)]
Complete push webhooks (#2530)

* implemented missing 'delete' push webhooks

moreover created ActionDeleteBranch and ActionDeleteTag

* add CommitRepoAction tests for tag/branch creation/deletion

* fixed error where push webhook not called if is new branch or tag
removed unnecessary code

* moved prepare unit test environment into separate method to be used across unit tests

* add missing if clause in pushUpdate

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
7 years agoAdd init support of orgmode document type on file view and readme (#2525)
Lunny Xiao [Thu, 21 Sep 2017 05:20:14 +0000 (13:20 +0800)]
Add init support of orgmode document type on file view and readme (#2525)

* add init support of orgmode document type on file view and readme

* fix imports

* fix imports and readmeExist

* fix imports order

* fix format

* remove unnecessary convert

7 years agoFix sending mail with a non-latin display name. #2102 (#2559)
Rémi Saurel [Thu, 21 Sep 2017 04:29:45 +0000 (06:29 +0200)]
Fix sending mail with a non-latin display name. #2102 (#2559)

* Fix sending mail with a non-latin display name. #2102

Signed-off-by: Rémi Saurel <contact@remi-saurel.com>
* Take into account the possibility that setting.MailService.From is in `name <email@address>` format. #2102

Signed-off-by: Rémi Saurel <contact@remi-saurel.com>
7 years agoUse standard lessc and minify CSS using Node.js (#2337)
silverwind [Thu, 21 Sep 2017 03:35:11 +0000 (05:35 +0200)]
Use standard lessc and minify CSS using Node.js (#2337)

* Use standard lessc and minify CSS using Node.js

This changes the previous nonstandard `lessc` to the official one and
enables CSS minification via the clean-css module.

To build CSS, Node.js is required along with a `npm install` to get the
tools installed locally in node_modules so there is no dependency on
binaries in PATH. Benefits include:

- Allows one to have a standard lessc in PATH.
- Can now use command line switches on lessc.
- Minified CSS brings faster page load times and also has the benefit
  of discouraging contributors from editing CSS directly.

To build CSS, Node.js is required along with a `npm install` to get the
tools installed locally based on the information in `package.json`.

The 'make stylesheet' task was modified to run without condition. This
makes it easier to work on the make task itself without having to delete
files.

Also fixes: https://github.com/go-gitea/gitea/issues/2198

* install node, npm and modules on drone

* .PHONY

* use 'minify' to minify CSS

7 years agoAlways run fmt check in CI (#2546)
Ethan Koenig [Thu, 21 Sep 2017 01:34:32 +0000 (18:34 -0700)]
Always run fmt check in CI (#2546)

7 years agoFix can_push value to false in protected_branch (#2560)
Lauris BH [Wed, 20 Sep 2017 14:52:23 +0000 (17:52 +0300)]
Fix can_push value to false in protected_branch (#2560)

7 years agoRemove go version check for make fmt (#2558)
Lauris BH [Wed, 20 Sep 2017 11:58:29 +0000 (14:58 +0300)]
Remove go version check for make fmt (#2558)

7 years agoFix /api/repo/search integration tests (#2550)
Morlinest [Wed, 20 Sep 2017 09:24:38 +0000 (11:24 +0200)]
Fix /api/repo/search integration tests (#2550)

7 years agoSync releases table with tags on push and for mirrors (#2459)
Lauris BH [Wed, 20 Sep 2017 05:26:49 +0000 (08:26 +0300)]
Sync releases table with tags on push and for mirrors (#2459)

* Sync releases table with tags on push and for mirrors

* Code style fixes

* Fix api to return only releases

* Optimize release creation and update
Minimize posibility of race conditions

* Fix release lower tag name updating

* handle tag reference update by addionally comparing commit id

7 years agoFix duplicated rel attribute (#2549)
Jorge Maldonado Ventura [Wed, 20 Sep 2017 04:20:11 +0000 (06:20 +0200)]
Fix duplicated rel attribute (#2549)

According to the HTML 5.1 recommendation "The rel attribute on a
and area elements controls what kinds of links the elements create.
The attribute’s value must be a set of space-separated tokens."
(source https://www.w3.org/TR/html51/links.html#links-created-by-a-and-area-elements)

7 years agoUse named ActionType constants in template helper (#2545)
Ethan Koenig [Wed, 20 Sep 2017 01:22:42 +0000 (18:22 -0700)]
Use named ActionType constants in template helper (#2545)

7 years agoadd @daviian as maintainer (#2552)
David Schneiderbauer [Tue, 19 Sep 2017 21:03:31 +0000 (23:03 +0200)]
add @daviian as maintainer (#2552)

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
7 years agoFix fmt errors (#2544)
Ethan Koenig [Tue, 19 Sep 2017 11:44:49 +0000 (04:44 -0700)]
Fix fmt errors (#2544)

7 years agoSort repository tree entries in natural way (#2506)
Lauris BH [Tue, 19 Sep 2017 08:37:03 +0000 (11:37 +0300)]
Sort repository tree entries in natural way (#2506)

* Sort repository tree entries in natural way

* Fix sort for different length strings with first parts equal

* Improve test case

* Refactor return statements

* Update gitea/git dependency

7 years agoFix lint errors (#2547)
Ethan Koenig [Tue, 19 Sep 2017 08:08:30 +0000 (01:08 -0700)]
Fix lint errors (#2547)

7 years agoMake basic functionality work without JavaScript (#2541)
Jorge Maldonado Ventura [Mon, 18 Sep 2017 23:03:01 +0000 (01:03 +0200)]
Make basic functionality work without JavaScript (#2541)

7 years agoFork permission bug fixes (#2534)
Jonas Franz [Mon, 18 Sep 2017 14:52:20 +0000 (16:52 +0200)]
Fork permission bug fixes (#2534)

* Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125)

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Checking if Code unit is enabled before creating a fork.

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Adding a discrete function for RepoIDAssignment

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Improved Documentation

7 years agoMake integration tests more user-friendly (#2536)
Ethan Koenig [Mon, 18 Sep 2017 08:35:42 +0000 (01:35 -0700)]
Make integration tests more user-friendly (#2536)

7 years agoImprove issue search (#2387)
Ethan Koenig [Sat, 16 Sep 2017 20:16:21 +0000 (13:16 -0700)]
Improve issue search (#2387)

* Improve issue indexer

* Fix new issue sqlite bug

* Different test indexer paths for each db

* Add integration indexer paths to make clean

7 years agoRestructure markup & markdown to prepare for multiple markup language… (#2411)
Lunny Xiao [Sat, 16 Sep 2017 17:17:57 +0000 (01:17 +0800)]
Restructure markup & markdown to prepare for multiple markup language… (#2411)

* restructure markup & markdown to prepare for multiple markup languages support

* adjust some functions between markdown and markup

* fix tests

* improve the comments

7 years agoConvert spaces to tabs in footer.tmpl (#2520)
Ethan Koenig [Sat, 16 Sep 2017 09:04:27 +0000 (02:04 -0700)]
Convert spaces to tabs in footer.tmpl (#2520)

7 years agoPrevent sending emails and notifications to inactive users (#2384)
David Schneiderbauer [Sat, 16 Sep 2017 00:18:25 +0000 (02:18 +0200)]
Prevent sending emails and notifications to inactive users (#2384)

* Filter inactive users before sending emails or creating browser notifications

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

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* included requested changes

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* optimized database queries

* rebasing new master and add tablenames for clarification in xorm queries

* remove escaped quotationmarks using backticks

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
7 years agoFix unit test race condition (#2516)
Ethan Koenig [Fri, 15 Sep 2017 07:54:25 +0000 (00:54 -0700)]
Fix unit test race condition (#2516)

7 years agoAdded bucket name to s3 drone plugin (#2505)
Thomas Boerger [Fri, 15 Sep 2017 06:45:38 +0000 (08:45 +0200)]
Added bucket name to s3 drone plugin (#2505)

7 years agoFixes 500 error on dashboard when using MSSQL (#2504)
bradder555 [Fri, 15 Sep 2017 06:14:06 +0000 (14:14 +0800)]
Fixes 500 error on dashboard when using MSSQL (#2504)

MSSQL rejects the query:
  SELECT "repository"."id" FROM "repository"
  INNER JOIN "team_repo" ON "team_repo".repo_id="repository".id AND
  "repository".is_mirror=1
  WHERE (
    ("repository".owner_id=2 AND "repository".is_private=0)
        OR team_repo.team_id IN (1)
        )
        GROUP BY "repository".id ORDER BY updated_unix DESC

when the order by term (updated_unix) is not included in the group by
term.

7 years agofix updated update on public key (#2514)
Lunny Xiao [Fri, 15 Sep 2017 03:23:48 +0000 (11:23 +0800)]
fix updated update on public key (#2514)

* fix updated update on public key

* update vendor.json

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

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
7 years agoImplementation of all repositories of a user from user->settings (#1740)
Rémy Boulanouar [Thu, 14 Sep 2017 11:46:14 +0000 (13:46 +0200)]
Implementation of all repositories of a user from user->settings (#1740)

* Implementation of all repositories of a user from user->settings

* Update message when no repository found

* Update according to comments

* Change UI to have a better look

* improved user repositories UI

7 years agoimprove protected branch to add whitelist support (#2451)
Lunny Xiao [Thu, 14 Sep 2017 08:16:22 +0000 (16:16 +0800)]
improve protected branch to add whitelist support (#2451)

* improve protected branch to add whitelist support

* fix lint

* fix style check

* fix tests

* fix description on UI and import

* fix test

* bug fixed

* fix tests and languages

* move isSliceInt64Eq to util pkg; improve function names & typo

7 years agoDisplay commit status on landing page of repo (#1784)
Rémy Boulanouar [Thu, 14 Sep 2017 06:51:32 +0000 (08:51 +0200)]
Display commit status on landing page of repo (#1784)

* Display commit status on landing page of repo

* improve last status of commits and add link to ci

* fix last commit status since the order of ids are desc

7 years agofix wrong rendering of commit detail page (#2503)
David Schneiderbauer [Thu, 14 Sep 2017 06:12:56 +0000 (08:12 +0200)]
fix wrong rendering of commit detail page (#2503)

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
7 years agoHotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomm...
Jonas Franz [Wed, 13 Sep 2017 19:02:04 +0000 (21:02 +0200)]
Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) (#2499)

Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years agoRemove repository mirrors from "collaborative" list (#2497)
Morlinest [Wed, 13 Sep 2017 16:02:37 +0000 (18:02 +0200)]
Remove repository mirrors from "collaborative" list (#2497)

7 years agoadd codecov.io service. (#2493)
Bo-Yi Wu [Wed, 13 Sep 2017 12:57:55 +0000 (20:57 +0800)]
add codecov.io service. (#2493)

* add codecov.io service.

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

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* only PR or master branch (for coverage badge)

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

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

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
7 years agofix release (#2496)
Lunny Xiao [Wed, 13 Sep 2017 09:20:15 +0000 (17:20 +0800)]
fix release (#2496)

7 years agoDockerfile: Updated alpine image to 3.6. (#2486)
Jon Davies [Wed, 13 Sep 2017 06:37:42 +0000 (06:37 +0000)]
Dockerfile: Updated alpine image to 3.6. (#2486)

Signed-off-by: Jonathan Davies <jpds@protonmail.com>
7 years agoAllow changing integration test database connection using env variables (#2484)
Lauris BH [Wed, 13 Sep 2017 06:03:20 +0000 (09:03 +0300)]
Allow changing integration test database connection using env variables (#2484)

7 years agoUse created & updated instead BeforeInsert & BeforeUpdate (#2482)
Lunny Xiao [Wed, 13 Sep 2017 05:18:22 +0000 (13:18 +0800)]
Use created & updated instead BeforeInsert & BeforeUpdate (#2482)

* use created & updated instead BeforeInsert & BeforeUpdate

* fix vendor checksum

* only show generated SQL when development mode

* remove extra update column updated_unix

* remove trace config

7 years agoBasic VSCode configuration for building and debugging (#2483)
Lauris BH [Tue, 12 Sep 2017 12:27:44 +0000 (15:27 +0300)]
Basic VSCode configuration for building and debugging (#2483)

* Basic VSCode configuration for building and debugging

* Fix building and debugging in Windows

* Move to contrib folder and add instructions

7 years agoAdd missing fixture to clean gpg_key table (#2494)
Lauris BH [Tue, 12 Sep 2017 10:54:45 +0000 (13:54 +0300)]
Add missing fixture to clean gpg_key table (#2494)

* Add missing fixture to clean gpg_key table

* Fix possible too fast request execution in timetracker start/stop test

7 years agoDisable custom Git Hooks globally via configuration file (#2450)
techknowlogick [Tue, 12 Sep 2017 09:25:42 +0000 (05:25 -0400)]
Disable custom Git Hooks globally via configuration file (#2450)

* Create option to disable githooks globally via configuration file

* Update comment in app.ini to align with @ethantkoenig's suggestion

Signed-off-by: Matti Ranta <matti@mdranta.net>
7 years agoOpen external wiki in new window (#2489)
Jonas Östanbäck [Tue, 12 Sep 2017 07:29:35 +0000 (09:29 +0200)]
Open external wiki in new window (#2489)

7 years agoFeature: Timetracking (#2211)
Jonas Franz [Tue, 12 Sep 2017 06:48:13 +0000 (08:48 +0200)]
Feature: Timetracking (#2211)

* Added comment's hashtag to url for mail notifications.
* Added explanation to return statement + documentation.
* Replacing in-line link generation with HTMLURL. (+gofmt)
* Replaced action-based model with nil-based model. (+gofmt)
* Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants.
* Updating comment for mailIssueCommentToParticipants
* Added link to comment in "Dashboard"
* Deleting feed entry if a comment is going to be deleted
* Added migration
* Added improved migration to add a CommentID column to action.
* Added improved links to comments in feed entries.
* Fixes #1956 by filtering for deleted comments that are referenced in actions.
* Introducing "IsDeleted" column to action.
* Adding design draft (not functional)
* Adding database models for stopwatches and trackedtimes
* See go-gitea/gitea#967
* Adding design draft (not functional)
* Adding translations and improving design
* Implementing stopwatch (for timetracking)
* Make UI functional
* Add hints in timeline for time tracking events
* Implementing timetracking feature
* Adding "Add time manual" option
* Improved stopwatch
* Created report of total spent time by user
* Only showing total time spent if theire is something to show.
* Adding license headers.
* Improved error handling for "Add Time Manual"
* Adding @sapks 's changes, refactoring
* Adding API for feature tracking
* Adding unit test
* Adding DISABLE/ENABLE option to Repository settings page
* Improving translations
* Applying @sapk 's changes
* Removing repo_unit and using IssuesSetting for disabling/enabling timetracker
* Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu
* Improving documentation
* Fixing vendor/ folder
* Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks )
* Restricting write access to timetracking based on the repo settings (Proposed by @lafriks )
* Fixed minor permissions bug.
* Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo
* Allow assignees and authors to track there time too.
* Fixed some build-time-errors + logical errors.
* Removing unused Get...ByID functions
* Moving IsTimetrackerEnabled from context.Repository to models.Repository
* Adding a seperate file for issue related repo functions
* Adding license headers
* Fixed GetUserByParams return 404
* Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons
* Adding /repos/:username/times to get all tracked times of the repo
* Updating sdk-dependency
* Updating swagger.v1.json
* Adding warning if user has already a running stopwatch (auto-timetracker)
* Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions)
* Changing code.gitea.io/sdk back to code.gitea.io/sdk
* Correcting spelling mistake
* Updating vendor.json
* Changing GET stopwatch/toggle to POST stopwatch/toggle
* Changing GET stopwatch/cancel to POST stopwatch/cancel
* Added migration for stopwatches/timetracking
* Fixed some access bugs for read-only users
* Added default allow only contributors to track time value to config
* Fixed migration by chaging x.Iterate to x.Find
* Resorted imports
* Moved Add Time Manually form to repo_form.go
* Removed "Seconds" field from Add Time Manually
* Resorted imports
* Improved permission checking
* Fixed some bugs
* Added integration test
* gofmt
* Adding integration test by @lafriks
* Added created_unix to comment fixtures
* Using last event instead of a fixed event
* Adding another integration test by @lafriks
* Fixing bug Timetracker enabled causing error 500 at sidebar.tpl
* Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning.
* Returning TrackedTime instead of AddTimeOption at AddTime.
* Updating SDK from go-gitea/go-sdk#69
* Resetting Go-SDK back to default repository
* Fixing test-vendor by changing ini back to original repository
* Adding "tags" to swagger spec
* govendor sync
* Removed duplicate
* Formatting templates
* Adding IsTimetrackingEnabled checks to API
* Improving translations / english texts
* Improving documentation
* Updating swagger spec
* Fixing integration test caused be translation-changes
* Removed encoding issues in local_en-US.ini.
* "Added" copyright line
* Moved unit.IssuesConfig().EnableTimetracker into a != nil check
* Removed some other encoding issues in local_en-US.ini
* Improved javascript by checking if data-context exists
* Replaced manual comment creation with CreateComment
* Removed unnecessary code
* Improved error checking
* Small cosmetic changes
* Replaced int>string>duration parsing with int>duration parsing
* Fixed encoding issues
* Removed unused imports

Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years agoFix some tests : make coverage -> test (#2492)
Antoine GIRARD [Tue, 12 Sep 2017 05:51:12 +0000 (07:51 +0200)]
Fix some tests : make coverage -> test (#2492)

* Fix test : make coverage -> test

* Refactor integration tests to be able to run them in parallel

* Add custom local repository temp path

7 years agoFix fmt error in mailer (#2490)
Jonas Östanbäck [Tue, 12 Sep 2017 01:04:14 +0000 (03:04 +0200)]
Fix fmt error in mailer (#2490)

7 years agoFix slice out of bounds error in mailer (#2479)
Jonas Östanbäck [Mon, 11 Sep 2017 06:33:28 +0000 (08:33 +0200)]
Fix slice out of bounds error in mailer (#2479)

7 years ago* Fix fileview rendering bug #2470 (#2477)
Albert [Sun, 10 Sep 2017 20:21:26 +0000 (22:21 +0200)]
* Fix fileview rendering bug #2470 (#2477)

7 years agoHotfix for integration testing (#2473)
Thomas Boerger [Sun, 10 Sep 2017 01:54:11 +0000 (03:54 +0200)]
Hotfix for integration testing (#2473)

* Hotfix for integration testing

* Comment sqlite tests because of database locking issues