Commit graph

5199 commits

Author SHA1 Message Date
Jonas Östanbäck
9a8ca3e877 Fix broken migration v27 ()
Mirror.interval column type needed to be changed to bigint.
Correct interval where the interval set is < MinInterval.
2017-04-30 10:08:16 +08:00
Peter Dave Hello
1562e9ab70 Refactor Dockerfile
1. Use `apk -U --no-cache add` instead of `apk update` + `apk add` +
manually cache clean up.
2. Separate package installation and user, group setup, the combination
to reduce a docker image layer didn't bring benefits here, only makes
Dockerfiles more complex.
2017-04-29 21:05:25 +02:00
Lunny Xiao
e31c02d4bf fix bug on issue view when not login ()
* fix bug on issue view when not login

* hide issue watch when not login

* update the tests

* fix test on issue
2017-04-29 13:52:25 +08:00
Lunny Xiao
61b08b5c01 bug fixed for API to get user's repos ()
* bug fixed for API to get user's repos

* add tests and fix another place

* test user2 since user1 has no repos
2017-04-29 12:33:25 +08:00
Kim "BKC" Carlbäcker
cebe3a6b2f Revert "Set VERSION from git once, in a variable ()"
This reverts commit 410af6971b.
2017-04-28 20:28:38 +02:00
Lunny Xiao
91d64656a4 update git which fixes () 2017-04-28 16:20:58 +02:00
Peter Dave Hello
18f46fd7cf [ci skip] Add "Table of Contents" in CONTRIBUTING.md () 2017-04-28 21:56:28 +08:00
Lunny Xiao
fca7ddc6ea improve integration test to resue models/fixtures and store git repos with tests ()
* improve integration test to resue models/fixtures and store git repos with source

* use gitea-integration-meta dir instead .tar.gz and cleanup every before every test

* fix import package name
2017-04-28 21:23:28 +08:00
Antoine GIRARD
431b26f6d7 Handle display of GPG key without end date () 2017-04-28 08:44:58 +08:00
Lunny Xiao
6853bf323a fix () 2017-04-27 20:15:56 +08:00
Lunny Xiao
e3c2963222 remove unused vendor packages () 2017-04-27 18:10:34 +08:00
Jonas Östanbäck
e4a0a04829 Add create_at and updated_at in PR json ()
* Move new fields to object creation (use reference)
 * Vendor: Update SDK
2017-04-27 17:29:46 +08:00
Antoine GIRARD
8371f94d06 Rework SSH key management UI to add GPG ()
* Rework SSH key management UI to add GPG

* Add more detail to gpg key display

* Update CHANGELOG.md

* Implement deletion UI

* Implement adding gpg UI

* Various fixes

- Fix duplicate entry in locale
- Re-generate hash before verification since they are consumed

* Add missing translation

* Split template

* Catch not found/verified email error
2017-04-26 21:10:43 +08:00
Sandro Santilli
b7da5a6cb7 Fix service description in Debian init file () 2017-04-25 19:30:42 +02:00
Ethan Koenig
c58708d3ee Integration test framework ()
* Integration test framework

* udpate drone sign

* Formatting fixes and move router.go to routers/

* update sign for drone
2017-04-25 15:24:51 +08:00
Lunny Xiao
3012971e92 fix bug on status API () 2017-04-24 22:33:54 +08:00
Antoine GIRARD
eb1075dd4c Check if missing/modified/unused deps in vendor and fix errors ()
* Check if missing deps in vendor

This will catch import from other repos. (maybe by auto-import)

* Remove github.com/smartystreets unused deps

* Remove github.com/boltdb/bolt unused dep

* Fetch github.com/go-xorm/core + sync gopkg.in/ldap.v2/ldap.go

* Auto-install govendor + reinstall github.com/boltdb/bolt needed by vendor/github.com/blevesearch/bleve/index/store/boltdb

* Update go-xorm/xorm to a5cb21 in vendor.json

* Use a custom repo for implementing change to bolt dep.

* Switching bolt to github.com/go-gitea/bolt

* Switching bolt to github.com/go-gitea/bolt (fork version)

* change the drone sign
2017-04-24 22:31:46 +08:00
Morlinest
fcc7cdab11 Fix markdown rendering () 2017-04-24 12:18:36 +08:00
Morlinest
5b8fe1e181 Do not show empty collaborators segment () 2017-04-23 08:55:02 +08:00
Kim "BKC" Carlbäcker
4bea219128 Status-API () 2017-04-21 19:32:31 +08:00
Lunny Xiao
52627032bc Add markup package to prepare for org markup format () 2017-04-21 09:01:08 +02:00
Lunny Xiao
f0db3da713 fix go get sub package and add domain on installation to let go get work defaultly ()
* fix go get sub package and add domain on installation to let go get work defaultly

* fix import sequence

* fix .git problem
2017-04-21 10:43:29 +08:00
Lunny Xiao
42072783c9 support health check via / and fix () 2017-04-20 20:14:21 +08:00
Lauris BH
bb14c97d40 Fix empty file download () 2017-04-20 10:38:56 +08:00
Bo-Yi Wu
fa2a513c62 feat: add download count field and unit testing for attachment. ()
* feat: add download count field and unit testing.

* fix: unit testing

* refactor: improve testing.

* fix: update comment

