Commit Graph

5738 Commits

Author SHA1 Message Date
Konrad Langenberg
fe8181af73 Simplified checking for open dependencies
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-24 16:29:25 +02:00
Konrad Langenberg
837c917798 Moved error check before range
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-24 16:27:50 +02:00
Konrad Langenberg
e58f703b08 gofmt
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-24 13:29:45 +02:00
Konrad Langenberg
ae522299b9 Fixed Lint
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-24 13:25:55 +02:00
Konrad Langenberg
5fde62ba3a Re-Added Migration
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-24 13:25:27 +02:00
Konrad Langenberg
8b4a48c4bc Merge branch 'master' of https://github.com/go-gitea/gitea
Signed-off-by: Konrad <konrad@kola-entertainments.de>

# Conflicts:
#	models/migrations/migrations.go
#	models/migrations/v42.go
2017-09-24 13:20:34 +02:00
Jonas Franz
fa6d7c7b99 Automatic update of translations (#2585)
* Adding build step for uploading translations

* Fixing crowdin project name

* Using crowdin plugin

* Changing secret name

* Adding pull: true
2017-09-23 19:08:42 +03:00
Konrad Langenberg
8207f32be6 Added migration
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 16:19:59 +02:00
Konrad Langenberg
1b8b2fc17d Simplified checks for open dependencies
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 16:11:16 +02:00
Konrad Langenberg
c1ea3f588d Simplified listing all blocking & blocked by issues in one query
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 16:08:20 +02:00
Konrad Langenberg
8debb0a272 fixed typo
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 15:24:43 +02:00
Lunny Xiao
2ef8b8bcbe fix go get subpackage bug (#2584)
* fix go get subpackage bug

* merge the duplicated funtions
2017-09-23 16:24:24 +03:00
Konrad Langenberg
d9aea3d646 fixed typo
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 15:24:03 +02:00
Konrad Langenberg
9b467a309e Simplified checking of open dependencies left
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 15:20:58 +02:00
Konrad Langenberg
163a0a3822 Simplified checking of open dependencies into one query
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 15:18:29 +02:00
Konrad Langenberg
fe4bcc02f3 fixed display issue with comments
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 15:01:47 +02:00
Konrad Langenberg
f707d54598 simplified depExists method
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 14:59:31 +02:00
Konrad Langenberg
1f8ce67366 added error check for dependency exists function
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 14:29:41 +02:00
Konrad Langenberg
0eaf0404cc Switched to constants for dependency type
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 14:25:14 +02:00
Konrad Langenberg
bccb37c08c Beautified creation of new dependency
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 14:14:41 +02:00
Konrad Langenberg
301f247efe Fixed compatibility with newer xorm version
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-23 14:08:39 +02:00
Lauris BH
2db424c3f1 Fix broken migration to add can_push field back to table (#2574) 2017-09-23 16:45:41 +08:00
Ethan Koenig
ccff57103a Automatically regenerate indexer for incompatible versions (#2524) 2017-09-23 00:30:56 +03:00
Lauris BH
28f4de205f Fix drone for tags (#2573) 2017-09-22 18:34:02 +03:00
Morlinest
9a75a5d59b Use custom type and constants to hold order by options (#2572) 2017-09-22 15:53:21 +03:00
Morlinest
ca68a75b5b 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
2017-09-22 13:51:16 +03:00
Jonas Franz
b4b0280e33 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>
2017-09-22 14:17:31 +08:00
Lunny Xiao
1be2b4a262 fix readme view bug (#2566) 2017-09-21 21:24:19 +03:00
David Schneiderbauer
1eedd983ea 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>
2017-09-21 10:43:26 +03:00
Lunny Xiao
0d80af649a 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
2017-09-21 13:20:14 +08:00
Rémi Saurel
66bc0ac251 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>
2017-09-21 12:29:45 +08:00
silverwind
1fbfccb4fc 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
2017-09-21 11:35:11 +08:00
Ethan Koenig
fa1cbc2896 Always run fmt check in CI (#2546) 2017-09-21 09:34:32 +08:00
Lauris BH
6718ea6ff1 Fix can_push value to false in protected_branch (#2560) 2017-09-20 17:52:23 +03:00
Lauris BH
6f380a22a4 Remove go version check for make fmt (#2558) 2017-09-20 08:58:29 -03:00
Morlinest
80b430d7c0 Fix /api/repo/search integration tests (#2550) 2017-09-20 12:24:38 +03:00
Lauris BH
7a0297819d 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
2017-09-20 13:26:49 +08:00
Jorge Maldonado Ventura
8b6236d67b 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)
2017-09-20 07:20:11 +03:00
Ethan Koenig
acecedc410 Use named ActionType constants in template helper (#2545) 2017-09-20 09:22:42 +08:00
David Schneiderbauer
4eed85db56 add @daviian as maintainer (#2552)
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
2017-09-19 23:03:31 +02:00
Ethan Koenig
a1ed239bf2 Fix fmt errors (#2544) 2017-09-19 19:44:49 +08:00
Lauris BH
23645fe05f 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
2017-09-19 11:37:03 +03:00
Ethan Koenig
4cb9394a97 Fix lint errors (#2547) 2017-09-19 11:08:30 +03:00
Jorge Maldonado Ventura
d155d0e665 Make basic functionality work without JavaScript (#2541) 2017-09-19 01:03:01 +02:00
Jonas Franz
566e8ecce0 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
2017-09-18 22:52:20 +08:00
Ethan Koenig
6c6533fb31 Make integration tests more user-friendly (#2536) 2017-09-18 16:35:42 +08:00
Konrad Langenberg
e1779569f5 fixed lint
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-17 22:23:52 +02:00
Konrad Langenberg
cf3988ef52 fixed lint
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-17 22:23:12 +02:00
Konrad Langenberg
c1ee648998 fixed template issue, resolved conflicts
Signed-off-by: Konrad <konrad@kola-entertainments.de>
2017-09-17 21:53:28 +02:00
Konrad
3417d871d9 Merge remote-tracking branch 'origin/master' 2017-09-17 21:41:14 +02:00