David Schneiderbauer
0b3ea42847
hide issues from org private repos w/o team assignment ( #4034 )
2018-06-21 12:00:13 -04:00
Alexey Terentyev
46d19c4676
Fix topics addition (Another solution) ( #4031 ) ( #4258 )
...
* Added topics validation, fixed repo topics duplication (#4031 )
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Added tests
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Fixed fmt
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Added comments to exported functions
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Deleted RemoveDuplicateTopics function
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Fixed messages
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Added migration
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* fmt migration file
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* fixed lint
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Added Copyright
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Added query solution for duplicates
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Fixed migration query
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Changed RegExp. Fixed migration
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* fmt migration file
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Fixed test for changed regexp
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Removed validation log messages
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Renamed migration file
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Renamed validate function
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
2018-06-21 17:09:46 +08:00
techknowlogick
d84da8fe65
Change parsing of postgresql settings ( #4275 )
...
* Change parsing of postgresql settings
Fix #4200
* Add copyright
* update postgresql connection string
* add tests
2018-06-20 08:06:01 +03:00
David Schneiderbauer
a93f13849c
Fix not removed watches on unallowed repositories ( #4201 )
2018-06-19 15:44:33 -04:00
Lauris BH
2b8c0bb5e2
Delete reactions added to issues and comments when deleting repository ( #4232 )
2018-06-12 13:02:51 -04:00
Lunny Xiao
406031d3cc
fix bug when deleting a release ( #4207 )
2018-06-12 12:44:17 -04:00
Lunny Xiao
da898d4066
fix delete comment bug ( #4216 )
2018-06-11 18:54:30 -04:00
Christopher Medlin
b5f61f1d15
Improve logging for e-mail and OpenID already in use errors ( #4174 )
2018-06-08 14:09:10 -04:00
Magnus Lindvall
cdb9478774
LDAP Public SSH Keys synchronization ( #1844 )
...
* Add LDAP Key Synchronization feature
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Add migration: add login source id column for public_key table
* Only update keys if needed
* Add function to only list pubkey synchronized from ldap
* Only list pub ssh keys synchronized from ldap. Do not sort strings as ExistsInSlice does it.
* Only get keys belonging to current login source id
* Set default login source id to 0
* Some minor cleanup. Add integration tests (updete dep testify)
2018-05-24 07:59:02 +03:00
Alexey Terentyev
b908ac9fab
Added repository search ordered by stars or forks. Forks column in admin repo list. ( #3969 )
...
* Added repository search order by stars or forks.
Added Forks column to admin repository list.
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Renamed search repo template
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
2018-05-24 09:03:42 +08:00
Lunny Xiao
4ec8551490
fix webhook bug of response info is not displayed in UI ( #4000 )
2018-05-23 14:12:02 +08:00
奶爸
d94472e89b
fix #4003 ( #4004 )
...
Webhook and hook_task not cleaned up when delete repository
2018-05-21 21:30:30 +08:00
Lunny Xiao
6bdc556b7f
Fix some webhooks bugs ( #3981 )
...
* fix some webhooks bugs
* update vendor
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix test
* fix clearlabels
* fix pullrequest webhook bug fix #3492
* update release webhook description
* remove unused code
* fix push webhook in pull request
* small changes
2018-05-21 10:28:29 +08:00
Jonas Franz
951309f76a
Add support for FIDO U2F ( #3971 )
...
* Add support for U2F
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add vendor library
Add missing translations
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Minor improvements
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add U2F support for Firefox, Chrome (Android) by introducing a custom JS library
Add U2F error handling
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add U2F login page to OAuth
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Move U2F user settings to a separate file
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add unit tests for u2f model
Renamed u2f table name
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix problems caused by refactoring
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add U2F documentation
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Remove not needed console.log-s
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add default values to app.ini.sample
Add FIDO U2F to comparison
Signed-off-by: Jonas Franz <info@jonasfranz.software>
2018-05-19 17:12:37 +03:00
Lunny Xiao
24941a1046
Add more webhooks support and refactor webhook templates directory ( #3929 )
...
* add more webhook support
* move hooks templates to standalone dir and add more webhooks ui
* fix tests
* update vendor checksum
* add more webhook support
* move hooks templates to standalone dir and add more webhooks ui
* fix tests
* update vendor checksum
* update vendor
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* load attributes when created release
* update comparsion doc
2018-05-16 22:01:55 +08:00
Lauris BH
ff3971b830
Add LDAP integration tests ( #3897 )
...
* Add LDAP service for tests
* Add LDAP login source and test user sign-in
* Add checks to test if user data is correct
* Add LDAP user sync test
* Add failed user sign-in test
2018-05-11 15:55:32 +08:00
Lauris BH
382e7276b8
Fix multiple asssingee table migration ( #3931 )
2018-05-10 09:18:01 +08:00
kolaente
95f2e2b57b
Multiple assignees ( #3705 )
2018-05-09 19:29:04 +03:00
Travis Parker
73370b8cf7
consistent IsOverdue field name capitalization ( #3909 )
...
Milestone.IsOverDue vs Issue.IsOverdue, the former was also causing the
milestone list page template to fail to render if any milestones have a
due date assigned.
Signed-off-by: Travis J Parker <travis.parker@gmail.com>
2018-05-07 12:50:27 +03:00
kolaente
1fdf560678
Added user language setting ( #3875 )
...
* Added user language setting
* Added translation string for setting
* Fixed import order + typo
* improved checking if the user has a language saved in the db
* The current saved language is now set a default inside the dropdown
* fmt
* When a user signs in and doesn't have a language saved, the current browser language is saved
* updated gitea-sdk
* Merge branch 'master' of https://github.com/go-gitea/gitea into save-user-language
# Conflicts:
# models/migrations/migrations.go
# models/migrations/v62.go
* Made tests work again
* trigger CI
* trigger CI
* fmt
* re-trigger that FUCKING CI SO IT REALLY PICKS UP THE LATEST COMMIT ISTEAD OF PREDENDING TO DO SO
* re-trigger that FUCKING CI SO IT REALLY PICKS UP THE LATEST COMMIT ISTEAD OF PREDENDING TO DO SO
* When loggin in, only the language col gets updated instead of everything
2018-05-05 08:28:30 +08:00
Lauris BH
1e1ece8f3d
Do not allow to reuse TOTP passcode ( #3878 )
2018-05-02 18:02:02 +03:00
Bo-Yi Wu
c58e1e437b
test: reduce testing time. ( #3885 )
2018-05-02 21:56:19 +08:00
Lauris BH
9495429982
Add "error" as reserved username ( #3882 )
2018-05-02 11:06:31 +03:00
Lauris BH
5ffdf9388b
Fix to use only needed columns from tables to get repository git paths ( #3870 )
2018-05-02 09:10:19 +03:00
kolaente
1a97030017
Issue due date ( #3794 )
...
* Started adding deadline to ui
* Implemented basic issue due date managing
* Improved UI for due date managing
* Added at least write access to the repo in order to modify issue due dates
* Ui improvements
* Added issue comments creation when adding/modifying/removing a due date
* Show due date in issue list
* Added api support for issue due dates
* Fixed lint suggestions
* Added deadline to sdk
* Updated css
* Added support for adding/modifiying deadlines for pull requests via api
* Fixed comments not created when updating or removing a deadline
* update sdk (will do properly once go-gitea/go-sdk#103 is merged)
* enhanced updateIssueDeadline
* Removed unnessecary Issue.DeadlineString
* UI improvements
* Small improvments to comment creation
+ ui & validation improvements
* Check if an issue is overdue is now a seperate function
* Updated go-sdk with govendor as it was merged
* Simplified isOverdue method
* removed unessecary deadline to 0 set
* Update swagger definitions
* Added missing return
* Added an explanary comment
* Improved updateIssueDeadline method so it'll only update `deadline_unix`
* Small changes and improvements
* no need to explicitly load the issue when updating a deadline, just use whats already there
* small optimisations
* Added check if a deadline was modified before updating it
* Moved comment creating logic into its own function
* Code cleanup for creating deadline comment
* locale improvement
* When modifying a deadline, the old deadline is saved with the comment
* small improvments to xorm session handling when updating an issue deadline
+ style nitpicks
* style nitpicks
* Moved checking for if the user has write acces to middleware
2018-05-01 22:05:28 +03:00
Tris Forster
85d14cc229
Symlink icons ( #1416 ) ( #3826 )
...
* Updated vendor code for code.gitea.io/git
* Display symlinks correctly for files and directories
* Added symlink tests
* Applied silverwinds stylesheet patch
Signed-off-by: Tris Forster <tris.git@shoddynet.org>
2018-05-01 10:04:36 +03:00
Lauris BH
181b3a8f09
Fix path cleanup in multiple places ( #3871 )
2018-05-01 09:46:04 +08:00
Ethan Koenig
7ea4bfc561
API endpoint for testing webhook ( #3550 )
...
* API endpoint for testing webhook
* Empty commit to rerun CI
2018-04-29 14:21:33 +08:00
Lauris BH
5a62eb30df
Store OAuth2 session data in database ( #3660 )
...
* Store OAuth2 session data in database
* Rename table to `oauth2_session` and do not skip xormstorage initialization error
2018-04-29 09:09:24 +03:00
Jonas Franz
8d5f58d834
Shows total tracked time in issue and milestone list ( #3341 )
...
* Show total tracked time in issue and milestone list
Show total tracked time at issue page
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Optimizing TotalTimes by using SumInt
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fixing wrong total times for milestones caused by a missing JOIN
Adding unit tests for total times
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Logging error instead of ignoring it
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Correcting spelling mistakes
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Change error message to a short version
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add error handling to TotalTimes
Add variable for totalTimes
Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Introduce TotalTrackedTimes as variable of issue
Load TotalTrackedTimes by loading attributes of IssueList
Load TotalTrackedTimes by loading attributes of single issue
Add Sec2Time as helper to use it in templates
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fixed test + gofmt
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Load TotalTrackedTimes via MilestoneList instead of single requests
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add documentation for MilestoneList
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add documentation for MilestoneList
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix test
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Change comment from SQL query to description
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix unit test by using int64 instead of int
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix unit test by using int64 instead of int
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Check if timetracker is enabled
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix test by enabling timetracking
Signed-off-by: Jonas Franz <info@jonasfranz.de>
2018-04-29 13:58:47 +08:00
kolaente
fd8d6405c8
Fix only updated_unix when adding a comment ( #3855 )
2018-04-29 12:48:14 +08:00
Morgan Bazalgette
320c9817bc
Don't force due date to current time ( #3830 )
...
Fixes #3827
2018-04-23 13:55:03 +08:00
Lunny Xiao
bec69f702b
Add topic support ( #3711 )
...
* add topic models and unit tests
* fix comments
* fix comment
* add the UI to show or add topics for a repo
* show topics on repositories list
* fix test
* don't show manage topics link when no permission
* use green basic as topic label
* fix topic label color
* remove trace content
* remove debug function
2018-04-11 10:51:44 +08:00
Michael Kuhn
f321980a32
Fix typo in deleteUser ( #3781 )
...
num_watches was used where num_stars should have been used.
2018-04-10 20:39:01 +08:00
Bwko
8ee45eb614
Add EnableTimetracking option to app settings ( #3719 )
2018-04-09 23:15:32 +08:00
Evan Sherwood
6b6c414bc3
Enhance healthcheck for database connectivity ( #3754 )
...
Modify the call to ping the database to fail gracefully if the
database has not yet been configured by the end user, such as
after a clean install. This allows /healthcheck to return a 200
with a modified status message instead of causing a PANIC.
Signed-off-by: Evan Sherwood <evan@sherwood.io>
2018-04-04 17:34:27 +08:00
Jonas Franz
3e06490d38
Add Size column to attachment ( #3734 )
...
* Add size column to attachment
Migrate attachments by calculating file sizes
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Calculate attachment size on creation
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Log error instead of returning error
Signed-off-by: Jonas Franz <info@jonasfranz.software>
2018-03-31 09:10:44 +08:00
Lunny Xiao
d877bf7e15
Add config option to enable or disable log executed SQL ( #3726 )
...
* add config option to enable or disable log executed SQL
* rename ShowSQL to LogSQL
2018-03-30 22:49:46 +08:00
Lunny Xiao
45d1fc03cb
fix go vet error ( #3740 )
2018-03-30 07:21:27 +08:00
Allen Wild
15c6bb500b
Add repository setting to enable/disable health checks ( #3607 )
...
New Feature:
* Repository struct field for IsFsckEnabled (default true of course)
* Admin Settings section on repo options page, accessible only by
admin users
Possible Enhancements:
* There's no way to force running health checks on all repos
regardless of their IsFsckEnabled setting. This would be useful if
there were an admin API or dashboard button to run fsck immediately.
Issue: https://github.com/go-gitea/gitea/issues/1712
Signed-off-by: Allen Wild <allenwild93@gmail.com>
2018-03-27 22:13:20 +08:00
Bwko
321cc2a3d0
Set default branchname on first push ( #3715 )
2018-03-25 21:00:07 +08:00
Chri-s
9350ba7947
Add protected branch whitelists for merging ( #3689 )
...
* Add database migrations for merge whitelist
* Add merge whitelist settings for protected branches
* Add checks for merge whitelists
2018-03-25 13:01:32 +03:00
Jonas Franz
43fc430c07
Improve release page UI ( #3693 )
...
* Improve release page ui by adding size
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add documentation to a.MustSize()
Signed-off-by: Jonas Franz <info@jonasfranz.software>
2018-03-19 18:06:00 +02:00
Lunny Xiao
9e5d0a09eb
Global code search support ( #3664 )
...
* add global code search on explore
* fix bug when no anyone public repos
* change the icon
* fix typo and add UnitTypeCode check for login non-admin user
* fix ui description when no match
2018-03-16 22:04:33 +08:00
Chri-s
a2a49c93c7
Added checks for protected branches in pull requests ( #3544 )
...
* Added checks for protected branches in pull requests
Signed-off-by: Christian Wulff <NChris@posteo.net>
* Moved check for protected branch into new function CheckUserAllowedToMerge
Signed-off-by: Christian Wulff <NChris@posteo.net>
* Removed merge conflict lines from last commit
Signed-off-by: Christian Wulff <NChris@posteo.net>
* Explicit check for error type in ViewIssue
Signed-off-by: Christian Wulff <NChris@posteo.net>
2018-03-13 11:46:14 +08:00
Lauris BH
c0d41b1b77
Add label descriptions ( #3662 )
...
* Add label descriptions
* Add default descriptions to label template
2018-03-13 10:03:55 +08:00
Lauris BH
de8a091767
Fix MySQL and PostgreSQL column drop SQL ( #3649 )
2018-03-09 09:20:57 +08:00
Lauris BH
dc4afef07f
Fix column removal in MSSQL ( #3638 )
...
* Fix column removal in MSSQL
* Use xorm session in MSSQL drop column operations
* Add transaction as MSSQL alter table is transactional
2018-03-07 14:44:12 +08:00
Jonas Franz
9a5e628a7e
Add Attachment API ( #3478 )
...
* Add Attachment API
* repos/:owner/:repo/releases (add attachments)
* repos/:owner/:repo/releases/:id (add attachments)
* repos/:owner/:repo/releases/:id/attachments
* repos/:owner/:repo/releases/:id/attachments/:attachment_id
Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Add unit tests for new attachment functions
Fix comments
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* fix lint
* Update vendor.json
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* remove version of sdk
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix unit tests
Add missing license header
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add CreateReleaseAttachment
Add EditReleaseAttachment
Add DeleteReleaseAttachment
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add filename query parameter for choosing another name for an attachment
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix order of imports
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Restricting updatable attachment columns
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* gofmt
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Update go-sdk
Replace Attachments with Assets
Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Update go-sdk
Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Updating go-sdk and regenerating swagger
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add missing file of go-sdk
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Change origin of code.gitea.io/sdk to code.gitea.io/sdk
Update code.gitea.io/sdk
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Update swagger
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Update updateAttachment
2018-03-06 09:22:16 +08:00
Morgan Bazalgette
b730498f02
Don't write to log NoCommitterAccount ( #3621 )
...
* Don't write to log NoCommitterAccount
It's way too verbose, and the information is also printed to the user
already. Fixes #3602 .
* ignore err only if it's a ErrUserNotExist
* Replace with IsErrUserNotExist
2018-03-04 10:45:01 +08:00
Bo-Yi Wu
78b54b49fa
fix: Add feed for organization ( #3594 )
...
* feat: Add feed for organization
* fix: testing
* fix: testing
* fix: testing
* fix: testing
2018-03-03 13:21:16 +08:00
Allen Wild
8606d9f5bc
Add admin dashboard option to run health checks ( #3606 )
...
There's one for git gc, why not git fsck too?
Also add a couple more trace logs to GitFsck to see progress
2018-03-02 11:09:43 +02:00
Wendell Sun
d2d0aea8a1
Fix the protected branch panic issue ( #3567 )
2018-02-23 18:10:03 +08:00
Wendell Sun
2d1c5c3756
Fix remove team member issue ( #3566 )
...
Put sess.Commit() out of the RemoveOrgUser function
Add an empty line to separate import packages
2018-02-23 16:42:02 +08:00
Wendell Sun
19bf4ddf80
Fix query protected branch bug ( #3563 )
...
Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
2018-02-22 20:14:15 -06:00
Bo-Yi Wu
845ba9d153
fix: if Mirrors repo no content is fetched, updated time should not b… ( #3551 )
...
* fix: if Mirrors repo no content is fetched, updated time should not be changed
* fix: sync update time from mirror repo.
* fix: one single session.
* update comment.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2018-02-22 18:27:09 -06:00
Bo-Yi Wu
04b3e8cbdc
refactor: reduce sql query in retrieveFeeds ( #3547 )
2018-02-21 18:55:34 +08:00
Ethan Koenig
d27d720f05
Use unique temp dirs in unit tests ( #3494 )
...
* Use unique temp dirs in unit tests
* Remove temp dirs after tests run
* os.RemoveAll -> removeAllWithRetry
2018-02-21 01:38:52 -06:00
Wendell Sun
2f5c1ba1db
Bug fix for repo releases sorted ( #3522 )
...
Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
Use TimeStampNow function
2018-02-21 09:38:03 +08:00
Lauris BH
58893384e8
Add issue closed time column to fix activity closed issues list ( #3537 )
...
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2018-02-19 10:39:26 +08:00
Lauris BH
3a9c698821
Force remove test repo root path in case previous test is still locking it ( #3528 )
...
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2018-02-18 23:19:40 +02:00
Codruț Constantin Gușoi
96c268c0fc
Implements generator cli for secrets ( #3531 )
...
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
2018-02-18 20:14:37 +02:00
Ethan Koenig
6eaeb01ecf
Update code.gitea.io/git ( #3482 )
2018-02-10 20:19:26 +02:00
Codruț Constantin Gușoi
011f128c89
Fixes missing avatars in offline mode ( #3471 )
...
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
2018-02-08 16:43:08 +01:00
Ethan Koenig
a89592d4ab
Reduce repo indexer disk usage ( #3452 )
2018-02-05 20:29:17 +02:00
Lauris BH
283e87d814
Fix rendering of wiki page list if wiki repo contains other files ( #3454 )
...
* Fix rendering of wiki page list if wiki repo contains other files
* Improve wiki filename tests
2018-02-05 16:56:30 +02:00
Ethan Koenig
b16c84de7b
Fix synchronization bug in repo indexer ( #3455 )
2018-02-05 10:39:51 +02:00
Morgan Bazalgette
17655cdf1b
Enable caching on assets and avatars ( #3376 )
...
* Enable caching on assets and avatars
Fixes #3323
* Only set avatar in user BeforeUpdate when there is no avatar set
* add error checking after stat
* gofmt
* Change cache time for avatars to an hour
2018-02-04 00:37:05 +02:00
Antoine GIRARD
b3fd94c13d
Add sensitive headers ( #3429 )
...
* Add HeaderWithSensitiveCase methods to respect casing
* Update webhook.go
2018-01-31 00:09:16 +02:00
Ethan Koenig
46c7fe371d
Fix PR merge error ( #3421 )
2018-01-29 12:18:20 +02:00
Ethan Koenig
3968c1149e
Fix SQL type error for webhooks ( #3424 )
2018-01-29 02:26:01 +02:00
Ethan Koenig
bac6ac033a
Fix race condition in repo renaming ( #3418 )
2018-01-28 14:24:59 +02:00
Ethan Koenig
c55a027da3
Fix empty checkout bug ( #3419 )
2018-01-28 13:27:42 +02:00
Wendell Sun
b627f1131b
Change local copy origin url after repository rename ( #3399 )
...
Fix #3378
2018-01-27 19:54:26 +02:00
Antoine GIRARD
9e842c8a72
Fix SSH auth lfs locks ( #3152 )
...
* Fix SSH auth LFS locks
* Activate SSH/lock test
* Remove debug
* Follow @lunny recommendation for AfterLoad method
2018-01-27 18:48:15 +02:00
Antoine GIRARD
1ce3572409
Remove useless check ( #3384 )
...
In #3377 , I put check inside all write key function. This one is useless no.
2018-01-19 21:45:53 +02:00
Sandro Santilli
05ab747054
Force-push to base repo's ref/pull/#/head ( #3393 )
...
* Force-push to base repo's ref/pull/#/head
Fixes force-pushing to pull request branches, otherwise failing with:
[...gitea/models/pull.go:1022 AddTestPullRequestTask()] [E] PushToBaseRepo: Push: exit status 1 - To /path/to/gitea-repositories/org/repo.git
! [rejected] issue-fix -> refs/pull/20/head (non-fast-forward)
* format
2018-01-19 08:53:45 +02:00
Lauris BH
ca306985d3
Change how merged PR commit info are prepared ( #3368 )
...
* Change how merged PR commits and diff are made
* Update code.gitea.io/git dependency
* Fix typo
* Remove unneeded local variable
2018-01-19 08:18:51 +02:00
Ethan Koenig
b0d5bb909b
Delete indexer DB entries when (re)creating index ( #3385 )
...
* comment
2018-01-17 23:51:07 +02:00
Antoine GIRARD
095fb9f2e3
Add integrations tests from git cli ( #3377 )
...
* test: integration add git cli tests
Extracted form for easing review process and debug #3152
* test: integration add git cli big file commit
* fix: Don't rewrite key if internal server
2018-01-16 13:07:47 +02:00
Lauris BH
a68bf746a4
Change reserved avatar name to correct - avatars ( #3375 )
2018-01-16 00:45:13 +02:00
Ethan Koenig
ccdb94992d
Asynchronously populate the repo indexer ( #3366 )
...
* Populate repo indexer in background
* Check if no repos exist
* race cond
2018-01-14 19:34:41 +02:00
Bo-Yi Wu
7a2a3fbafc
refactor(model): update user method. ( #3360 )
2018-01-13 11:45:16 +02:00
Kim "BKC" Carlbäcker
e5b8b4b5ec
Cleanup models.User.HashPassword ( #3334 )
2018-01-12 00:19:38 +02:00
Lauris BH
be1330ec89
Remove hardcoded paths to fix randomly failing tests ( #3347 )
...
* Remove hardcoded paths to fix randomly failing tests
* Use correct function for merge path
2018-01-11 00:46:59 +01:00
Morgan Bazalgette
674cfb7cac
Change EncodePasswd to HashPassword ( #3329 )
...
* Change EncodePasswd to HashPassword
* Create test+benchmark for HashPassword
2018-01-08 23:28:18 +01:00
Ethan Koenig
f48680888c
Remove IsOwner, NumTeams from OrgUser ( #3269 )
2018-01-08 09:48:37 +02:00
Antoine GIRARD
cb868b7851
Add missing indexer doc in configuration ( #3324 )
...
* Add missing indexer doc in configuration
* Unify MAX_FILE_SIZE to 1024 * 1024
2018-01-08 07:03:52 +02:00
Lunny Xiao
835b890329
fix bug when a user delete but assigned on issue ( #3318 )
2018-01-07 11:13:10 +02:00
Vlad Temian
e78786ef39
Writable deploy keys ( closes #671 ) ( #3225 )
...
* Add is_writable checkbox to deploy keys interface
* Add writable key option to deploy key form
* Add support for writable ssh keys in the interface
* Rename IsWritable to ReadOnly
* Test: create read-only and read-write deploy keys via api
* Add DeployKey access mode migration
* Update gitea sdk via govendor
* Fix deploykey migration
* Add unittests for writable deploy keys
* Move template text to locale
* Remove implicit column update
* Remove duplicate locales
* Replace ReadOnly field with IsReadOnly method
* Fix deploy_keys related integration test
* Rename v54 migration with v55
* Fix migration hell
2018-01-07 00:55:53 +02:00
Lauris BH
8ac1501ad7
Add Pull Request merge options - Ignore white-space for conflict checking, Rebase, Squash merge ( #3188 )
...
* Pull request options migration and UI in settings
* Add ignore whitespace functionality
* Fix settings if pull requests are disabled
* Fix migration transaction
* Merge with Rebase functionality
* UI changes and related functionality for pull request merging button
* Implement squash functionality
* Fix rebase merging
* Fix pull request merge tests
* Add squash and rebase tests
* Fix API method to reuse default message functions
* Some refactoring and small fixes
* Remove more hardcoded values from tests
* Remove unneeded check from API method
* Fix variable name and comment typo
* Fix reset commit count after PR merge
2018-01-05 20:56:50 +02:00
Sandro Santilli
a192f3052e
Serve pull request .diff files ( #3293 )
...
* Serve pull request .diff files
Closes #3259
* Add test for pull request redirection and .diff access
* Typo
* There's no need to test for pr.BaseRepo being nil after calling GetBaseRepo
2018-01-05 12:56:52 +02:00
Alberto González Palomo
30fb81c71e
Use issue number/index instead of id for API URL. ( #3298 )
...
Using the API calls, the issue objects retrieved by
/repos/{owner}/{repo}/issues
contains the wrong value in the "url" field:
it uses the "id" value instead of the "number" value.
For instance, in a new repo in try.gitea.io with just one issue:
[{
"id": 896,
"url": "https://try.gitea.io/api/v1/repos/AlbertoGP/uno/issues/896 ",
"number": 1,
...
}]
The given URL does not work, but if you replace the "896" by "1" it
does.
2018-01-03 19:41:33 -06:00
modmew8
9f8349af06
Fixed asterisk based tasklist items, fixed requirement for one char after last blank to be a valid task. ( #3296 )
...
Signed-off-by: modmew8 <modmew8@gmail.com>
2018-01-03 21:45:21 +02:00
modmew8
d996da6bab
Added progressbar for issues ( #1146 ). ( #3171 )
...
* Added progressbar for issues (#1146 ).
* Updated the generated index.css.
Signed-off-by: modmew8 <modmew8@gmail.com>
* Removed stored progress percentage and changed it to css calc. Also added the issue task progress to the user/dashboard/issues.
Signed-off-by: modmew8 <modmew8@gmail.com>
* Removed unnecessary blanks.
Signed-off-by: modmew8 <modmew8@gmail.com>
* Formatted the files correctly, fmt-check terminates now without errors.
Signed-off-by: modmew8 <modmew8@gmail.com>
* Removed variables, made computing the tasks on demand with precompiled regexp.
Signed-off-by: modmew8 <modmew8@gmail.com>
2018-01-03 02:34:13 -06:00
Sandro Santilli
8cd987af0c
Add repo-sync-releases admin command ( #3254 )
...
* Add repo-sync-releases admin command
Will help recovering corrupted database, see #3247
* Load repos in chunks of 10, exit with error if unable to get a list, scan private repos, fix typo
* Fix debug output about num releases
* Introduce RepositoryListDefaultPageSize constant, set to 64
Use it from the new admin command
* Use RepositoryListDefaultPageSize in more places
* Document RepositoryListDefaultPageSize
2017-12-31 16:45:46 +02:00
Ethan Koenig
c64924682e
Fix race condition in team functions ( #3268 )
2017-12-30 21:08:08 -06:00
Morgan Bazalgette
edce41ae65
go back to using CFB for AES decryption/encryption for 2FA ( #3274 )
2017-12-31 04:19:42 +02:00
Ethan Koenig
3850bad4c0
Remove unused consts/vars ( #3270 )
2017-12-30 19:10:48 -06:00
Ethan Koenig
4c9341f689
Fix bugs in issue dashboard stats ( #3073 )
2017-12-26 01:25:16 +02:00
Lunny Xiao
f5155b9913
Small improve on deleting attachements ( #3145 )
...
* Small improve on deleting attachements
* improve the sequence of deletion
2017-12-24 23:04:22 +02:00
Antoine GIRARD
cc7b8e3379
Add more bench ( #3161 )
...
* Improve makefile + Add benchs
* Apply recommendations of @ethantkoenig
2017-12-24 02:33:34 +02:00
Ethan Koenig
515cdaa85d
Fix ignored errors when checking if organization, team member ( #3177 )
2017-12-21 09:43:26 +02:00
Ethan Koenig
e67b4055f9
Fix repo-transfer-and-team-repo-count bug ( #3241 )
2017-12-19 23:37:56 -06:00
Ethan Koenig
0e384c6376
Check ignored errors for issue and milestone count ( #3213 )
2017-12-18 16:06:51 +02:00
Ethan Koenig
6abfa48c0e
Remove unnecessary updates to issue indexer ( #3212 )
2017-12-17 13:53:02 +02:00
Ethan Koenig
befa7445d2
Unit tests for routers/repo/issue_label ( #3198 )
2017-12-15 23:11:02 +02:00
Lunny Xiao
f94c1b3943
Improvements for supporting UI Location ( #3146 )
...
* improvements for supporting UI Location
* improved the comment
2017-12-14 07:45:31 +08:00
Lauris BH
c06cc740de
Reorder migrations, skip errors if running migration again ( #3160 )
...
* Reorder migrations, skip errors if running migration again
* Rename migration file names to match migration version
* Add note about ingored error
2017-12-13 16:52:18 +02:00
Lunny Xiao
859b9ad7ea
fix org owner cannot be removed if there is not in owner team ( #3164 )
2017-12-13 00:26:31 +02:00
Kim "BKC" Carlbäcker
4b5197beb4
Fix Uninitialized variable in ParsePatch ( #3156 )
2017-12-12 02:32:36 +02:00
Lunny Xiao
956354885a
simple usage of x ( #3144 )
2017-12-11 09:16:23 +02:00
Lunny Xiao
f2e20c81b6
Refactor struct's time to remove unnecessary memory usage ( #3142 )
...
* refactor struct's time to remove unnecessary memory usage
* use AsTimePtr simple code
* fix tests
* fix time compare
* fix template on gpg
* use AddDuration instead of Add
2017-12-11 06:37:04 +02:00
Ethan Koenig
defc97afc2
Fixtures for public_key table ( #3140 )
2017-12-11 09:50:29 +08:00
Ethan Koenig
d1efe2078a
Fix integration tests ( #3141 )
2017-12-11 08:52:05 +08:00
Lunny Xiao
41d6afe0e7
Fix compile failed without gcc ( #3130 )
...
* fix comile failed without gcc
* add sqlite tag for unit test
2017-12-10 16:08:19 +02:00
Antoine GIRARD
ef78309b65
Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. ( #3092 )
...
* Add failing test
* Fix urls
* Improve url in tests
* improve testing
* Remove debug code
* Add deps
* LFS corner-case : Search on lower but store with case
* Temporary comment of blocking action
* fix hooks
* Use temporary repo for git client test
* Use userPassword in place of hard-coded password
2017-12-08 20:21:37 +08:00
Ethan Koenig
5e4427e4e7
Fix repo indexer and submodule bug ( #3107 )
2017-12-07 15:18:04 +08:00
Sasha Varlamov
7ec6cddd27
Add 'mark all read' option to notifications ( #3097 )
...
* Add 'mark all read' option to notifications
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
* Fix exported comment
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
* Format method comments
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
* Fix exported comment
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
Format method comments
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
Tests for reactions (#3083 )
* Unit tests for reactions
* Fix import order
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
Fix reaction possition when there is attachments (#3099 )
Refactor notifications swap function
* Accept change to drop beforeupdate call
* Update purge notifications error message for consistency
* Drop unnecessary check for mark all as read button
* Remove debugging comment
2017-12-07 13:52:57 +08:00
Vlad Temian
469ab99e9a
Delete a user's public key via admin api ( closes #3014 ) ( #3059 )
...
* Delete a user's public key via admin api
* Test admin ssh endpoint for creating a new ssh key
* Adapt public ssh key test to also test the delete operation
* Test that deleting a missing key will result in a 404
* Test that a normal user can't delete another user's ssh key
* Make DeletePublicKey return err
* Update swagger doc
2017-12-06 12:27:10 +02:00
Lauris BH
f1d8dda5b4
Tests for reactions ( #3083 )
...
* Unit tests for reactions
* Fix import order
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2017-12-05 22:57:01 +02:00
Ethan Koenig
c0a7899416
Sort repos in issues dashboard sidebar ( #3072 )
...
* Sort repos in issues dashboard sidebar
* Sort repos by name
2017-12-04 12:39:01 +08:00
Ethan Koenig
3c1b1ca78e
Fix error message sanitiziation ( #3082 )
2017-12-04 03:48:03 +02:00
Lauris BH
5dc37b187c
Add reactions to issues/PR and comments ( #2856 )
2017-12-04 01:14:26 +02:00
Ethan Koenig
ab62da283a
Fix avatar URLs ( #3069 )
...
* Fix avatar URLs
* import order
2017-12-03 19:55:13 +08:00
Ethan Koenig
a0964775ab
Sanitize logs for mirror sync ( #3057 )
2017-12-03 13:29:41 +08:00
Ethan Koenig
3163abedd6
Fix ref parsing in commit messages ( #3067 )
2017-12-03 10:20:12 +08:00
Lunny Xiao
35cc5b0402
Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName ( #3043 )
...
* remove GetRepositoryByRef and add GetRepositoryByOwnerAndName
* fix tests
* fix tests bug
* some improvements
2017-12-02 15:34:39 +08:00
Ethan Koenig
91f3d77ceb
Unit tests for wiki routers ( #3022 )
2017-11-30 17:52:15 +02:00
Antoine GIRARD
4035ab05fa
Fix git lfs path ( #3016 )
...
* add suffix .git
* Remove Content-Type on GET methods
* Add migrations to force creation before any further potential migration
2017-11-29 01:35:23 +02:00
Duncan Ogilvie
c80d147fa9
Improve memory usage when reaching diff limits ( #2990 )
...
Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
2017-11-29 01:22:24 +02:00
Antoine GIRARD
d99f4ab003
Git LFS lock api ( #2938 )
...
* Implement routes
* move to api/sdk and create model
* Implement add + list
* List return 200 empty list no 404
* Add verify lfs lock api
* Add delete and start implementing auth control
* Revert to code.gitea.io/sdk/gitea vendor
* Apply needed check for all lfs locks route
* Add simple tests
* fix lint
* Improve tests
* Add delete test + fix
* Add lfs ascii header
* Various fixes from review + remove useless code + add more corner case testing
* Remove repo link since only id is needed.
Save a little of memory and cpu time.
* Improve tests
* Use TEXT column format for path + test
* fix mispell
* Use NewRequestWithJSON for POST tests
* Clean path
* Improve DB format
* Revert uniquess repoid+path
* (Re)-setup uniqueness + max path length
* Fixed TEXT in place of VARCHAR
* Settle back to maximum VARCHAR(3072)
* Let place for repoid in key
* Let place for repoid in key
* Let place for repoid in key
* Revert back
2017-11-28 22:58:37 +02:00
Ethan Koenig
b7ebaf6d20
Various wiki bug fixes ( #2996 )
...
* Update macaron
* Various wiki bug fixes
2017-11-28 17:43:51 +08:00
Ethan Koenig
1028ef2def
Don't print SQL in unit tests ( #2995 )
...
* Add GITEA_UNIT_TESTS_VERBOSE environment variable to enable printing SQL
2017-11-27 12:29:48 +02:00
Ethan Koenig
716ac1214f
Enable admin to search by email ( #2888 )
2017-11-26 16:40:38 +08:00
Ethan Koenig
0f6dc411df
Remove unnecessary IssueList attribute loads ( #2936 )
2017-11-21 13:28:22 +08:00
Lunny Xiao
10b54df2b2
Add dingtalk webhook ( #2777 )
...
* add dingtalk webhook type
* add vendor
* some fixes
* fix name check
* fix name check & improvment
2017-11-21 06:26:43 +02:00
Michael Kuhn
420fc8efc2
Disable add key button if SSH is disabled ( #2873 )
2017-11-21 11:49:33 +08:00
Lauris BH
bd6f24b4ab
Add deleted_branch table fixture ( #2832 )
...
* Add deleted_branch table fixture
* Fix deleted branches tests
* Remove unneeded global variable
2017-11-04 15:31:59 +02:00
Lauris BH
240609432b
Issue content should not be updated when closing with comment ( #2833 )
2017-11-03 17:23:17 +08:00
Guillaume Dube
8798cf4e3b
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
2017-11-03 10:56:20 +02:00
Morlinest
95637e046f
Fix order of comments ( #2835 )
2017-11-03 11:11:42 +08:00
Ethan Koenig
e6a97b6675
Use api.TrackedTime in API ( #2807 )
...
* Use api.TrackedTime in API
* APIFormat() method
* Rename function
2017-11-01 10:25:14 +08:00
cstyles
b0b24a2dbb
Use RelAvatarLink() in GetActAvatar() ( #2800 )
2017-10-31 16:08:23 +08:00
Lauris BH
82fc50f4ee
Fix Git LFS object/repo link storage in database and small refactoring ( #2803 )
2017-10-30 20:11:56 +08:00
Ethan Koenig
513375c429
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
2017-10-30 10:04:25 +08:00
Ethan Koenig
5866eb2321
Code/repo search ( #2582 )
...
Indexed search of repository contents (for default branch only)
2017-10-27 09:10:54 +03:00
Morlinest
ddb7f59ef4
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
2017-10-27 00:16:13 +03:00
Lauris BH
6a107e57f6
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
2017-10-26 15:45:14 +08:00
Gibheer
bc84110989
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.
2017-10-26 09:49:41 +08:00
Lauris BH
eca05b09aa
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
2017-10-26 09:37:33 +08:00
Bwko
3ab580c8d6
Add branch overiew page ( #2108 )
...
* Add branch overiew page
* fix changed method name on sub menu
* remove unused code
2017-10-26 08:49:16 +08:00
Lunny Xiao
796be03e9b
fix discord hook bug ( #2778 )
2017-10-25 13:13:45 +08:00
Lunny Xiao
6eeadb2082
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
2017-10-24 20:36:19 +03:00
harry
81d1e54a49
Use identicon image for default gravatar. ( #2767 )
...
* Use identicon image for default gravatar.
* Fixed tests.
2017-10-23 03:50:07 -05:00
Lunny Xiao
985a39590b
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
2017-10-21 14:26:23 +08:00
Jonas Bröms
847272a70d
Only update mirror last update after successful sync ( #2730 )
2017-10-18 21:50:41 +03:00
Morlinest
ccd3577970
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
2017-10-17 23:20:22 +08:00
Lauris BH
c7f4f07765
Integration test for activity page ( #2704 )
...
* Integration test for activity page
* Small code refactoring for acitvity page
* Move activity stats calculation logic to model
2017-10-16 00:54:53 +03:00
Lauris BH
f3833b7ce4
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
2017-10-15 22:59:24 +03:00
Lauris BH
1ec4dc6c1d
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
2017-10-15 18:06:07 +03:00
Lauris BH
f42dbdbae5
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
2017-10-15 02:17:39 +03:00
Lauris BH
8863e74f2a
Fix organization watch migration ( #2703 )
2017-10-14 20:47:05 +03:00
Patrick G
e89bb7ef6a
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
2017-10-14 18:51:00 +03:00
Lunny Xiao
514006a2e5
Fix orgnization user watch repository ( #2670 )
...
* remove orgnization watch repositories
* fix migration
* fix typo and missing change
* remove unused code
2017-10-14 22:37:43 +08:00
Morlinest
dff26e25ca
Remove redudant functions and code ( #2652 )
...
* Remove redudant functions and code
2017-10-10 22:37:18 +02:00
Morlinest
c2346e4469
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
2017-10-10 09:23:29 +08:00
David Schneiderbauer
ebac051e72
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
2017-10-08 19:08:18 +08:00
Julian Scholle
92123fe82a
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>
2017-10-06 23:28:21 +03:00
Kazuki Sawada
ffab139c91
table pull_request
wasn't updated correctly ( #2649 )
...
* Fix: table `pull_request` won't be updated correctly
* Update also status column when manually merged
2017-10-06 00:25:40 +03:00
Ethan Koenig
aa962deec0
Replace deprecated Id method with ID ( #2655 )
2017-10-05 07:43:04 +03:00
Morlinest
a79af9cf6f
Fix index column deletion ( #2651 )
2017-10-04 14:26:13 +03:00
Ethan Koenig
4b2c8ca533
Use session when creating user ( #2638 )
2017-10-03 09:29:26 +03:00
Morlinest
a04718a2a6
Remove repo unit index ( #2621 )
...
* Remove repo unit index
* Fix sqlite
2017-10-02 23:22:25 +03:00
Lunny Xiao
a8717e5e3a
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
2017-10-01 19:52:35 +03:00
Morlinest
1ad902d529
Fix implementation of repo Home func ( #2601 )
...
* Fix implementation of repo Home func
* Make fixture changes for testing
2017-10-01 16:50:56 +03:00
David Schneiderbauer
26e49b8e3d
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>
2017-09-28 16:14:51 +03:00
Morlinest
cc84ca40d7
Remove redudant issue LoadAttributes() calls ( #2614 )
2017-09-27 09:41:52 -03:00
Lunny Xiao
dd55534b82
Reduce usage of allcols on update ( #2596 )
...
* reduce usage of allcols on update
* fix bug and tests
2017-09-25 12:59:27 +08:00
Ethan Koenig
fa28de820e
Make indexer code more reusable ( #2590 )
2017-09-25 03:08:48 +03:00
Lauris BH
2db424c3f1
Fix broken migration to add can_push field back to table ( #2574 )
2017-09-23 16:45:41 +08: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
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
Lauris BH
6718ea6ff1
Fix can_push value to false in protected_branch ( #2560 )
2017-09-20 17:52:23 +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
Ethan Koenig
acecedc410
Use named ActionType constants in template helper ( #2545 )
2017-09-20 09:22:42 +08:00
Ethan Koenig
4cb9394a97
Fix lint errors ( #2547 )
2017-09-19 11:08:30 +03: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
b0f7457d9e
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
2017-09-16 23:16:21 +03:00
Lunny Xiao
52e11b24bf
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
2017-09-16 20:17:57 +03:00
David Schneiderbauer
d766d0c4e0
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>
2017-09-16 08:18:25 +08:00
Ethan Koenig
b496e3e1cc
Fix unit test race condition ( #2516 )
2017-09-15 10:54:25 +03:00
bradder555
ad24a3134d
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.
2017-09-15 09:14:06 +03:00
Lunny Xiao
1739e84ac0
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
2017-09-14 16:16:22 +08:00
Rémy Boulanouar
be3319b3d5
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
2017-09-14 14:51:31 +08:00
Lunny Xiao
005900baea
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
2017-09-13 08:18:22 +03:00
Lauris BH
8c3a2e817b
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
2017-09-12 13:54:45 +03:00
techknowlogick
9bdbfbf6f3
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>
2017-09-12 12:25:42 +03:00
Jonas Franz
5ccecb44ad
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>
2017-09-12 09:48:13 +03:00
Antoine GIRARD
4f9a28e1f5
Make repo private to no interfere with other tests ( #2467 )
2017-09-06 00:33:33 +03:00
Antoine GIRARD
7c417bbb0d
Only check at least one email gpg key ( #2266 )
...
* Only require one email (possibly not yet validated)
* Update message error and check validation of commit
* Add integrations tests
* Complete integration for import
* Add pre-check/optimization
* Add some test (not finished)
* Finish
* Fix fixtures
* Fix typo
* Don't guess key ID
2017-09-05 21:45:18 +08:00
Lauris BH
a569d3dedc
Fix migration from pre-v15 to 1.2.0 ( #2460 )
2017-09-05 08:28:06 +08:00
Ethan Koenig
b689bb6180
Webhooks for repo creation/deletion ( #1663 )
...
* Webhooks for repo creation/deletion
* add createHookTask
* Add handles for GetSlackPayload and GetDiscordPayload
2017-09-03 11:20:24 +03:00
Lunny Xiao
04ec79579c
fix orgnization webhooks ( #2422 )
...
* fix org webhooks
* remove trace code
2017-08-30 13:36:52 +08:00
Lunny Xiao
5de94a67cf
some refactors for issue and comments ( #2419 )
2017-08-30 07:31:33 +03:00
Lunny Xiao
3e6fed368b
fix webhook test ( #2415 )
...
* fix webhook test
* fix error message
* fix typo
2017-08-29 22:55:24 +08:00
Lauris BH
edb95faba2
Fix releases to be counted from database not tags ( #2389 )
2017-08-28 22:06:10 +08:00
Morlinest
8e61823ec4
Fix tests code to prevent some runtime errors ( #2381 )
...
* Fix tests code to prevent some runtime errors
* Reduce nesting
2017-08-28 12:17:45 +03:00
Lunny Xiao
ced50e0ec1
Implementation of discord webhook ( #2402 )
...
* implementation of discord webhook
* fix webhooks
* fix typo and unnecessary color values
* fix typo
* fix imports and revert changes to webhook_slack.go
2017-08-28 13:06:45 +08:00
Lunny Xiao
e41da3845d
fix duplicated feed ( #2370 )
2017-08-28 10:26:04 +08:00
Morlinest
0f2c98adcd
Fix "index out of range" runtime error in repo_list tests ( #2376 )
2017-08-28 09:33:38 +08:00
Manuel
d9d8fad230
Add UseCompatSSHURI setting ( #2356 )
...
* Add UseCompatSSHURI setting
Signed-off-by: Manuel Kroeber <manuel.kroeber@gmail.com> (+1 squashed commits)
Squashed commits:
[dda2dc79] Add ForceCloneSSHURL setting
Signed-off-by: Manuel Kroeber <manuel.kroeber@gmail.com>
* Make protocol if construct more readable
Signed-off-by: Manuel Kroeber <manuel.kroeber@gmail.com>
2017-08-26 15:57:41 +02:00
Lunny Xiao
f61a1d210c
Fix missing collabrative repos ( #2367 )
...
* fix missing collabrative repos
* fix bug of collabrative
* fix SQL quotes
2017-08-24 22:01:03 +08:00
Zsombor
da230a2872
Add possibility to record branch or tag information in an issue ( #780 )
2017-08-24 15:30:27 +03:00
Lunny Xiao
64b7068846
Add more test for login links and fix a bug on action retrieve ( #2361 )
...
* add more test for login links and fix a bug on action retrieve
2017-08-23 12:53:35 +03:00
Ethan Koenig
fd6e91077a
Fix SQL condition bug in GetFeeds(..) ( #2360 )
2017-08-23 08:51:58 +03:00
Bwko
1a5fe4326f
Add collaborative repositories to the dashboard ( #2205 )
...
* Add collaborative repositories to the dashboard
Remove some unused code from the Dashboard func
* fix some bug and some refactor
* fix tests
2017-08-23 09:30:54 +08:00
Lunny Xiao
2c6a0fdca8
update latest xorm version to vendor ( #2353 )
2017-08-22 14:39:52 +03:00
Ethan Koenig
7907786040
Trigger sync webhooks on UI commit ( #2302 )
...
* Trigger sync webhooks on UI commit
* Also fix UI upload/delete
2017-08-17 15:22:08 +08:00
Lunny Xiao
f960e19c59
Only update needed columns when update user ( #2296 )
...
* only update needed columns when update user
* fix missing update_unix column
2017-08-12 22:18:44 +08:00
Lunny Xiao
921d90fd8b
fix 500 error when view an issue which's milestone deleted ( #2297 )
2017-08-12 10:15:30 +08:00
G
34df9deff1
Convert xorm literal queries to method calls ( #2253 )
2017-08-04 12:42:51 +08:00
Ethan Koenig
7e0654bd9e
Fix counts on issues dashboard ( #2215 )
...
* Fix counts on issues dashboard
* setupSess -> setupSession
* Unit test
* Load repo owners for issues
2017-08-03 13:09:16 +08:00
Ethan Koenig
f29458bd3a
EnableUnit() -> UnitEnabled() ( #2242 )
2017-08-02 11:46:54 +03:00
G
66e8262530
Replace calls to xorm UseBool with Where ( #2237 )
2017-08-01 13:47:31 +08:00
Ethan Koenig
fd45a032a7
Fix bare-repo bugs ( #2199 )
...
* Fix bare-repo bugs
* Integration tests
* Unused import
2017-07-27 12:23:38 +03:00
Ethan Koenig
a27863b6d1
Fix issue updated_unix bug ( #2204 )
2017-07-27 09:20:38 +08:00
Ethan Koenig
5f37944dff
Fix unclosed session bug ( #2214 )
2017-07-26 17:30:47 +08:00
Lauris BH
1d032f5220
Fix compiling without sqlite and gcc ( #2177 )
2017-07-26 15:27:30 +08:00
Ethan Koenig
48898e5d0b
Fix PR nil-dereference bug ( #2195 )
...
* Fix PR nil-dereference bug
* Revert to original error format
2017-07-26 15:16:45 +08:00
Lauris BH
dde0052ca2
Fix key usage time update if the key is used in parallel for multiple operations ( #2185 )
2017-07-20 11:15:10 +08:00
Lauris BH
f33e6ae09e
Remove unit types commits and settings ( #2161 )
...
* Remove unit types commits and settings
* Can not limit units in administrator teams
* Limit changing units only to teams with read and write access mode
* Small code optimization
2017-07-17 10:04:43 +08:00
Lauris BH
b639fa1648
Ignore invalid issue numbers in commit messages. Fixes #2022 ( #2150 )
2017-07-12 22:35:47 -05:00
Ethan Koenig
858324c21a
Fix username rendering bug ( #2122 )
...
* Fix username rendering bug
* XSS integration test
* Migration to unescape user full names
2017-07-12 17:58:52 +03:00
Antoine GIRARD
30787e48f2
Improve org error handling ( #2117 )
...
* Improve ErrOrgNotExist type
Return new error type
Use good error check
Use new method to check error
Update tests
* Fix unchanged method name report
2017-07-06 21:30:19 +08:00
Ethan Koenig
a52cd59727
Fix unchecked error bug ( #2110 )
2017-07-04 09:30:41 +08:00
Lauris BH
f189ccd2d6
Fix git hooks update to receive required arguments. Fixes #2090 ( #2095 )
...
* Changed migration calling so that migrations can use models package
2017-07-02 21:50:57 +08:00
Ethan Koenig
eae9154811
Fix SQL bug in models.PullRequests
2017-07-01 14:08:43 +03:00
Lauris BH
12cb6cd3c9
Merge pull request #2087 from Bwko/fix_error_exit
...
Fix exit status 1 not handled @ getMergeCommit (#2087 )
2017-06-30 15:46:49 +03:00
Bwko
b36849dc1f
Fix exit status 1 not handled @ getMergeCommit
2017-06-30 12:35:26 +02:00
Andrey Nering
935b40fd8e
Merge pull request #2083 from ethantkoenig/check_err/org_avatar
...
Don't ignore gravatar error
2017-06-29 21:30:05 -03:00
Ethan Koenig
05e3726415
Use default avatar on error
2017-06-29 12:10:33 -04:00
Lauris BH
783b1967e2
Fix release display and correct paging ( #2080 )
2017-06-29 23:11:38 +08:00
Lunny Xiao
33f3165296
remove unnecessary blank lines and wrong error log
2017-06-28 19:00:08 +02:00
iszla
3f9016430f
Pagination on releases page ( #2035 )
...
* Added count to GetReleasesByRepoID so pagination will work
* Separated it out to a new function, can then also leave the API part unaffected
* Remove extra whitespace added in untouched function
* Added comment and corrected name in error handler
* Account for if the user is owner or not in the count
* Also check if repo is draft
* revert back to the correct count in the ReleasesToDisplay loop
* Fixed lint error regarding else with return statement
* Use Cond struct instead of string, corrected name in error handler
* Removed unused return variable names
2017-06-28 22:47:00 +08:00
Lauris BH
32fc44aa83
Make time diff translatable ( #2057 )
2017-06-28 13:43:28 +08:00
Dan Magnus Lindvall
79daf31058
Setting to disable authorized_keys backup ( #1856 )
...
* Add setting to disable authorized_keys backup when rewriting public keys
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Update default value to comply with documentation
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Use tmp-file instead of bak-file for saving manually added keys.
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Change casing
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Change casing and build bakpath with sprintf only
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Only close file once
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Do not modify calcFingerprint
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Fix casing
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Change style from disable to enable
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Change name, just SSH_BACKUP_AUTHORIZED_KEYS
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Do not check for directory existence if backup is disabled
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
2017-06-28 09:35:35 +08:00
Ethan Koenig
80707c4736
Fix default ghost assignee bug ( #2069 )
2017-06-28 09:27:12 +08:00
Jonas Franz
441986a473
Fix "Dashboard shows deleted comments" ( #1995 )
2017-06-25 20:20:29 +02:00
Ethan Koenig
2559a34b97
Load label ID in NewLabels ( #2045 )
2017-06-25 14:15:09 +08:00
Győrvári Gábor
f2afed3098
Enable assignee e-mail notification ( #2003 )
...
* Enable assignee e-mail notification
* Check assignee and doer to avoid self made comment notifications.
* Assignee not always defined
* New method to avoid error when assignee deleted
* Assignee empty check
2017-06-23 21:43:37 +08:00
Ethan Koenig
902a749fd9
Fix fast-forward PR bug ( #1989 )
2017-06-22 09:06:57 +08:00
Lunny Xiao
d71fad2ab7
Fix #2001 and fix issue comments hidden ( #2016 )
...
* revert #2001 and fix issue comments hidden
* fix #2001
* fix import
* improve comment type
* reduce unnecessary join
* fix comment on FindCommentsOptions
2017-06-21 09:00:44 +08:00
Lauris BH
6db387a21e
Refactor session close as xorm already does everything needed internally ( #2020 )
2017-06-21 08:57:05 +08:00
Lauris BH
165cf33771
Wrong PR merge commit ID saved ( #2007 )
2017-06-19 17:37:11 +08:00
Ethan Koenig
255adc40ae
Don't show non-comments in comments API ( #2001 )
2017-06-18 17:06:17 +08:00
Lauris BH
1a906f800d
Fix GPG email checking to be case insensitive ( #1988 )
2017-06-17 18:56:40 +08:00
Lunny Xiao
e2ec4b7c23
fix bu ong normal user visit public repo ( #1984 )
2017-06-17 12:53:51 +08:00
Ethan Koenig
8fc64741d9
Fix deleted milestone bug ( #1942 )
...
* Fix deleted milestone bug
* Use locale for ghost milestone name
* Fix pointer bug
2017-06-17 12:51:28 +08:00
Ethan Koenig
ce9b86082c
Consolidate boilerplate in integration tests ( #1979 )
2017-06-17 12:49:45 +08:00
Ethan Koenig
8fcda0442e
Fix search by issue type ( #1914 )
...
* Fix search by issue type
2017-06-15 05:09:03 +02:00
Kim "BKC" Carlbäcker
bf48c8ebdd
SQLite has a query timeout. Hopefully fixes most 'database locked' errors ( #1961 )
...
* SQLite has a query timeout. Fixes 'database locked' errors
2017-06-15 04:51:17 +02:00
Lunny Xiao
31b5e9177f
fix collborators lack of units on orgnization repositories ( #1968 )
...
* fix collborators lack of units on orgnization repositories
* also change log level to debug
2017-06-15 04:50:12 +02:00
Ethan Koenig
57cabb3ad3
Fix diff of renamed and modified file ( #1967 )
2017-06-14 04:07:09 -05:00
Antoine GIRARD
274149dd14
Switch to keybase go-crypto (for some elliptic curve key) + test ( #1925 )
...
* Switch to keybase go-crypto (for some elliptic curve key) + test
* Use assert.NoError
and add a little more context to failing test description
* Use assert.(No)Error everywhere 🌈
and assert.Error in place of .Nil/.NotNil
2017-06-14 08:43:43 +08:00
Ethan Koenig
96152c38b1
Fix bug in Action.loadRepo() ( #1959 )
2017-06-14 08:37:50 +08:00
Ethan Koenig
b38b61bbc1
Fix import order ( #1951 )
2017-06-12 10:01:09 -05:00
Andrey Nering
635273cea6
Merge pull request #1829 from ethantkoenig/no_branches
...
Commitless repos should be bare
2017-06-12 11:05:01 -03:00
Ethan Koenig
9fbdd7d787
Fix engine bug in getIssueByID ( #1934 )
2017-06-11 14:39:12 +08:00
Ethan Koenig
e0a63a20e0
Fix errors caused by force push ( #1927 )
2017-06-10 21:59:13 -05:00
Dennis Keitzel
96b4780727
Gracefully handle bare repositories on API operations. ( #1932 )
...
Signed-off-by: Dennis Keitzel <github@pinshot.net>
2017-06-10 21:57:28 -05:00
Ethan Koenig
73836ce8c4
Fix ghost user bug ( #1913 )
...
Fix bug where unassigned issues would appear to be assigned to a ghost user
2017-06-09 09:51:31 +08:00
Dan Magnus Lindvall
ff7424179e
Delete Public SSH Key tmp file after calculating fingerprint ( #1855 )
...
* Delete public key tmp file after calculating fingerprint
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Move line
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Remove defer statement
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Readd defer statement and move remove
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Delete space
Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
2017-06-08 10:08:22 +08:00
Sandro Santilli
f6b58964d7
Include formatting check to the make test
(and thus also check
) rule ( #1366 )
...
* Include formatting check to the `make check` rule
... and give it its own standalone target too (make fmt-check)
Show diff on fmt-check failure
Do not allow running "fmt-check" with incompatible go version
Also simplify the `fmt` rule
* Forbid running "make fmt" with Go version != 1.7 or 1.8
* Ignore bindata.go for spelling and formatting checks
also remove duplicated variable assignment for GOFILES
* Run `make fmt`
2017-06-06 08:53:16 -05:00
Phil Hopper
6ec07a6bd7
Make LocalCopyPath
a setting instead of a hard-coded path ( #1881 )
2017-06-06 04:09:54 -05:00
Ethan Koenig
ca9169fbe9
Migration to fix existing owner team units ( #1873 )
2017-06-05 05:40:25 -05:00
Bo-Yi Wu
703d18e50d
feat: add check misspelling ( #1877 )
2017-06-05 02:49:46 -05:00
Andrey Nering
ed31dff5ab
Merge pull request #1874 from ethantkoenig/typo/issue_test
...
Fix misspelled variables
2017-06-04 17:10:40 -03:00
Ethan Koenig
9f9289fc68
Run unused test
2017-06-04 14:28:17 -04:00
Ethan Koenig
1a09afc729
Fix misspelled variables
2017-06-04 13:39:08 -04:00
Ethan Koenig
3e74b5cf51
Rename misnamed migration ( #1867 )
2017-06-04 11:09:50 +08:00
Ethan Koenig
b900c04316
Display draft releases ( #1854 )
...
* Display draft releases
* Include ctx.User in user cache
* Integration test
2017-06-03 11:46:56 +08:00
Ethan Koenig
036ce3f813
Fix bug in removeOrgRepo ( #1858 )
2017-06-02 20:06:09 -05:00
Ethan Koenig
4e5ee2b67a
Fix user profile activity feed ( #1848 )
...
* Fix user profile activity feed
* gofmt, and avoid overlapping database connections
2017-06-02 08:42:25 +08:00
Ethan Koenig
a977ab7889
Don't ignore error in getMergeCommit ( #1843 )
2017-05-31 19:51:24 -05:00
Ethan Koenig
336e311a7c
Fix locking bug in removeOrgRepo ( #1842 )
2017-06-01 08:41:14 +08:00
Ethan Koenig
5554165a0c
Fix pull request compare link ( #1832 )
...
* Fix pull request compare link
* Integration test
2017-05-31 09:47:42 -05:00
Ethan Koenig
bfb44f8854
Fix status table race condition ( #1835 )
2017-05-31 16:57:17 +08:00
Ethan Koenig
474d636794
Update code.gitea.io/git ( #1824 )
...
* Update code.gitea.io/git
* Update function calls
* govendor fetch
2017-05-30 04:32:01 -05:00
Ethan Koenig
367ff327ed
Use ghost users in issues/PRs ( #1831 )
2017-05-30 14:08:36 +08:00
Timo Myyrä
2525195749
use writeTmpKeyFile in calcFingerprint ( #1828 )
...
this makes calcFingerprint use SSH.KeyTestpath instead of os temp dir.
2017-05-29 19:51:16 +08:00
Jonas Östanbäck
b93568cce4
xxx_active_code_live setting in printed in hours and minutes instead … ( #1814 )
...
* xxx_active_code_live setting in printed in hours and minutes instead of just hours
* Update app.ini description of xxx_code_lives settings
2017-05-29 02:35:47 -05:00
Rémy Boulanouar
e0c6ab2d44
Add Gitea Webhook ( #1755 )
...
* Replace Gogs by Gitea
* Fix missing changes
* Create Gitea webhook and put Gogs webhook apart.
2017-05-29 02:17:15 -05:00
Ethan Koenig
c85ff532e9
Commitless repos should be bare
2017-05-28 22:31:40 -04:00
Ethan Koenig
bafd778c25
Fix invalid reference in feeds template ( #1820 )
...
* Fix invalid reference in feeds template
* Comment for GetActAvatar
* Add integration test
2017-05-27 11:34:11 +08:00
Ethan Koenig
7e6ff69c00
Fix 500 for GET /teams/:id endpoints ( #1811 )
...
* Fix 500 for GET /teams/:id endpoints
* Integration test for GET /team/:id
* Clean up integration test
2017-05-26 08:15:45 -05:00
Ethan Koenig
39348cd27e
Give all units to owner team ( #1812 )
2017-05-26 16:03:37 +08:00
Ethan Koenig
9c66d1d9ea
Fix deadlock in updateRepository ( #1813 )
2017-05-26 13:08:13 +08:00
Ethan Koenig
0c332f0480
Fix activity feed ( #1779 )
...
* Fix activity feed
Preserve actions after user/repo name change
* Add missing comment
* Fix migration, and remove fields completely
* Tests
2017-05-26 09:38:18 +08:00
Jonas Franz
03912ce014
Adding #issuecomment to the URL in E-Mail notifications ( #1674 )
...
* Added comment's hashtag to url for mail notifications.
Signed-off-by: Jonas <info@jonasfranz.software>
* Added comment's hashtag to url for mail notifications.
Added explanation to return statement.
Signed-off-by: Jonas <info@jonasfranz.software>
* Added comment's hashtag to url for mail notifications.
Added explanation to return statement + documentation.
Signed-off-by: Jonas <info@jonasfranz.software>
* Added comment's hashtag to url for mail notifications.
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Replacing in-line link generation with HTMLURL. (+gofmt)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Replaced action-based model with nil-based model. (+gofmt)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants.
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Updating comment for mailIssueCommentToParticipants
Signed-off-by: Jonas Franz <info@jonasfranz.software>
2017-05-25 10:38:56 +08:00
Lunny Xiao
19d889daa2
fix bug not to trim space of login username ( #1796 )
2017-05-25 00:12:00 +08:00
Jonas Östanbäck
7b907ed348
Rename RepoCreationNum -> MaxCreationLimit ( #1766 )
2017-05-24 08:27:08 +08:00
Ethan Koenig
bdc90aeaee
Delete repo redirects on repo deletion ( #1776 )
2017-05-23 16:00:10 +08:00
Ethan Koenig
b0308d86dc
Fix unloaded owner ( #1770 )
2017-05-21 14:35:45 +08:00
Ethan Koenig
cf02cd7ba0
Fix and test for delete user ( #1713 )
...
* Fix and test for delete user
* Run updates in batches
* Unit test
2017-05-20 16:48:22 +08:00
Jonas Östanbäck
80cea8747f
Admin should always be allowed to create repos even if hit limit ( #1765 )
2017-05-20 11:51:19 +08:00
Kim "BKC" Carlbäcker
977dcf96e0
fixes wrong after field in webhook payload ( #1746 )
2017-05-19 12:12:27 +02:00
Lunny Xiao
6362462da8
fix admin lost permission caused by #947
2017-05-19 08:59:26 +08:00
Lunny Xiao
fd6034aaf2
Add units to team ( #947 )
...
* add units to team
* fix lint
* finish team setting backend
* finished permission controll on routes
* fix import blank line
* add unit check on ssh/http pull and push and fix test failed
* fix fixtures data
* remove unused code
2017-05-18 22:54:24 +08:00
Diep Pham
407fbfa6ce
fixes wrong after field in webhook payload
...
when merge pull request
2017-05-18 12:16:36 +07:00
Lunny Xiao
bc299b8317
fix avatar update bug ( #1729 )
2017-05-16 08:36:09 +08:00
Jonas Östanbäck
e214728725
Add new text for reset password flash ( #1718 )
...
* Forgot password should use ResetPwdCodeLives, not ActiveCodeLives
* Improve documentation for different send mail functions related to password reset
* Improve documentation in conf/app.ini regarding xxx_CODE_LIVE_MINUTES settings
2017-05-14 10:38:30 +08:00
Ethan Koenig
9e627af9a4
gofmt ( #1710 )
2017-05-12 16:09:53 +08:00
guyzmo
397474ecb1
Added Parent property to the repo API ( #1687 )
...
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
2017-05-12 11:09:26 +08:00
Ethan Koenig
251fb935ff
Don't recreate database in integration tests ( #1697 )
2017-05-11 23:32:43 +08:00
Lauris BH
524885dd65
LDAP user synchronization ( #1478 )
2017-05-10 15:10:18 +02:00
Andrey Nering
ab79069dc7
Improve dashboard repo search ( #1652 )
...
* Add VueJS
* Improve dashboard search
* Fix tab switching
* Fix input autofocus
2017-05-09 08:31:30 +08:00
Lauris BH
51d0becb42
Add configuration option for default permission to create Organizations ( #1686 )
2017-05-08 21:51:53 +02:00
Kim "BKC" Carlbäcker
a85c5ab9ff
fix potential sqlite lock #1680
2017-05-08 10:02:44 +02:00
Lauris BH
79494047b0
Show commit status icon in commits table ( #1688 )
...
* Show commit status icon in commits table
* Add comments
* Fix icons
* Few more places where commit table is displayed
* Change integration test to use goquery for parsing html
* Add integration tests for commit table and status icons
* Fix status to return lates status correctly on all databases
* Rewrote lates commit status selects
2017-05-07 22:40:31 +08:00
Lunny Xiao
930d1759ae
Remove env user salt since no need to use ( #1515 )
...
* remove env user salt since no need to use
* remove unused variable from update.go
2017-05-06 21:21:22 +08:00
guyzmo
98460a8d9d
Exposes in API the Repo entity's Size and IsBare property ( #1668 )
...
* Exposes in API the Repo entity's IsBare property as IsEmpty
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
* Exposes in API the Repo entity's Size property
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
2017-05-05 10:55:54 +08:00
Lunny Xiao
36f02c0c32
fix potential sqlite lock
2017-05-05 10:13:48 +08:00
Lunny Xiao
0f3923c4d7
fix potential lock when sqlite ( #1647 )
2017-05-05 08:47:03 +08:00
Ethan Koenig
a5f28a4544
gofmt ( #1662 )
2017-05-04 13:54:56 +08:00
Lunny Xiao
1773e88643
Drop db operations from hook commands ( #1514 )
...
* move all database operations from hook command to web command and instead of internal routes
* bug fixed
* adjust the import path sequences
* remove unused return value on hookSetup
2017-05-04 13:42:02 +08:00
Antoine GIRARD
3edb0c5894
Generate swagger json ( #1402 )
...
- Generate swagger.json into public/
- Add swagger-ui auto-installation
- Add footer link to local swagger-ui
- Add /swagger url for using app url.
- Fix Swagger-UI version via git tag
2017-05-02 15:35:59 +02:00
Lauris BH
98548c83d3
Add primary key and index to external login user table ( #1656 )
2017-05-02 16:41:44 +08:00
Lauris BH
0144817971
Do not allow commiting to protected branch from online editor ( #1502 )
...
* 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
2017-05-02 08:49:55 +08:00
Willem van Dreumel
950f2e2074
Additional OAuth2 providers ( #1010 )
...
* 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
2017-05-01 21:26:53 +08:00
Ethan Koenig
66c803fae2
MySQL, Postgres integration tests in drone ( #1638 )
...
* MySQL, Postgres integration tests in drone
* Fix .drone.yml
* sign drone
* resign drone
2017-04-30 14:30:12 +08:00
Jonas Östanbäck
9a8ca3e877
Fix broken migration v27 ( #1504 )
...
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
Lunny Xiao
e31c02d4bf
fix bug on issue view when not login ( #1624 )
...
* 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
Jonas Östanbäck
e4a0a04829
Add create_at and updated_at in PR json ( #1616 )
...
* 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 ( #1293 )
...
* 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
Ethan Koenig
c58708d3ee
Integration test framework ( #1290 )
...
* 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 ( #1533 )
2017-04-24 22:33:54 +08:00
Kim "BKC" Carlbäcker
4bea219128
Status-API ( #1332 )
2017-04-21 19:32:31 +08:00
Bo-Yi Wu
fa2a513c62
feat: add download count field and unit testing for attachment. ( #1512 )
...
* 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
2eeae84cbd
Add internal routes for ssh hook comands ( #1471 )
...
* 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
Kim "BKC" Carlbäcker
d409d3ab57
Sanitation fix from Gogs ( #1461 )
...
* 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
Jonas
be6edaddcb
Repo size in admin panel ( #1482 )
...
* 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 ( #1407 )
...
* 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
Lunny Xiao
5c0bee9b20
refactor update ssh key use time ( #1466 )
2017-04-07 17:40:38 -07:00
Lunny Xiao
5acfc7c4bc
fix migrate failed and org dashboard failed on MSSQL database ( #1448 )
2017-04-06 18:47:25 -07:00
Jonas
e7493e953f
Corrected Mirror.NextUpdate not set ( #1388 )
2017-04-05 17:56:45 -07:00
Kuba Tyszko
5d6b71fdbb
fixes pull request hanging indefinitely when it contains normal and LFS file pointers ( #1425 )
2017-04-03 10:21:09 +08:00
Andrey Nering
37a34c1a28
Merge pull request #1410 from andreynering/notification/issue-watch
...
[Notifications Step 6] Per issue/PR watch/unwatch
2017-04-01 15:12:24 -03:00
Andrey Nering
f6e5ce65b2
Improve tests a little
2017-04-01 10:05:58 -03:00
Andrey Nering
e5c56fe30d
Code style fixes
2017-04-01 09:58:20 -03:00
agrn
88112a5324
Fix "Error: No issue number specified" when pushing ( #1393 )
...
* Fix "Error: No issue number specified" when pushing
* update pr
2017-03-31 18:05:39 -07:00
Mura Li
6a39250579
Add length check for the return string ( #1420 )
...
* Add length check for the return string
* Differentiate error paths and logging messages
* Rectify error message
2017-03-31 16:42:23 +08:00
Andrey Nering
e6781d5488
Add unit tests for issue_watch
2017-03-30 20:20:08 -03:00
Andrey Nering
a90ffffb1a
Use variables for times
2017-03-30 19:14:16 -03:00
Andrey Nering
18952c40f8
Add copyright headers
2017-03-30 19:11:58 -03:00
Andrey Nering
caed86fc6e
Fix lint
2017-03-29 21:18:28 -03:00
Andrey Nering
cb362513f0
Add updated_unix column on issue_watch
2017-03-29 20:59:28 -03:00
Andrey Nering
aa6e949b3d
Consider issue_watchers while sending notifications
2017-03-29 20:54:57 -03:00
Andrey Nering
b674460748
Add watch button on issue
2017-03-29 20:31:47 -03:00
Andrey Nering
a0d0de7233
Create issue_watch table
2017-03-29 19:55:40 -03:00
Bo-Yi Wu
08f7fded3c
refactor: remove workaround after the golang 1.7 release. ( #1349 )
...
* 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
2017-03-29 10:05:23 +08:00
Philippe Kueck
fe94032f74
rewrite pre-commit, post-commit and options hooks ( fixes #1250 ) ( #1257 )
...
* 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
2017-03-23 09:12:51 +08:00
Lunny Xiao
d330a23ce1
fix migration failed when authorized_keys is not exist ( #1180 )
2017-03-23 00:04:31 +08:00
Kim "BKC" Carlbäcker
d349f059af
Cleaner IMO ( #1361 )
2017-03-22 22:30:40 +08:00
Antoine GIRARD
14fe9010ae
GPG commit validation ( #1150 )
...
* GPG commit validation
* Add translation
+ some little fix
* Move hash calc after retrieving of potential key + missing translation
* Add some little test
2017-03-22 18:43:54 +08:00
Sandro Santilli
f73e734411
Run "make fmt" with go-1.6 ( #1333 )
2017-03-21 08:55:00 +08:00
Lunny Xiao
888dee3b5f
fix delete user failed on sqlite ( #1321 )
2017-03-20 22:13:52 +08:00
Lunny Xiao
bd8fe49076
fix wiki bugs ( #1294 )
2017-03-20 21:36:19 +08:00
Sandro Santilli
9182a35f18
Show user OpenID URIs in their profile ( #1314 )
2017-03-20 09:31:08 +01:00
Lunny Xiao
608cd54a68
fix gpg wrong column types
2017-03-20 02:55:07 +01:00
Bo-Yi Wu
1c3bd436cc
feat: Only use issue and wiki on repo. ( #1297 )
2017-03-18 18:59:07 +08:00
Sandro Santilli
71d16f69ff
Login via OpenID-2.0 ( #618 )
2017-03-17 15:16:08 +01:00
Lunny Xiao
3cf0e513e6
fix wrong log when push to a new branch ( #1220 )
2017-03-17 10:15:00 +08:00
Sandro Santilli
447c9b428f
Send notifications to partecipants in issue comments ( #1217 )
...
* 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
2017-03-16 09:34:24 +08:00
Antoine GIRARD
ca1c3f1926
Implement GPG api ( #710 )
...
* Implement GPG API
* Better handle error
* Apply review recommendation + simplify database operations
* Remove useless comments
2017-03-16 09:27:35 +08:00
Ethan Koenig
09fe4a2ae9
Batch updates for issues ( #926 )
2017-03-15 02:10:35 +01:00
Ethan Koenig
021904e4e6
Fix typos in models/ and modules/ ( #1248 )
2017-03-15 08:52:01 +08:00
Ethan Koenig
ec0ae5d50c
Refactor and fix incorrect comment ( #1247 )
2017-03-15 08:51:46 +08:00
Sandro Santilli
8746fb3385
Fix migration comment ( #1241 )
2017-03-14 14:39:02 +08:00
Lunny Xiao
1ccdf19fae
fix forget migration for wiki hooks ( #1227 )
2017-03-13 14:27:29 +08:00
Sandro Santilli
0475e7351f
Reserve the "explore" user/org name ( #1222 )
2017-03-12 09:39:38 +08:00
Ethan Koenig
c99e7e1a62
Simplify RepositoryList.loadAttributes() ( #1211 )
2017-03-11 16:50:12 +08:00
Ethan Koenig
3803f257fb
Move user_follow to separate file ( #1210 )
...
Also add unit tests
2017-03-11 16:46:53 +08:00
Ethan Koenig
1e3548b7e7
Unit tests for issue_list ( #1209 )
2017-03-11 16:46:23 +08:00
Philippe Kueck
e2b2fd6e78
fix #1189 , commit messages containing a pipe ( #1203 )
2017-03-11 12:01:38 +08:00
Lunny Xiao
74cde12677
Fix upgrade failed after ever rollback ( #1194 )
...
* fix upgrade failed after rollback
* fix upgrade failed after rollback
* fix possible upgrade twice fail after rollback
2017-03-10 23:43:51 +08:00
Lunny Xiao
f5476bdbb1
bug fixed for delete repo failed ( #1193 )
2017-03-10 22:05:53 +08:00
Lunny Xiao
5d40db629c
fix random avatars ( #1147 )
2017-03-08 23:05:15 +08:00
Lunny Xiao
2215840363
fix avatar bug #1114 ( #1122 )
...
This PR fix the avatar bug described in #1114 . This will fix random avatar is blank problem and potential delete avatars dir problem.
2017-03-06 16:15:40 +08:00
Lunny Xiao
0376029241
fix del org avatar potential delete all avtars ( #1120 )
2017-03-06 16:07:18 +08:00
Lunny Xiao
7b64b2ddab
fix install submit crash caused by xorm log ( #1119 )
2017-03-06 10:11:43 +08:00
Bo-Yi Wu
d76d67de23
feat: expose url field on issue api. ( #982 )
...
* Add api url func.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix: Add unit testing.
* fix: conflicts
* fix: remove trim
* fix: revert test function name.
2017-03-03 22:35:42 +08:00
Lunny Xiao
ef13bbaf7d
Don't rewrite non-gitea public keys ( #906 )
...
* don't rewrite non-gitea public keys
* add comment for public key
2017-03-03 00:36:47 +08:00
Lunny Xiao
9cb08a3cf5
fix wrong num of user repos because of duplicated click delete button & performance optimization ( #1092 )
2017-03-01 12:05:45 +08:00
Ethan Koenig
d21d5fd736
Remove unnecessary loads in org_team ( #1090 )
2017-03-01 09:09:49 +08:00
Ethan Koenig
22f7aa6e9c
LableIDs -> LabelIDs ( #1088 )
2017-03-01 09:08:45 +08:00
Bo-Yi Wu
e83c8afc56
refactor: move SearchRepositoryByName testing. ( #1083 )
2017-02-28 17:58:50 +08:00
Lunny Xiao
c2eef171ff
fix some typos ( #1082 )
2017-02-28 12:56:15 +08:00
Ethan Koenig
4b286f282a
Consistency checks for action unit tests ( #1079 )
2017-02-28 09:42:10 +08:00
Ethan Koenig
cf80e19157
Optimize and unit test Issue_ReplaceLabels ( #1080 )
2017-02-28 09:35:55 +08:00
Ethan Koenig
136e6beb0f
Fix unused Engine bugs ( #1064 )
2017-02-27 10:16:35 +08:00
Lunny Xiao
e4134debd1
Remove unused vars ( #1063 )
...
* remove unused vars
* remove unused comment
2017-02-27 09:22:15 +08:00
Lunny Xiao
32faec00e6
move all repo list functions as a standalone file ( #1061 )
2017-02-27 08:45:03 +08:00
Lunny Xiao
d4e38cf129
fix setMerged for remove unnecessary db connection ( #1067 )
2017-02-27 08:42:55 +08:00
Lunny Xiao
522f194983
Bug fixed for org avatar caused by #1049 ( #1070 )
...
* bug fixed for org avatar caused by #1049
* use isfile only
2017-02-27 08:42:22 +08:00
Bo-Yi Wu
95574a3640
fix: Admin can see all private repositories on Explore page. ( #1026 )
...
* fix: Admin can see all private repositories on Explore page.
* refactor: fix session
2017-02-26 13:59:31 +08:00
Sandro Santilli
bf24099114
Allow migrating installations with no local avatars ( #1056 )
2017-02-26 11:58:02 +08:00
Lunny Xiao
80f900ebae
Fix avatar enumable ( #1049 )
...
* fix avatar enumable
* fix import style
2017-02-25 22:58:57 +08:00
Lunny Xiao
19b3c45ca7
fix 500 when use a duplicat email instead of giving an error tip ( #1040 )
2017-02-25 22:57:06 +08:00
Lunny Xiao
cd1821a7e2
Move push update to post-receive and protected branch check to pre-receive ( #1030 )
...
* move all push update to git hook post-receive and protected branch check to git hook pre-receive
* add SSH_ORIGINAL_COMMAND check back
* remove all unused codes
* fix the import
2017-02-25 22:54:40 +08:00
Lunny Xiao
e8e56da9ac
fix #13 ( #1042 )
2017-02-25 22:53:57 +08:00
Andrey Nering
ddb0287bf6
Merge pull request #970 from andreynering/api-repo-mirror
...
Add "mirror" field to repo API
2017-02-25 11:35:03 -03:00
Lunny Xiao
fc4f7e82f9
refactor for searching user ( #1038 )
...
* refactor for searching user
* fix like bug
* better format for builder cond
2017-02-25 21:42:20 +08:00
Andrey Nering
946f3078d3
Add "mirror" field to repo API
2017-02-25 10:04:22 -03:00
Bo-Yi Wu
f1412142e0
refactor: repo counts for SearchRepositoryByName func ( #1045 )
2017-02-25 09:27:39 +08:00
Lunny Xiao
c0ea3963be
fix delete repo will hang on postgres ( #1044 )
2017-02-24 23:19:13 +08:00
Andrew Boyarshin
0602a44b27
Fix URL handling in the whole markdown module, improve test coverage ( #1027 )
...
Amended with string to bool change in API SDK.
Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
2017-02-24 22:59:56 +08:00
Ethan Koenig
76057105ca
Remove unnecessary loads in org_team ( #1035 )
2017-02-24 14:25:09 +08:00
Ethan Koenig
f1ab906c51
Unit tests for models/repo_collaboration ( #1032 )
2017-02-24 09:37:38 +08:00
bit
490d3771f7
s/fields/terms ( #1031 )
...
use terms instead of fields as variable name to avoid confusion: NewPhraseQuery(terms []string, field string)
2017-02-24 09:24:58 +08:00
Lunny Xiao
d077fd084a
added missing new struct sync ( #1021 )
2017-02-23 15:05:37 +08:00
Lunny Xiao
0e6b9ea786
Take back control of hooks ( #1006 )
...
* git: delegate all server-side Git hooks (#1623 )
* create hooks directories
* take control hooks back
* fix lint
* bug fixed and minor changes
* fix imports style
* fix migration scripts
2017-02-23 11:40:44 +08:00
Ethan Koenig
4f3880ff15
Bug fixes and unit tests for org_team ( #1016 )
2017-02-23 09:36:15 +08:00
Ethan Koenig
ec3a696e2d
Fix lint errors
2017-02-22 17:10:45 -05:00
Lunny Xiao
1f7837d6d6
Refactor for issues loadattributes of a repository ( #971 )
...
* refactor for issues loadattributes of a repository
* refactors
2017-02-22 22:03:59 +08:00
Bo-Yi Wu
83b6d03231
fix: Wrong repo list on Explore page if user already loggin. ( #1009 )
...
* fix: Wrong repo list on Explore page if user already loggin.
* fix: code readable.
* fix: declare variable
2017-02-22 21:15:14 +08:00
Willem van Dreumel
01d957677f
Oauth2 consumer ( #679 )
...
* initial stuff for oauth2 login, fails on:
* login button on the signIn page to start the OAuth2 flow and a callback for each provider
Only GitHub is implemented for now
* show login button only when the OAuth2 consumer is configured (and activated)
* create macaron group for oauth2 urls
* prevent net/http in modules (other then oauth2)
* use a new data sessions oauth2 folder for storing the oauth2 session data
* add missing 2FA when this is enabled on the user
* add password option for OAuth2 user , for use with git over http and login to the GUI
* add tip for registering a GitHub OAuth application
* at startup of Gitea register all configured providers and also on adding/deleting of new providers
* custom handling of errors in oauth2 request init + show better tip
* add ExternalLoginUser model and migration script to add it to database
* link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed
* remove the linked external account from the user his settings
* if user is unknown we allow him to register a new account or link it to some existing account
* sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers)
* from gorilla/sessions docs:
"Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!"
(we're using gorilla/sessions for storing oauth2 sessions)
* use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
2017-02-22 08:14:37 +01:00
Denis Denisov
fd941db246
Protected branches system ( #339 )
...
* Protected branches system
* Moved default branch to branches section (`:org/:reponame/settings/branches`).
* Initial support Protected Branch.
- Admin does not restrict
- Owner not to limit
- To write permission restrictions
* reformat tmpl
* finished the UI and add/delete protected branch response
* remove unused comment
* indent all the template files and remove ru translations since we use crowdin
* fix the push bug
2017-02-21 23:02:10 +08:00
Willem van Dreumel
5f234ce2a5
add missing copyright header ( #992 )
2017-02-21 08:46:14 +08:00
Lunny Xiao
04fdeb9d8d
Make Xorm log configurable ( #174 )
...
* make xorm log configable
* bug fixed for other sub commands except web
* rebase and fix xorm log
* bug fix for TrimSpace
2017-02-20 16:11:13 +08:00
Ethan Koenig
be48b32e63
Unit tests for repo watching ( #963 )
2017-02-17 16:02:11 +08:00
Lunny Xiao
847527fd6d
Fix all the bugs in issues and pulls on dashboard ( #943 )
...
* fix all the bugs in issues and pulls on dashboard
* small fix and refactor
* add method getRepoIDs for IssueList
2017-02-17 08:58:19 +08:00
Ethan Koenig
140967f002
Unit tests for repo redirects ( #961 )
2017-02-17 08:55:33 +08:00
Lunny Xiao
7fd14bf7bd
optimization for team get repos ( #953 )
2017-02-16 12:07:58 +08:00
Lunny Xiao
46320f9630
refactor notificationsForUser since xorm In support slice of customerize type ( #956 )
2017-02-16 12:07:00 +08:00
Lunny Xiao
0642cb330c
Small opitimization for getUserTeams ( #954 )
...
* Small opitimization for getUserTeams
* more compact
2017-02-16 12:06:23 +08:00
Bo-Yi Wu
43c94d0a6c
test: Add testing for GetUserFork function ( #944 )
2017-02-15 23:24:23 +08:00
Bo-Yi Wu
a31f64d639
fix: 500 error on /explore/repos page. ( #946 )
2017-02-15 22:28:11 +08:00
Bo-Yi Wu
9d2b830275
refactor: small optimize for sql query ( #940 )
...
* refactor: small optimize for sql query
* fix: get owner name if Searcher is not nil or user star page.
2017-02-15 14:01:50 +08:00
Lunny Xiao
837d346090
fix some older Gogs upgrade to Gitea ( #929 )
2017-02-15 09:32:03 +08:00
Lunny Xiao
9c645b54dc
bug fixed on issues and pulls
2017-02-15 01:17:07 +01:00
Lunny Xiao
4cfde304df
bug fixed for my repository ( #933 )
2017-02-14 23:37:44 +08:00
Lunny Xiao
7a9a5c8a69
Fix assigned issues dashboard ( #920 )
...
* Fix assigned/created issues in dashboard. (#3560 )
* Fix assigned/created issues in dashboard.
* Use GetUserIssueStats for getting all Dashboard stats.
* Use gofmt to format the file properly.
* Replace &Issue{} with new(Issue).
* Check if user has access to given repository.
* Remove unnecessary filtering of issues.
* Return 404 error if invalid repository is given.
* Use correct number of issues in paginater.
* fix issues on dashboard
2017-02-14 22:15:18 +08:00
Lunny Xiao
3a91ac51a9
fix bug of multiple forks ( #928 )
2017-02-14 22:14:29 +08:00
Bo-Yi Wu
d67b278a0d
feat: Able to disable non-admin to create new organization ( #927 )
2017-02-14 20:16:00 +08:00
Bo-Yi Wu
23aba523b5
feat: support search bar on star tab of user profile. ( #917 )
...
* feat: support search bar on star tab of user profile.
* fix: update testing.
* fix: Using loadAttributes
* fix: remove empty line.
* remove LOWER
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-02-14 15:28:22 +08:00
Lunny Xiao
7eb8daffa3
Use fingerprint to check instead content for public key ( #911 )
...
* use fingerprint to check instead content for public key
* add fingerprint field for ErrKeyAlreadyExist
2017-02-14 14:12:52 +08:00
Lunny Xiao
55ae78208e
Small optimization for getTeamIDs ( #919 )
...
* small optimization for getTeamIDs
* rename getOrgTeamIDs to getUserTeamIDs and remove orderby
2017-02-14 11:46:46 +08:00
Bo-Yi Wu
1ec6b1a258
fix: gofmt error. ( #918 )
2017-02-14 10:12:03 +08:00
Bo-Yi Wu
5cc275b1de
feat: add git version on admin panel. ( #921 )
2017-02-13 19:49:42 +08:00
Ethan Koenig
076f940f1f
Fix logging bug
...
Error logged everytime an assignee was removed
2017-02-12 08:54:15 +01:00
Lunny Xiao
d76f34ef51
small optimization for get issue labels
2017-02-12 06:46:51 +01:00
Andrew
3f67676059
Implement basic Open Graph support. ( #901 )
2017-02-11 20:57:33 +08:00
Lunny Xiao
8a0be5e9f0
Bug fixed for deleted label in issue comment ( #904 )
...
* bug fixed for deleted label in issue comment
* fix indent
2017-02-11 20:56:57 +08:00
Morgan Bazalgette
442145dbd3
Fix public activity showing private repos ( #892 )
...
* Fix public activity showing private repos (#811 )
Signed-off-by: Morgan Bazalgette <the@howl.moe>
* error check after setting is_private to true
* Add test for UpdateRepository w/ visibility change
2017-02-11 18:57:57 +08:00
Andrew
42835c7f82
Implement archive cleanup ( #885 )
...
* Implement archive cleanup
Fixes #769
Signed-off-by: Andrew <write@imaginarycode.com>
* Make sure to close the directory file
* Resolve issues noted by @strk
* edit cheatsheet app.ini [ci skip]
* oops [ci skip]
2017-02-11 12:00:46 +08:00
Lunny Xiao
cf0f451c37
Add delete branch track on pull request comments ( #888 )
...
* add delete branch track on pull request comments
* don't change vendor
2017-02-11 12:00:29 +08:00
Lunny Xiao
b6dd6210ea
bug fixed for issue count ( #881 )
2017-02-09 17:59:57 +08:00
Ethan Koenig
a6751cec04
Unit tests for issue_milestone ( #878 )
2017-02-09 14:39:26 +08:00
Ethan Koenig
13973348df
Gogs -> Gitea ( #877 )
2017-02-09 13:44:18 +08:00
Ethan Koenig
e6b4448ba3
Fix bug in Issue.GetIsRead ( #876 )
2017-02-09 11:47:24 +08:00
Ethan Koenig
181c8d9c99
Fix consistency check ( #866 )
2017-02-08 14:29:21 +08:00
Ethan Koenig
d2329e1c26
Use assert in legacy unit tests ( #867 )
2017-02-08 14:29:07 +08:00
Ethan Koenig
5fbab97373
Fix broken test fixture ( #859 )
2017-02-07 22:49:37 +08:00
Bo-Yi Wu
b13232f524
feat: support paginater on star tab of user profile. ( #845 )
2017-02-07 19:54:16 +08:00
Ethan Koenig
ceae143e78
Consistency checks for unit tests ( #853 )
2017-02-07 19:47:55 +08:00
Bo-Yi Wu
71d35dae8c
fix: wrong pages number which includes private repository count. ( #844 )
2017-02-06 23:18:36 +08:00
Ethan Koenig
438e1a7d46
Fix inconsistencies in unit test fixtures
2017-02-05 22:43:31 -05:00
Lunny Xiao
f35b20b042
track issue title changes ( #841 )
2017-02-05 22:36:00 +08:00
Ethan Koenig
027591a3a5
Redirects for renamed repos ( #807 )
...
* Redirects for renamed repos
* Remove unused phrase from locales
2017-02-05 22:35:03 +08:00
Bwko
bf647ce143
Check for manual merging of a pull request ( #719 )
...
When an open pull request got manually merged mark the pull request as
merged
2017-02-05 21:07:44 +08:00
Andrey Nering
7c3dc51655
Merge pull request #839 from ethantkoenig/fix/remove_org_repo
...
Fix bug in removeOrgRepo
2017-02-04 14:55:02 -02:00
Ethan Koenig
f82ea42679
Fix bug in removeOrgRepo
2017-02-04 11:01:21 -05:00
Ethan Koenig
5972aa9af3
Fix inconsistencies in test fixtures
2017-02-04 11:01:06 -05:00
Lunny Xiao
8a421b1fd7
Add units concept for modulable functions of a repository ( #742 )
...
* Add units concept for modulable functions of a repository
* remove unused comment codes & fix lints and tests
* remove unused comment codes
* use struct config instead of map
* fix lint
* rm wrong files
* fix tests
2017-02-04 23:53:46 +08:00
Ethan Koenig
d0960b8035
Move IssueUser code to separate file ( #836 )
...
Also add unit tests
2017-02-04 20:37:26 +08:00
Andrey Nering
d4035d1cb1
Merge pull request #830 from appleboy/patch-2001
...
refactor: set default order by recently star on start tab
2017-02-04 10:32:55 -02:00
Bo-Yi Wu
a90a215662
feat: Add search bar on user profile page. ( #787 )
2017-02-04 20:20:20 +08:00
Bo-Yi Wu
b6da658553
test: Add user mail testing. ( #833 )
2017-02-04 09:20:56 +08:00
Lunny Xiao
3e0525b47d
Track assignee for issue ( #808 )
...
* track assignee for issue
* fix lint
* use getUserByID instead Get
2017-02-03 23:09:10 +08:00
Ethan Koenig
68bdaf0a6b
Drop redundant columns from issue_user table ( #638 )
2017-02-03 15:22:39 +08:00
Bo-Yi Wu
e2de16065a
refactor: set default order by recently star.
2017-02-03 12:03:49 +08:00
Gabriel Jackson
bf6f61cc69
Cleanup log messaging
...
This change corrects a few logging issues:
* Standardized formatting errors with '%v'.
* Standardized failure warning word usage.
* Corrected an instance of using the standard log library when
the gitea log library should be used instead.
2017-02-02 15:24:18 +01:00
Bo-Yi Wu
d7d094bd8a
fix: ignore email notifications if user is not active. ( #820 )
2017-02-02 20:33:36 +08:00
Anton Skorokhod
79ab69fe30
Add X-GitHub-* headers for webhook to get clubhouse.io integration working ( #809 )
2017-02-02 11:51:19 +08:00
Lunny Xiao
081485ecfd
add milestone changed traker on issue view ( #804 )
2017-02-01 10:36:08 +08:00
Ethan Koenig
10644d6dd7
Bug fixes and unit tests for models/issue_label ( #802 )
2017-02-01 09:31:35 +08:00
Ethan Koenig
0a02fb3c4f
Windows compatibility for unit tests ( #800 )
2017-01-30 22:22:04 +08:00
Ethan Koenig
2eb15f4a61
Unit tests and remove unused functions in models/notification ( #796 )
...
* Unit tests and remove unused functions in models/notification
* Read -> Unread
2017-01-30 22:21:49 +08:00
Lunny Xiao
f94869d2d1
Track labels changed on issue view & resolved #542 ( #788 )
...
* track labels changed on issue view & resolved #542
* add missing head comment & sort & fix refresh
2017-01-30 20:46:45 +08:00
Ethan Koenig
7765593018
Better settings for unit tests ( #795 )
2017-01-30 13:17:43 +08:00
Thomas Boerger
78535fb08e
Allow custom public files ( #782 )
...
* Allow custom public files
* Gofmt code, lots of places not related to this pr
2017-01-28 23:14:56 +01:00
Andrey Nering
cc31a21192
Merge pull request #781 from andreynering/notifications-step-5
...
Notifications step 5
2017-01-28 17:54:37 -02:00
Andrey Nering
5348e8b71a
Fix color: closed PR was showing as purple instead of red
2017-01-28 14:01:07 -02:00
Andrey Nering
31c717f579
Merge pull request #777 from ethantkoenig/tests/wiki
...
Unit tests for models/wiki
2017-01-28 11:27:45 -02:00
Ethan Koenig
bb76285762
Unit tests for models/wiki
2017-01-27 13:08:17 -05:00
Ethan Koenig
a2412492da
Unit tests and bug fix for models/org
2017-01-27 12:24:06 -05:00
Lunny Xiao
bb5a6b7a07
fix xorm NewSession uncorrected usages ( #774 )
2017-01-28 00:11:41 +08:00
Bo-Yi Wu
25663b5816
refactor: Remove unnecessary type conversions ( #772 )
2017-01-27 23:03:32 +08:00
Ethan Koenig
da1b6164fe
Fix FIXME and remove superfluous queries in models/org ( #749 )
2017-01-25 23:41:38 +08:00
Bo-Yi Wu
691fbdf1d3
fix: delete attachment after remove comment.
2017-01-25 16:40:43 +01:00
Ethan Koenig
0934d1b1ea
Bug fixes and unit tests for models/webhook ( #751 )
2017-01-25 18:37:35 +08:00
Ethan Koenig
a6832c234d
Unit tests for models/star ( #752 )
2017-01-25 18:37:10 +08:00
Lunny Xiao
8c2381103a
bug fixed issues 500 resolved #754 ( #756 )
2017-01-25 16:28:03 +08:00
Ethan Koenig
8093b3372e
Less boilerplate in models/ unit tests ( #725 )
2017-01-25 10:49:51 +08:00
Ethan Koenig
833f8b94c2
Search bar for issues/pulls ( #530 )
2017-01-25 10:43:02 +08:00
Andrey Nering
521d429b58
Fix link of some repos on stars page ( #737 )
...
Link was wrong the repo was of another owner
2017-01-24 10:39:58 +08:00
Bwko
74ed6dc3ad
Add option to app.ini to enable local import paths ( #724 )
2017-01-23 09:19:50 +08:00
Bwko
1257d43e14
Add a reserved path check to the wiki ( #720 )
2017-01-22 23:08:54 +08:00
Lunny Xiao
f8c2903484
fixed bugs on Wiki and resolved #667 ( #674 )
2017-01-21 20:50:51 +08:00
Philip Couling
1610b9f547
Spun attachments into seperate go file ( #701 )
...
Moved attachments into seperate go file
2017-01-20 07:58:46 +01:00
Ethan Koenig
74bbec3bf9
Fix permission bugs in team API ( #647 )
2017-01-20 13:16:10 +08:00
Ethan Koenig
fcf02e4961
API Endpoints for organization members ( #645 )
2017-01-20 10:31:46 +08:00
Matthias Loibl
d1006150fb
Refactor process package and introduce ProcessManager{} with tests ( #75 )
...
* Add a process.Manager singleton with process.GetManager()
* Use process.GetManager everywhere
* Fix godoc comments for process module
* Increment process counter id after locking the mutex
2017-01-17 13:58:58 +08:00
Andrew
6dd096b7f0
Two factor authentication support ( #630 )
...
* Initial commit for 2FA support
Signed-off-by: Andrew <write@imaginarycode.com>
* Add vendored files
* Add missing depends
* A few clean ups
* Added improvements, proper encryption
* Better encryption key
* Simplify "key" generation
* Make 2FA enrollment page more robust
* Fix typo
* Rename twofa/2FA to TwoFactor
* UNIQUE INDEX -> UNIQUE
2017-01-16 10:14:29 +08:00
Philip Couling
64375d875b
Attach to release ( #673 )
...
* Moved attachaments POST url from /issues/attachments to /attachments
* Implemented attachment upload on release page
* Implemented downloading attachments on the release page
* Added zip and gzip files to default allowed attachments
* Implemented uploading attachments on edit release
* Renamed UploadIssueAttachment to UploadAttachment
2017-01-15 22:57:00 +08:00
btrepp
302fa42980
Removes reliance on server specific SQL ( #393 )
...
Breaks the retrieval of repositories into two queries
This fetches the paged ids in one go, then the
actual repository information in a second query
Some databases do not support SELECT with *
when group by is used.
2017-01-14 22:32:36 +08:00
Ethan Koenig
a6f5efa0bb
Fix ambiguity bug in getCommentsByRepoIDSince ( #665 )
2017-01-14 10:21:30 +08:00
Ethan Koenig
27fcf8d30a
Bug fixes for webhook API ( #650 )
2017-01-14 10:14:48 +08:00
Lunny Xiao
87ad4961f6
bug fixed for update repository ( #664 )
2017-01-14 10:07:04 +08:00
Andrey Nering
769e0a3ea6
Notifications: mark as read/unread and pin ( #629 )
...
* Use relative URLs
* Notifications - Mark as read/unread
* Feature of pinning a notification
* On view issue, do not mark as read a pinned notification
2017-01-12 12:27:09 +08:00
Bo-Yi Wu
cbf2a967c5
refactor: Add new deleteOrg func. ( #633 )
2017-01-11 21:10:43 +08:00
Ethan Koenig
b316b2e740
Unit tests for models/admin
2017-01-09 21:49:51 +01:00
Ethan Koenig
973282dae2
Better coverage in pull_test ( #615 )
2017-01-09 11:15:07 +08:00
Ethan Koenig
862948ab88
Better coverage and TODOs for update_test ( #616 )
2017-01-09 11:14:57 +08:00
Ethan Koenig
4b23e6a694
Unit tests for models/action ( #619 )
2017-01-09 11:08:36 +08:00
derSuessmann
51d578ff33
Add Keep email private (see issue #571 ). ( #571 )
...
- Add site-wide option DEFAULT_KEEP_EMAIL_PRIVATE.
- Add the new option to the install and admin/config pages.
- Add the new option to app.ini in the service section.
- Add the new option to the settings struct.
- Add English text strings to i18n.
- Add field KeepEmailPrivate to user struct.
- Add field KeepEmailPrivate to user form.
- Add option to UI.
- Add using noreply email address if user has "Keep Email Private".
An email address <LowerName>@<NO_REPLY_ADDRESS> is now used in commit
messages (and hopefully all other git log relevant places). The
change relies on the fact that git commands should use
user.NetGitSig().
- Add hiding of email address in UI, if user has set "Keep Email Private".
- Add condition to show email address only on explore/users and user
pages, if user has not set "Keep Email Private".
- Add noreply email in API if set "Keep Email Private".
- Add a new service setting NO_REPLY_ADDRESS. The value of this
setting is used as the domain part for the user's email address in
git log, iff he decides to keep his email address private.
If the user decides to keep his email address private and this
option is not set 'noreply.example.org' is used, which no MTA
should send email to.
Add NO_REPLY_ADDRESS to conf/app.ini.
2017-01-08 11:12:03 +08:00
Ethan Koenig
6072b03291
Unit tests for models/access.go ( #606 )
2017-01-08 11:10:53 +08:00
Ethan Koenig
8422ab542c
API endpoint for subscribers ( #598 )
2017-01-07 11:13:02 +08:00
Andrey Nering
03b45284e1
Merge pull request #555 from ethantkoenig/tests/pull
...
Unit tests for models/pull.go
2017-01-06 19:19:18 -02:00
Andrey Nering
84b7d29d34
Create missing database indexes ( #596 )
2017-01-06 23:14:33 +08:00
Ethan Koenig
72bfabfada
Unit tests for models/pull.go
2017-01-06 10:08:23 -05:00
Ethan Koenig
1a7fc53c98
API endpoint for stargazers ( #597 )
2017-01-06 15:05:09 +08:00
Lunny Xiao
61306fa737
Make releases faster than before and resolved #490 ( #588 )
...
* make releases faster than before and resolved #490
* fix comment
2017-01-06 09:51:15 +08:00
Andrey Nering
79d527195d
Merge pull request #539 from andreynering/notifications-step-2
...
Notifications - Step 2
2017-01-05 11:53:01 -02:00
Ethan Koenig
c5f0d4b1a0
Fix SQL bug in models/access ( #583 )
...
Previously got a 'relation repo_access does not exist' error in User_GetRepositoryAccesses
2017-01-05 08:57:54 +08:00
Berk Demirkır
bdad3b259a
Check primary email address fields on CreateUser ( #556 )
...
* Check primary email address fields on CreateUser
As this check wasn't available, uid=1 (and possibly guests too, if registration is open) is able to register new users with existing email addresses. This leads to numerous 500 errors.
* Update user.go
* Lower the email first. Then check
2017-01-05 08:52:20 +08:00
Ethan Koenig
1207bda94b
Fix typos in models/ ( #576 )
2017-01-05 08:50:34 +08:00
Andrey Nering
b354cf362e
Add pagination for notifications
2017-01-03 17:09:36 -02:00
Lunny Xiao
09dabe2ff2
fix bug #564 ( #567 )
2017-01-03 16:27:11 +08:00
Lunny Xiao
980dd0bf51
Update xorm and dependencies vendor for feature to dump to other database ( #565 )
...
* update xorm and dependencies vendor for feature to dump to other database
* fix golint
2017-01-03 16:20:28 +08:00
Kjell Kvinge
4b0974ec10
Fix benchmarktests ( #557 )
2017-01-03 10:52:09 +08:00
Lunny Xiao
3c7116382f
change the default action when deleting a release to not delete tag
2017-01-03 02:27:38 +01:00
Ethan Koenig
0c301f7b5c
Release API endpoints
2017-01-02 00:10:52 +01:00
Lunny Xiao
6e5fffbd3f
resolved #485 : when migrate empty wiki repo, then ignore ( #541 )
2016-12-31 17:34:34 +08:00
Ethan Koenig
de8b73dd92
Unit tests for token and update models
2016-12-31 10:17:45 +01:00
Schwobaland
c0904f1942
Restrict creating organisations by user ( #193 )
...
* restrict creating organizations based on right on user
* revert bindata.go
* reverse vendor lib
* revert goimports change
* set AllowCreateOrganization default value to true
* revert locale
* added default value for AllowCreateOrganization
* fix typo in migration-comment
* fix comment
* add coments in migration
2016-12-31 10:33:30 +08:00
Bo-Yi Wu
6510e57758
fix gofmt error
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-30 20:41:10 +01:00
Andrey Nering
42904cb98a
Notification - Step 1 ( #523 )
...
* Notification - Step 1
* Add copyright headers
* Cache issue and repository on notification model
2016-12-31 00:44:54 +08:00
typeless
937b4b5aa1
Speed up conflict checking in pull request creation ( #276 )
...
* Speed up conflict checking in pull request creation
In order to check conflicts of a PR, we set up a working tree by
cloning the base branch, which is quite time-consuming when the repository is huge.
Instead, this PR uses `git read-tree` and `git apply --check --cached` to check conflicts.
For #258
* Use $GIT_INDEX_FILE instead of --index-output to avoid lockfile problem
The lockfile gets renamed to the final destination after the operation
finishes. But it must be located in the same filesystem, which prevents
us from using /tmp.
* Temporary file names should not prefixed with '-'
2016-12-29 22:59:52 +08:00
Andrey Nering
b992858883
Tab on user profile to show starred repos ( #519 )
...
* Tab on user profile to show starred repos
* Make golint happy and use transactions on StarRepo function
* x -> sess
* Use sess.Close() instead of sess.Rollback()
* Add copyright
* Fix lint
2016-12-29 22:58:24 +08:00
Lunny Xiao
799d0c2030
slight optimization for GetUserRepositories ( #498 )
2016-12-29 02:53:33 -06:00
Kjell Kvinge
22e1bd31c6
commithgraph / timeline ( #428 )
...
* Add model and tests for graph
* Add route and router for graph
* Add assets for graph
* Add template for graph
2016-12-29 07:44:32 +08:00
Bwko
331316894e
Replace Gogs with Gitea ( #520 )
2016-12-28 16:33:21 +08:00
Lunny Xiao
c463b1b8cb
Optimization for user.GetRepositoryAccesses to reduce db query times ( #495 )
...
* optimization for user.GetRepositoryAccesses to reduce db query times
* fix missing cache
2016-12-28 09:34:35 +08:00
Lunny Xiao
ba134bd27a
fix 500 when delete orgnization and resolved #486
2016-12-27 12:00:12 +01:00
Ethan Koenig
2342df183b
API Endpoints for collaborators ( #375 )
2016-12-26 15:37:01 +08:00
Fabian Zaremba
2e7ccecfe6
Git LFS support v2 ( #122 )
...
* Import github.com/git-lfs/lfs-test-server as lfs module base
Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198
Removed:
Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go
.dockerignore .gitignore README.md
* Remove config, add JWT support from github.com/mgit-at/lfs-test-server
Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83
* Add LFS settings
* Add LFS meta object model
* Add LFS routes and initialization
* Import github.com/dgrijalva/jwt-go into vendor/
* Adapt LFS module: handlers, routing, meta store
* Move LFS routes to /user/repo/info/lfs/*
* Add request header checks to LFS BatchHandler / PostHandler
* Implement LFS basic authentication
* Rework JWT secret generation / load
* Implement LFS SSH token authentication with JWT
Specification: https://github.com/github/git-lfs/tree/master/docs/api
* Integrate LFS settings into install process
* Remove LFS objects when repository is deleted
Only removes objects from content store when deleted repo is the only
referencing repository
* Make LFS module stateless
Fixes bug where LFS would not work after installation without
restarting Gitea
* Change 500 'Internal Server Error' to 400 'Bad Request'
* Change sql query to xorm call
* Remove unneeded type from LFS module
* Change internal imports to code.gitea.io/gitea/
* Add Gitea authors copyright
* Change basic auth realm to "gitea-lfs"
* Add unique indexes to LFS model
* Use xorm count function in LFS check on repository delete
* Return io.ReadCloser from content store and close after usage
* Add LFS info to runWeb()
* Export LFS content store base path
* LFS file download from UI
* Work around git-lfs client issue with unauthenticated requests
Returning a dummy Authorization header for unauthenticated requests
lets git-lfs client skip asking for auth credentials
See: https://github.com/github/git-lfs/issues/1088
* Fix unauthenticated UI downloads from public repositories
* Authentication check order, Finish LFS file view logic
* Ignore LFS hooks if installed for current OS user
Fixes Gitea UI actions for repositories tracking LFS files.
Checks for minimum needed git version by parsing the semantic version
string.
* Hide LFS metafile diff from commit view, marking as binary
* Show LFS notice if file in commit view is tracked
* Add notbefore/nbf JWT claim
* Correct lint suggestions - comments for structs and functions
- Add comments to LFS model
- Function comment for GetRandomBytesAsBase64
- LFS server function comments and lint variable suggestion
* Move secret generation code out of conditional
Ensures no LFS code may run with an empty secret
* Do not hand out JWT tokens if LFS server support is disabled
2016-12-26 09:16:37 +08:00
Philip Couling
d4924d45d6
Implement sendmail ( #355 )
...
* Implemented sendmail. This piggybacks on existing configuration to keep the change simple
* Changed privicy of new sendSMTP and sendSendmail functions
* Fixed Lint errors
* Seperated SMTP and sendmail into their own senders
* Making new structs private as they should not be used externally now
* Added sendmail setting to ini file
* Minor code cleanup
2016-12-25 14:55:22 +01:00
Bwko
fa3abc22c0
Added sorting to organizations, repos & users page ( #222 )
2016-12-24 22:42:26 +08:00
Bwko
a345a03d99
Added sorting to the labels & milestones page ( #199 )
2016-12-24 22:41:09 +08:00
Ethan Koenig
d0932ef147
Bug fixes for Issues filters ( #413 )
...
Correctly handle simultaneous assignee/poster filters, and conflicting assignee filters
2016-12-24 18:33:21 +08:00
Ethan Koenig
8a4161c723
API Endpoint for watching ( #191 )
2016-12-24 09:53:11 +08:00
btrepp
25b5ffb6af
Enables mssql support ( #383 )
...
* Enables mssql support
Port of dlobs work in gogs.
Enables options in index.js
Enables MSSQL as a database option in go.
Sets ID to 0 on initial migration. Required for
MSSQL insert statements.
Signed-off-by: Beau Trepp <beautrepp@gmail.com>
* Vendors in denisenkom/go-mssqldb
Includes golang.org/x/crypto/md4
as this is required by go-msssqldb
Signed-off-by: Beau Trepp <beautrepp@gmail.com>
2016-12-24 09:37:35 +08:00
Lunny Xiao
a822bba3e1
Add default values for settings ( #455 )
...
* add default values for settings
* more default values
* more default settings and labels resource
* mv locale to options
2016-12-23 15:18:05 +08:00
Thomas Boerger
b33078fa33
Bindata is optional and over-writable on restart ( #354 )
...
* Moved conf assets into options folder
* Dropped old bindata
* Started to integrate options bindata and accessors
* Do not enforce a builtin app.ini
* Replaced bindata calls with options
* Dropped bindata task from makefile, it's the generate task now
* Always embedd app.ini to provide sane config defaults
* Use sane defaults for the configuration
* Defined default value for SSH_KEYGEN_PATH
* Dropped "NEVER EVER MODIFY THIS FILE" header from app.ini
* Fixed new paths in latest test additions
* Drop bindata with make clean task
* Set more proper default values
2016-12-22 19:12:23 +01:00
Lunny Xiao
c21e2c4151
fix tag webhook 404 error ( #420 )
2016-12-22 22:57:48 +08:00
Lunny Xiao
47a7529d96
update code.gitea.io/git ( #450 )
2016-12-22 10:30:52 +01:00
Lunny Xiao
0c5c34d7dd
UpdateIssueUsersByMentions was calling database write operations while ( #443 )
...
a transaction session was in progress. MailParticipants was failing
silently because of the SQLITE_LOCKED error. Make sure failures in
MailParticipants enter the log, and pass on the transaction context.
issue: let caller pass in database context, and use it
issue_comment: obtain database context to pass to UpdateIssueMentions
issue_comment: log any error from call to MailParticipants
issue_mail: pass on database context to UpdateIssueMentions
2016-12-22 17:00:39 +08:00
Ethan Koenig
4c89a9c33c
Bug fixes and tests for modules/base ( #442 )
...
Also address other TODOs
2016-12-22 16:58:04 +08:00
Kim "BKC" Carlbäcker
df7fa4e995
issue comment api fix ( #449 )
...
* ListAllInRepo & Delete Issue-Comments
* Moar data in issue-comments
2016-12-22 16:29:26 +08:00
Alexander Lunegov
d5d21b67d2
Fix string format verbs ( #3637 )
2016-12-22 08:18:41 +01:00
Denis Denisov
380e32e129
Fix random string generator ( #384 )
...
* Remove unused custom-alphabet feature of random string generator
Fix random string generator
Random string generator should return error if it fails to read random data via crypto/rand
* Fixes variable (un)initialization mixed assign
Update test GetRandomString
2016-12-20 13:32:02 +01:00
Michael de Wit
1d30457a94
change test mail subject and body to 'Gitea Test Mail!'
...
Signed-off-by: Michael de Wit <mjwwit@gmail.com>
2016-12-20 09:34:50 +01:00
Lunny Xiao
7c46667e71
fixed vulnerabilities labels ( #409 )
2016-12-17 19:49:17 +08:00
Richie B2B
44428fdc38
Remove fixed FIXME ( #408 )
2016-12-16 17:00:30 +01:00
Richie B2B
0d6e88baef
Fix typo ( #407 )
2016-12-16 17:00:15 +01:00
Lunny Xiao
15c3d14d55
fixed vulnerabilities on deleting release ( #399 )
2016-12-16 19:42:39 +08:00
Lunny Xiao
b4c794058a
fixed vulnerabilities ( #392 )
2016-12-15 16:49:06 +08:00
Lunny Xiao
d771e978a1
Don't use custom PBKDF2 function ( #382 )
2016-12-15 09:24:27 +08:00
Lunny Xiao
73710c00a8
bug fixed branch name for pushupdate ( #380 )
2016-12-13 15:19:42 +08:00
Denis Denisov
f0a989c1d0
Correction LDAP validation ( #342 )
...
* Correction LDAP username validation
As https://msdn.microsoft.com/en-us/library/aa366101(v=vs.85).aspx describe spaces should not be in start or at the end of username but they can be inside the username. So please check my solution for it.
* Check for zero length passwords in LDAP module.
According to https://tools.ietf.org/search/rfc4513#section-5.1.2 LDAP client should always check before bind whether a password is an empty value. There are at least one LDAP implementation which does not return error if you try to bind with DN set and empty password - AD.
* Clearing the login/email spaces at the [start/end]
2016-12-12 08:46:51 +08:00
Bwko
abcd39f7d5
In the wiki title replace tab with a space ( #371 )
2016-12-11 11:01:26 +08:00
Bwko
cbcb4361d5
Fixes issue #283
...
Delete old temp local copy before we create a new temp local copy
2016-12-09 20:13:48 +01:00
Ethan Koenig
401a8db0ed
Remove stale comment in models/repo.go ( #366 )
2016-12-08 00:04:12 +01:00
Ethan Koenig
04b9a7e7a2
Bug fixes for repo permissions in API
...
Also move duplicated code into repo.APIFormat(..)
2016-12-07 12:55:24 +01:00
Thomas Boerger
83ed234472
Integrate templates into bindata optionally ( #314 )
...
Integrated optional bindata for the templates
2016-12-06 18:58:31 +01:00
Kim "BKC" Carlbäcker
d07c955e2a
Fix regression in PR-API #248 ( #349 )
...
* Fix #344 (regression in PR-API #248 )
2016-12-05 12:17:39 +01:00
Bwko
0118b275b6
Fix for #320
...
Suppress the error when we're removing a file that may not exist
2016-12-03 22:31:54 +01:00
Denis Denisov
c8f300b2cd
Safe compare password (timing attack) ( #338 )
2016-12-03 13:49:17 +08:00
Kim "BKC" Carlbäcker
0f05470cb8
[API] Pull Requests ( #248 )
2016-12-02 12:10:39 +01:00
Kim "BKC" Carlbäcker
e8e0539b45
Linting
2016-12-02 09:31:44 +01:00
Kim "BKC" Carlbäcker
e6cfccdd40
GitHub API Compliance (& linting)
2016-12-02 09:18:15 +01:00
Bwko
4ff0db0246
Catch os... errors
2016-12-02 07:41:19 +01:00
Bwko
5ab85372da
Added rel="noopener" to target="_blank" hrefs ( #327 )
...
* Added rel="noopener" to target="_blank" hrefs
* Replaced gogs.io/docs with docs.gitea.io
2016-12-02 09:12:16 +08:00
Lunny Xiao
646e02b521
typo
2016-12-01 09:05:32 +08:00
Thomas Boerger
6dd2c3b2db
Fixed linting errors for variable definitions
2016-11-29 14:05:26 +01:00
Kim "BKC" Carlbäcker
42ec5ce740
Fix breakage from vendor-update
2016-11-29 11:50:22 +01:00
Kim "BKC" Carlbäcker
dad806d3ea
CreateBranch-hook has shasum. Use the full ref for fetching shasum
2016-11-29 11:50:22 +01:00
Kim "BKC" Carlbäcker
f364522468
Tag-webhooks are useless without shasums
2016-11-29 11:50:22 +01:00
Andrey Nering
fd53028139
Merge pull request #294 from Bwko/Lint/user.go
...
Lint models/user.go
2016-11-28 20:30:02 -02:00
Bwko
bad1bc6518
Lint models/repo.go
2016-11-28 18:27:55 +01:00
Bwko
a5aae1c145
Lint models/repo_*
2016-11-28 17:58:59 +01:00
Bwko
9963d61233
Lint models/user.go
2016-11-28 17:47:46 +01:00
Lunny Xiao
27d66855eb
golint fixed for models/migrations ( #291 )
2016-11-28 23:44:17 +08:00
Lunny Xiao
1d0f811399
golint fixed for models/pull.go ( #292 )
2016-11-28 23:31:06 +08:00
Lunny Xiao
9fc609ce17
golint fixed for models/issue_comment.go
2016-11-28 21:33:09 +08:00
Thomas Boerger
9948f0daaa
Merge pull request #285 from lunny/lunny/golint_models_org_team
...
Golint for models/org_team.go
2016-11-28 09:42:53 +01:00
Lunny Xiao
f215d78157
rename all uID -> userID on models/org_team.go
2016-11-28 16:33:08 +08:00
Lunny Xiao
bf8d90c5cc
golint fixed for models/models.go ( #284 )
2016-11-28 15:25:16 +08:00
Lunny Xiao
21846d16e5
golint for models/org_team.go
2016-11-28 09:30:08 +08:00
Lunny Xiao
ec87a75c00
golint fixed for modules/auth
2016-11-27 21:39:06 +08:00
Bwko
a4ece1f223
Fixes typos
2016-11-27 12:59:12 +01:00
Thomas Boerger
5efdccd1d8
Merge pull request #264 from Bwko/lint/org.go
...
Lint models/org.go
2016-11-27 12:18:20 +01:00
Thomas Boerger
9a984c0d49
Merge pull request #266 from Bwko/lint/repo_mirror
...
Lint models/repo_mirror.go
2016-11-27 12:15:01 +01:00
Thomas Boerger
fe3908d099
Merge pull request #268 from Bwko/lint/repo_branch
...
Lint models/repo_branch.go
2016-11-27 12:14:25 +01:00
Thomas Boerger
e23a9d22e5
Merge pull request #267 from Bwko/lint/ssh_key
...
Lint models/ssh_key.go
2016-11-27 12:13:43 +01:00
Thomas Boerger
93d527a0a4
Merge pull request #265 from Bwko/lint/access.go
...
Lint models/access.go
2016-11-27 12:12:56 +01:00
Thomas Boerger
8347a55cc2
Merge pull request #263 from Bwko/lint/user_email
...
Lint models/user_email.go
2016-11-27 12:12:02 +01:00
Lunny Xiao
94da472717
Golint fixed for modules/setting ( #262 )
...
* golint fixed for modules/setting
* typo fixed and renamed UNIXSOCKET to UnixSocket
2016-11-27 18:14:25 +08:00
Bwko
0b9cf10340
Lint models/org.go & models.go
2016-11-26 11:37:50 +01:00
Bwko
7bf7042013
Lint models/repo_mirror.go
2016-11-26 11:23:55 +01:00
Bwko
ce8c9ef580
Lint models/repo_branch.go
2016-11-26 11:20:37 +01:00
Bwko
6cde041080
Lint models/ssh_key.go
2016-11-26 01:36:03 +01:00
Bwko
2bb1601d7c
Lint models/access.go
2016-11-26 01:07:57 +01:00
Bwko
066f515a47
Lint models/user_email.go
2016-11-26 01:03:06 +01:00
Thomas Boerger
574e49c854
Merge pull request #241 from Bwko/lint/admin.go
...
Lint models/admin.go
2016-11-25 12:55:24 +01:00
Thomas Boerger
21b7d30174
Merge pull request #245 from Bwko/lint/update&slack
...
Lint models/update.go, release.go & webhook_slack.go
2016-11-25 12:55:14 +01:00
Thomas Boerger
e9c6053b86
Merge pull request #246 from Bwko/fix/typo
...
Fix typos
2016-11-25 12:54:57 +01:00
Thomas Boerger
3e6f363471
Merge pull request #256 from lunny/lunny/golint_modules_avatar
...
Golint fixed for modules/avatar
2016-11-25 10:11:44 +01:00
Thomas Boerger
7c5de1e393
Merge pull request #250 from lunny/lunny/golint_modules_markdown
...
Golint fixed for modules/markdown
2016-11-25 10:08:23 +01:00
Lunny Xiao
3c87c57d96
golint fixed for modules/avatar
2016-11-25 16:37:04 +08:00
Bwko
c0ca6644ad
Lint/issue &mail ( #243 )
...
* Lint models/release.go
* Lint models/ issue_label, issue_mail & mail.go
2016-11-25 16:11:12 +08:00
Bwko
081c2a9395
Lint models/token.go ( #244 )
2016-11-25 16:03:52 +08:00
Lunny Xiao
76604d8f90
fixed test build error
2016-11-25 16:02:10 +08:00
Bwko
33a2ac3830
Lint models/update.go & webhook_slack.go
2016-11-25 07:55:08 +01:00
Lunny Xiao
304bbd3f25
golint fixed for modules/markdown
2016-11-25 09:58:05 +08:00
Bwko
d8e11a8eaa
Lint models/admin.go
2016-11-24 23:42:07 +01:00
Bwko
ece19f4a5e
Lint models/release.go
2016-11-24 22:02:54 +01:00
Lunny Xiao
450969c158
test database is connect OK after db config initialized ( #239 )
2016-11-24 22:30:36 +08:00
Sandro Santilli
1c3044b873
Lint models/login_source.go
2016-11-24 12:34:38 +01:00
Thomas Boerger
0a66c2a2d9
Merge pull request #234 from strk/issue-lint
...
Lint issue.go
2016-11-24 11:30:39 +01:00
Thomas Boerger
e512411863
Merge pull request #233 from strk/git_diff-lint
...
Lint git_diff.go
2016-11-24 11:29:51 +01:00
Thomas Boerger
03b6880089
Merge pull request #232 from strk/error-lint
...
Lint error.go
2016-11-24 11:29:15 +01:00
Sandro Santilli
8aa960f129
Actually document the missing bits
2016-11-24 09:41:11 +01:00
Sandro Santilli
3fba29c571
Expand documentations
2016-11-24 09:30:08 +01:00
Sandro Santilli
0a61d54a9c
Expand documentation a bit more
2016-11-24 09:20:28 +01:00
Sandro Santilli
dd9d0f3732
Lint action.go
2016-11-24 09:03:29 +01:00
Sandro Santilli
170f2e98cc
Lint error.go
...
This was done semi-programmatically, not really documenting anything
2016-11-24 09:03:17 +01:00
Sandro Santilli
6e644726d0
Lint git_diff.go
...
Semi-automatic linting (don't really document things)
2016-11-24 09:02:58 +01:00
Sandro Santilli
4dd1eb57bd
Lint issue.go
2016-11-24 09:02:44 +01:00
stroucki
3a3782bb7f
Handle ssh key import better ( #224 )
...
* Handle user ssh key input better
ssh_key: when user submitted keys had a newline at the end, strings.Split
would have created a slice with an empty last element, and the key type
check would be incorrect. Perhaps a better way is to look for 'ssh-rsa' or
'ssh-dsa' at the beginning of the string, but this is simple.
* ssh_key: correct indentation
2016-11-24 08:52:55 +08:00
Sandro Santilli
c25063d834
Lint webhook.go, unexports simpleMarshalJSON ( #198 )
2016-11-22 14:42:52 +08:00
Bwko
2a449bd4b1
Fix typos
2016-11-21 20:08:21 +01:00
Ethan Koenig
0834e492c0
API endpoints for stars
2016-11-16 22:51:54 -05:00
Bo-Yi Wu
d9ffe99972
fix variable assigned and not used.
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-11-15 14:16:27 +08:00
Sandro Santilli
592a4ec4d3
Fix lint errors in models/wiki (just add methods docs)
...
See #70
2016-11-14 18:01:46 +01:00
Andrey Nering
739f07c98e
Remember diff view style ( #163 )
2016-11-13 10:54:04 +08:00
LefsFlare
3ef022b071
Fixes possible vulnerabilities with keyword hijacking ( #20 )
...
- Added public entries to reserved keywords list
- Rename variables
- Derped comment
2016-11-12 13:26:45 +01:00
Lunny Xiao
3dedc027ac
Bug fixed for issues ( #156 )
2016-11-12 13:06:33 +01:00
Lunny Xiao
0baaa7728a
bug fixed caused by #153 ( #154 )
2016-11-12 09:30:46 +01:00
Lunny Xiao
30a37311f8
use in instead string join ( #155 )
2016-11-12 09:29:18 +01:00
Lunny Xiao
555d8b16cb
fixed bug #151 caused Find should be Get ( #153 )
2016-11-12 00:01:09 +01:00
Lunny Xiao
ade6d4a20f
optimization on database IN
2016-11-12 01:31:37 +08:00
Lunny Xiao
9bf28a2799
bug fixed for 500 caused by get org users ( #149 )
2016-11-12 00:55:06 +08:00
Thibault Meyer
ddee4c8b58
Normalize files with gofmt
2016-11-11 13:11:45 +01:00
Sandro Santilli
a1c5f02444
Fix import path of go-sdk ( #141 )
...
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
2016-11-11 17:39:44 +08:00
Thibault Meyer
b12f2a5916
Remove unused import
2016-11-10 21:10:25 +01:00
Thibault Meyer
b0ddced2b5
Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queries
...
# Conflicts:
# models/git_diff.go
# models/issue.go
# models/org.go
# models/pull.go
# models/repo.go
2016-11-10 21:05:52 +01:00
Thibault Meyer
a4454f5d0f
Rewrite XORM queries
2016-11-10 20:59:51 +01:00
Sandro Santilli
4247304f5a
Update import paths from github.com/go-gitea to code.gitea.io ( #135 )
...
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
2016-11-10 17:24:48 +01:00
Matthias Loibl
94b2747375
Remove go version from build tags ( #133 )
2016-11-10 08:43:49 -02:00
Lunny Xiao
1b238fe4d5
Merge pull request #121 from joubertredrat/feature-last-login
...
Last Login for admin manage your users
2016-11-10 17:20:55 +08:00
Lunny Xiao
c6c840faf7
Merge pull request #129 from lunny/lunny/SQL_instead_Sql
...
use x.SQL instead of x.Sql
2016-11-10 17:12:14 +08:00
Thibault Meyer
3a10a0c1ca
Ordering organizations and users by name
2016-11-10 09:18:54 +01:00
Lunny Xiao
7dcc3bc3d7
use x.SQL instead of x.Sql
2016-11-10 15:20:48 +08:00
Joubert RedRat
f91cbf0fed
Support to last login feature
2016-11-09 08:53:45 -02:00
Lunny Xiao
c511f1c6c3
Merge pull request #18 from LefsFlarey/issue/3675
...
Fix 500 error caused by deleted users on issues (#3675 )
2016-11-09 15:14:18 +08:00
Flare
a6c487f6ca
Fix err not being nil
2016-11-09 13:07:01 +08:00
Lunny Xiao
5667d4daae
Merge pull request #73 from bkcsoft/gt/2164-release-pagination
...
Add Pagination to Releases-page (and de-duplicate pagination templates)
2016-11-08 10:39:03 +08:00
Sandro Santilli
864d1b1f9f
Fix type in unused constant name ( #111 )
...
* Write LDAP, SMTP, PAM, DLDAP back to all uppercase
* Fix type in unused constant name
* Other MixCased fixes
* Complete MixerCasing of template constants
* Re uppercase LTS and LDAPS suffixes
* Uppercase JSON suffix in constant names
* Proper case LoginNoType
* Prefix unexported template path constants with "tpl"
2016-11-07 18:58:22 -02:00
Sandro Santilli
aadd7dcdc3
And others
2016-11-07 17:53:22 +01:00
Sandro Santilli
b3828e38a5
more
2016-11-07 17:41:28 +01:00
Sandro Santilli
05fd9d3f09
Security protocols
2016-11-07 17:38:43 +01:00
Sandro Santilli
7612b5ec40
More mixage
2016-11-07 17:37:28 +01:00
Sandro Santilli
64196d4036
More overlooks
2016-11-07 17:35:34 +01:00
Sandro Santilli
f14232d2e9
This one I overlooked before
2016-11-07 17:33:03 +01:00
Sandro Santilli
60c82a8780
More...
2016-11-07 17:30:04 +01:00
Sandro Santilli
f6a11e0de1
More MixedCase consts
2016-11-07 17:24:59 +01:00
Sandro Santilli
f388661bda
ACCESS_MODE_* -> AccessMode*
2016-11-07 17:20:37 +01:00
Sandro Santilli
0b62aeb495
More MixedCase consts
2016-11-07 17:08:21 +01:00
Sandro Santilli
80eea77953
Use MixedCase constant names
...
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
2016-11-07 17:05:08 +01:00
Thomas Boerger
5d430c9e68
Merge pull request #108 from go-gitea/go-sdk
...
Replaced gogits go-gogs-client with go-sdk
2016-11-07 16:31:17 +01:00
Sandro Santilli
ee963f67c1
Merge pull request #103 from strk/GOGS_drop
...
Replace GOGS with GITEA in variable names
2016-11-07 16:30:48 +01:00
Joubert RedRat
28bee28102
Replace Gogs to Gitea in installation options
2016-11-07 13:26:19 -02:00
Thomas Boerger
4c6c16f358
Replaced go-gogs-client with go-sdk imports
2016-11-07 16:10:32 +01:00
Sandro Santilli
30be1f4826
Fix typo in unused constant name
2016-11-07 16:06:21 +01:00
Sandro Santilli
b7263f31a5
Replace GOGS with GITEA in variable names
...
Still use GOGS_WORK_DIR and GOGS_CUSTOM env variables
as a fallback if the equivalent GITEA_* are not set,
warning user about the need for change.
Does not change "gogs" to "gitea" in webhook type name
Because "gogs" hook type is part of the API (routes) and used
in templates...
Closes #87
2016-11-07 16:05:18 +01:00
Kim "BKC" Carlbäcker
86fb1a0cb1
Add Pagination to Releases-page
2016-11-07 11:41:09 +01:00
Sandro Santilli
6e4252dad4
Replace gogits/git-module dependency with go-gitea/git ( #94 )
...
* Replace gogits/git-module dependency with go-gitea/git
Fixes #92
* Remove git alias for git module import (not needed)
2016-11-06 11:18:34 -02:00
LefsFlare
55a4d46f5d
Adds checking of reserved keywords against team names ( #22 )
2016-11-06 10:07:03 +01:00
Thibault Meyer
fe8bfa54de
Ordering team by name ascending except for 'Owners' ( #48 )
2016-11-06 09:59:21 +01:00
Matthias Loibl
953c099428
Add missing version & gogs package
2016-11-05 18:04:47 +01:00
Matthias Loibl
1f44b01e2a
Fix imports found by goimports.
2016-11-05 17:56:35 +01:00
Thomas Boerger
648c6fdd60
Vet complains about "should have signature MarshalJSON() ([]byte, error)", replaced with custom name
2016-11-04 23:45:06 +01:00
Flare
fd6be0d17e
Still print error if user does not exist
2016-11-05 02:47:54 +08:00
Matthias Loibl
a4fa889ced
Run goimports on the whole project ( #34 )
...
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
2016-11-04 09:57:27 -02:00
Rémy Boulanouar
8dc49dc114
Implementation of the feature to redirect to an external issue tracker
2016-11-04 09:06:54 +01:00
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
2016-11-03 10:29:56 -02:00
Sandro Santilli
af03d00780
Fix sender of issue notifications
...
It is the FROM field in mailer configuration that needs be used,
not the USER field, which is for authentication.
Closes https://github.com/gogits/gogs/issues/3615
2016-11-02 21:00:54 +01:00
LefsFlare
2bec8a4f1e
Changed interface ( #3685 )
2016-09-22 19:38:12 -04:00
Flare
1b59e6f910
Fix 500 error caused by deleted users on issues ( #3675 )
2016-09-20 18:13:57 +08:00
Unknwon
6da55159a2
#3589 LoadRepoConfig after ORM is initialized
2016-09-02 23:18:37 -04:00
Unknwon
c50d59874d
#3577 incorrect URL produced by AvatarLink
2016-09-01 12:36:26 -04:00
Unknwon
7c1fbed057
Fix panic when attempt login with non-exist user
2016-09-01 05:12:34 -04:00
Unknwon
c2afdf2192
Minor code fix [CI SKIP]
2016-08-31 04:31:53 -07:00
Unknwon
152e715999
models/login_source: code improvement
2016-08-31 01:22:41 -07:00
Unknwon
99c2ae7b35
#3515 use alert instead 500 for duplicated login source name
2016-08-31 00:56:10 -07:00
Unknwon
8516dfcb6c
#2018 able to sync now for mirrors
...
- Refactor code to use sync.UniqueQueue
- Closes #3509
2016-08-30 16:18:33 -07:00
Unknwon
c1ecb6c60a
modules/sync: add UniqueQueue
2016-08-30 15:50:30 -07:00
Unknwon
43297148b2
modules/sync: rename SingleInstancePool to ExclusivePool
2016-08-30 15:19:53 -07:00
Unknwon
643142acab
Web editor: support upload files
2016-08-30 05:23:59 -07:00
Unknwon
28cf0e6aaa
#3459 code quality improvement
2016-08-29 20:00:06 -07:00
Thibault Meyer
92fb30c526
Load a set of predefined labels ( #3459 )
...
* Can use a predefined set of labels
* Change UI
* Fix HTML file indentation
* Avoid reading file from other directory (security issue)
* Apply a better fix
* Remove not used variable
* Merge upstream/develop
* Do modifications
* Raname
* remove binding + rename variable
2016-08-29 19:02:49 -07:00
LFlare
3738b6399e
Fixed typo ( #3533 )
...
Git convention has it capitalised.
2016-08-29 11:31:12 -07:00
Unknwon
62b0dc4853
Web editor: fix cannot create new file in subdirectory
2016-08-29 00:10:21 -07:00
Unknwon
579e5e4fee
Web editor: disallow edit mirror repository
2016-08-28 04:56:41 -07:00
Unknwon
0114fdcba4
Web editor: improve delete file process
2016-08-28 01:41:44 -07:00
Unknwon
dad5c15520
#2901 allow setting preferred licenses
...
- Closes #3488
2016-08-28 00:06:22 -07:00
Unknwon
c30b856d14
#3505 use user’s info for committer and author
2016-08-27 13:37:55 -07:00
Unknwon
13c106af77
label: adjust forecolor boundary
2016-08-27 12:44:39 -07:00
Unknwon
ce1e4348da
#3521 fix wiki HTTP/S clone URL does not have .wiki suffix
2016-08-27 12:29:52 -07:00
Unknwon
37305a59ca
migrations: sync table first
2016-08-26 17:32:41 -07:00
Unknwon
bb359a74f1
migrations: set comment updated as created
2016-08-26 14:07:21 -07:00
Unknwon
6b98d58906
#2966 code cleanup
2016-08-26 13:40:53 -07:00
Iwan Budi Kusnanto
8dca9f95fa
issues comment API : list, create, edit ( #2966 )
...
add `since` query string support to list issue comment
2016-08-26 11:23:21 -07:00
Thibault Meyer
f50e568fd1
Fix #3189 : Sort labels by name ( #3446 )
...
* Fix #3189 #3445 : Order labels by name
* Order labels by name on Issues view
2016-08-25 17:43:53 -07:00
Unknwon
f8a48ffaad
Web editor: improve code quality
2016-08-24 21:35:03 -07:00
Kurt Madel
67fb0fe6a5
added support to set pull_request event from api ( #3513 )
2016-08-24 20:44:58 -07:00
Unknwon
0b273ac4d5
#3383 code cleanup
2016-08-24 16:05:56 -07:00
Kim "BKC" Carlbäcker
06602a84ff
Fix PR-webhook issue where Label-data is stale ( #3486 ) ( #3510 )
...
* Fix PR-webhook issue where Label-data is stale
* Conventions \o/
* logs are nice if they're consistent...
2016-08-24 12:01:30 -07:00
Unknwon
a00c932bbc
General code quality improvement
2016-08-16 23:06:38 -07:00
Unknwon
6f9a95f830
#2246 add HTMLURL to webhook type
...
- Fill Milestone and Assignee field when available in webhook payload
2016-08-16 10:19:09 -07:00
Unknwon
8bf57be9ba
Fix git diff tests
2016-08-16 07:45:06 -07:00
Unknwon
b1504ed99a
#3464 add diff signs which does not have inline diff
2016-08-16 07:37:28 -07:00
Unknwon
9349def72e
#3464 reproduce diff signs
...
Commited wrong file.
2016-08-16 07:33:53 -07:00
Unknwon
2625193a48
models/repo_editor: improve code quality
2016-08-15 22:20:55 -07:00
Unknwon
f3c3258921
Fix repository owner can assign self
2016-08-15 18:48:20 -07:00
Unknwon
4042d1f0c3
models/issue: improve quality and performance of NewIssue function
2016-08-15 18:40:32 -07:00
Unknwon
6c8fcb3af2
#3467 fix clone fail when wiki is empty
2016-08-15 15:09:34 -07:00
Unknwon
94392a7af3
Fix empty repository panic on send test webhook
2016-08-15 05:53:47 -07:00
Unknwon
cc647ba9d5
#3461 fix security issue of REAMDE path in create repository
2016-08-15 02:35:54 -07:00
Unknwon
54e0ada9d5
Web editor: improve delete file
2016-08-14 23:52:24 -07:00
Unknwon
cd89f6c502
Web editor: improve edit file and diff preview
2016-08-14 23:52:24 -07:00
Unknwon
660e7a178a
modules/sync: move sync objects to independent module
2016-08-14 23:52:24 -07:00
Unknwon
15845cb287
Code clean up for new config options
2016-08-14 23:52:24 -07:00
Richard Mahn
d0a0239bac
Squashed commit of the following:
...
commit 0afcb843d7ffd596991c4885cab768273a6eb42c
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 17:13:29 2016 -0600
Removed Upload stats as the upload table is just a temporary table
commit 7ecd73ff5535612d79d471409173ee7f1fcfa157
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 08:42:41 2016 -0600
Fix for CodeMirror mode
commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 08:03:33 2016 -0600
Made tabbing in editor use spaces
commit 23af384c53206a8a40e11e45bf49d7a149c4adcd
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:56:46 2016 -0600
Fix for data-url
commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9
Merge: 7fc8a89 991ce42
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:42:53 2016 -0600
Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file
Conflicts:
modules/bindata/bindata.go
public/js/gogs.js
commit 7fc8a89cb495478225b02d613e647f99a1489634
Merge: fd3d86c c03d040
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:40:00 2016 -0600
Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file
commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:39:44 2016 -0600
Code cleanup
commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 29 15:38:23 2016 -0600
Code cleanup
commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Thu Jul 28 18:36:01 2016 -0600
Code cleanup and fixes
commit c2895dc742f25f8412879c9fa15e18f27f42f194
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Thu Jul 28 18:24:04 2016 -0600
Fixes per Unknwon's requests
commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef
Merge: 889e9fa ad7ea88
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Thu Jul 28 17:13:43 2016 -0600
Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file
Conflicts:
modules/bindata/bindata.go
modules/setting/setting.go
commit 889e9faf1bd8559a4979c8f46005d488c1a234d4
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 22 14:09:18 2016 -0600
Fix in gogs.js
commit 47603edf223f147b114be65f3bd27bc1e88827a5
Merge: bb57912 cf85e9e
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 22 14:07:36 2016 -0600
Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file
Conflicts:
modules/bindata/bindata.go
public/js/gogs.js
commit bb5791255867a71c11a77b639db050ad09c597a4
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 22 14:02:18 2016 -0600
Update for using CodeMirror mode addon
commit d10d128c51039be19e2af9c66c63db66a9f2ec6d
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Tue Jul 19 16:12:57 2016 -0600
Update for Edit
commit 34a34982025144e3225e389f7849eb6273c1d576
Merge: fa1b752 1c7dcdd
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Tue Jul 19 11:52:02 2016 -0600
Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file
Conflicts:
modules/bindata/bindata.go
commit fa1b752be29cd455c5184ddac2ffe80b3489763e
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 15 18:35:42 2016 -0600
Feature for editing, creating, uploading and deleting files
2016-08-14 23:52:24 -07:00
Unknwon
dccb0c15b9
Replace convert.To with APIFormat calls
2016-08-14 04:17:26 -07:00
Unknwon
3f7f4852ef
#2246 fully support of webhooks for pull request
2016-08-14 03:32:24 -07:00
Unknwon
f59d2dd034
Code clean up
2016-08-12 03:04:50 -07:00
Unknwon
5be881756b
#3442 add test suites
2016-08-12 02:56:50 -07:00
Thibault Meyer
4296427214
Fix #3437 : Cannot connect to PostgreSQL via IPv6 address ( #3442 )
...
* Change PostgreSQL connstring parsing to handle IPv6
* Fix used variable
* Remove redundant code + use variable
2016-08-12 02:42:06 -07:00
Unknwon
96f92e6105
Fix email FROM
2016-08-11 15:16:01 -07:00
Unknwon
70fbcd2f27
models: rename EnableTidb to EnableTiDB
2016-08-11 14:38:45 -07:00
Unknwon
5850308a37
#3013 support connect PostgreSQL via unix socket
2016-08-11 14:38:26 -07:00
Unknwon
7e9b42c87d
#2780 code clean up
2016-08-11 11:35:46 -07:00
Unknwon
5077408d78
#3233 code cleanup and minor issue fix
2016-08-11 10:53:51 -07:00
Andrew
0885784f13
Wiki mirroring implementation ( #3233 )
...
* Implement wiki mirroring, add Update mirrors operation to admin dashboard
* bindata.go update after merge
* Implement checking Git repo endpoint existence, support for BB included
* Remove admin dashboard operation
Fix bindata.go
* Apply gofmt to repo model file
* Try to remove bindata from PR
* Revert accepted wiki names change in favor of better system
* Remove unused imports
2016-08-11 10:18:51 -07:00
Unknwon
0f26f3678a
#3279 use doer email for FROM field of issues
2016-08-11 06:17:45 -07:00
Kim Carlbäcker
b756806ee9
Add "support" for git-daemon-export-ok ( #2940 ) ( #3046 )
...
* add git-daemon-export-ok "support"
* Slight fix to git-daemon-export-ok
* Add error-checking for git-demon-export-ok
* Remove old comments and fixed logging-issues
* Check if git-daemon-export-ok exists or not
2016-08-10 20:08:09 -07:00
lstahlman
ea192147ea
Add test pull request task on merging a PR. Fixes #3396 ( #3425 )
2016-08-10 11:38:44 -07:00
Thibault Meyer
8ad92bb8a4
Verify list len before use it with IN ( #3423 )
2016-08-10 11:06:51 -07:00
Thibault Meyer
fc68fb951c
Feature #3398 : Redefine global mirror interval ( #3409 )
...
* add mirror::GLOBAL_INTERVAL on app.ini
* rename key to DEFAULT_INTERVAL
* add key on default app.ini + move code
2016-08-09 23:47:16 -07:00
Unknwon
5448d29b2e
#3417 wrong dashboard issue count for create by you
2016-08-09 23:19:52 -07:00
lstahlman
89f71b44f7
Add committer information to API and Webhooks. Also fixes #3271 ( #3414 )
2016-08-09 22:01:57 -07:00
Unknwon
c5d4a9e046
#2907 Add commit timestamp to webhook
2016-08-09 18:28:06 -07:00
Unknwon
b0b88d9bc5
#3091 add config option for Git GC
2016-08-09 17:24:32 -07:00
lstahlman
699c71d319
Fix for #3401 Links of pull request comment email should use pulls URL ( #3403 )
2016-08-08 22:40:05 -07:00
Unknwon
e5bf4281b5
#2825 early response 200 when ?go-get=1
2016-08-07 14:29:16 -07:00
Sandro Santilli
90dd0657b5
Add support for federated avatars ( #3320 )
...
* Add support for federated avatars
Fixes #3105
Removes avatar fetching duplication code
Adds an "Enable Federated Avatar" checkbox in user settings
(defaults to unchecked)
Moves avatar settings all in the same form, making
local and remote avatars mutually exclusive
Renames UploadAvatarForm to AvatarForm
as it's not anymore only for uploading
* Run gofmt on all modified files
* Move Avatar form in its own page
* Add go-libravatar dependency to vendor/ dir
Hopefully helps with accepting the contribution.
See also #3214
* Revert "Add go-libravatar dependency to vendor/ dir"
This reverts commit a8cb93ae640bbb90f7d25012fc257bda9fae9b82.
* Make federated avatar setting a global configuration
Removes the per-user setting
* Move avatar handling back to base tool, disable federated avatar in offline mode
* Format, handle error
* Properly set fallback host
* Use unsupported github.com mirror for importing go-libravatar
* Remove comment showing life exists outside of github.com
... pity, but contribution would not be accepted otherwise
* Use Combo for Get and Post methods over /avatar
* FEDERATED_AVATAR -> ENABLE_FEDERATED_AVATAR
* Fix persistance of federated avatar lookup checkbox at install time
* Federated Avatars -> Enable Federated Avatars
* Use len(string) == 0 instead of string == ""
* Move import line where it belong
See
https://github.com/Unknwon/go-code-convention/blob/master/en-US/import_packages.md
Pity the import url is still the unofficial one, but oh well...
* Save a line (and waste much more expensive time)
* Remove redundant parens
* Remove an empty line
* Remove empty lines
* Reorder lines to make diff smaller
* Remove another newline
Unknwon review got me start a fight against newlines
* Move DISABLE_GRAVATAR and ENABLE_FEDERATED_AVATAR after OFFLINE_MODE
On re-reading the diff I figured what Unknwon meant here:
https://github.com/gogits/gogs/pull/3320/files#r73741106
* Remove newlines that weren't there before my intervention
2016-08-07 10:27:38 -07:00
Unknwon
ec92565f23
#3393 fix missing sub-url prefix in relative avatar link
2016-08-07 10:13:05 -07:00
Andrey Nering
2772791fda
Improve diff highlight ( #3390 )
...
- Try to reduce memory allocations
- Add possibility to disable diff highlight (can improve performance for large diffs)
- Tweaking with cost for prettier (cleaner) diffs
- Do not calculate diff when the number of removed lines in a block is not equal to the number of added lines (this usually resulted in ugly diffs)
2016-08-07 09:49:47 -07:00
Thibault Meyer
30fda0f1ae
Fix #3315 : Release dont use tag creation date ( #3374 )
...
* Fix #3315 : Release dont use tag creation date
* Simplify code and apply gofmt
* remove useless block (ctx.Repo.GitRepo.GetTag) on EditReleasePost
* apply gofmt on modified files
2016-08-06 10:02:15 -07:00
Unknwon
50422f1fc2
#3348 always use relative avatar link in the template
2016-08-05 12:12:54 -07:00
Unknwon
e7fd65f0cf
#3290 better code structure and batch minor improvements
2016-08-03 11:51:22 -07:00
lstahlman
2eeb0ec9b0
Additional API support for labels ( #3290 )
...
* Add API support for labels.
* Error handling for adding/replacing multiple issue labels
* Revisions to function names and error handling. Use issue.ClearLabels in replace/clear functions
* Additional code cleanup
2016-08-03 09:24:16 -07:00
Unknwon
10dc330640
#3345 dump content directly to HTTP ResponseWriter
2016-07-30 23:39:58 +08:00
Dennis Chen
dfab54d5a2
Diff patch ( #3345 )
...
* Add support for .diff and .patch
Add the ability to get text-diff and format-patch by adding .diff or
.patch in the end of a commit url. Issue #2641
* models: git_diff: various fixes
* Renames commitId to commitID.
* Writes stderr to a bytes.Buffer and displays proper error message on
command failure.
* Various style changes.
Signed-off-by: Dennis Chen <barracks510@gmail.com>
2016-07-30 23:02:22 +08:00
마누엘
36a63dd059
models/release: Update Sha1 if tag already exists ( #3331 )
...
Since the release struct is initialized with the current `HEAD` of the
current `release.Target` the commit id has to be updated if the tag
commit already exists. Otherwise the linked commit on the release page
will target the current `HEAD` at release time.
2016-07-28 10:45:35 +08:00
Unknwon
8aa0a76702
#3327 fix wrong table name in Join
2016-07-26 18:40:20 +08:00
Unknwon
2d76de2574
#3281 fix x.Iterate returns nothing inside session scope with SQLite3
2016-07-26 17:26:48 +08:00
Unknwon
4d8b905541
models/ssh_key: code cleaning
2016-07-26 10:47:25 +08:00
Unknwon
899e799459
#1601 support delete issue comment
2016-07-26 02:48:17 +08:00
Unknwon
a562228c5e
Add org.getUserTeams to reduce redundant code
2016-07-24 18:09:45 +08:00
Unknwon
e74630ae3b
#1384 add pagination for repositories
2016-07-24 14:32:46 +08:00
Unknwon
1f2e173a74
Refactor User.Id to User.ID
2016-07-24 01:08:22 +08:00
Unknwon
46e96c008c
Use struct for UI settings
2016-07-24 00:23:54 +08:00
Unknwon
250be011c7
Remove redundant Unix timestamp method call
...
Unix() already uses UTC as timezone
2016-07-23 20:24:44 +08:00
Unknwon
4e822c1911
conf: change default mirror checking interval to 10m
2016-07-23 20:20:09 +08:00
Unknwon
69f5308761
#2903 use different reversed words and patterns for repository and user
2016-07-23 18:58:18 +08:00
Unknwon
4f78abe7dc
#3066 fix create organization ignores full name property
2016-07-23 17:57:22 +08:00
Unknwon
745167d57a
#3157 create user path before rename repository while transfer
...
os.Rename does not create parent directory automatically when not exist
2016-07-23 17:36:15 +08:00
Unknwon
c912494609
#3076 detect invalid tag name git error
2016-07-23 15:59:19 +08:00
Siarhei Navatski
cf85e9eb7b
add IsSubmodule field to DiffFile and hide view file button on diff page for submodules ( #3097 )
2016-07-23 02:18:56 +08:00
Dennis Chen
6488ee12be
avatar: make custom and generated avatars equal ( #3301 )
...
Sets all avatars to use PNG image format.
Keeps avatars consistent at 290x290px resolution.
Signed-off-by: Dennis Chen <barracks510@gmail.com>
2016-07-21 15:31:14 +08:00
Unknwon
5761342f32
#3291 fix SQLite3 session read/update conflict on create new issue
2016-07-21 14:26:30 +08:00
Unknwon
57af7432fc
#3295 fix wrong logic judgement
2016-07-21 14:15:04 +08:00
lstahlman
e7a4f96fb6
Updated Issues and Issues Stats functions to include table aliases. This addresses errors involving ambiguous column references when filtering issues by the view type "Mentioning you". ( #3269 )
2016-07-17 09:18:35 +08:00
Unknwon
60110adc06
models/webhook: restrict deletion to be explicitly with repo and org ID
2016-07-17 08:33:59 +08:00
Unknwon
c083d76567
#2937 able to prohibit user login
2016-07-16 10:22:16 +08:00
Unknwon
52322ef624
models/user_mail: refactor EmailAddress
2016-07-16 10:08:04 +08:00
Sandro Santilli
a4ea3bd015
Return avatar link as absolute url ( #3235 )
...
Fixes relative urls coming from api/v1
See https://github.com/drone/drone/issues/1701
2016-07-16 08:19:30 +08:00
Unknwon
3d93532c87
#3274 fix can't get webhook detail of organization
2016-07-16 01:02:55 +08:00
Unknwon
f1b8d52eb3
#2854 fix no mail notification when issue is closed/reopened
2016-07-16 00:36:39 +08:00
Unknwon
7ca5f8f119
models/repo: remove redundant info for some repo methods
...
RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
2016-07-15 21:53:43 +08:00
Kim Carlbäcker
d950bf68e3
Ignore Response Body for Slack Hooks #3169 ( #3256 )
2016-07-15 14:02:19 +08:00
Unknwon
a752f09055
#2709 validate username attribute fetched from LDAP
2016-07-12 07:07:57 +08:00
Unknwon
70a281a39b
#2375 preserve cases for action content
2016-07-09 23:37:32 +08:00
Unknwon
9fcf66f0e0
Minor fix for #3246
2016-07-09 13:42:05 +08:00
Pablo Saavedra
98b152030d
The pruning for the synchronized mirrors is a option now. Default value: enable_prune = true ( #3246 )
...
Executed go fmt
getEngine() not handles DB parameters (#2972 ) (#2974 )
Uses .AllCols() for Update in updateMirror()
Spanish traslation removed
Fixed a wrong way to ommit the --prune option in process.ExecDir() for MirrorUpdate function
2016-07-09 13:22:28 +08:00
Pheng Heong TAN
467d7dacb6
Modify behaviour of repo-delete. ( #3232 )
...
Re: issues gogits/gogs#2863 and gogits/gogs#3231
As a result of modifications to the contents of the conf folder, `make bindata`
was run, causing an update to bindata.go.
Meta
-----
This commit will be rebased onto the 'develop' branch.
2016-07-09 13:13:57 +08:00
Unknwon
d62ab49978
#3057 retrieve webhook with repo_id
...
This prevents user retrieve arbitrary webhook by changing URL to
access webhook from other unauthorized repositories.
2016-07-08 13:57:09 +08:00
Unknwon
e30c701386
#3229 disallow repository name . and ..
...
Since . and .. has browser automatical behaviors, we need to disallow those names.
2016-07-08 07:34:05 +08:00
Unknwon
401bf944ef
Use SecurityProtocol to replace UseSSL in LDAP config
...
Initially proposed by #2376 and fixes #3068 as well.
2016-07-08 07:25:09 +08:00
Unknwon
4b25bdfbc4
#3058 #3059 support correct page size and link header
2016-07-04 17:27:06 +08:00
Tom
528682a294
getEngine() not handles DB parameters ( #2972 ) ( #2974 )
2016-07-02 22:39:39 +08:00
Unknwon
3a30c06345
Fix wiki vulnerabilities
...
- Arbitrary file creation leading to command execution
- .md file creation/deletion
Reported by Gabriel Campana.
2016-07-01 15:33:35 +08:00
Andrey Nering
743d22669a
Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff ( #3174 )
2016-06-29 23:11:00 +08:00
Andrey Nering
6efb1e5626
Localize collaboration settings. ( #3100 )
...
Closes #2764
2016-06-28 00:22:30 +08:00
Sandro Santilli
8a248696e9
Use a gopher as default avatar (rather than the gravatar logo) ( #3208 )
...
Also changes the avatar from a jpeg to a png, to allow for
transparent background. The indexed png is also smaller in size.
Note that at the moment the default avatar is only used when
the user requested a custom avatar and the custom avatar file
is not found (should never happen).
In the future the default avatar could be used as a default
return when by-mail avatar lookups fail too (both gravatar
and libravatar support passing a default)
2016-06-27 18:12:30 +08:00
Franz Schmidt
8b35c194ec
Fixes #3110 ( #3136 )
2016-06-27 17:02:39 +08:00
Robin Lambertz
ac05f88641
Fix #3154 ( #3155 )
2016-06-27 16:58:53 +08:00
SjonHortensius
17a4d8a5e5
Fix capitalisation of repo-name in news ( #3203 )
...
use 'official' repo.Name instead of incoming repoName; to enforce
correct capitalisation
2016-06-27 16:10:12 +08:00
Robin Lambertz
bc00da1721
Fix negative issue count ( #3207 )
2016-06-27 01:53:30 +08:00
Unknwon
e9ae926e04
#809 fix wrong closed issue count when create closed issue via API
...
Add start count corrector for Repository.NumClosedIssues
2016-05-27 18:23:39 -07:00
Andrey Nering
12d30255a7
Add comment note ( #3093 )
2016-05-23 13:24:40 -07:00
Kim Carlbäcker
3c0c7a9f83
Fix listing team members ( #3048 )
2016-05-06 20:02:36 -04:00
Andrey Nering
d8612f7704
Fix remove folder issues, including initialization failling. ( #2969 )
...
- Prevent panic on creating notice if database is not available
- Prevent incorrect folder on Windows ("/" instead of "\")
2016-05-06 15:48:18 -04:00
Unknwon
0a78d99a4d
models/release: filter input to prevent command line argument vulnerability
2016-05-06 15:40:41 -04:00
Unknwon
0325bec283
#2895 minor fix for bug of xorm
2016-04-26 00:22:03 -04:00
Thomas Boerger
dfad51fe9e
Made the issue stats query more secure with parameterized placeholders ( #2895 )
2016-04-26 00:07:49 -04:00
Unknwon
78b8b63774
#2992 set default style name when empty in AfterSet
2016-04-22 18:36:05 -04:00
Cosmin Stroe
ba314a7a36
Support alphanumeric issue style (ABC-1234) for external issue tracker ( #2992 )
2016-04-22 18:28:08 -04:00
Unknwon
762ab056a2
Fix XORM IN condition table name parse
2016-03-27 18:21:37 -04:00
Thomas Boerger
746c7fd4e7
Followup fix for previous query fix
2016-03-28 00:05:49 +02:00
Thomas Boerger
b5948f2e71
Made the issues query more secure and simpler
2016-03-27 23:26:45 +02:00
Thomas Boerger
79a1bfd963
Try to make the SQL queries cleaner and more secure
2016-03-27 22:59:57 +02:00
Unknwon
b1d41cfa60
#1692 add admin APIs to add/remove a user from teams
2016-03-25 18:04:02 -04:00
Unknwon
98b58fa050
Handle windows deletion when start
...
Fix #2872
2016-03-23 03:16:53 -04:00
Unknwon
e6f927f61a
#1692 api: admin list and create team under organization
2016-03-21 12:47:54 -04:00
Unknwon
ff731ea07d
#2814 LOWER() column value within search
2016-03-16 16:55:19 -04:00
Odin Ugedal
6ccb2d36cf
Remove email from user search
2016-03-15 19:44:58 +01:00
Odin Ugedal
3253e3c5aa
Make user search look in username, name and email
...
Make user search function look in username (lower_name), full name
(full_name) and primary email (email). This will benefit searching after
user in "explore", admin panel and when adding new collaborators.
2016-03-15 14:16:58 +01:00
Unknwon
9bd9ad4205
#1692 add CRUD issue APIs
...
- Fix go-gogs-client#10
- Related to #809
2016-03-13 23:20:22 -04:00
Unknwon
f76d821bda
fix #2804
2016-03-11 17:12:37 -05:00
Unknwon
263304b6b7
#13 fix postgres aggregate
2016-03-11 16:11:33 -05:00
Unknwon
2bf8494332
#13 finish user and repository search
...
Both are possible on explore and admin panel
2016-03-11 15:33:12 -05:00
Marin Jankovski
1314ba219e
Updated and created were appended with _unix. Fresh databases have only the newly named fields.
2016-03-11 12:43:35 +01:00
Unknwon
5267dce210
Fix ref comment from commit create empty feed
2016-03-11 05:11:58 -05:00
Unknwon
eed9966ad6
#2727 fix incompatible SQL in PostgreSQL
2016-03-09 23:18:39 -05:00
Unknwon
ad513a20e9
#2302 Replace time.Time with Unix Timestamp (int64)
2016-03-09 19:53:30 -05:00
Unknwon
13bd16af92
Minor fixes for #2766
2016-03-06 13:24:42 -05:00
Tamás Molnár
9c91e27933
Added: Ability to delete org avatar.
2016-03-06 17:36:30 +01:00
Unknwon
a5b0400be7
#1146 finish new access rights for collaborators
2016-03-05 20:45:23 -05:00
Unknwon
045f14fbd0
#1146 finsih UI work for access mode of collaborators
...
Collaborators have write access as default, and can be changed via repository
collaboration settings page to change between read, write and admin.
2016-03-05 18:08:42 -05:00
Unknwon
414eb22ef9
#1597 fix activitity feeds for pull requests
2016-03-05 12:58:51 -05:00
Unknwon
a2f13eae55
#1157 some avatar setting changes
...
- Allow to delete current avatar
2016-03-05 00:51:51 -05:00
Unknwon
2a931937a8
Update locales
2016-03-04 18:51:18 -05:00
Unknwon
dfd6f8f7ab
Merge pull request #2757 from joshfng/fix-fork-relative-url
...
Use relative url when showing forked from
2016-03-04 18:37:42 -05:00
Josh Frye
275464e7fb
Use relative url when showing forked from
2016-03-04 18:32:30 -05:00
Unknwon
e2d370f0da
#1597 fix pull request remote head can't update with force push
2016-03-04 16:53:03 -05:00
Unknwon
5335e671be
#2743 more fixes on SQL errors
2016-03-04 16:00:00 -05:00
Unknwon
2d2d85bba4
#1597 support pull requests in same repository
2016-03-04 15:43:01 -05:00
Unknwon
9df6ce48c5
Minor fixes for #2746
2016-03-04 13:32:17 -05:00
Unknwon
4d5911dbcf
Merge pull request #2746 from joshfng/feature-delete-wiki-pages
...
Add ability to delete single wiki pages.
2016-03-04 13:14:37 -05:00
Unknwon
d57a2b908a
#2743 and #2751 fix bad SQL generated by XORM
...
Use hand-written SQL to do complex query
2016-03-04 13:08:47 -05:00
Josh Frye
1ca171dbe9
Add ability to delete single wiki pages.
2016-03-04 09:26:52 -05:00
Unknwon
260723e2cc
Minor fixes for #2745
2016-03-03 23:24:22 -05:00
Josh Frye
f3358f5927
Repo setting to delete and disable wiki
2016-03-03 16:12:48 -05:00
Josh Frye
7f2733fa1b
Return errors instead of just logging them.
2016-03-03 12:43:23 -05:00
Josh Frye
edb7967dc7
Set DefaultBranch to master when importing a new repo if possible
2016-03-03 12:23:45 -05:00
Unknwon
c9901bbba5
#2743 workaround to fix XORM problem
2016-03-03 10:57:27 -05:00
Unknwon
97429a25ab
#2727 make IN clause compatible with Postgres
2016-03-01 14:39:28 -05:00
Unknwon
9e89584cb4
Allow setting git operations timeouts
...
- Migrate: #2704 #2653
- Clone: #2701
- Mirror, Pull
2016-02-29 19:29:49 -05:00
Unknwon
ea80274229
#2700 fix sqlite3 can't create issue with more than one label
2016-02-29 18:45:12 -05:00
Unknwon
8055a0bdac
Post work for #2637
...
Improve test cases, config settings, also show SSH config settings on admin config panel.
2016-02-27 20:48:39 -05:00
Unknwon
83c74878df
Merge pull request #2637 from Gibheer/ssh-publickeys
...
allow native and ssh-keygen public key check
2016-02-27 18:55:14 -05:00
Unknwon
d320915ad2
Minor fix for #2710
2016-02-27 11:31:24 -05:00
Lukas Dietrich
c0eaae200e
Add ForegroundColor for labels
2016-02-27 13:59:11 +01:00
Unknwon
129638117f
#2697 fix panic when close issue via commit message
2016-02-25 14:17:55 -05:00
Gibheer
2f27ee2232
variable should not use ALL_CAPS
2016-02-23 15:39:05 +01:00
Unknwon
912f7b51e9
#1821 add actions for close and reopen issues
2016-02-22 12:40:00 -05:00
Andrey Nering
d160c7e565
Little refactoring of diff highlight.
...
Moving cache variable to template instead of in the struct.
2016-02-21 18:45:24 -03:00
Unknwon
ac78bae7b5
Replace uuid module with original package
2016-02-20 18:13:12 -05:00
Unknwon
d5a3021a7d
Make markdown as an independent module
2016-02-20 17:10:05 -05:00
Unknwon
d8a994ef24
Move cron module to independent package
...
Make it easier to keep track of upstream changes and bug fixes
2016-02-20 15:58:09 -05:00
Unknwon
acf094fb07
Minor fix for #2634
...
Add AttributesInBind option in new auth source form.
2016-02-20 14:56:27 -05:00
Unknwon
b7f3d94cd0
Minor fix for #2524
2016-02-19 22:16:26 -05:00
Unknwon
f6c98465c7
Merge pull request #2524 from mhartkorn/pullrefs
...
Enable a way to checkout Pull Requests from remote refs
2016-02-19 22:00:25 -05:00
Unknwon
aa12135b97
Fix panic when view profile without signin
...
Also fix that no matter who, still able to see organizations with private membership.
2016-02-19 18:10:03 -05:00
Unknwon
2408df3f35
Merge pull request #2663 from Download-Fritz/MirrorForks
...
#2505 Allow to fork and disallow to create PRs for mirrors.
2016-02-19 15:04:50 -05:00
Download-Fritz
a467184e13
#2505 Allow to fork and disallow to create PRs for mirrors.
2016-02-19 20:33:06 +01:00
Unknwon
338af89d56
#2650 fix possbility that use email as pusher user name
...
Remove the possibility of using email as user name when user actually push
through combination of email and password with HTTP.
Also refactor update action function to replcae tons of arguments with
single PushUpdateOptions struct.
And define the user who pushes code as pusher, therefore variable names shouldn't
be confusing any more.
2016-02-17 22:47:06 -05:00
Gibheer
dab74f21b7
remove ed25519 test for now
...
TravisCI is too old for ed25519, so it can't be tested correctly.
2016-02-17 11:30:48 +01:00
Gibheer
9eef2e706c
fix ssh public key tests
...
The old API was using []byte, but was changed to string without running
the tests again.
It also sets the variables from the configuration to make them work.
Maybe there is a better way to do this.
2016-02-17 09:33:41 +01:00
Gibheer
12403bdfb0
allow native and ssh-keygen public key check
...
This commit adds the possibibility to use either the native golang
libraries or ssh-keygen to check public keys. The check is adjusted
depending on the settings, so that only supported keys are let through.
This commit also brings back the blacklist feature, which was removed in
7ef9a05588
. This allows to blacklist
algorythms or keys based on the key length. This works with the native
and the ssh-keygen way.
Because of #2179 it also includes a way to adjust the path to
ssh-keygen and the working directory for ssh-keygen. With this,
sysadmins should be able to adjust the settings in a way, that SELinux
is okay with it. In the worst case, they can switch to the native
implementation and only loose support for ed25519 keys at the moment.
There are some other places which need adjustment to utilize the
parameters and the native implementation, but this sets the ground work.
2016-02-16 23:01:56 +01:00
Lunny Xiao
779b71eda4
fix dependency broken because xorm's API changed
2016-02-16 22:35:08 +08:00
Unknwon
2765b5c7cf
#2630 fix wrong user avatar link in webhook
...
Was using the wrong method and now uses the method which checks if
the avatar link is relative or not.
2016-02-15 15:18:53 -05:00
Unknwon
632c27802c
Minor fix for #2624
2016-02-15 14:57:15 -05:00
Unknwon
dc89c51f3e
Merge pull request #2624 from mhartkorn/convert-mirror-to-repo
...
Convert mirrors to regular repositories
2016-02-15 14:26:21 -05:00
Martin Hartkorn
bb595666ac
Moved UpdateRepository() to CleanUpMigrateInfo() and correctly delete mirror from database
2016-02-15 14:59:24 +01:00
Unknwon
58e004f7da
Remove cache avatar support and add its tests
2016-02-14 23:14:55 -05:00
Unknwon
fd92d91da3
Minor fix for #2578
2016-02-14 20:36:03 -05:00
Unknwon
d8631b616e
Merge pull request #2578 from exmex/develop
...
Admins and user itself sees private org relations on profile
2016-02-14 20:34:53 -05:00
Unknwon
a1d97e8f5c
Minor fix for #2567
2016-02-14 20:07:42 -05:00
Unknwon
daa43cfb6e
Merge pull request #2567 from fnkr/hide-other-teams-activity-from-dashboard
...
Only show activities and repositories on the dashboard, that the user has access to
2016-02-14 19:57:49 -05:00
Unknwon
9adfe453d5
#2569 delete repo local copy when transfer
...
Remote repository path is renamed but does not delete
outdated local copy which still has old repository path
as remote.
2016-02-14 19:42:38 -05:00
Martin Hartkorn
15d37b7a95
Refactored according to suggestions
2016-02-14 22:40:39 +01:00
Martin Hartkorn
3650bd8528
Convert mirrors to regular repositories.
2016-02-14 21:12:00 +01:00
Josh Frye
8662990746
Add default branch to repo payload
2016-02-12 11:04:46 -05:00
Josh Frye
ce3708b3ea
Remove local wiki copy on repo transfer. Fixes #2558
2016-02-11 19:26:51 -05:00
Unknwon
59745c62b4
#1577 fix missing SQL query placeholder
2016-02-10 17:30:24 -05:00
Unknwon
297e772c20
#2485 fix payloads mixed up for webhook
...
When repository contains a Slack type hook,
it changes original payload content.
This patch fixes it by using a local object to store
newly created Slack payload instead of assigning
back to the same variable.
2016-02-10 15:21:39 -05:00
Unknwon
f15a2f9b25
Merge pull request #2528 from andreynering/diff-sintax-highlight-733
...
Enable syntax highlighting on diff view
2016-02-07 11:49:11 -05:00
Andrey Nering
d37cf09ccd
Workaroud delete folder on Windows. Fix #1738
2016-02-07 13:39:32 -02:00
ExMex
2cfe6f8c60
Admins and user itself sees private org relations on profile
2016-02-07 10:20:58 +01:00
Florian Kaiser
45db167f7a
Only show activities for repositories on dashboard, that the user has access to
2016-02-06 07:52:21 +00:00
Tobias Kunicke
fa5a1cb54f
regulate timezone for milestone.deadline
2016-02-06 00:08:02 +01:00
Unknwon
f8182ac521
#2558 delete local wiki copy when rename repo and user
2016-02-05 14:11:53 -05:00
Andrey Nering
2bfb8bb5fd
Enable sintax highlighting on diff view. Close #733
2016-02-04 18:21:47 -02:00
Andrey Nering
137a49e834
go fmt models/git_diff_test.go
2016-02-04 17:55:17 -02:00
Martin Hartkorn
a3bdede2ce
Removed unused method GetUnmergedPullRequestByRepoPathAndHeadBranch
2016-02-04 19:15:21 +01:00
Unknwon
ddf9fa06c7
Minor fix for #2530
2016-02-04 13:03:34 -05:00
Martin Hartkorn
d91004ee71
Removed dependency on post-receive hook and use TriggerTask instead
2016-02-04 19:00:42 +01:00
Unknwon
739d5aa1d3
Merge pull request #2530 from fnkr/hide-other-teams-repos-from-org-page
...
Hide other teams & repos from organization page
2016-02-04 12:52:11 -05:00
Unknwon
04be8c0de5
#2554 reinitialize all repos from the db
...
- Update locales
2016-02-04 12:51:00 -05:00
Florian Kaiser
fb1708e1af
Remove unnecessary private functions
2016-02-04 17:08:25 +00:00
Unknwon
a47baa1b7a
Add missing patch conflit pattern
2016-02-03 12:28:03 -05:00
Unknwon
995487e822
Minor fix for #2506
2016-02-02 17:07:40 -05:00
Unknwon
5e97693e0e
Merge pull request #2506 from sapk/add-branche-api-support
...
Implement API for branches listing
2016-02-02 16:51:14 -05:00
Unknwon
5a27aea8e0
Fix random avatar does not work on Windows
...
path.Dir can't handle Windows case, must use filepath.Dir
2016-02-02 10:22:27 -05:00
Unknwon
32efc3ec0a
Merge pull request #2540 from JohnMaguire/bugfix/2447-delete-public-key-authorized_keys
...
Fixes #2447 (delete public key from authorized_keys)
2016-02-01 16:32:30 -05:00
John Maguire
b3e0efc0c3
Trim whitespace when adding SSH keys ( fixes #2447 )
2016-01-31 22:02:36 -05:00
John Maguire
caa4ca46c0
Add debug log when SSH key for deletion isn't found
2016-01-31 22:02:23 -05:00
Florian Kaiser
90780a0d90
Use invalid value (-1) instead of 0 to prevent bug if auto increment starts with 0
2016-01-31 19:17:58 +00:00
Florian Kaiser
bba1847a8e
Everyone can see public repos
2016-01-31 18:37:50 +00:00
Florian Kaiser
e35791b2b2
Only show teams the user has access to
2016-01-31 15:30:07 +00:00
Florian Kaiser
5eafe2b17e
Only show repositories the user has access to, on the organization home
2016-01-31 15:29:45 +00:00
Martin Hartkorn
20403f75fb
Enable a way to checkout Pull Requests from remote refs
2016-01-30 23:56:38 +01:00
Florian Kaiser
295de51b99
Show all orgs on user profile, except the private one's
2016-01-30 21:53:58 +00:00
Unknwon
112a7cab31
#2497 incorrect error handle for team name
2016-01-29 17:06:14 -05:00
Antoine GIRARD
b7b30cd85e
Corrections following recommendations
2016-01-28 20:51:19 +01:00
Antoine GIRARD
c11c3b6c11
Near ready
2016-01-28 20:51:19 +01:00
Unknwon
e2dde6eb0a
Record error when fail to health check repository
2016-01-28 06:46:25 -05:00
Unknwon
4deb876343
Minor fix for #2494
...
- Change tooltip size from mini to tiny in profile page
2016-01-28 06:07:16 -05:00
Unknwon
0617720c0c
Merge pull request #2494 from mhartkorn/pullreq-name-change
...
Change user name in Pull Requests to avoid errors (fixes #2495 )
2016-01-28 05:58:37 -05:00
Martin Hartkorn
674c5c37be
Change user name in Pull Requests
2016-01-27 22:45:03 +01:00
Andrey Nering
5deb726f3f
Refactoring of inline diff computing to prevent empty diff box. Fix #2489
2016-01-27 18:54:08 -02:00
Kim "BKC" Carlbäcker
edc414c584
Fixed Webhook URL-length Issue #2465
2016-01-27 01:40:35 +01:00
Unknwon
7ef9a05588
#2179 use Go sub-repo ssh to verify public key content
2016-01-15 18:39:51 +08:00
Unknwon
c631a4a9b9
URL fix for #2287
2016-01-15 18:00:39 +08:00
Antoine GIRARD
688fc515f8
Fix username display in lower-cased for comment in Dashboard
2016-01-12 21:30:14 +01:00
Unknwon
f43cc90841
#2287 Truncate repository name if too long
2016-01-11 20:41:43 +08:00
Unknwon
c199703e2a
#2349 fix convert type
2016-01-11 15:47:23 +08:00
Unknwon
91bab801aa
#2349 try to handle []int8 case
2016-01-11 14:34:32 +08:00
Andrey Nering
9620f48ed0
Fix test case after 86bce4a2ae
.
2016-01-09 17:05:21 -02:00
Unknwon
8a93113192
roll back a small change
2016-01-09 15:04:28 +08:00
Unknwon
86bce4a2ae
minor fix to #2335
2016-01-09 14:51:17 +08:00
Unknwon
bcf6aed452
Merge pull request #2335 from andreynering/highlight-diff
...
Highlight diff
2016-01-09 13:39:18 +08:00
Andrey Nering
697b0e2aba
Fix: now highlights in diff view are getting the correct lines.
2016-01-08 16:33:27 -02:00
Andrey Nering
bf11ad19ea
Semantic fixes.
2016-01-07 11:27:35 -02:00
Andrey Nering
81ed5c4bee
Declaring specific types for enums constants.
...
This makes the code more strict since you can't assign or compare
values of different types without proper cast.
2016-01-06 18:00:40 -02:00
Andrey Nering
73474c043b
Highlighting differences of lines in the diff view.
2016-01-06 17:46:56 -02:00
zhuharev
0d5dc8a064
typo fix
2016-01-06 22:41:42 +03:00
Unknwon
4993ab1a76
#2185 fall back to use custom chardet lib
2015-12-31 22:13:47 -05:00
Unknwon
240fe07287
#2273 URL consistency on webhook payload
2015-12-25 07:11:58 -05:00
Unknwon
157d868254
Merge pull request #2262 from angus-g/fixes/user-following-migration
...
Add default for NumFollowing field (fixes #2261 )
2015-12-24 10:13:13 -05:00
Unknwon
e16042010e
Merge pull request #2257 from Jofkos/patch-1
...
Wiki pages containing question marks in their name weren't loading
2015-12-24 10:00:03 -05:00
Angus Gibson
e914969e4c
Add default for NumFollowing field ( fixes #2261 )
...
We set the default value for the non-NULL field NumFollowing of the User
model to 0, which stops an error when the ORM tries to sync.
2015-12-22 11:09:28 +11:00
Unknwon
a49af93faf
#1692 APIs: Users Followers
...
- User profile un/follow
- List user's followers/following
2015-12-21 04:24:11 -08:00
Jofkos
76d4af891f
Removed empty line, multi return args
2015-12-20 21:13:12 +01:00
Jofkos
0721095944
Wiki pages containing question marks in their name weren't loading
...
(untested)
2015-12-20 18:02:54 +01:00
Unknwon
53eb37d529
fix #1436
2015-12-19 21:43:32 -05:00
Unknwon
9cd16c5b12
#1692 add organization APIs
2015-12-17 02:28:47 -05:00
Unknwon
b117befc2b
#1692 add user email APIs
2015-12-15 22:57:18 -05:00
Unknwon
7786cb76f3
fix #2205
2015-12-15 21:32:17 -05:00
Unknwon
19423957b1
rename import path
2015-12-15 17:25:45 -05:00
Unknwon
3362b3a44f
fix possible disclosure
2015-12-14 17:06:54 -05:00
Unknwon
50264200f0
fix huge diff hangs
2015-12-14 09:38:21 -05:00
Unknwon
91789930bc
#2176 fix 500 on /watchers & /stars for pg
2015-12-14 02:40:23 -05:00
Unknwon
95f9c85bcc
#2185 use Go sub-repo to detect encoding
2015-12-13 19:56:33 -05:00
Unknwon
79dcd7ee6e
#2167 able to identify git version on Windows
2015-12-13 18:20:39 -05:00
Unknwon
76bdbcc969
#2152 fix SMTP authentication makes invalid assumption on protocol
2015-12-11 18:57:45 -05:00
Unknwon
4d31eb2c0d
#2155 fix org max repo limit default to -1
2015-12-11 15:48:02 -05:00
Unknwon
5d95ffe3eb
#2155 The owner has reached maximum creation limit of 0 repositories
2015-12-11 15:11:13 -05:00
Unknwon
bc17f2f759
#2147 fix rewrites authorized_keys when builtin SSH server is enabled
2015-12-11 05:02:33 -05:00
Unknwon
40f3142264
#2114 External URL for wiki
2015-12-11 04:55:08 -05:00
Unknwon
7a3eccc709
Drop 0.5.x support
2015-12-10 19:52:06 -05:00
Unknwon
3d5d61778a
#1938 #1374 disable password change for non-local users
2015-12-10 19:02:57 -05:00
Unknwon
99e9bbef6c
fix bool check for repo max limit and fix hang when push repo with tons of commits
2015-12-10 16:27:47 -05:00
Unknwon
0e96a46020
fix user repo limit default value
2015-12-10 12:48:45 -05:00
Unknwon
df5ed64cca
#1301 "read-only" users
2015-12-10 12:46:05 -05:00
Unknwon
2a0bb1fa90
#1575 Limit repo creation
2015-12-10 12:37:53 -05:00
Unknwon
9a2e43bff2
move out git module and #1573 send push hook
2015-12-09 20:46:05 -05:00
Unknwon
718d3ae258
#1943 Able to config fsck timeout
2015-12-09 11:38:12 -05:00
Unknwon
120cd4e471
#1984 Better mirror repo management
2015-12-08 20:06:12 -05:00
Unknwon
dce2a9e7e1
fix wrong slack webhook payload URL
2015-12-06 23:07:02 -05:00
Alex Myasoedov
ae54d878c0
Fix misspelled words
2015-12-06 16:42:23 +02:00
Unknwon
978dc00305
APIs: admin users
2015-12-05 17:13:13 -05:00
Unknwon
bf26808fb3
update README
2015-12-05 13:50:43 -05:00
Unknwon
404867f206
fix #2105 and fix #1857
2015-12-05 13:24:13 -05:00
Unknwon
f41360d864
#2052 advanced select ops for system notices
2015-12-05 01:09:14 -05:00
Unknwon
e82ee40e9e
init with all enabled
2015-12-04 21:34:37 -05:00
Unknwon
e538ff2770
fix #1829 and fix #890
2015-12-04 21:30:33 -05:00
Unknwon
76d4b9288b
#2045 have fallback but empty value
2015-12-04 19:01:34 -05:00
Unknwon
05ba8622f0
#2045 move fallback to empty string
2015-12-04 18:31:45 -05:00
Unknwon
e0bae9547a
more fixes on #2045
2015-12-04 15:41:56 -05:00
Unknwon
81133d45a1
work on #2093
2015-12-03 14:21:13 -05:00
Unknwon
37a372f6f5
500 when wiki not exists
2015-12-03 02:08:25 -05:00
Unknwon
f122d0856e
fix #2090
2015-12-03 01:59:32 -05:00
Unknwon
cc8f5add6e
fix #976
2015-12-03 00:24:37 -05:00
Unknwon
926e91820a
#2071 Diff is not showing full content when has super long one line
2015-12-02 01:10:13 -05:00
Unknwon
0be8b1b1a1
#2052 Ability to batch delete system notices
2015-12-01 23:33:08 -05:00
Unknwon
834d38a8fb
#2045 add short version as fallback to Slack payload
2015-12-01 21:16:19 -05:00
Adam Strzelecki
573305f3d3
LDAP: Optional user name attribute specification
...
Consider following LDAP search query example:
(&(objectClass=Person)(|(uid=%s)(mail=%s)))
Right now on first login attempt Gogs will use the text supplied on login form
as the newly created user name. In example query above the text matches against
both e-mail or user name. So if user puts the e-mail then the new Gogs user
name will be e-mail which may be undesired.
Using optional user name attribute setting we can explicitly say we want Gogs
user name to be certain LDAP attribute eg. `uid`, so even user will use e-mail
to login 1st time, the new account will receive correct user name.
2015-12-02 00:20:14 +01:00
Unknwon
9ed60d96a9
fix API
2015-12-01 16:33:45 -05:00
Unknwon
d3a5ff7b6b
fix #2042
2015-11-30 20:50:40 -05:00
Unknwon
830d000667
finish wiki
2015-11-30 20:45:55 -05:00
Unknwon
e42fcb033d
wiki: finish edit
2015-11-27 01:50:38 -05:00
Unknwon
392f3ee210
wiki: finish new
2015-11-27 00:24:24 -05:00
Unknwon
c50a3503e6
introduce git-shell
2015-11-26 17:33:45 -05:00
Unknwon
2b10fdc4dc
Wiki: UI for page new
2015-11-25 20:10:25 -05:00
Unknwon
eb30cbab81
add unsupported migration prompt
2015-11-25 09:27:27 -05:00
Unknwon
3ca544912f
#1944 Drop /org/ URL path prefix in organization home page
2015-11-24 19:14:00 -05:00
Unknwon
ec8d41765d
some fix to #2026
2015-11-23 20:43:04 -05:00
Unknwon
dcc740fd26
fix incorrect
2015-11-21 19:30:11 -05:00
Unknwon
8966750fd4
add some log
2015-11-21 19:11:57 -05:00
Unknwon
b4877b1e06
fix for #2012
2015-11-21 14:02:37 -05:00
Unknwon
eea2e05da6
minor fix on #1694
2015-11-21 12:58:31 -05:00
Unknwon
6a6a7512c2
notice
2015-11-20 11:37:17 -05:00
Unknwon
6b30b20765
add more debug info
2015-11-20 08:43:15 -05:00
Unknwon
74dfe439c2
more fix on #2002
2015-11-20 04:08:08 -05:00
Unknwon
1d4a5b1825
fix #2002
2015-11-20 02:53:54 -05:00
Unknwon
987dcc5372
fix #1383
2015-11-20 02:38:41 -05:00
Unknwon
902b578465
better escape char handle
2015-11-20 01:18:50 -05:00
Unknwon
3d14e73fd8
fix #1119 and data race in timming tasks
2015-11-20 00:47:35 -05:00
Unknwon
2158e6fc43
fix #1997
2015-11-19 11:40:00 -05:00
Unknwon
f455125d4d
fix #878
2015-11-18 21:21:47 -05:00
Unknwon
f04d773f4f
UI: long organization name in create repository owner list
2015-11-18 17:42:20 -05:00
Unknwon
efea642d6c
add admin op: delete missing repos
2015-11-18 15:37:48 -05:00
Unknwon
ab9411be2a
clean up code
2015-11-16 23:33:40 -05:00
Unknwon
9ab96172fc
new watchers, stars and forks UI
2015-11-16 23:28:46 -05:00
Unknwon
e06558e208
#1922 Pull request fail to merge with BIN
2015-11-16 21:18:04 -05:00
Unknwon
5dc3dd1704
fix #1960
2015-11-16 11:11:59 -05:00
Unknwon
134d8e7681
work on #1961
2015-11-16 10:14:12 -05:00
Unknwon
18de67380c
fix #1958
2015-11-15 23:52:46 -05:00
Unknwon
e030109b5a
fix api broken
2015-11-15 17:07:44 -05:00
Unknwon
4d3138cd10
fix #1953
2015-11-15 14:55:12 -05:00
Unknwon
4f03b81ec7
#1931 Test patch does not checkout correct base branch
2015-11-15 14:41:36 -05:00
Unknwon
f8ae161c74
fix #1302
2015-11-13 17:37:02 -05:00
Unknwon
1d57f0d64f
Show custom avatars in commits
2015-11-13 17:10:25 -05:00
Unknwon
1559bd58e7
save custom avatar as PNG
2015-11-13 16:43:43 -05:00
Unknwon
6a664e88c7
#1854 show issue content
2015-11-13 12:11:45 -05:00
Unknwon
a6c7716742
minor fix for #1935 and fix #1854
2015-11-13 10:05:50 -05:00
Alexey Makhov
ee645af107
#1854 change issueId to issueIndex
2015-11-13 09:21:22 +03:00
Alexey Makhov
3e7695ae91
#1854 improves
2015-11-13 00:16:51 +03:00
Alexey Makhov
1bfebdcdf6
#1854 improves
2015-11-13 00:01:51 +03:00
Alexey Makhov
588a0db218
#1854 issue title at dashboard
2015-11-12 23:09:48 +03:00
Unknwon
18c841050b
fix 1540 and experimental SSH server support
2015-11-08 16:59:56 -05:00
Unknwon
b55499d039
go vet and fix #1890
2015-11-08 14:31:49 -05:00
Unknwon
d85a1d478e
admin op with notice
2015-11-07 20:20:51 -05:00
Unknwon
676d774d88
fix #1902
2015-11-07 00:39:45 -05:00
Unknwon
6f929dcd9e
#1895 Case sensitive clone URL
2015-11-06 11:14:58 -05:00
Unknwon
2bd64621fc
#1900 last updatede time not update after push
2015-11-05 19:18:59 -05:00
Unknwon
f255b1e86d
#1896 fatal when no needed update task
2015-11-04 21:57:10 -05:00
Unknwon
3a81fdf092
rename fields
2015-11-03 22:49:06 -05:00
Unknwon
6f0a41b8b2
#1511 Allow local import only for admin users
2015-11-03 18:40:52 -05:00
Unknwon
25ec20d525
#1838 update merge base before generate new patch
2015-11-03 17:25:39 -05:00
Unknwon
8411b50f5d
work on #1882
2015-11-03 13:00:04 -05:00
Unknwon
bc82157216
fix #1078
2015-11-02 19:55:24 -05:00
Unknwon
8eb4c3121a
work on #1880
2015-11-02 18:54:47 -05:00
Unknwon
75aab86a8d
fix problem with #1879
2015-11-02 14:01:19 -05:00
无闻
50058b3c6d
Merge pull request #1871 from Gibheer/config_minimum_key_sizes
...
move minimum key sizes to config
2015-11-01 12:39:12 -05:00
Unknwon
67ced4aaca
safe check
2015-10-31 23:25:08 -04:00
Unknwon
04806b614e
more on #1705
2015-10-31 23:22:28 -04:00
Unknwon
cb100c7781
work #1705
2015-10-31 23:18:58 -04:00
Unknwon
fad31ca302
work on #1748
2015-10-31 18:59:07 -04:00
Gibheer
b90b0c1191
move minimum key sizes to config
...
This moves the minimum key sizes into the config file, so that anyone
can modify the restrictions.
2015-10-30 13:53:06 +01:00
Unknwon
706b0f72e2
fix issue comment mention and autofix count when start
2015-10-29 20:40:57 -04:00
Unknwon
b9f5def5dc
fix insecure tls when trigger task
2015-10-26 09:16:24 -04:00
Unknwon
87c3c8172a
#1711 try to indicate sqlite session issue when merge
2015-10-25 18:35:27 -04:00
Unknwon
022820103d
#1657 allow forcing all private repos
2015-10-25 04:26:26 -04:00
Unknwon
c3ba5590c9
Reopen PR need retest patch
2015-10-25 03:10:22 -04:00
Unknwon
2be5837cb0
New push to base repo of base branch: retest all corresponding patches
2015-10-24 14:48:11 -04:00
Unknwon
0fbb8c8826
New push to head repo of head branch: regenerate patch and retest apply
2015-10-24 03:36:47 -04:00
Unknwon
e0aab4a7f6
#1830 new comment with status change overwrites issue content
2015-10-23 12:54:19 -04:00
Unknwon
db7ac8bc1d
use notice instead of suspend delete archives
2015-10-23 11:03:15 -04:00
Unknwon
c6ce6bd4c2
work on #1830
2015-10-23 10:31:13 -04:00
Unknwon
04af4b24fd
work on #1818
2015-10-22 14:47:32 -04:00
Unknwon
fc7959d3bc
New/reopen PR checks if there is any unmerged and open PR
2015-10-18 19:30:39 -04:00
Unknwon
4dc6285715
add new status: checking
2015-10-18 17:18:54 -04:00
Unknwon
6599869f28
#1790 fast return for too large diff
2015-10-17 17:25:45 -04:00
Unknwon
932dbccb67
fix import path, fix #1782
2015-10-15 21:28:12 -04:00
Unknwon
6a6e43f964
print out git version
2015-10-13 16:01:57 -04:00
Unknwon
570ddefc32
print log every time regulater timezone
2015-10-10 19:04:26 -04:00
Unknwon
f1c2276c8d
add log when cannot regulate time
2015-10-09 23:05:20 -04:00
Unknwon
01dc8f8a4f
fix change visivility of non-org does not affect forks
2015-10-08 22:38:42 -04:00
Unknwon
ea6c6bc20a
work on 1714
2015-10-05 09:54:55 -04:00
Unknwon
215920772a
save PR info as patch and minor fix on PR
2015-10-04 20:54:06 -04:00
kendaru
5c39d3fa7d
changed integrated page number to GET
2015-10-02 10:04:11 +02:00
Steven
c8aa9c6cb1
implemented #1721 : see users who forked/starred/watched a repository
2015-10-01 15:51:46 +02:00
Unknwon
2dde2a8ad3
fix error detect when push commits
2015-09-25 21:06:31 -04:00
Unknwon
6dfee30bf0
#1602 Wrong commit order on issue page when pushing multiple commits
2015-09-25 20:35:56 -04:00
Unknwon
986447335d
#1693 minor fix
2015-09-25 19:07:21 -04:00
无闻
84c727ae66
Merge pull request #1693 from sapk/fix-admin-repo-new-ui
...
Fix admin repos new ui
2015-09-25 19:05:27 -04:00
Antoine GIRARD
dfc16d0879
Fix admin repos new ui
2015-09-26 00:38:43 +02:00
Antoine GIRARD
c98dad1cf3
New admin organization UI
2015-09-25 19:54:52 +02:00
Antoine GIRARD
14a1101139
New admin notice UI based on user list example
2015-09-25 18:13:38 +02:00
Unknwon
3fb1b6a608
drop oauth2 feature support
2015-09-17 16:11:44 -04:00
Unknwon
373731f5e8
user gomail and new activate account email tpl
...
- #1496 : fallback plain text
- #1002 : add date header
- #913 : fix encoding of header
2015-09-17 01:54:12 -04:00
Unknwon
e75fd2f783
simplify names
2015-09-16 23:08:46 -04:00
Unknwon
e303d74ab6
#1643 fix delete milestone
2015-09-15 10:03:50 -04:00
Unknwon
f5c7f22cc8
#1637 able to skip verify for LDAP
2015-09-14 15:48:51 -04:00
Unknwon
d600530c20
#1635 PAM return error bug
2015-09-14 11:03:42 -04:00
Unknwon
2d1bb0cf49
#1633 admin delete user
2015-09-13 13:26:20 -04:00
Unknwon
8e0a69f86a
#697 disable captcha and new admin create user UI
2015-09-13 09:51:51 -04:00
Unknwon
e2d6b0116e
#1500 only regulateTimeZone for MySQL
2015-09-13 07:32:00 -04:00
Unknwon
cd37fccdfb
#1625 remove auto_register and makes it default
2015-09-12 20:58:51 -04:00
Unknwon
6969c20afd
#1625 LDAP not working
2015-09-12 19:20:37 -04:00
Unknwon
d185f601d3
#1622 comment with whitespace
2015-09-12 16:58:18 -04:00
Unknwon
aff773f1b9
add tidb support
2015-09-12 15:31:36 -04:00
Unknwon
be89802bd8
new admin user list UI
2015-09-11 20:42:26 -04:00
Unknwon
247017d9ff
clean log
2015-09-11 13:33:36 -04:00
Unknwon
362d64df04
#1620 add allowed domains for SMTP auth
2015-09-11 13:32:33 -04:00
Unknwon
373ef5d15e
#1500 timezone minutes offset
2015-09-11 12:33:27 -04:00
Unknwon
121a81a2c5
finish new edit auth UI
2015-09-11 12:03:08 -04:00
Unknwon
0617448282
finish new add auth UI
2015-09-10 17:11:41 -04:00
Unknwon
fa728d8dff
more minor fix on 1581
2015-09-10 15:45:03 -04:00
Unknwon
26ac016b9f
minor fix on #1581
2015-09-10 15:03:14 -04:00
Unknwon
cbd6276200
Merge branch 'develop' of https://github.com/SergioBenitez/gogs into develop
...
# Conflicts:
# modules/bindata/bindata.go
2015-09-10 14:55:29 -04:00
Unknwon
52ec80fa18
finish all new user settings UI
2015-09-10 11:40:34 -04:00
Unknwon
c8d92fad30
#1595 pushing new branch will rereference issues in previous branch
2015-09-10 07:53:40 -04:00
Unknwon
9899ea71e8
#1611 fix bool type in sqlite query
2015-09-09 18:07:10 -04:00
Sergio Benitez
964d0262ff
Merged conflicts.
2015-09-09 13:44:51 -07:00
Unknwon
b75d0378cb
clean log
2015-09-09 12:42:24 -04:00
Unknwon
49e120a67c
#1602 change status after comment issue
2015-09-08 06:34:02 -04:00
Unknwon
3d9b98fae4
#1585 order owners list by last changed time
2015-09-07 13:58:23 -04:00
Unknwon
645d4d0c5b
#1594 Collaborative Repositories missing suburl on Dashboard
2015-09-07 05:57:19 -04:00
Unknwon
0806725ca5
minor fix on #1589
...
Signed-off-by: Unknwon <u@gogs.io>
2015-09-06 18:19:30 -04:00
无闻
d504ee0417
Merge pull request #1589 from siadat/migrating-empty-repository
...
Set IsBare true if migrated repo is empty
2015-09-06 18:17:58 -04:00
Sina Siadat
ae1650824c
Set IsBare true if migrated repo is empty.
...
Executes `git log -1` and sets IsBare to true if stderr contains this
string:
fatal: bad default revision 'HEAD'
2015-09-07 02:20:51 +04:30
Unknwon
85f34ba538
new user profile settings UI
...
Signed-off-by: Unknwon <u@gogs.io>
2015-09-06 16:31:22 -04:00
Unknwon
80701d45bb
#1193 Make organization emails non-mandatory
2015-09-06 10:08:14 -04:00
Unknwon
aa67de910a
fix #1558
2015-09-06 08:54:08 -04:00
Unknwon
119dec51f2
Mirror repository should not allow fork
2015-09-05 14:31:52 -04:00
Sergio Benitez
aa9c36514f
Merged conflicts.
2015-09-04 20:49:07 -07:00
Sergio Benitez
2d1db4bf05
Added LDAP simple auth support.
2015-09-04 20:48:34 -07:00
Unknwon
d023e81a8f
#1577 explore paginator problem
2015-09-04 05:54:22 -04:00
Unknwon
38eb000d13
work on #1570
2015-09-03 08:09:08 -04:00
Unknwon
b1f0f85789
#1569 force InnoDB for MySQL
2015-09-03 05:05:58 -04:00
Unknwon
a7ee654646
#1544 better tmp dir name for creating repo
2015-09-03 04:44:20 -04:00
Unknwon
b6131793da
#1545 prevent duplicated refs of issues in single commit
2015-09-03 04:34:08 -04:00
Unknwon
1fd5f8edf8
fix #1568
2015-09-03 03:58:44 -04:00
Unknwon
2a2a8cd619
ui and pulls index fix
2015-09-03 03:49:50 -04:00
Unknwon
83dc2468f5
finish initial version of pull request
2015-09-02 16:18:09 -04:00
Unknwon
842770d7fb
add merger info and news feed
2015-09-02 11:24:55 -04:00
Unknwon
5da306c0e5
tmp: fix issue open count
2015-09-02 11:13:37 -04:00
Unknwon
953bb06857
basic PR feature
2015-09-02 09:26:56 -04:00
Unknwon
6ea28f2a47
work on #1558
2015-09-02 05:16:30 -04:00
Unknwon
1abfe4e05f
PR: nothing to commit and has pull request check
2015-09-02 05:09:12 -04:00
Unknwon
37e0cee877
finish PR UI
2015-09-02 04:08:05 -04:00
Unknwon
2ac8e11f46
#842 able to use access token replace basic auth
2015-09-02 02:40:15 -04:00
Unknwon
ebf1bd4f51
add view pull desc
2015-09-01 19:26:39 -04:00
Unknwon
8c046073a8
work on PR conversation
2015-09-01 19:07:02 -04:00
Unknwon
63fecac537
XSS in username
2015-09-01 12:19:52 -04:00
Unknwon
398569f6f8
#1021 Forked repo unavailable after deleting original repo
2015-09-01 11:43:53 -04:00
Unknwon
8af094967f
#1377 add rename repo action
2015-09-01 09:29:52 -04:00
Unknwon
7714e792a4
minor fixes on #1551
2015-09-01 07:04:35 -04:00
Unknwon
17c2d1fc7c
fix dashboard 500 when no issues at all
...
- update locales
- update README
2015-09-01 06:31:47 -04:00
Unknwon
d01f688257
fix repository count of user is messed up
2015-08-30 01:13:24 +08:00
Unknwon
8d73832bdf
fix sql
2015-08-29 23:49:17 +08:00
Unknwon
a3683ca5d6
#1544 Creating new repository fails occasionally
2015-08-29 16:07:02 +08:00
Unknwon
ea454c21f7
#1542 A way to skip TLS verify for SMTP authentication
2015-08-29 15:45:58 +08:00
Unknwon
63799b3c18
#1526 URL escape for username and password
2015-08-29 12:08:37 +08:00
Unknwon
55ddf225bb
webhook APIs
2015-08-29 11:49:59 +08:00
Unknwon
8e92d4352f
slack JSON indent
2015-08-28 23:38:09 +08:00
Unknwon
f509c59ac1
new create webhook event
2015-08-28 23:36:13 +08:00
Unknwon
a541ca16b6
fix bare repo issue
2015-08-28 19:34:23 +08:00
Unknwon
d07033a0f0
fix 1093
2015-08-28 18:49:44 +08:00
Unknwon
11ce720f9f
add more README vars
2015-08-28 18:36:32 +08:00
Unknwon
bb3b90fcd6
#1487 Readme Template
2015-08-28 18:33:09 +08:00
Unknwon
46bee50e45
complate list of gitignores and licenses
2015-08-28 16:44:04 +08:00
Unknwon
ff35a37769
#1458 : Authorities were messed up when using mysql database
2015-08-28 13:51:15 +08:00
Unknwon
23f42d92c9
add webhook recent deliveries
2015-08-27 23:06:14 +08:00
Unknwon
b900863d60
rename a user method
2015-08-27 13:26:38 +08:00
Unknwon
4217c2333c
new create webhook UI
2015-08-27 00:30:06 +08:00
Unknwon
2881456421
new webhooks list UI
2015-08-26 21:45:51 +08:00
Unknwon
b3a45693c3
minor update
2015-08-26 12:26:01 +08:00
Unknwon
a329bbc215
new org dashboard issues
2015-08-25 23:22:05 +08:00
Unknwon
f808df5a7b
new user dahsboard issues
2015-08-25 22:58:34 +08:00
Unknwon
260301bf2e
#1535 Removing deploy key does not remove key
2015-08-25 03:30:39 +08:00
Unknwon
87152f89ba
fix release created timezone issue
2015-08-24 21:01:23 +08:00
Yixin Hao
5f25553b0d
Modify minimumKeySize of RSA to 1024 for old keys.
2015-08-21 15:29:43 +08:00
Unknwon
aa65761d81
new commits table
2015-08-20 20:18:49 +08:00
Unknwon
062adbed8a
add confirmation to delete ssh key
2015-08-20 17:11:29 +08:00
Unknwon
9b42f53aa8
more on #966
2015-08-20 16:08:26 +08:00
Unknwon
371572cf5f
allow edit issue and comment
2015-08-20 04:31:28 +08:00
Unknwon
f114f78743
fix timezone!
2015-08-20 00:56:12 +08:00
Unknwon
6c2536b89c
fix timezone
2015-08-20 00:32:18 +08:00
Unknwon
a5b09b30d0
print time to debug
2015-08-20 00:25:32 +08:00
Unknwon
b846f195c1
work #1500
2015-08-20 00:12:43 +08:00
Unknwon
1453e91f41
minor fix on API response
2015-08-19 20:08:57 +08:00
Girish Ramakrishnan
24d7a86a8d
Set IsAdmin using LDAP
...
The IsAdmin flag is set based on whether the admin filter
returned any result. The admin filter is applied with the user dn
as the search root.
In the future, we should update IsAdmin as well on each login.
Alternately, we can have a periodic sync operation.
2015-08-18 23:49:12 -07:00
Unknwon
03b85b73af
token recent activity
2015-08-19 06:22:33 +08:00
Unknwon
47ac579f09
only assign auto-admin when sign up by web
2015-08-19 04:58:45 +08:00
Unknwon
4c7b6414eb
new access token UI
2015-08-19 03:36:16 +08:00
Unknwon
6235bd1fe9
work on #986 and fix a LDAP crash
2015-08-18 04:03:11 +08:00
Unknwon
b1696665bd
make cron task configurable
2015-08-18 02:19:29 +08:00
Unknwon
407385db7e
work on #1493
2015-08-17 17:05:37 +08:00
Unknwon
55ccb00a47
Merge branch 'develop' of https://github.com/SergioBenitez/gogs into develop
...
# Conflicts:
# modules/bindata/bindata.go
2015-08-16 14:31:54 +08:00
无闻
ce8864c69a
Merge pull request #1475 from donbowman/master
...
Fix race condition on ssh key delete, and revert re-revert of hard line break
2015-08-15 17:27:20 +08:00
Don Bowman
1d52793faf
remove empty line as per https://github.com/gogits/gogs/pull/1475
2015-08-15 09:21:34 +00:00
Unknwon
a52324a5f9
able sort issues
2015-08-15 12:07:08 +08:00
Unknwon
a24141ec9c
more on #1319
2015-08-15 02:54:39 +08:00
Unknwon
30b428bf0e
#1419 : 500 when visit a issue with issue/comments of deleted user
2015-08-15 02:48:05 +08:00
Unknwon
e4d6b5d488
Creates hooks directory when init update hook
2015-08-15 01:13:23 +08:00
Unknwon
cec38f2a8c
able edit issue labels/milestone/assignee
2015-08-15 00:42:43 +08:00
Unknwon
2cc9bc8969
delete attachments when delete repo
2015-08-14 03:07:20 +08:00
Unknwon
817b48ed1e
Show owner/poster tags of comments and fix #1312
2015-08-14 02:43:40 +08:00
Unknwon
1fb53067f4
finish close/reopen issue
2015-08-13 23:21:43 +08:00
Unknwon
133b19d0c5
finish view comments on issue page
2015-08-13 16:07:11 +08:00
Sergio Benitez
7d84d4a8f0
Significantly enhanced LDAP support in Gogs.
2015-08-12 17:01:22 -07:00
Don Bowman
ab0247b4dc
race condition on keydelete
2015-08-12 22:00:43 +00:00
Unknwon
ab2d0b3b44
add comment form UI
2015-08-12 18:44:09 +08:00
Unknwon
b4c0b7b98b
finish view issue without comments and ops
2015-08-12 17:04:23 +08:00
Unknwon
cafde1287e
delete avatar when del user
2015-08-12 03:46:08 +08:00
Unknwon
34f6cbfc2a
finish attachments when create issue
2015-08-11 23:24:40 +08:00
Unknwon
1ce4543a94
Merge branch 'develop' of github.com:gogits/gogs into feature/pull_request2
2015-08-10 23:56:17 +08:00
Unknwon
64985c7faa
fix template error
2015-08-10 23:56:04 +08:00
无闻
9c0c16bb5a
Merge pull request #1464 from jamesa/hide-gravatar-tooltip
...
Hide avatar tooltips unless you're looking at your own profile
2015-08-10 23:55:43 +08:00
James Anderson
e5146155a0
Resize avatars to the same size they are displayed
2015-08-10 10:43:14 -05:00
Unknwon
cbc7b7132f
finish new issue action and mentions
2015-08-10 23:31:59 +08:00
Unknwon
887bc1b594
Merge branch 'develop' of github.com:gogits/gogs into feature/pull_request2
...
# Conflicts:
# modules/bindata/bindata.go
# public/css/gogs.min.css
2015-08-10 23:01:41 +08:00
Unknwon
2aea247208
minor fix on #1460
2015-08-10 22:59:12 +08:00
Unknwon
884bc4ffd8
rename functions
2015-08-10 22:45:49 +08:00
Unknwon
75aff60c90
finish create issue with milestone and assignee
2015-08-10 21:47:23 +08:00
Unknwon
09a1b2a1f5
finish create issue with milestone
2015-08-10 18:57:57 +08:00
Unknwon
922f3f3062
finish create issue with labels
2015-08-10 16:52:08 +08:00
Unknwon
17de3ab0a3
add migrate from issue.label_ids to issue_label
2015-08-10 14:42:50 +08:00
Unknwon
a79586cc54
Merge branch 'develop' of github.com:gogits/gogs into feature/pull_request2
...
# Conflicts:
# modules/bindata/bindata.go
# public/css/gogs.min.css
# templates/repo/header.tmpl
2015-08-10 00:37:42 +08:00
Unknwon
7372042441
list view: issue, label, milestone
2015-08-09 22:45:38 +08:00
Unknwon
590c464c56
UI: create issue with title and content
2015-08-09 15:23:02 +08:00
Unknwon
68b9d78386
remove sync.Pool and support go1.2 again
2015-08-09 12:06:08 +08:00
Unknwon
4b43ffc96c
Generate random avatar based on e-mail when disable Gravatar
2015-08-09 11:46:10 +08:00
Unknwon
dea3a8c6a4
WIP: create PR - choose branch
2015-08-08 22:43:14 +08:00
Unknwon
e3bdfd51ff
better fork permission check
2015-08-08 17:24:10 +08:00
Unknwon
9db4acc62e
improve fork process
2015-08-08 17:10:34 +08:00
Unknwon
45adb9b7a3
fix #1331
2015-08-08 00:41:09 +08:00
Unknwon
b1f08d3218
more on #1443
2015-08-07 00:09:28 +08:00
Unknwon
d922b7e504
#1443 set first user to be admin
...
...not just ID=1
2015-08-07 00:00:11 +08:00
Unknwon
02877f1a69
remove useless code
2015-08-06 23:27:54 +08:00
Unknwon
9d414d4dd9
remove Index field of milestone
2015-08-06 23:25:35 +08:00
Unknwon
0acf209e2a
fix UNIQUE
2015-08-06 22:55:03 +08:00
Unknwon
39a3b768bc
#334 : Add Deployment Key Support
2015-08-06 22:48:11 +08:00
Unknwon
34795770c3
fix issue stats with milestone filter
2015-08-05 20:52:17 +08:00
Unknwon
81d01aa308
fix mysql parsetime arg
2015-08-05 20:47:35 +08:00
Unknwon
2c507667bf
Merge branch 'develop' of github.com:gogits/gogs into feature/milestone
...
# Conflicts:
# gogs.go
# models/issue.go
# templates/.VERSION
2015-08-05 20:26:00 +08:00
Unknwon
0705f55ce0
finish new milestone page
2015-08-05 20:23:08 +08:00
Unknwon
74bd6b939c
milestone: edit
2015-08-05 18:26:18 +08:00
Unknwon
b9527cd1bf
#1299 force downcase e-mail
2015-08-05 17:36:22 +08:00
Unknwon
3e4cdccf6b
milestone: create page
2015-08-05 15:24:26 +08:00
Unknwon
ce4dcf1e83
fix naming
2015-08-05 11:18:24 +08:00
Unknwon
e50982f5ec
allow anonymous SSH clone
2015-08-05 11:14:17 +08:00
Unknwon
9311a9858a
milestone: pagination
2015-08-04 22:24:04 +08:00
Unknwon
04458d49a0
milestone: list view
2015-08-03 17:42:09 +08:00
Unknwon
cbb78b6a63
better wording
2015-08-02 12:37:29 +08:00
Unknwon
c44e1c7ca9
fix #1208
2015-07-31 14:05:36 +08:00
Unknwon
42a2c5ca54
#1400 use new connstr format for postgres
2015-07-31 11:05:06 +08:00
Vladimir Vissoultchev
4917d29c12
Partial impl of git diff encoding
2015-07-29 17:55:01 +03:00
Vladimir Vissoultchev
fac4e27882
Allow spaces in file/dir names on parsing git diff
2015-07-28 19:48:36 +03:00
Unknwon
f83519b452
report error when migration auth failed
2015-07-28 21:24:24 +08:00
Unknwon
686dd59916
fix #864 with migration and update locale
2015-07-26 22:06:28 +08:00
Unknwon
6f8e388b55
fix #1169
...
- prevent create reop on existed path
2015-07-26 19:22:17 +08:00
Unknwon
fa298a2c30
#835 : Realtime webhooks
2015-07-25 21:32:04 +08:00
Unknwon
2b1442f3df
fix sql
2015-07-25 13:18:19 +08:00
Unknwon
2e7b38db9f
fix paging links and issue count
2015-07-25 13:07:00 +08:00
Unknwon
c0883a51a0
mirror fix on #1111
2015-07-25 07:47:43 +08:00
无闻
b838e94980
Merge pull request #1111 from vitalvas/develop
...
Add function in cron to autofix counters in repository
2015-07-25 07:22:50 +08:00
Unknwon
1ba837a055
new issue and label page
2015-07-25 02:52:25 +08:00
Unknwon
54b58e988d
Merge branch 'develop' of github.com:gogits/gogs into feature/page_issues
2015-07-25 00:49:40 +08:00
Unknwon
dc4aab9925
UI: CURD labels
...
- fix update lable break connection with repository
2015-07-24 23:13:42 +08:00
Unknwon
ac95f6d50f
UI: basic label list
...
- create new label
2015-07-24 21:02:49 +08:00
Unknwon
04e596f984
#1369 : nil pointer when add repo to team
2015-07-24 16:52:01 +08:00
Unknwon
86dbda0b42
UI: basci issue list without filters
...
- fix isRead check
- fix paging
2015-07-24 16:42:47 +08:00
Unknwon
d6cdd49c16
fixes on #1171
2015-07-19 17:44:03 +08:00
Unknwon
663c28beb6
#1279 : Removing user from collaboration removes repositiory
2015-07-14 22:56:02 +08:00
Unknwon
c6531c4882
check master as default branch when migrate
2015-07-05 18:34:16 +08:00
Lunny Xiao
f92bdf875b
Merge pull request #1226 from nice-software/wip/pam
...
Add PAM authentication
2015-04-24 16:43:58 +08:00
Paolo Borelli
182003aa41
Add PAM authentication
2015-04-24 10:13:01 +02:00
Lunny Xiao
673a76d638
Merge pull request #1211 from mephux/hotfix/type-fix-ValidatePassword
...
Hotfix/type fix validate password
2015-04-24 15:03:21 +08:00
William Roush
8363c9dd0f
Fixes issue with LDAP inserting users with blank names.
2015-04-20 01:51:43 -04:00
Tony Narlock
6a0fec77ea
Allow an SSHDomain configuration option. Defaults to Domain, preserves legacy behavior
2015-04-18 05:21:07 -05:00
Dustin Willis Webber
e57594dc31
typo fix for comment
2015-04-16 14:40:39 -04:00
Dustin Willis Webber
f78046fc3b
typo fix
2015-04-16 14:36:32 -04:00
Unknwon
9fb2d49b93
#1073 #1162 issue ID constraint failed
2015-03-27 06:47:02 -04:00
Unknwon
698b9e2acc
#1070 Clearer error message for illegal characters
2015-03-26 17:11:47 -04:00
Unknwon
99b774e741
auto fix locale file name change
2015-03-25 19:51:22 -04:00
Unknwon
ab730a91f0
#1120 #1132 mirror info not updated when transfer mirro repo
2015-03-25 17:50:18 -04:00
Unknwon
aae74c793a
#1133 add config option [service] DISABLE_MINIMUM_KEY_SIZE_CHECK
2015-03-25 08:59:48 -04:00
Unknwon
9c67a19332
#1089 change to fake local email account
2015-03-24 18:41:41 -04:00
Unknwon
6f81c05dde
#1143 Team member access lost when adding repository collaborator
...
- fix bug when add a repo to team, all other team members gets access as well
2015-03-24 18:14:04 -04:00
Unknwon
484175f702
#1124 lower_name of LDAP user not assigned
2015-03-23 10:51:43 -04:00
Unknwon
2bb982dada
#1080 : Remove footer ads/branding from default template
2015-03-23 10:19:19 -04:00
Vitaliy Vasilenko
20a8d651f3
add func to autofix couters in repository
2015-03-21 14:55:00 +02:00
Unknwon
7cf0564587
update gopmfile
2015-03-19 16:44:22 -04:00
Unknwon
e6cf83b8c0
Put default config into binary
2015-03-18 06:37:44 -04:00
Unknwon
82f7a01ded
#1064 : X-Gogs-Event header is empty
2015-03-18 04:51:02 -04:00
Unknwon
466facc009
#1067 : Deleting users should remove them from collaborator lists
...
- fix delete user but repository watches are not decreased
2015-03-17 21:51:39 -04:00
Unknwon
fc6db829b2
fix read access team visibility of private repo
2015-03-16 04:52:11 -04:00
Unknwon
588f3215c6
#1040 : dashboard no longer accessible when repo is missing
2015-03-16 04:04:27 -04:00
Unknwon
80b23854bc
#1050 : Bad permissions on authorized_keys after rewrite
2015-03-14 22:37:23 -04:00
Tomcat
2bfe2ddb6d
Add mysql unix socket support.
...
If the host setting looks like a unix socket (leading by char '/'), will use unix(host) as connection string
2015-03-14 02:21:47 +08:00
Unknwon
b72e75e522
#1024 : OFFLINE_MODE Still Uses Gravatar
2015-03-12 20:32:38 -04:00
Unknwon
b668fc7aad
#876 : Update hooks is missing for forked repository
2015-03-12 20:18:42 -04:00
Unknwon
0720d3988f
#988 : GetRepoLink already contains AppSubUrl
2015-03-12 16:01:23 -04:00
Unknwon
6b70a0c0d9
#1032 : legacy code can have duplicated IDs for same repository
2015-03-12 15:09:40 -04:00
Unknwon
4aafeace23
fix HTTP/HTTPS push update func call panic #1037 and http: multiple response.WriteHeader calls
2015-03-12 01:15:01 -04:00
Unknwon
18c0697329
routers/repo/setting.go: fix LDAP cannot validate password #1006
2015-03-05 19:20:27 -05:00
Unknwon
63a73b43b4
models/migrations: fix update error
2015-02-28 23:58:04 -05:00
Unknwon
a6a2f59d1d
Merge branch 'access' of github.com:gogits/gogs into dev
2015-02-28 22:25:10 -05:00
Unknwon
d446be9f5f
models: mirror fix on #964
2015-02-28 22:24:53 -05:00
无闻
8d17ff8ce7
Merge pull request #964 from phsmit/access_rewriteserv
...
Rewrite/simplify gogs serve
2015-02-28 21:57:58 -05:00
Unknwon
b0b11fd7b1
Merge branch 'access' of github.com:gogits/gogs into dev
2015-02-28 21:50:29 -05:00
Unknwon
f44204e944
REAMDE: update
2015-02-28 21:50:04 -05:00
Unknwon
473e265727
models: done testing on new access system
2015-02-28 21:44:09 -05:00
Unknwon
8896c82d34
models: fix issue with transfer repository
...
README: fix typo
2015-02-24 00:27:22 -05:00
Raphael Randschau
1f61340fa3
Properly calculate the number of open issues per label
2015-02-23 21:26:24 +01:00
无闻
cd8b43d984
Merge pull request #915 from Lafriks/dev
...
Get username, name, surname and e-mail from LDAP server
2015-02-23 13:41:29 -05:00
Peter Smit
556881964f
Merge branch 'access' into access_rewriteserv
2015-02-23 12:34:41 +02:00
Unknwon
ee68a826a5
v4 migration, merge 'dev', clean code and mirror fix
2015-02-23 02:15:53 -05:00
Unknwon
e90f014e4a
Merge branch 'access' of github.com:gogits/gogs into access
2015-02-22 23:34:05 -05:00
Unknwon
10e4b5b6c6
Merge branch 'access' of github.com:gogits/gogs into access
2015-02-22 22:55:35 -05:00
Unknwon
7ccab9cd09
Merge branch 'dev' of github.com:gogits/gogs into access
...
Conflicts:
gogs.go
models/models.go
models/user.go
templates/.VERSION
templates/org/home.tmpl
2015-02-22 22:51:25 -05:00
Unknwon
04164eada3
models: able to rename user with diff letter cases #981
...
- templates/org: mirror fix on name output
- routers: add missing error check
2015-02-22 18:24:49 -05:00
Unknwon
3fcc39c26b
Merge branch 'dev' of github.com:gogits/gogs into dev
2015-02-21 22:13:50 -05:00
Unknwon
1654e9ecab
templates/user/settings/emial.tmpl: little fix on UI
...
- routers/user: little code format
- conf/locale: update French locale
2015-02-21 22:13:47 -05:00
Raphael Randschau
4f567edc6e
Fix #933
...
Not sure why, but xorm ignores the num_issues and num_closed_issues
columns when updating, even though the values changed.
Listing them explicitly fixes the issue with the wrong issue counts
2015-02-21 09:37:48 +01:00
Peter Smit
e6fc58a744
Remove GoGet option from repository and handle it with ?go-get=1 instead
...
The normal go get protocol is to show the go-import meta tag when ?go-get=1 is appended to the url. This commit implements that behaviour and cleans the go-get option from the repository settings page.
2015-02-17 10:36:17 +02:00
Peter Smit
aa68e86206
Rewrite/simplify gogs serve
2015-02-16 16:38:01 +02:00
Peter Smit
b6519f78c7
Remove collaborators when removing and transferring repository
2015-02-16 13:34:42 +02:00
Unknwon
685ed1f807
models: fix XORM API break
...
cmd/web.go: check version after load config
2015-02-14 17:01:33 -05:00
Peter Smit
0009a1d2b1
Fix access for team mode update
2015-02-13 23:12:33 +02:00
Peter Smit
ddf7014b9b
Rewrite of access migration
...
The old migration had a few issues:
- It left old column names around
- It did not give the right access levels for owners and admins
Also, this includes a migration that fixes the authorization of owner teams, which was previously ORG_ADMIN (instead of ORG_OWNER)
2015-02-13 13:58:19 +02:00
Unknwon
25f5a8d798
some fixes, but not done yet!
2015-02-13 02:56:42 -05:00
Unknwon
6b7d35eade
fix mirror issues uncaught #941
2015-02-13 02:14:57 -05:00
Unknwon
6d0f3a07d4
code fix #941 caution: undertest
2015-02-13 00:58:46 -05:00
Unknwon
b99c4baab2
models/migrations: finish accessRefactor
2015-02-12 22:43:32 -05:00
无闻
7fda0cdb93
Merge pull request #941 from phsmit/access_refactor
...
Access refactor
2015-02-12 21:34:27 -05:00
Unknwon
0b3722c359
models/migrations: fix little logic error
2015-02-12 12:46:21 -05:00
Unknwon
67a9416ae5
templates/user/auth/signin.tmpl: hide sign up prompt when registration is disabled #884
2015-02-12 12:38:44 -05:00
Peter Smit
6c1ee384f1
Merge remote-tracking branch 'mine/access_refactor' into access_refactor
...
Conflicts:
cmd/serve.go
models/access.go
models/migrations/migrations.go
models/org.go
models/repo.go
models/user.go
modules/middleware/org.go
modules/middleware/repo.go
routers/api/v1/repo.go
routers/org/teams.go
routers/repo/http.go
routers/user/home.go
2015-02-12 14:25:07 +02:00
Peter Smit
0a4cda0dd4
Refactoring of the Access Table
...
This commit does a lot of the work of refactoring the access table in a table with id's instead of strings.
The result does compile, but has not been tested. It may eat your kittens.
2015-02-12 14:14:45 +02:00
Peter Smit
2804784df9
Some comments and improvements for migrations
2015-02-12 13:59:42 +02:00
Unknwon
876a856759
models/migartions: make Migration as interface and use session
2015-02-11 23:10:30 -05:00
Unknwon
7e7160eefd
first pass work on migration #925
2015-02-11 21:58:37 -05:00
Unknwon
c5c467a9cd
Merge branch 'dev' of github.com:gogits/gogs into access
2015-02-11 19:25:59 -05:00
Unknwon
c7a042ef36
Merge branch 'access' of github.com:gogits/gogs into access
2015-02-11 12:43:43 -05:00
无闻
e805fdb29c
Merge pull request #925 from phsmit/newcollaboration
...
Collaboration
2015-02-11 12:43:13 -05:00
Unknwon
d02e45f985
better naming on #891
2015-02-11 12:04:01 -05:00
Unknwon
485ea6f14f
models: make code change for session issue with SQLite3 #739
2015-02-10 23:44:16 -05:00
Unknwon
6a23252edc
able to allow insecure certification of webhook for #891
2015-02-10 21:06:59 -05:00
Unknwon
bad533a219
models/repo.go: add update hook when migrate for #789
2015-02-09 12:42:53 -05:00
Peter Smit
0d158e569b
Change constants to UPPERCASE_WITH_UNDERSCORE style
2015-02-09 13:36:33 +02:00
Peter Smit
aa35be975f
Fix #922
2015-02-09 12:27:15 +02:00
无闻
6ed96b7a20
Merge pull request #911 from TonyTsangHK/dev
...
Link to previous commited source file (diff.view_file button) instead of returning 404 for deleted files.
2015-02-09 00:31:16 -05:00
Unknwon
f15fa9167a
cmd: code fix for #905
...
- routers/admin: add rewrite update hook operation
- conf/locale: update locale file due to ini behavior changes
- cmd/cert_stub.go: remove useless code
- cmd/fix.go: no longer need fix command(at least now)
2015-02-08 21:26:14 -05:00
无闻
cd0ee35b3f
Merge pull request #905 from phsmit/conf_on_cli
...
Add option to provide configuration file on command line
2015-02-08 20:22:02 -05:00
Lauris BH
00653e52ee
Get username, name, surname and e-mail from LDAP server
2015-02-08 01:49:51 +02:00
Unknwon
ba77a3b0b4
routers/repo/http.go: allow HTTP push/pull by token for #845
2015-02-07 15:47:23 -05:00
无闻
19525abfc4
Merge pull request #845 from compressed/token_http
...
allow http push by token - #842
2015-02-07 15:27:59 -05:00
Unknwon
2a2596fe61
able to disable SSH for #883
2015-02-07 10:46:57 -05:00
Unknwon
5a99e9a37b
models/action.go: add action reopen for #462
...
- models/issue.go: format comment type names
2015-02-06 20:47:21 -05:00
Unknwon
afccd0a3ee
models/action.go: mirror fix on #892
...
- modules/base/markdown.go: fix issue link issue
- routers/repo/view.go: remove useless code
2015-02-06 20:34:49 -05:00
Peter Smit
4e79adf6b5
Refactoring of the Access Table
...
This commit does a lot of the work of refactoring the access table in a table with id's instead of strings.
The result does compile, but has not been tested. It may eat your kittens.
2015-02-06 13:18:11 +02:00
Tony Tsang
fc6d80d619
Link to previous commited source file (diff.view_file button) instead of returning 404 for deleted files.
2015-02-06 17:02:32 +08:00
Peter Smit
1ab09e4f1b
Add option to provide configuration file on command line
2015-02-05 12:17:35 +02:00
Peter Smit
03af37554e
Merge branch 'dev' into newcollaboration
2015-02-05 11:08:10 +02:00
无闻
02c5bade0f
Merge pull request #892 from EtienneBruines/commit_reference
...
Referencing issues from commit messages is now possible.
2015-02-04 23:21:20 -05:00
Unknwon
f706102890
models: sanitize user full name when update settings
2015-02-04 20:04:01 -05:00
Peter Smit
fd1df86c44
Fix dashboard issue after collaboration migration
2015-02-04 16:08:55 +02:00
Peter Smit
bef38d9d3f
Fix collaboration migration code
2015-02-04 16:03:39 +02:00
Unknwon
4de0b19cec
models: mirro code fix for #821
2015-02-02 23:42:53 -05:00
无闻
902f19f70b
Merge pull request #821 from phsmit/fix_819
...
Fix #819 by fetching the repository from db before updating
2015-02-02 23:38:04 -05:00
Etienne Bruines
5c4b85c029
Referencing issues from commit messages is now possible.
...
Code-wise: the fixing-part of the code now doesn't reference the issue any more, because this is done by the referencing-part of the code, which is called just before.
Fixes #462 , #668 , #732 .
2015-02-02 16:34:07 +01:00
Unknwon
0a2068d7fb
models: code fix on #818
2015-02-01 17:21:56 -05:00
无闻
cd6376f093
Merge pull request #818 from fzerorubigd/master
...
add a function to rewrite all public keys on admin request
2015-02-01 16:56:34 -05:00
Unknwon
b293b6eaa6
cmd: CMD option for port number of gogs web
to prevent first time run conflict
...
- routers: use new binding convention to simplify code
- templates: able to set HTTP port number in install page
2015-02-01 12:41:03 -05:00
Unknwon
ee6786216a
modules/base: clean code with #838
2015-01-30 18:12:30 -05:00
Peter Smit
76f8904718
Introducing Collaboration Struct
2015-01-23 09:54:16 +02:00
Peter Smit
4ef3245413
Migration code: errors are not to be forgotten
2015-01-22 15:01:45 +02:00
Peter Smit
2a70d6b723
Clean up migrations code
2015-01-22 14:56:50 +02:00
Peter Smit
bb103e8723
Create db migrations framework
2015-01-22 14:52:58 +02:00
无闻
161774d4fb
Merge pull request #825 from phsmit/ssh2_keys
...
Implement #798 Flexible ssh-key input
2015-01-22 19:39:35 +08:00
Unknwon
452cca35e0
Merge branch 'encoding' of github.com:gogits/gogs into dev
...
Conflicts:
.gopmfile
2015-01-17 15:29:45 +08:00
Christopher Brickley
d0827e5d5e
allow http push by token - #842
2015-01-08 09:30:22 -05:00
Unknwon
bb26285a12
fix #827
2015-01-06 17:14:49 +08:00
Peter Smit
6251626de4
Implement #798 Flexible ssh-key input
...
It is now possible to input ssh keys in a number of formats: openssh, SSH2 or just the base64 encoded key.
2015-01-02 15:38:11 +02:00
Unknwon
c73e9057ae
Optmize git-fsck options and fix #820
2015-01-02 20:14:43 +08:00
Peter Smit
44fa9147b7
Fix #819 by fetching the repository from db before updating
2015-01-02 11:15:42 +02:00
Unknwon
0b56272c13
fix #805
2015-01-02 13:30:45 +08:00
Unknwon
3ea1443885
work on #784
2015-01-02 12:47:33 +08:00
fzerorubigd
6643647687
add afunction to rewrite all public keys on admin request
...
refs #763
2015-01-01 02:15:52 +03:30
Unknwon
bd555551ce
fix #801
2014-12-31 18:37:29 +08:00
无闻
477bea574a
Merge pull request #782 from estetsenko/dev
...
fix for #747
2014-12-29 20:08:39 +08:00
无闻
afdb0c7f9d
Merge pull request #790 from euank/master
...
Initialize unset git user.email / user.name correctly; fix Dockerfile
2014-12-29 20:06:27 +08:00
Unknwon
63c1f9a23f
fix 500: E-mail already used in user settings page
2014-12-29 20:00:07 +08:00
euank
234a7c19a4
Default values for both user.name and user.email
...
The previous behavior was to set default values only if user.name was
not set, but to always set it for both. This only sets a value if there
wasn't one; this fixes cases where someone has a user.name but no
user.email (see included Dockerfile) or someone has a user.email but no
user.name (before the email would have been over-written).
2014-12-27 19:07:54 -08:00
estetsenko
bae1d65564
bugfix: Unable to assign any issue myself
2014-12-24 20:47:45 +03:00
Peter Smit
3af757ed77
Replace mahonia with the standard functions in the Golang Sub-repositories
2014-12-22 11:01:52 +02:00
Peter Smit
66e2016eeb
Fix for wrong email query
...
Changing EmailAdress.OwnerId to EmailAddress.Uid should have accompanied this change
2014-12-21 09:16:56 +02:00
无闻
a18decf4cc
Merge pull request #755 from phsmit/multiple_emails
...
Multiple emails
2014-12-20 22:47:05 -05:00
Peter
20b5c23a19
Small fixes to multiple_emails feature
2014-12-20 09:26:51 +02:00
Unknwon
c4820f119d
work on #754
2014-12-18 03:26:09 -05:00
Peter
6919c80f0b
Add function to the model for email address management (add/delete/activate)
2014-12-17 17:40:10 +02:00
Peter Smit
99599c099f
Add alternative email addresses to the model
...
A new struct is created named EmailAddress that contains alternative
email addresses for users. Also the email related methods; IsEmailUsed
and GetUserByEmail are updated.
DeleteUser deletes the extra email addresses and DeleteInactivateUsers
also deletes inactive accounts. This could be factored out, but should
do it for now.
2014-12-17 10:26:19 +02:00
Unknwon
b553ea45ee
modes/repo: incorrect SSH clone URL for #742
2014-12-13 16:46:00 -05:00
Unknwon
ac4a10456e
api: able to create repo and fix #726
...
- POST /user/repos
- POST /org/:org/repos
2014-12-12 20:30:32 -05:00
Unknwon
2f3a7e53cb
fix #735
2014-12-12 01:29:36 -05:00
Unknwon
9a1fe801e5
fix #711
2014-12-09 02:18:25 -05:00
Joseph Crail
39c068400e
Fix spelling errors in comments.
2014-12-06 20:22:48 -05:00
Unknwon
0b785ad967
work on #672
2014-12-05 18:08:09 -05:00
Unknwon
e577f2fff3
fix #706 and other mirror improve
2014-12-04 23:07:51 -05:00
Andrew Burns
00cf3e4dab
Use the avatar.HashEmail function instead of hashing email directly. Fixes #700
2014-12-03 16:19:35 -07:00
Unknwon
5338808600
fix #676
2014-11-30 18:29:16 -05:00
Unknwon
d75013a0e8
fix #580
2014-11-30 02:26:29 -05:00
Unknwon
1b66600bd0
Fix #652
2014-11-23 02:33:47 -05:00
Unknwon
dc53270da9
Fix 653
2014-11-22 10:22:53 -05:00
Unknwon
8ea7ba3afa
fix #644
2014-11-21 13:10:00 -05:00
Unknwon
ef275ebf62
more on change avatar
2014-11-21 12:51:36 -05:00
Unknwon
55dfe2c978
custom avatar upload
2014-11-21 10:58:08 -05:00
Unknwon
2d8c414f8c
Fix #635
2014-11-18 19:05:33 -05:00
Unknwon
ce8d4cc80b
#634
2014-11-18 15:13:08 -05:00
Unknwon
1e47e2df85
quick fix
2014-11-17 16:29:23 -05:00
Unknwon
5d9ef2bb12
lock gopmfile
2014-11-17 16:25:39 -05:00
无闻
d21d7171b0
Merge pull request #587 from eryx/dev
...
Fix #266
2014-11-17 16:17:52 -05:00
Unknwon
32dcaefafa
fox #620
2014-11-17 14:53:41 -05:00
Unknwon
340a4595dd
support duoshuo mirror of gravatar
2014-11-16 20:27:04 -05:00
Unknwon
52d66ba6c8
#12 , use go-gogs-client
2014-11-14 17:11:30 -05:00
Unknwon
9dc3c93a6a
#12 , add/edit hook
2014-11-13 12:57:00 -05:00
Unknwon
9e22840483
fix #622
2014-11-13 05:27:01 -05:00
Unknwon
8eb5120fbd
#12 , API: list user repos, list repo hooks
2014-11-13 02:32:18 -05:00
Unknwon
8c9338a537
add personal access token panel #12
2014-11-12 06:48:50 -05:00
Unknwon
4e7eb5be9d
Work on #5 fork and fix #608
2014-11-05 23:30:04 -05:00
Unknwon
0c5ba4573a
fix session API broken and SQL pretection
2014-11-04 11:37:15 -05:00
luto
bff1e157d5
force the use of InnoDB as db engine for all tables, fixes #59
2014-10-28 16:40:09 +01:00
Eryx
e84e0ab904
Fix #266
2014-10-28 10:36:47 +08:00
Unknwon
83283bca4c
Safe work
2014-10-25 07:50:19 -04:00
Unknwon
f1d8746264
Fix fork repo and macaron API broken
2014-10-24 18:43:17 -04:00
Christopher Brickley
3794111460
update slack hook to use new format
2014-10-24 08:56:12 -04:00
Unknwon
a342d58d7e
Able to fork repo to individuals
2014-10-19 01:35:24 -04:00
无闻
d7d167ac63
Merge pull request #560 from evolvedlight/master
...
First cut of fork repo
2014-10-18 23:59:36 -04:00
Tony Tsang
e0f945959e
Replace white spaces with tab for format consistency
2014-10-14 17:31:35 +08:00
Tony Tsang
91127d9016
Fixes #562
2014-10-14 16:46:25 +08:00
evolvedlight
8d2a6fc484
Merge remote-tracking branch 'upstream/dev'
...
Conflicts:
models/repo.go
2014-10-13 20:30:31 +01:00
evolvedlight
29ac3980ff
More changes
2014-10-13 20:23:30 +01:00
Unknwon
c04aea8d9d
Fix #540
2014-10-12 02:39:00 -04:00
Unknwon
0d7b9065c6
Fix #540
2014-10-12 02:06:46 -04:00
Unknwon
452ccff81c
Mirror fix on add ssh key
2014-10-11 21:04:42 -04:00
Unknwon
fb839ca0fb
More debug info
2014-10-11 20:34:48 -04:00
Unknwon
b7b7863364
Work on ssh key issue
2014-10-11 20:06:35 -04:00
Unknwon
963354c5d7
Add raw, history file button, and other mirror fixes
2014-10-11 18:02:48 -04:00
lunnyxiao
e848b17fab
bug fixed for #540
2014-10-11 13:24:36 +08:00
Unknwon
b2632dec09
Page: Compare 2 commits
2014-10-10 21:40:51 -04:00
evolvedlight
211dc74816
Got the fork count working
2014-10-10 00:21:36 +01:00
Unknwon
79262173a6
Webhook delivery locking & Hide repo for org members if they don't have access
2014-10-09 19:01:22 -04:00
Unknwon
1aa76bd279
Fix #532 , add system notice
2014-10-08 18:29:18 -04:00
Unknwon
263d409326
Basic xss prevention
2014-10-04 17:15:22 -04:00
evolvedlight
c9e5e38fcf
Initial cut of git fork
2014-10-04 18:19:14 +01:00
Unknwon
405ee14711
Fix SMTP auth logic
2014-10-03 13:12:54 -04:00
Unknwon
86eac0842b
Fix feeds display issue
2014-09-29 18:58:04 -04:00
Unknwon
3cfa4a581c
Bug: 500 when transfer repository to collaborator
2014-09-29 04:04:48 -04:00
fundon
eb1e6f8e3e
support dsa key format
2014-09-29 12:37:34 +08:00
无闻
c1d047d16e
Merge pull request #508 from chadoe/homelink
...
Fix user HomeLink when using a suburl
2014-09-28 18:05:58 -04:00
无闻
38f71af363
Merge pull request #509 from chadoe/avatarlink
...
Fix AvatarLink when using a suburl
2014-09-28 18:05:35 -04:00
evolvedlight
b7b0ee7df9
Fix minor typo
2014-09-28 22:01:05 +01:00
Martin van Beurden
bb05ef907b
Fix AvatarLink when using a suburl and gravatar is disabled or avatars are cached
2014-09-28 14:27:13 +02:00
Martin van Beurden
204952439a
Fix user HomeLink when using a suburl
2014-09-28 13:55:58 +02:00
Unknwon
b8368f98ff
Add directory level commit message
2014-09-26 08:55:13 -04:00
Unknwon
10673417dc
Mirror fix on transfer repo
2014-09-25 22:42:31 -04:00
Unknwon
ad52b2d791
Mirror fix on transfer repo
2014-09-25 22:36:07 -04:00
Unknwon
71e4689d11
Page: User profile
2014-09-25 19:33:39 -04:00
Unknwon
f69761563b
Fix bug on transfer repo
2014-09-25 16:36:19 -04:00
lunnyxiao
089d934547
add action repousername for transfer
2014-09-25 16:43:14 +08:00
Unknwon
bd55b78775
Page: Commits and fix #249
2014-09-23 23:18:14 -04:00
Unknwon
5bbeeb0f1b
Page: Commits and fix #249
2014-09-23 15:30:04 -04:00
Christopher Brickley
25c8d01676
increase max commits in payload to 5
2014-09-22 08:25:39 -04:00
Unknwon
7ba9257a7f
Add suburl support
2014-09-19 20:11:34 -04:00
Martin van Beurden
0055cbd365
Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
...
Conflicts:
modules/setting/setting.go
Conflicts:
templates/repo/release/list.tmpl
templates/user/dashboard/dashboard.tmpl
Conflicts:
routers/repo/setting.go
2014-09-18 20:50:48 +02:00
Unknwon
8a09256941
Mirror fix and fix #481
2014-09-17 14:22:51 -04:00
Christopher Brickley
f94d7c3f51
clarify name/username/owner/pusher for webhook
2014-09-17 09:20:14 -04:00
lunnyxiao
061a879cea
Merge branch 'dev' of github.com:gogits/gogs into dev
...
Conflicts:
conf/app.ini
2014-09-17 12:04:18 +08:00
lunnyxiao
ed84adb679
toutf8 improved & add max git diff lines
2014-09-17 12:03:03 +08:00
Unknown
ebb4f1b78c
Work #475 and #458
2014-09-16 13:34:09 -04:00
Unknwon
62f21ff3ed
Work on #476
2014-09-16 11:29:53 -04:00
Unknwon
0d9c41be7d
Work on #476
2014-09-16 10:10:33 -04:00
Unknwon
c1ceec45da
Fix mirror UI style and work on #475
2014-09-16 08:32:13 -04:00
Unknwon
a2cac952a4
Prepare 0.5 release
2014-09-12 21:36:26 -04:00
Unknwon
bba401a5dc
Prepare 0.5 release
2014-09-12 19:42:11 -04:00
Unknwon
1b7adf57e9
fix https://github.com/go-xorm/xorm/issues/161
2014-09-12 18:58:24 -04:00
Unknwon
cfed11f092
Bug: Transfer repository doesn't update the count
2014-09-12 18:29:58 -04:00
Christopher Brickley
52d15ddec8
deliver hooks immediately after commit
2014-09-10 08:57:11 -04:00
Unknwon
33659ed9a5
Fix #452
2014-09-09 10:17:35 -04:00
Christopher Brickley
132590fab8
update specific hook_task, not all
2014-09-09 08:37:34 -04:00
lunnyxiao
d84d6dfdae
add showinfo for xorm
2014-09-08 12:11:25 +08:00
无闻
e79e4b1580
Merge pull request #442 from compressed/org_hook
...
Organization-level Webhooks
2014-09-07 19:30:51 -04:00
Unknwon
ab7206d6b7
Fix #348
2014-09-05 17:28:09 -04:00
Christopher Brickley
85c35a6b8b
add organization-level webhooks
2014-09-05 07:19:34 -04:00
Vyacheslav Bakhmutov
31d8011843
Set milestone content field to TEXT orm type
2014-09-05 08:10:41 +07:00
无闻
d8290c9bac
Merge pull request #444 from tstorch/database-cleanup
...
Code dedoublication in models/models.go
2014-09-04 11:38:35 -04:00
Tristan Storch
bdfdf3cacb
Code dedoublication in models/models.go
...
Just some code dedoublication in models/models.go
2014-09-04 17:19:26 +02:00
Tristan Storch
9fc4ded369
Standard git user.name and user.email if not set
...
Git user.name and user.email will now be set to the standard values
- Gogs
- gogitservice@gmail.com
if user.name is not set or empty.
If user.name is set and user.email not, it will leave it this way.
2014-09-04 12:07:09 +02:00
Unknwon
830efc90da
update docs and mirror bug fix
2014-09-02 07:11:39 -04:00
lunnyxiao
c80f0232f1
Merge branch 'master' into dev
2014-09-02 11:59:39 +08:00
lunnyxiao
1240fef0ca
bug fixed for migrate and fixed #141
2014-09-02 11:57:06 +08:00
Christopher Brickley
af0741da07
handle initial commit for compareUrl
2014-09-01 19:19:56 -04:00
Christopher Brickley
00a864e693
add commit compare functionality
2014-09-01 14:56:19 -04:00
Christopher Brickley
2bce24068d
add Slack API webhook support
2014-08-31 12:01:59 -04:00
Unknwon
7e36bf448d
Merge branch 'master' of github.com:gogits/gogs into dev
...
Conflicts:
dockerfiles/README.md
2014-08-31 15:11:55 +08:00
Unknwon
d2aff9a46a
Continue working on new admin pages
2014-08-29 20:50:43 +08:00
lunnyxiao
a6ec6def8d
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-08-29 11:25:03 +08:00
lunnyxiao
c40e815763
add migrate api
2014-08-29 11:24:37 +08:00
Unknwon
1aec1a2dda
Finish new admin dashboard
2014-08-28 22:29:00 +08:00
Unknwon
9baf2b38d0
Bug fix on organization
2014-08-27 16:39:36 +08:00
Unknwon
50de06056b
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-08-26 18:11:27 +08:00
Unknwon
74b31566cf
Finsih add/remove repo in organization
2014-08-26 18:11:15 +08:00
Vyacheslav Bakhmutov
95a594d75a
Migrate all branches and tags
2014-08-25 20:28:14 +07:00
Unknwon
21a1b8e5a3
Finish new edit team page, add member to team
2014-08-24 21:09:05 +08:00
Unknwon
e325c8499a
Fix and set git config
2014-08-23 23:58:56 +08:00
Unknwon
a60edbe88c
Add/remove member need add/remove access to repositories as well
2014-08-16 16:58:32 +08:00
Unknwon
bba707de36
Finish team list, create new team, join/leave team page
2014-08-16 16:21:17 +08:00
Unknwon
36b4c57ff1
Finish new organization members and invitation page
2014-08-15 18:29:41 +08:00
Unknwon
5fbf8531e6
Finish new home page of organization
2014-08-10 20:11:18 -07:00
Unknwon
78defd238c
Page: Manage social accounts
2014-08-09 17:25:02 -07:00
Unknwon
9a1d5d2489
Finish new web hook pages
2014-08-09 15:40:10 -07:00
Unknwon
9d5c0c80a4
Mirror fix on #352
2014-08-07 06:45:29 -04:00
Sebastian Jackel
0bfbefc38a
Moved defer f.Close() up so there is no chance of returning without closing and handled an error on f.Chmod
2014-08-07 11:06:42 +02:00
Sebastian Jackel
51abaf788c
Corrected log message
2014-08-07 10:34:37 +02:00
Sebastian Jackel
be7ce72ebe
Make sure, .ssh directory and authorized_keys file are kept at correct permissions
2014-08-07 10:00:57 +02:00
Unknwon
a8e05fdf1b
Use toolbox
2014-08-06 17:21:24 -04:00
Unknwon
fa0a389dc4
Fix bare repo bug
2014-08-05 19:40:01 -04:00
Unknwon
755eec745f
Finish new repo settings page
2014-08-02 13:47:33 -04:00
Unknwon
17d2675dd2
Fix #258
2014-08-01 05:20:33 -04:00
Unknwon
9813161411
Reser repo owner to organization when error occurs in repo create page, dashboard news feed page, create organization page
2014-07-26 23:53:16 -04:00
Unknwon
5e81383413
Git installation check, show image in single file view, show short SHA1 instead of 40-length string, complete log module
2014-07-26 18:37:18 -04:00
Unknwon
5c4bc3c848
Huge updates!!!!! Be careful to merge!!!!
2014-07-26 02:28:04 -04:00
Unknwon
8dd07c0ddd
New UI merge in progress
2014-07-26 00:24:27 -04:00
无闻
c4eeb803e1
Merge pull request #310 from nuss-justin/issue/303
...
Fix #303 . Specify updated columns explicitly.
2014-07-24 15:26:04 -04:00
Justin Nuß
3e7e9ee289
Fix #303 . Specify updated columns explicitly.
2014-07-24 20:07:07 +02:00
Justin Nuß
620c0ef297
Merge branch 'dev' of https://github.com/gogits/Gogs into trello/244
2014-07-24 19:15:35 +02:00
Justin Nuß
cbcd08aa17
Mention organisation users when organisation gets mentioned
2014-07-24 19:15:31 +02:00
无闻
da0240aacd
Merge pull request #307 from nuss-justin/feature/attachments
...
Feature: Ability to attach files to issues (attachments)
2014-07-24 12:47:55 -04:00
Justin Nuß
9a7349ce64
Change Attachment.Path to TEXT (no maximum size)
2014-07-24 17:02:42 +02:00
Justin Nuß
bfe5b86004
Add file upload for attachments
2014-07-24 15:19:59 +02:00
Justin Nuß
70b0023b82
Fix double decrement of issue counter
2014-07-24 13:58:39 +02:00
Justin Nuß
967856f36e
Merge branch 'dev' into feature/attachments
...
Conflicts:
models/issue.go
routers/repo/issue.go
2014-07-24 12:29:37 +02:00
Justin Nuß
d43c5895bc
Update template and style, only close commit if commit is in same repository
2014-07-24 10:15:05 +02:00
Justin Nuß
3c025b3950
Add delete route for attachments, remove upload buttons from issues/comments
2014-07-24 09:05:15 +02:00
Justin Nuß
34304e6a0c
WIP: Allow attachments for issues, not only comments
2014-07-23 21:24:24 +02:00
Justin Nuß
4617bef895
WIP: Allow attachments for comments
2014-07-23 21:15:47 +02:00
Justin Nuß
c850c01007
Update closed issues stats for repository
2014-07-23 13:54:46 +02:00
Justin Nuß
469cbc8813
Update progress of milestones when closing/reopening issues and allow closing of issues in commit messages
2014-07-23 13:48:06 +02:00
无闻
94b100ce43
Merge pull request #299 from nuss-justin/issue/216
...
Fix #216 . Change milestones, labels and assigne without reloading the page
2014-07-22 16:24:16 -04:00
无闻
dc2e140360
Merge pull request #296 from nuss-justin/dev
...
Fix issue 280 & unwatch button in Firefox
2014-07-22 16:03:58 -04:00
Justin Nuß
0d06c7e5f2
Prevent panic when dividing through zero
2014-07-22 20:57:48 +02:00
Justin Nuß
636a78fed1
Escape tags and quotes in links.
2014-07-22 20:08:04 +02:00
Justin Nuß
e194cf3291
Fix issue #259 . Allow links in the repository description
2014-07-22 19:52:37 +02:00
Justin Nuß
ec26b78d3c
Fix issue #280 . Update milestone counter when creating an issue
2014-07-22 13:50:34 +02:00
Unknown
3969d704a0
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-07-12 00:55:35 -04:00
Unknown
0f907301b7
Fix #285
2014-07-12 00:55:19 -04:00
Christopher Brickley
63e47405b2
Only update access usernames where the username is changing #282
2014-07-11 20:57:00 -04:00
Unknown
63cc14062a
Paging function for users and repositories
2014-07-07 04:15:08 -04:00
Unknown
7ffdabb28f
Move debug router location
2014-07-06 18:25:07 -04:00
Unknown
097c8e05e6
Able to set timeout for process monitor
2014-07-06 17:32:36 -04:00
Unknown
fd5412ec47
Work on #274
2014-07-04 22:43:39 -04:00
Lunny Xiao
baa255e899
remove debug info
2014-07-05 10:37:29 +08:00
Lunny Xiao
3c6da63216
bug fixed
2014-07-05 10:25:45 +08:00
Unknown
be8ac7fb75
fix #273
2014-07-04 16:48:36 -04:00
Unknown
7f3015b32b
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-07-04 14:44:31 -04:00
Unknown
13b032f829
update name
2014-07-04 14:44:27 -04:00
Justin Nuß
a481672c5c
Add 'pprof' tag for enabling debugging
2014-07-04 11:41:43 +02:00
Unknown
465dc962b5
Finish create organization team
2014-07-02 16:42:16 -04:00
Unknown
e4ea5cf598
Finish Teams page
2014-06-29 16:30:41 -04:00
Unknown
99713e1180
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-06-28 15:43:28 -04:00
Unknown
5dbfe3c26c
Finish organization homepage
2014-06-28 15:43:25 -04:00
Lunny Xiao
1c46d68aba
bug fixed for message tag
2014-06-28 23:56:41 +08:00
Lunny Xiao
4ce2fa520a
Merge branch 'master' into dev
2014-06-28 15:00:38 +08:00
Lunny Xiao
a357cda957
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-06-28 15:00:32 +08:00
Lunny Xiao
54e17c7cca
bug fixed #261
2014-06-28 15:00:03 +08:00
Lunny Xiao
86e2627175
Merge branch 'master' of github.com:gogits/gogs
...
Conflicts:
models/update.go
routers/repo/http.go
2014-06-28 14:58:59 +08:00
Lunny Xiao
e5ae41e21f
bug fixed #261
2014-06-28 14:55:33 +08:00
Unknown
6e448b0714
Finish delete organization
2014-06-28 00:40:07 -04:00
Unknown
19e9104289
Organization settings page
2014-06-27 03:37:01 -04:00
Lunny Xiao
165e3e8f18
path bug fixed
2014-06-26 21:39:27 +08:00
Unknown
32b09681b2
Migrate repository by organization
2014-06-25 05:35:23 -04:00
Unknown
8644c571db
Mirror bug fix on create repo action
2014-06-25 05:27:17 -04:00
Unknown
43b33440b5
Work on create organization repo and #257
2014-06-25 05:14:36 -04:00
Unknown
e0f9c628c5
Add create organization
2014-06-25 00:44:48 -04:00
Unknown
ceb415df8a
Merge branch 'master' of github.com:gogits/gogs into dev
2014-06-24 09:59:21 -04:00
Eryx
d5d04a66f3
Fix #252
2014-06-24 16:53:42 +08:00
Unknown
47d29a1ee0
Mirror fix on #248
2014-06-23 16:22:34 -04:00
Unknown
ad5ec45dd6
Fix #165
2014-06-21 00:51:41 -04:00
Unknown
8bfa7ae745
Remove qiniu/log
2014-06-20 01:14:54 -04:00
Unknown
f147ad619a
Basic process manager
2014-06-19 01:08:03 -04:00
Unknown
e07674bff1
Support edit release and save as draft
2014-06-12 17:47:23 -04:00
Unknown
9961f9a53c
Fix #197
2014-06-12 09:10:39 -04:00
Unknown
1161c71ac1
Mirror fix
2014-06-12 07:45:33 -04:00
toby.zxj
a13a6b14ec
Using strings.HasPrefix(...) will misjudgement
...
`strings.HasPrefix(access.RepoName, uname)` can't handle the situation which like following in access table.
user_name | repo_name
----------+-------------
toby | toby/blog
toby | toby/test
toby | tobyzxj/blog
toby | tobyzxj/test
2014-06-11 16:54:25 +08:00
Unknown
a3e1383cac
Add gogs fix location command
2014-06-10 19:11:53 -04:00
Unknown
f160b4f33c
Add tar.gz download button and other mirror updates
2014-06-08 17:53:53 -04:00
Unknown
1f58d6f5d9
Mirror fix on #242
2014-06-08 04:54:52 -04:00
Unknown
302c863cda
Fix #242
2014-06-08 04:45:34 -04:00
Unknown
4f2f3c2857
Code convention
2014-06-05 22:07:35 -04:00
Unknown
11f9d738e8
Fix #237
2014-06-03 21:51:25 -04:00
Unknown
32c5fa514c
Fix #230
2014-06-02 23:17:21 -04:00
Unknown
eaa7d71fc7
Fix #232
2014-06-02 21:59:56 -04:00
Unknown
e1332c5239
Fix #230
2014-06-01 21:47:48 -04:00
Unknown
01a516b584
Fix #229
2014-06-01 10:53:57 -04:00
Unknown
6696610aea
Fix zombie
2014-05-28 22:15:15 -04:00
Unknown
ab13a29cb5
Fix #209
2014-05-28 01:53:06 -04:00
Unknown
688ec6ecbd
Fixed #209
2014-05-25 20:11:25 -04:00
Unknown
87854c95a9
Fixed #200
2014-05-24 15:34:02 -04:00
Unknown
80055bde86
Code convention
2014-05-24 15:28:31 -04:00
Unknown
dce17c86ac
Almost done issue label #200
2014-05-24 03:05:41 -04:00
Unknown
b1bdbd7f94
Almost done issue label #200
2014-05-24 02:31:58 -04:00
Unknown
5e9a45f74a
Code convention
2014-05-21 21:37:13 -04:00
Unknown
93f8f92523
Finish create new label
2014-05-18 18:07:04 -04:00
Unknown
956f011dd3
Fix #186
2014-05-16 13:41:08 -04:00
Unknown
be82716b66
Clean old LDAP code
2014-05-15 23:03:26 -04:00
Unknown
4744996f9a
Make gmail auth work
2014-05-15 14:46:04 -04:00
Unknown
db6b71ad03
Update issue-user when change milestone
2014-05-15 12:08:53 -04:00
Lunny Xiao
f4486f3eec
bug fixed #193
2014-05-15 22:34:36 +08:00
Unknown
b70db61854
Fix #185
2014-05-14 13:04:57 -04:00
Unknown
16bddd593a
Finish change issue’s milestone
2014-05-14 11:14:51 -04:00
Unknown
46fc36c3a6
Finish change issue’s milestone
2014-05-14 10:55:36 -04:00
Unknown
e8dd480f10
Litte bug fix
2014-05-14 09:23:33 -04:00
Unknown
9100786beb
Fix #185
2014-05-14 08:51:04 -04:00
Unknown
5ed5aa5228
Finish milestone
2014-05-13 19:46:48 -04:00
Unknown
5d5c4535cb
Fix #181
2014-05-13 14:49:20 -04:00
Unknown
2eee1e9bc2
Finish edit a milestone
2014-05-13 13:28:21 -04:00
Unknown
98dbbae2ef
Fix #166
2014-05-13 12:40:32 -04:00
Unknown
a913aff1d0
Show collaborative repositories in dashboard
2014-05-12 15:14:22 -04:00
Unknown
54e95fa367
Finish add new milestone
2014-05-12 14:06:42 -04:00
Unknown
f1130ce5e9
Fix edit auth page bug
2014-05-12 11:02:36 -04:00
Unknown
98eeec4cbb
Fix #174
2014-05-11 14:03:51 -04:00
Unknown
68fb62347f
Finish issue assignee
2014-05-11 13:46:36 -04:00
Lunny Xiao
f68e279150
spell bug fixed
2014-05-11 20:18:57 +08:00
Lunny Xiao
d2231bb54c
smtp login bug fixed
2014-05-11 20:04:28 +08:00
Lunny Xiao
bf58679390
add support for smtp authentication
2014-05-11 18:10:37 +08:00
Lunny Xiao
b33f255c40
add smtp authentication
2014-05-11 15:49:36 +08:00
Lunny Xiao
26c0113ea0
delete unused codes
2014-05-11 14:13:49 +08:00
Lunny Xiao
55019bfbc5
merge all login methods
2014-05-11 14:12:45 +08:00
Lunny Xiao
4d6de6c7b9
add login name for auth type
2014-05-11 11:56:04 +08:00
slene
7d84cc96e8
update with git api
2014-05-10 11:14:24 +08:00
jiangjianxiao
501f70e248
fix news feed repo link
2014-05-09 14:42:50 +08:00
Unknown
830494a8aa
Remove old files
2014-05-08 22:03:34 -04:00
Unknown
25713ab209
Fix #167
2014-05-08 20:00:07 -04:00
Unknown
914ffa496f
Show private repository activities in dashboard if has access
2014-05-08 19:17:43 -04:00
Unknown
a742ee543e
Add change assignee back end
2014-05-08 17:17:45 -04:00
Unknown
e867283406
Assignee back end
2014-05-08 12:24:11 -04:00
Unknown
23a857d107
Add repo info to web hook post
2014-05-08 08:18:03 -04:00
Unknown
495d939ca5
Waiting for UI
2014-05-07 20:36:00 -04:00
Unknown
7d89e765ab
Bug fix
2014-05-07 18:57:00 -04:00
Unknown
31fd45ba02
Bug fix
2014-05-07 17:38:03 -04:00
Unknown
abd8c2a7ca
Bug fix
2014-05-07 17:37:09 -04:00
Unknown
e05b1385fb
Bug fix
2014-05-07 17:23:02 -04:00
Unknown
8b6766ecbe
Bug fix
2014-05-07 17:10:46 -04:00
Unknown
269281ab76
Bug fix
2014-05-07 17:04:32 -04:00
Unknown
33d32585b1
Add mention, read/unread support of issue tracker
2014-05-07 16:51:14 -04:00
Unknown
7407f9caf3
Finish issue design
2014-05-07 12:09:30 -04:00
Unknown
8ca14e2109
Improve delete SSH key
2014-05-06 16:28:52 -04:00
Unknown
7cb5a15c9b
Batch of mirror fixes
2014-05-06 13:47:47 -04:00
Unknown
e573855a4f
Fix #98 , support web hook
2014-05-06 11:50:31 -04:00
Unknown
94bccbb148
Finish edit and remove web hook
2014-05-05 21:36:08 -04:00
Unknown
24f614f6db
Finish add web hook
2014-05-05 20:52:25 -04:00
Unknown
bbdfe25769
User code clean and ui improve
2014-05-05 16:21:43 -04:00
Unknown
3b7465f817
fix code
2014-05-05 05:32:47 -04:00
Lunny Xiao
d8136c9c3c
Merge branch 'dev-ldap' into dev
2014-05-05 16:42:15 +08:00
Lunny Xiao
1652dd5068
basic authentications
2014-05-05 16:40:25 +08:00
Unknown
a641854cad
command dump
2014-05-05 00:55:17 -04:00
Unknown
bb0bc0a240
Merge branch 'dev' of github.com:gogits/gogs
2014-05-03 01:38:22 -04:00
Unknown
7b60756f2c
Fix Collaborators cannot commit
2014-05-03 01:37:49 -04:00
Lunny Xiao
163fcec59f
resolved #155
2014-05-03 11:12:15 +08:00
Lunny Xiao
79ea34e70e
ldap support
2014-05-03 10:48:14 +08:00
Unknown
e7d8fadb08
Add disable gravatar option
2014-05-01 21:30:04 -04:00
Unknown
cd2020429a
Fix #153
2014-05-01 20:29:51 -04:00
Unknown
ff9872104e
Fix #153
2014-05-01 20:26:40 -04:00
Unknown
100cd181bc
Add router log config option
2014-05-01 18:53:41 -04:00
Unknown
75109bbd65
Fix panic when no master branch
2014-05-01 12:03:10 -04:00
Unknown
f6c4fbeb37
Collaborator
2014-05-01 11:32:12 -04:00
Unknown
a7584d16e4
Fix #150
2014-05-01 09:09:37 -04:00
Unknown
480a4ae8c5
Fix #150
2014-05-01 09:00:30 -04:00
Unknown
a2333d95d5
Fix #148
2014-05-01 08:35:05 -04:00
Unknown
89c99167b2
Fix #149
2014-05-01 08:26:41 -04:00
Unknown
49dc57e336
Add /api/v1/users/search
2014-04-30 23:48:01 -04:00
Unknown
de46c06d2e
Merge branch 'master' of github.com:gogits/gogs into dev
2014-04-30 03:44:42 -04:00
Lunny Xiao
1e9f376d3d
bug fixed
2014-04-30 11:12:03 +08:00
Lunny Xiao
a85f242030
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-04-30 10:24:00 +08:00
Lunny Xiao
cdc843f06b
add fix command for upgrade
2014-04-30 10:23:43 +08:00
Unknown
41b0a7b97c
Mirror fix on public key
2014-04-27 17:01:39 -04:00
Unknown
62240b6bc1
Add login by email
2014-04-27 01:54:08 -06:00
Unknown
62d23e9154
HTTP no follow and offline mode
2014-04-27 01:05:13 -06:00
Unknown
1badb2bbcc
Fix #107
2014-04-26 19:06:59 -06:00
Lunny Xiao
8bab21d795
add login.go
2014-04-26 14:21:04 +08:00
无闻
37cbfc032a
Merge pull request #112 from juju2013/master
...
basic support for LDAP/Microsoft Active Directory authentication
2014-04-24 14:25:56 -06:00
juju2013
efc05ea1de
initial support for LDAP authentication/MSAD
2014-04-23 23:07:54 +02:00
Unknown
8bc502a1ea
New err check style
2014-04-22 22:34:49 -04:00
Unknown
de01f81489
Prepare for v0.3.0 release
2014-04-21 06:54:07 -04:00
Unknown
ea29a9b846
API fix
2014-04-21 02:24:35 -04:00
Unknown
0e41726ece
API change
2014-04-19 06:15:47 -04:00
Unknown
eda3f8b3b3
Mirror updates
2014-04-19 06:00:08 -04:00
Unknown
49c01c0b57
Fix import path
2014-04-18 09:35:09 -04:00
Unknown
f8571f4db1
Bug fix on build tag
2014-04-17 03:31:21 -04:00
Unknown
c3a52f7dd0
Mirror bug fix on downloading zip
2014-04-15 20:01:20 -04:00
Unknown
5378bb326b
Merge branch 'master' of github.com:gogits/gogs into dev
2014-04-14 22:48:01 -04:00
Christopher Brickley
b9a1d13c29
change gravatar image to match URL scheme
2014-04-14 22:01:24 -04:00
Christopher Brickley
caeddb79a3
update SetEngine for postgresql #76
2014-04-14 21:07:21 -04:00
skyblue
6cb636f8a0
fix title extra quoted
2014-04-14 22:42:17 +08:00
Unknown
c3c2cfebaa
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-04-14 04:11:41 -04:00
Unknown
c36e7d322e
Mirror updates
2014-04-14 04:11:33 -04:00
Lunny Xiao
8283e16ef7
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-04-14 14:50:37 +08:00
Lunny Xiao
6cee65db5a
bug fixed #76
2014-04-14 14:49:50 +08:00
Unknown
f644cefa86
Finish release
2014-04-14 01:57:25 -04:00
Unknown
190b83e05e
push tag support
2014-04-13 22:20:28 -04:00
Unknown
d2b53dd43b
Add weibo oauth
2014-04-13 21:00:12 -04:00
Unknown
4b9b8024ba
Clean oauth code
2014-04-13 18:12:07 -04:00
Unknown
d26a333dfb
go get
2014-04-13 04:08:25 -04:00
Unknown
9d983f27d6
go vet
2014-04-13 03:14:43 -04:00
Unknown
c9a1eb4789
Able to change mirror interval now
2014-04-12 22:30:00 -04:00
slene
52b4ab2aa5
update with new git
2014-04-13 09:35:36 +08:00
Unknown
9ffa8a4083
finish mirror fix #63
2014-04-12 21:30:09 -04:00
Unknown
90f6aa8cd1
Add repo mirror and import
2014-04-12 20:35:35 -04:00
Unknown
23bba7633b
Mirror fix on sqlite3 tag
2014-04-12 16:24:09 -04:00
Unknown
d60f7b85e5
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-04-12 16:19:16 -04:00
Unknown
47f3dd43a5
Merge branch 'master' of github.com:gogits/gogs into dev
2014-04-12 16:19:10 -04:00
Michael Crosby
25fd495b2e
Add sqlite build tag
...
This adds a sqlite build tag so that you don't have to have the sqlite
import commented out in code and users can run:
go build -tags sqlite
if they want to have sqlite support enabled. It is disabled by default
so nothing changes with the default go get or build commands.
2014-04-12 12:12:48 -07:00
skyblue
75d2affcbf
add oauth2 qq support
2014-04-13 01:15:19 +08:00
skyblue
f92851e347
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-04-12 23:19:22 +08:00
skyblue
2ce0c3befe
add google oauth2 support
2014-04-12 23:19:17 +08:00
Unknown
559a57330e
Mirror fix
2014-04-12 02:08:12 -04:00
Unknown
794b457252
Mirror fix
2014-04-12 01:47:59 -04:00
Unknown
31d613c01d
Mirror fix
2014-04-12 01:45:43 -04:00
Unknown
d305448fa8
Mirror bug fix
2014-04-11 23:52:08 -04:00
Unknown
4fc5dcc764
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-04-11 21:47:43 -04:00
Unknown
33aa4f7438
Support private repo
2014-04-11 21:47:39 -04:00
skyblue
f8e97b75fb
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-04-12 09:42:15 +08:00
skyblue
5c1312f38e
clean oauth2 code
2014-04-12 09:42:09 +08:00
Unknown
d6dac160df
Pages in commits list page
2014-04-11 20:23:34 -04:00
Unknown
47aa53bd36
Add search commits
2014-04-11 19:44:13 -04:00
Unknown
7d07b58114
UPDATE README
2014-04-11 13:24:19 -04:00
skyblue
dd815ae7b5
finish github oauth2 support
2014-04-12 01:01:30 +08:00
Lunny Xiao
8cfa2be433
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-04-11 10:28:23 +08:00
Lunny Xiao
db39e58a13
add actions for http push
2014-04-11 10:27:13 +08:00
Unknown
306aa5bffe
Add support default branch
2014-04-10 22:03:31 -04:00
Unknown
45462662e9
Add flash
2014-04-10 16:36:50 -04:00
zhsso
a4cbe79567
fix
2014-04-10 14:20:58 -04:00
zhsso
f3ed11d177
mistakes
2014-04-10 14:20:01 -04:00
Gogs
fde5b16332
Fix wrong path name
2014-04-10 12:59:20 -04:00
Gogs
7811e58726
speedup models.getReposFiles, using os.Exec
...
but the results may different with before
2014-04-10 12:44:05 -04:00
Unknown
5d4025cb5a
Add go get meta support
2014-04-09 21:42:25 -04:00
Unknown
5f6bd323f5
Merge branch 'dev' of github.com:gogits/gogs into dev
...
Conflicts:
models/oauth2.go
2014-04-09 14:15:09 -04:00
Unknown
a773cf1d87
Mirror fix
2014-04-09 14:11:24 -04:00
skyblue
8683d2f857
remove martini oauth2 depend
2014-04-10 00:07:57 +08:00
Unknown
b506429803
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-04-08 12:41:37 -04:00
Unknown
115a349131
Fix #67
2014-04-08 12:41:33 -04:00
skyblue
24d0ca4aa0
clean tail
2014-04-09 00:31:09 +08:00
skyblue
d4565483e6
add id for oauth2
2014-04-09 00:26:12 +08:00
Unknown
22feddf804
Fix #66
2014-04-07 14:24:58 -04:00
Unknown
9ea9818d32
Fix issue with log in with GitHub but need more error handle after
2014-04-07 12:56:40 -04:00
skyblue
05fb34eacd
first works oauth2(github). need to login with /user/login/github
2014-04-07 18:01:25 +08:00
Unknown
e7c8a3cb8d
Add salt for every single user
2014-04-06 16:10:57 -04:00
skyblue
5e534bf2a5
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-04-06 23:12:29 +08:00
Unknown
b7c3b0cc73
Add reset password, fix #58
2014-04-05 12:32:34 -04:00
Unknown
3ebc9b991a
Use gogits/session for oauth2
2014-04-05 11:22:14 -04:00
skyblue
1336d8d54d
Merge branches 'dev' and 'dev' of github.com:gogits/gogs into dev
2014-04-05 22:53:17 +08:00
skyblue
c22d3503fd
add oauth2 table init
2014-04-05 22:52:24 +08:00
skyblue
ce350a737a
update models, add licence in start.sh
2014-04-05 22:46:32 +08:00
Lunny Xiao
9791e70da6
bug fixed
2014-04-05 22:24:10 +08:00
Unknown
e41ab839c7
Use session for rolling back
2014-04-04 18:55:17 -04:00
Unknown
eb803ec5eb
Add transfer repository
2014-04-04 18:31:09 -04:00
Unknown
4a4997a3c7
Merge branch 'master' of github.com:gogits/gogs into dev
2014-04-04 10:34:18 -04:00
Unknown
e9c4156c87
Add: rename user
2014-04-03 16:33:27 -04:00
Unknown
79a610592e
Add: rename repository
2014-04-03 15:50:55 -04:00
skyblue
bbadbbdf68
Merge branch 'dev' of github.com:gogits/gogs into dev
2014-04-03 11:13:44 +08:00
skyblue
bfdadaa13c
add oauth2 models
2014-04-03 11:13:35 +08:00
Martin Garton
4586c386e7
fix unique
2014-04-02 20:35:29 +01:00
Unknown
db66b8da72
Add release tmpl
2014-04-02 12:43:31 -04:00
Unknown
d9005ee970
Improve issue mail content
2014-04-02 10:38:30 -04:00
Lunny Xiao
a187ba9651
improved log locations
2014-03-31 21:26:15 +08:00
Unknown
2a0066420a
Fix bug work with sqlite3
2014-03-30 16:01:50 -04:00
Unknown
9f91dee53f
Bug fix #45
2014-03-30 11:09:59 -04:00
Unknown
a6e12aaef6
Fixing bug
2014-03-30 10:47:08 -04:00
slene
4c70249f75
fix some link
2014-03-30 17:03:00 +08:00
Lunny Xiao
af2129c254
bug fixed delete repo
2014-03-30 11:03:38 +08:00
Lunny Xiao
cd800d7837
Merge branch 'master' of github.com:gogits/gogs
2014-03-30 10:19:36 +08:00
Lunny Xiao
50391f434e
bug fixed
2014-03-30 10:18:36 +08:00
slene
b27c34f39a
update git api. fix link... and so on
2014-03-30 10:13:02 +08:00
Unknown
107a1eadac
Finish close and reopen issue, install page, ready going to test stage of v0.2.0
2014-03-29 17:50:51 -04:00
Unknown
ffa59739b6
Add edit issue
2014-03-29 10:24:42 -04:00
Unknown
2c073afbec
Mirror fix and update
2014-03-29 10:01:52 -04:00
Lunny Xiao
ec1b801732
bug fixed
2014-03-29 19:59:02 +08:00
Unknown
8282828820
Fix action email bug
2014-03-29 07:50:25 -04:00
FuXiaoHei
d01820c125
conf support mysql port
2014-03-29 13:40:22 +08:00
Unknown
76b8642348
Bug fix
2014-03-28 09:06:48 -04:00
slene
d800a44a26
display commits by sha1 id
2014-03-28 19:34:01 +08:00
Unknown
0fd754bbe0
Working on install page
2014-03-28 07:26:22 -04:00
Unknown
eb6021f73f
Fix issue pages URL params
2014-03-27 19:42:10 -04:00
Unknown
34f4af9ebf
Working on issue and install page
2014-03-27 16:31:32 -04:00
Unknown
f76eb8a666
IP: RC Code Review
2014-03-27 15:24:11 -04:00
Unknown
3144fac03c
IP: RC Code Review
2014-03-27 12:48:29 -04:00
slene
bce8586bc6
Merge branch 'master' of github.com:gogits/gogs
2014-03-28 00:32:19 +08:00
slene
16cb1e974c
print err
2014-03-28 00:14:09 +08:00
slene
677643b812
fix read commit source
2014-03-28 00:07:22 +08:00
Unknown
f470c241d6
IP: RC Code Review
2014-03-27 11:37:33 -04:00
Unknown
ce679cce52
Update Wiki
2014-03-27 07:26:03 -04:00
Lunny Xiao
bc1abb010d
bug fixed
2014-03-27 14:00:23 +08:00
Unknown
dd6246877d
Almost done diff page
2014-03-26 16:41:16 -04:00
Unknown
4b9eef50c9
Add comment of issue
2014-03-26 12:31:01 -04:00
Unknown
32e05ae212
Fix issue: update hook text busy
2014-03-26 09:40:02 -04:00
Unknown
7ab94fe816
Fix issue on windows
2014-03-26 09:22:08 -04:00
Unknown
ed9b7d2db9
More on diff page
2014-03-26 07:24:20 -04:00
Unknown
78979c6d4c
I need to rewrite this
2014-03-26 06:43:58 -04:00
Unknown
ac3a653442
Make it compile
2014-03-26 06:33:09 -04:00
Lunny Xiao
3a27a0c146
improved diff
2014-03-26 18:02:08 +08:00
Lunny Xiao
74b3c953de
improved diff
2014-03-26 17:57:13 +08:00
Lunny Xiao
9dbc808c7b
Merge branch 'master' of github.com:gogits/gogs
...
Conflicts:
models/repo.go
modules/base/tool.go
serve.go
2014-03-26 14:38:14 +08:00
Lunny Xiao
f9024b3f43
fixed branch name
2014-03-26 14:14:48 +08:00
Unknown
06cf878471
More on diff page
2014-03-26 00:13:01 -04:00
Unknown
87de66561c
Start working on diff page
2014-03-25 23:53:01 -04:00
Unknown
c1a3d4fefb
Add mail notify for creating issue
2014-03-25 21:37:18 -04:00
Unknown
d3b8e9daa1
Add notify watcher action
2014-03-25 14:04:57 -04:00
Lunny Xiao
d374b13d44
bug fixed
2014-03-26 00:19:18 +08:00
Lunny Xiao
29fe44da50
bug fixed
2014-03-26 00:12:31 +08:00
Lunny Xiao
9b509054cf
bug fixed
2014-03-26 00:00:36 +08:00
Unknown
197c4d4a5b
Fix wrong serve command log location and commit repo action
2014-03-25 08:53:11 -04:00
Unknown
414ebe7553
Merge branch 'master' of github.com:gogits/gogs
2014-03-24 11:44:53 -04:00
Unknown
40b22822fc
Update README
2014-03-24 11:44:47 -04:00
Lunny Xiao
0e28dcdac4
Merge branch 'master' of github.com:gogits/gogs
2014-03-24 22:30:50 +08:00
Lunny Xiao
48ea9b12f6
add log
2014-03-24 22:26:05 +08:00
Unknown
8aec5e16c4
Locating issue of git push not update repo last updated time
2014-03-24 09:32:24 -04:00
Unknown
ae92f92dee
Locating issue
2014-03-24 09:01:25 -04:00
Unknown
59bbddb318
Mirror fix
2014-03-24 07:36:38 -04:00
Unknown
b9b82cfe47
Mirror updates
2014-03-23 19:09:11 -04:00
Unknown
f8cfb81fb0
Mirror updates
2014-03-23 12:16:17 -04:00
skyblue
4bac361605
merge with branch master
2014-03-23 22:40:35 +08:00
Unknown
97debac185
SSL enable config option
2014-03-23 08:40:40 -04:00
Lunny Xiao
97e82a0ff6
bug fixed
2014-03-23 20:04:26 +08:00
Lunny Xiao
3d1a967477
bug fixed
2014-03-23 19:53:50 +08:00
Unknown
1eb078d0a8
Fix action
2014-03-23 06:27:01 -04:00
Gogs
964e537479
append route to web
2014-03-23 18:13:23 +08:00
Lunny Xiao
24630e0c9b
improved activity
2014-03-23 18:00:09 +08:00
Lunny Xiao
0119675480
bug fixed
2014-03-23 17:40:50 +08:00
Lunny Xiao
5c57a06c51
merge
2014-03-23 16:43:31 +08:00
Lunny Xiao
1201c6a9b4
bug fixed & more commits for push
2014-03-23 16:31:13 +08:00
Unknown
59ffdbf6f8
Add create, list, view issue
2014-03-22 16:00:46 -04:00
Unknown
b3cfd9fe0c
Fix SSH key bug in windows
2014-03-22 14:27:03 -04:00
Unknown
61e2922601
Working on issues
2014-03-22 13:50:50 -04:00
Unknown
e3f55ca0fb
Need a field to specify if repository is bare
2014-03-22 11:59:14 -04:00
Unknown
76cd448e79
Add admin delete user
2014-03-22 06:20:00 -04:00
Unknown
19104f156f
Merge branch 'master' of github.com:gogits/gogs
2014-03-22 04:45:03 -04:00
Unknown
932f717adb
Fixing bug
2014-03-22 04:44:57 -04:00
Lunny Xiao
17da2fd2e3
merged
2014-03-22 00:50:47 +08:00
Lunny Xiao
efdaf6ee15
add http protocol clone support
2014-03-22 00:48:26 +08:00
Unknown
d40499e7fa
Finsih mail resend limit
2014-03-21 10:09:57 -04:00
Unknown
c1576b4c40
Add admin add user
2014-03-21 03:27:59 -04:00
Unknown
f6596f11c4
All configuration reload-able
2014-03-21 01:48:10 -04:00
Unknown
369ddf76a8
Batch fix
2014-03-21 01:09:22 -04:00
Unknown
53a17bbd24
Bug fix
2014-03-20 16:14:50 -04:00
Unknown
06631ab91f
Basic admin data table, models changes
2014-03-20 16:04:56 -04:00
Unknown
3b387336bf
Add Repository/user name filter
2014-03-20 11:41:24 -04:00
Unknown
4a6c56d2fd
Bug fix
2014-03-20 09:49:06 -04:00
Unknown
4cf6cc63b0
Work on admin
2014-03-20 08:02:14 -04:00
Unknown
9f9cd6bfc6
Work on admin
2014-03-20 07:50:26 -04:00
slene
24678d73f5
read single file
2014-03-20 13:31:24 +08:00
Unknown
ee92fb8635
Finish watch backend
2014-03-19 23:48:30 -04:00
Unknown
59ea3c0413
Finish watch backend
2014-03-19 23:39:00 -04:00
Unknown
a922c3ff6a
Watch backend
2014-03-19 23:20:55 -04:00
Unknown
6f68620860
Pools limit concurrent nums
2014-03-19 21:05:48 -04:00
Unknown
35d473f04a
Finish verify email
2014-03-19 12:50:44 -04:00
Unknown
dd8e7868ce
Mirror fix
2014-03-19 10:01:45 -04:00
Unknown
de087c7b4a
Add send register confirm mail
2014-03-19 08:27:27 -04:00
Unknown
fbbae2b721
Working on register mail confirmation
2014-03-19 07:21:23 -04:00
Lunny Xiao
7076f466c9
bug fixed
2014-03-19 16:42:50 +08:00
Lunny Xiao
01162bfc78
remove unused codes
2014-03-19 15:46:16 +08:00
Lunny Xiao
9e8e910bd6
merge
2014-03-19 14:40:49 +08:00
Lunny Xiao
3da325591b
bug fixed for commits list
2014-03-19 14:39:07 +08:00
shengxiang[skyblue]
ccd43b09b2
add some comment
2014-03-18 21:58:58 +08:00
Unknown
a3a93aef11
Add some config options
2014-03-18 01:33:53 -04:00