* add default value.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-04-20 10:31:31 +08:00
Lunny Xiao
a2d365c81f fix ssh hangs caused by () 2017-04-19 19:16:36 +08:00
Jonas
f995bcc87a Add repo mirror sync API endpoint ()
* API: Add repo mirror sync

* Correct error message

* Change http status to 200
2017-04-19 19:09:49 +08:00
Lunny Xiao
2eeae84cbd Add internal routes for ssh hook comands ()
* add internal routes for ssh hook comands

* fix lint

* add comment on why package named private not internal but the route name is internal

* add comment above package private why package named private not internal but the route name is internal

* remove exp time on internal access

* move routes from /internal to /api/internal

* add comment and defer on UpdatePublicKeyUpdated
2017-04-19 11:45:01 +08:00
Lauris BH
f42ec6120e Better URL validation ()
* Add correct git branch name validation

* Change git refname validation error constant name

* Implement URL validation based on GoLang url.Parse method

* Backward compatibility with older Go compiler

* Add git reference name validation unit tests

* Remove unused variable in unit test

* Implement URL validation based on GoLang url.Parse method

* Backward compatibility with older Go compiler

* Add url validation unit tests
2017-04-19 11:02:20 +08:00
Antoine GIRARD
941281ae12 Use MAINTAINERS file in repository in CONTRIBUTING ()
* Use MAINTAINERS file in repository because teams are not publicly available

* Use relative link
2017-04-18 08:56:28 +08:00
Antoine GIRARD
c764a542c0 Adding @sapk to MAINTAINERS () 2017-04-16 20:51:38 +08:00
Antoine GIRARD
cf91cfb993 Migrate WatchInfo struct to api ()
* Remove WatchInfo and link to api struct

* Add vendor temporary update

* Return to gitea vendor source
2017-04-16 20:51:04 +08:00
silverwind
237270ef50 Orgs: fix org page title when full name is not defined () 2017-04-15 10:02:46 +08:00
Kim "BKC" Carlbäcker
d409d3ab57 Sanitation fix from Gogs ()
* Santiation fix from Gogs

* Linting

* Fix build-errors

* still not working

* Fix all the things!

* gofmt

* Add code-injection checks
2017-04-13 10:52:24 +08:00
Michael de Wit
21290d4e80 Optimize and fix autolink function () ()
* Optimize and fix autolink function ()

* Fix bug in autolink recursive fallback function
2017-04-12 16:01:08 +08:00
Bo-Yi Wu
22295944df refactor: show command help message. () 2017-04-12 15:44:54 +08:00
Jonas
be6edaddcb Repo size in admin panel ()
* Implementation of the feature to view repository size in admin panel
 * Move GetRepoSize to git module
 * Repository.RepoSize -> Repository.Size
 * RepoSize -> Size in template
 * Redo a few bits and pieces
 * Update size when syncing mirror or forking
 * Remove GetRepoSize
 * Changed fatal errors to error message

* Copy migration code from Gogs

* make fmt
2017-04-11 21:30:15 +08:00
Jonas
54f0293f0a Mirror sync interval specified as duration string ()
* Sync interval specifed as duration string

* Changed mirror interval text

* make fmt

* Add MinInterval for mirror sync

* Use duration internally

* Changed min default to 10m

* make fmt

* Incorrect default

* Removed defaults in MustDuration()

* Add Mirror interval migration

* Default values corrected

* Use transaction during migration

* Change http 500 to page with error message

* Cleanup session.commit()
2017-04-08 23:27:26 +08:00
Mura Li
edbb9eefd6 Fix race when running commands with timeout ()
Update vendored module code.gitea.io/git
2017-04-07 19:23:39 -07:00
Lunny Xiao
5c0bee9b20 refactor update ssh key use time () 2017-04-07 17:40:38 -07:00
Antoine GIRARD
d9db188274 Fix () 2017-04-07 22:50:40 +08:00
Jonas
e0df611cbc Autofocus on 2fa passcode fields ()
* Autofocus on 2fa passcode field

* Autofocus on 2fa scratch code field
2017-04-07 06:07:37 -07:00
Lunny Xiao
5acfc7c4bc fix migrate failed and org dashboard failed on MSSQL database () 2017-04-06 18:47:25 -07:00
Lunny Xiao
cf6699fb4f fix gpg API panic when no verification ()
* fix gpg API panic when no verification

* fix if condition
2017-04-06 18:40:05 -07:00
Morlinest
cbeeaa1b11 Fix and simplify repo branches UI () 2017-04-06 23:33:57 +08:00
Sandro Santilli
410af6971b Set VERSION from git once, in a variable () 2017-04-06 23:32:28 +08:00
Damien Gaignon
a78a0266c4 Correct broken unaligned load/store in armv5 ()
Update vendor github.com/boltdb/bolt to take care of the issue .
2017-04-05 18:50:33 -07:00
Patrick G
d800305b34 Commit search appearence fixes ()
* Fix button text to be consisstent with rest of UI

* Make all commits checkbox look nicer
2017-04-05 18:32:59 -07:00
Bo-Yi Wu
0cee52e0d3 fix: remove str2html from org full name ()
* fix: remove str2html for security issue.

* fix: update
2017-04-05 18:31:31 -07:00
Jonas
e7493e953f Corrected Mirror.NextUpdate not set () 2017-04-05 17:56:45 -07:00