aboutsummaryrefslogtreecommitdiffstats
path: root/models
Commit message (Collapse)AuthorAgeFilesLines
* Do not allow commiting to protected branch from online editor (#1502)Lauris BH2017-05-022-2/+20
| | | | | | * Do not allow commiting to protected branch from online editor * Add editor integration tests for adding new file and not allowing to add new file to protected branch
* Additional OAuth2 providers (#1010)Willem van Dreumel2017-05-013-85/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add google+ * sort signin oauth2 providers based on the name so order is always the same * update auth tip for google+ * add gitlab provider * add bitbucket provider (and some go fmt) * add twitter provider * add facebook provider * add dropbox provider * add openid connect provider incl. new format of tips section in "Add New Source" * lower the amount of disk storage for each session to prevent issues while building cross platform (and disk overflow) * imports according to goimport and code style * make it possible to set custom urls to gitlab and github provider (only these could have a different host) * split up oauth2 into multiple files * small typo in comment * fix indention * fix indentation * fix new line before external import * fix layout of signin part * update "broken" dependency
* MySQL, Postgres integration tests in drone (#1638)Ethan Koenig2017-04-303-12/+12
| | | | | | | | | | * MySQL, Postgres integration tests in drone * Fix .drone.yml * sign drone * resign drone
* Fix broken migration v27 (#1504)Jonas Östanbäck2017-04-301-12/+30
| | | | Mirror.interval column type needed to be changed to bigint. Correct interval where the interval set is < MinInterval.
* fix bug on issue view when not login (#1624)Lunny Xiao2017-04-291-0/+15
| | | | | | | | | | * fix bug on issue view when not login * hide issue watch when not login * update the tests * fix test on issue
* Add create_at and updated_at in PR json (#1616)Jonas Östanbäck2017-04-271-0/+2
| | | | * Move new fields to object creation (use reference) * Vendor: Update SDK
* Rework SSH key management UI to add GPG (#1293)Antoine GIRARD2017-04-262-12/+51
| | | | | | | | | | | | | | | | | | | | | | | * 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
* Integration test framework (#1290)Ethan Koenig2017-04-252-6/+25
| | | | | | | | | | * Integration test framework * udpate drone sign * Formatting fixes and move router.go to routers/ * update sign for drone
* fix bug on status API (#1533)Lunny Xiao2017-04-241-16/+5
|
* Status-API (#1332)Kim "BKC" Carlbäcker2017-04-216-0/+395
|
* feat: add download count field and unit testing for attachment. (#1512)Bo-Yi Wu2017-04-203-9/+153
| | | | | | | | | | | | | | * 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>
* Add internal routes for ssh hook comands (#1471)Lunny Xiao2017-04-191-2/+4
| | | | | | | | | | | | | | | | * 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
* Sanitation fix from Gogs (#1461)Kim "BKC" Carlbäcker2017-04-132-5/+5
| | | | | | | | | | | | | | | | * Santiation fix from Gogs * Linting * Fix build-errors * still not working * Fix all the things! * gofmt * Add code-injection checks
* Repo size in admin panel (#1482)Jonas2017-04-115-0/+113
| | | | | | | | | | | | | | | * 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
* Mirror sync interval specified as duration string (#1407)Jonas2017-04-084-4/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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()
* refactor update ssh key use time (#1466)Lunny Xiao2017-04-071-0/+14
|
* fix migrate failed and org dashboard failed on MSSQL database (#1448)Lunny Xiao2017-04-061-4/+21
|
* Corrected Mirror.NextUpdate not set (#1388)Jonas2017-04-051-1/+1
|
* fixes pull request hanging indefinitely when it contains normal and LFS file ↵Kuba Tyszko2017-04-031-1/+0
| | | | pointers (#1425)
* Merge pull request #1410 from andreynering/notification/issue-watchAndrey Nering2017-04-015-8/+195
|\ | | | | [Notifications Step 6] Per issue/PR watch/unwatch
| * Improve tests a littleAndrey Nering2017-04-011-0/+9
| |
| * Code style fixesAndrey Nering2017-04-011-2/+3
| |
| * Add unit tests for issue_watchAndrey Nering2017-03-302-0/+57
| |
| * Use variables for timesAndrey Nering2017-03-301-6/+14
| |
| * Add copyright headersAndrey Nering2017-03-301-0/+4
| |
| * Fix lintAndrey Nering2017-03-291-0/+2
| |
| * Add updated_unix column on issue_watchAndrey Nering2017-03-291-1/+12
| |
| * Consider issue_watchers while sending notificationsAndrey Nering2017-03-292-8/+42
| |
| * Add watch button on issueAndrey Nering2017-03-291-0/+40
| |
| * Create issue_watch tableAndrey Nering2017-03-292-0/+21
| |
* | Fix "Error: No issue number specified" when pushing (#1393)agrn2017-03-311-2/+2
| | | | | | | | | | | | * Fix "Error: No issue number specified" when pushing * update pr
* | Add length check for the return string (#1420)Mura Li2017-03-311-1/+3
|/ | | | | | | | * Add length check for the return string * Differentiate error paths and logging messages * Rectify error message
* refactor: remove workaround after the golang 1.7 release. (#1349)Bo-Yi Wu2017-03-291-19/+4
| | | | | | | | | | | | | | * refactor: remove workaround after the golang 1.7 release. * remove unused import. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * refactor: Add remove function. * refactor: rename * refactor: update build flag
* rewrite pre-commit, post-commit and options hooks (fixes #1250) (#1257)Philippe Kueck2017-03-233-6/+96
| | | | | | | | | | | | | | * issue #1250, replace {pre,post}-receive and update hooks with a single shell script that does not require custom hooks to be a sh-script * issue #1250, make script posix compilant * v23, add migration script to update {pre,post}-receive and update hooks * migration: use a more common name and rename v23 to v26 to avoid conflicts * gofmt'ed and added copyright header * fix SyncRepositoryHooks to also sync wiki repos
* fix migration failed when authorized_keys is not exist (#1180)Lunny Xiao2017-03-231-0/+5
|
* Cleaner IMO (#1361)Kim "BKC" Carlbäcker2017-03-221-10/+40
|
* GPG commit validation (#1150)Antoine GIRARD2017-03-222-0/+302
| | | | | | | | | | | | * GPG commit validation * Add translation + some little fix * Move hash calc after retrieving of potential key + missing translation * Add some little test
* Run "make fmt" with go-1.6 (#1333)Sandro Santilli2017-03-216-18/+17
|
* fix delete user failed on sqlite (#1321)Lunny Xiao2017-03-202-6/+6
|
* fix wiki bugs (#1294)Lunny Xiao2017-03-201-1/+5
|
* Show user OpenID URIs in their profile (#1314)Sandro Santilli2017-03-205-0/+127
|
* fix gpg wrong column typesLunny Xiao2017-03-203-2/+54
|
* feat: Only use issue and wiki on repo. (#1297)Bo-Yi Wu2017-03-181-1/+1
|
* Login via OpenID-2.0 (#618)Sandro Santilli2017-03-176-0/+162
|
* fix wrong log when push to a new branch (#1220)Lunny Xiao2017-03-171-1/+1
|
* Send notifications to partecipants in issue comments (#1217)Sandro Santilli2017-03-165-4/+80
| | | | | | | | | | | | * Send notifications to partecipants in issue comments Closes #1216 Includes test (still failing) * Do not include "labelers" to participants Fix test to expect what GetParticipants return
* Implement GPG api (#710)Antoine GIRARD2017-03-164-0/+373
| | | | | | | | | | * Implement GPG API * Better handle error * Apply review recommendation + simplify database operations * Remove useless comments
* Batch updates for issues (#926)Ethan Koenig2017-03-152-0/+26
|
* Fix typos in models/ and modules/ (#1248)Ethan Koenig2017-03-158-15/+15
|
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-159-59/+56
|