Unknwon
7fe13e72d8
cmd: refactoring command name
2017-02-27 22:47:12 -05:00
Unknwon
4f9c5981a9
refactoring: modules/auth/*_form.go -> modules/form
2017-02-27 22:45:35 -05:00
Unknwon
6072e9a52c
repo: add protect branch whitelist ( #4177 )
...
Add options to add users and teams to whitelist of a protected
branch. This is only available for organizational repositories.
2017-02-23 18:25:12 -05:00
Unknwon
b78e03934d
models/access: hasAccess only need userID not user object
2017-02-23 16:15:25 -05:00
Unknwon
266c8f5a85
release: fix unable to edit release of a fork repository
2017-02-23 11:35:33 -05:00
Unknwon
6002d72603
router: fix 404 when repository name contains dot
...
E.g. atomi.github.io
2017-02-20 18:05:34 -05:00
Unknwon
0bef74d499
vendor: update github.com/go-macaron/toolbox ( #2857 )
...
Support HEAD requests of '/healthcheck' for service monitoring.
2017-02-20 13:39:46 -05:00
Unknwon
7de71333c6
repo: several minor improvements
...
1. Fix sample content didn't show up when hook doesn't exist.
2. Fix CSS 'word-break' to use 'break-word' not 'break-all'.
3. Fix single quote in 'locale_en-US.ini' file.
2017-02-19 13:18:16 -05:00
Unknwon
c69900325d
commits: able to specify pageSize dynamically ( #3965 )
...
Usage: <url>?page={page}&pageSize={pageSize}
Also avoid/removed getting total commits count for pagination,
users are only allowed navigation by 'newer' and 'older'.
2017-02-18 18:37:47 -05:00
Unknwon
685737b816
locale: add Ukrainian support
2017-02-18 15:00:11 -05:00
Unknwon
a07b1f630a
webhook: add native Discord support
2017-02-18 00:54:56 -05:00
Unknwon
07801cbf09
repo/release: add pagination ( #2164 )
2017-02-17 17:41:55 -05:00
Unknwon
7e09d210ba
Initial version of protected branches ( #776 )
...
- Able to restrict force push and deletion
- Able to restrict direct push
2017-02-17 15:10:50 -05:00
Unknwon
d521e716dd
refactoring: SSH and HTTP push procees is now unified
...
We used to handle SSH and HTTP push separately which produces
duplicated code, but now with post-receive hook, the process
is unified to one single place and much cleaner.
Thus, UpdateTask struct is removed.
Narrow down the range of Git HTTP routes to reduce condufsing
HTTP Basic Authentication window popup on browser.
By detecting <old-commit, new-commit, ref-name> inside post-receive
hook, Git HTTP doesn't need to read the whole content body anymore,
which completely solve the RAM problem reported in #636 .
2017-02-16 16:33:49 -05:00
Unknwon
3b49a99b60
wiki: fix crash with blob name contains tab ( #3916 )
2017-02-16 11:47:54 -05:00
Unknwon
b9560ec9cb
vendor: update git-module ( #4128 )
2017-02-15 18:34:02 -05:00
Unknwon
0386b5ae54
cmd/hook: check existence before call custom hook
2017-02-14 18:06:54 -05:00
Unknwon
039dc33367
git: delegate all server-side Git hooks ( #1623 )
2017-02-14 16:22:16 -05:00
Aaron Wood
68ead67a63
Use very strong ciphers ( #4116 )
...
* Use very strong ciphers
* Remove TLS_RSA_WITH_AES_256_GCM_SHA384 to be compatible with Go 1.5
2017-02-12 19:12:07 -05:00
Unknwon
2d38b75400
diff: fix can't show compare page for fork repository ( #4110 )
2017-02-12 18:43:26 -05:00
Unknwon
b67ec01d41
Able to disable non-admin to create new organization ( #1556 )
...
Add new config option '[admin] DISABLE_REGULAR_ORG_CREATION', by
default it's 'false'.
2017-02-10 16:41:51 -05:00
Unknwon
563fc7c6d7
dump: check existence before include data subdirs ( #4100 )
2017-02-10 11:58:04 -05:00
Unknwon
eb66060cd7
log: start using gopkg.in/clog.v1
2017-02-09 19:29:59 -05:00
Unknwon
09ad42b918
dump: include data-subdirs ( #4100 )
2017-02-09 15:33:57 -05:00
Unknwon
074c92b0a3
routers/repo/branch: fix can't delete branch with slashes after merge ( #4089 )
2017-02-09 15:25:48 -05:00
Unknwon
afab38b0d7
routers/repo/pull: fix 404 on PR compare ( #4074 )
...
Due to recent code refactor, ctx.PullRequest is not initialized for
route repo.CompareAndPullRequest, which leads the UI thinks the
compare is not happening inside the same repository.
The current fix is to allow compare URL to include redundant head
user name so everything works fine again, but code logic isn't
as clean as before.
Made comments about possible future fix.
2017-02-08 18:43:46 -05:00
Unknwon
2bb1de1805
cmd/serve: minor code improve for PR #4078
2017-02-01 21:28:43 -05:00
Pablo Saavedra
0081c6911d
Check deploy keys when Gogs is run with Service.RequireSignInView=true ( #4078 )
...
* Check deploy keys when Gogs is run with require_sign_in_view
Check if the deploy key can access to a repository. A deploy key
doesn't represent an gogs user, so in a site with Service.RequireSignInView
activated we should give read access only in the repositories where
this deploy key is in use. In other case, a deploy service or system
using an active deploy key can get read access to all the repositories
in a Gogs service.
* Refactoring: Comments starts in a new line
* Minor change in a comment
* Code cleaning. Replace spaces with tabs
2017-02-01 21:08:59 -05:00
Unknwon
d293aa9ced
Do a fast-fail testing on repository URL before mirroring
...
To ensure the URL is accessible under good condition to prevent
long blocking on URL resolution without syncing anything.
2017-01-31 18:40:38 -05:00
Unknwon
4bc98f7aa2
Move models/mail.go to modules/mail.go
...
To use interface to replace *models.User in avoiding cycle import.
2017-01-30 07:20:48 -05:00
Unknwon
5e01ecbc05
Able to set custom Access-Control-Allow-Origin header ( #3987 )
...
Added new config option '[http] ACCESS_CONTROL_ALLOW_ORIGIN'.
2017-01-28 19:59:17 -05:00
Unknwon
7aa53635fe
Add 'Organizations' page to user settings ( #3587 )
...
User is now able to view full list of organizations belongs to.
2017-01-27 22:36:45 -05:00
Rémy Boulanouar
2ee0c61e62
Setting orgs ( #3587 )
...
* Implement organizations listing in setting and allow user to create new organization.
* Implement organizations listing in setting and allow user to create new organization.
* Add space remove by mistake
* Remove unused part of the template
* Update display and behavior according to @Unknown remarks
2017-01-27 22:02:27 -05:00
Unknwon
8bcc0e392e
Update XORM required version and 'go fmt'
2017-01-26 17:49:29 -05:00
Unknwon
42a3bbb0f4
Fetch before Checkout when create pull request ( #3699 )
2016-12-23 19:36:16 -05:00
Thibault Meyer
93616fe776
Fix regex on route file ( #3851 )
2016-12-21 19:46:43 -05:00
Unknwon
44ed991726
Merge branch 'develop' of https://github.com/tanapoln/gogs into develop
2016-12-21 00:49:44 -05:00
Unknwon
cc45a8ab06
cmd: new command 'import locale'
...
Quickly import locale files downloaded from Crowdin.
2016-12-20 22:34:58 -05:00
Unknwon
b092733c2e
Update git-module version to support back Git 1.7.1
2016-12-08 11:44:45 -05:00
Unknwon
491407ddf8
#3590 fix 404 for release draft edition
...
Closes #3591
2016-09-03 06:00:59 -04:00
Tanapol Nearunchorn
73fedc7275
provide button to delete merged pull request
2016-09-02 10:12:21 +07:00
Daniel Oaks
b3d9ca4ccd
Add the ability to explore organizations ( #3573 )
...
* Add ability to explore organizations
* Use right icon for org explore links
2016-09-01 09:08:05 -04:00
Unknwon
c2afdf2192
Minor code fix [CI SKIP]
2016-08-31 04:31:53 -07:00
Unknwon
16eb2eb6a3
Fix import path
2016-08-30 05:49:54 -07:00
Unknwon
e6ec1ca1f8
#3548 disable issue cannot edit label and milestonefor pull requests
2016-08-30 05:30:47 -07:00
Unknwon
643142acab
Web editor: support upload files
2016-08-30 05:23:59 -07:00
Kim "BKC" Carlbäcker
4f40019130
codegangsta/cli => urfave/cli ( #3546 )
2016-08-30 04:57:58 -07:00
Unknwon
2a13f682e0
Bump git-module required version
2016-08-29 23:57:22 -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
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
c30b856d14
#3505 use user’s info for committer and author
2016-08-27 13:37:55 -07:00
Unknwon
0b273ac4d5
#3383 code cleanup
2016-08-24 16:05:56 -07:00
Thibault Meyer
2c5411b00c
Fix #3361 : Dumps are created world readable ( #3473 )
...
* Set dump file permission to 0600
* Typo
2016-08-17 11:38:42 -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
4042d1f0c3
models/issue: improve quality and performance of NewIssue function
2016-08-15 18:40:32 -07:00
Unknwon
4a46613916
markdown: fix treating pure number as SHA1
...
- Detect non-exist commit and return 404 not 500
2016-08-15 15:27:19 -07:00
Unknwon
4a19fd6441
Web editor: temporarily disable upload and quick fix for edit and new
...
Try to merge into develop branch ASAP, then continue minor fixes afterwards.
2016-08-15 01:42:20 -07:00
Unknwon
54e0ada9d5
Web editor: improve delete file
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 0afcb843d7
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 7ecd73ff55
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 08:42:41 2016 -0600
Fix for CodeMirror mode
commit c29b9ab531
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 08:03:33 2016 -0600
Made tabbing in editor use spaces
commit 23af384c53
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:56:46 2016 -0600
Fix for data-url
commit cfb8a97591
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 7fc8a89cb4
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 fd3d86ca6b
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:39:44 2016 -0600
Code cleanup
commit c03d0401c1
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 29 15:38:23 2016 -0600
Code cleanup
commit 98e1206ccf
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Thu Jul 28 18:36:01 2016 -0600
Code cleanup and fixes
commit c2895dc742
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Thu Jul 28 18:24:04 2016 -0600
Fixes per Unknwon's requests
commit 6aa7e46b21
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 889e9faf1b
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 22 14:09:18 2016 -0600
Fix in gogs.js
commit 47603edf22
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 bb57912558
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 22 14:02:18 2016 -0600
Update for using CodeMirror mode addon
commit d10d128c51
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Tue Jul 19 16:12:57 2016 -0600
Update for Edit
commit 34a3498202
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 fa1b752be2
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
0f33b04c87
Add subcommand to create new user in CLI
2016-08-13 16:11:52 -07:00
Andrey Nering
fa12c282f6
Add Content-Disposition header for downloads ( #3439 )
2016-08-11 16:53:40 -07:00
Thibault Meyer
7eafe3213f
Fix #3321 : commit tag shortener ( #3418 )
...
* Fix #3321 : commit tag shortener
* Check short commit
* remove debug
* Edit unit tests
* Show 10-char short SHA
2016-08-11 15:34:00 -07:00
Unknwon
a47aef5460
#2852 code cleanup
2016-08-11 14:55:10 -07:00
Odin Ugedal
1dd003bd4c
Add initial support for unix sockets ( #2852 )
2016-08-11 14:46:33 -07:00
Thibault Meyer
53c573ed02
Fix #3314 : Cannot edit release with tag name contains slash ( #3434 )
2016-08-11 13:45:42 -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
Unknwon
042d350762
Fix only user has repo write access can comment
2016-08-11 06:22:56 -07:00
Thibault Meyer
6a81632e36
Fix typo CacheInternal -> CacheInterval ( #3432 )
2016-08-11 05:59:11 -07:00
Unknwon
c5d4a9e046
#2907 Add commit timestamp to webhook
2016-08-09 18:28:06 -07:00
Unknwon
15b0cbe318
#3007 update git-module require version
2016-08-09 17:15:48 -07:00
Unknwon
bbe866122d
#3406 fix regression of MustEnableIssues check
2016-08-09 09:39:55 -07:00
Unknwon
b73318bc62
Fix 404 when comment on pulls and not using interal issue tracker
2016-08-08 11:29:50 -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
ab9c5fb5e7
#2593 allow render raw content
...
Use URL query parameter render=1 to render content in raw mode.
2016-08-05 18:34:13 -07:00
Unknwon
2f105f3979
#2162 completely disable builtin issue tracker when enable external tracker
2016-08-04 16:32:02 -07:00
Unknwon
e7fd65f0cf
#3290 better code structure and batch minor improvements
2016-08-03 11:51:22 -07:00
Unknwon
899e799459
#1601 support delete issue comment
2016-07-26 02:48:17 +08:00
Unknwon
1f2e173a74
Refactor User.Id to User.ID
2016-07-24 01:08:22 +08:00
Unknwon
ae88d76032
Bump version
2016-07-22 21:52:39 +08:00
Unknwon
e3d3d424b2
Minor fix for go vet
2016-07-16 15:15:00 +08:00
Unknwon
f1b8d52eb3
#2854 fix no mail notification when issue is closed/reopened
2016-07-16 00:36:39 +08:00
Unknwon
a752f09055
#2709 validate username attribute fetched from LDAP
2016-07-12 07:07:57 +08:00
Unknwon
de10387f41
#2586 bump git-module requirement
2016-07-12 06:20:09 +08:00
Unknwon
1faaaeb3d9
Update glide.lock
2016-07-11 07:57:15 +08:00
Unknwon
7938506e07
#518 update git-module require version
2016-06-30 02:21:23 +08:00
Unknwon
73b4acbb63
Update glide.yaml
2016-06-27 23:40:36 +08:00
Unknwon
a4eaddff81
#2958 Update dep version
2016-06-12 17:54:22 +08:00
Alex Myasoedov
84d9aff8a2
gogs dump tempdir flag ( #3086 )
2016-05-23 17:10:05 -07:00
Unknwon
7826eae452
#3045 fix DEPRECATED Action signature erorr
2016-05-12 14:32:28 -04:00
Unknwon
60ae8ac3d2
Add route for #2846
2016-03-21 10:49:46 -04: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
dd6faf7f9b
Convert all API handers to use *context.APIContext
2016-03-13 18:49:16 -04:00
Unknwon
b4f47a7623
#1891 attempt to fix invalid csrf token
2016-03-12 20:56:03 -05:00
Unknwon
d733efc1cc
#1286 #2098 Alpha support for custom templates
...
No guarantee for compatibility with future changes
2016-03-12 13:48:34 -05:00