Commit Graph

901 Commits (6da1fa9ab361e8d6dfda3f50ee1d727ec2b8d536)

Author SHA1 Message Date
Unknwon 40eb652cfa
public/plugins: update notebookjs to 0.3.0 (#5077) 2018-03-08 02:12:04 -05:00
Unknwon 49bd893a77
bindata: update changes from pull requests 2018-03-06 17:22:27 -05:00
Unknwon b9e4a052b8
vendor: update gopkg.in/macaron.v1 2018-03-06 01:25:55 -05:00
Unknwon 17d2a9c435
vendor: update github.com/gogits/git-module 2018-03-02 02:17:04 -05:00
Unknwon 6f2347fc71
locale: sync from Crowdin
Fixes #4811
2017-11-22 14:46:14 -05:00
Unknwon b752fe6808
MISC: bump version 2017-11-19 13:29:06 -05:00
Unknwon 6f04ee879c
auth/ldap: allow placeholder %s for BindDN (#2526) 2017-11-16 19:32:33 -05:00
Unknwon 3dd93f5533
vendor: update github.com/gogits/git-module 2017-11-16 00:04:07 -05:00
Unknwon 4258bf3d54
user/auth: fix page not redirect after login 2017-10-22 19:29:17 -04:00
Unknwon 4d1d66d906
Bump version 2017-10-15 00:12:52 -04:00
Unknwon 6bc11c4450
hook: fix email not sent after push (#4430)
Turns out mail service was not initialized at all, also mail must
be sent in sync in hook mode before program exits.
2017-07-27 16:53:02 -04:00
Unknwon 643c85e9c8
routes/home: minor code improve 2017-07-18 22:09:57 -04:00
Unknwon dc10594d7b
repo: fix cannot fork repository (#4572)
Should not load attributes if repository not found in HasForkedRepo.
2017-07-18 12:56:23 -04:00
Unknwon e02fac4968
repo: fix panic on pull request submit (#4572) 2017-07-14 18:51:23 -04:00
Unknwon c970c4ee41
css: not include line numbers in diff selection (#4584)
Changed template file in order to make CSS work properly.
2017-07-14 16:50:49 -04:00
Unknwon 8ed2330d6e
issue_comment: fix pg syntax ambiguous (#4586)
Also handle error related to time parsing.
2017-06-27 20:21:36 -04:00
Unknwon d1a96c2543
cmd/restore: skip non existent directories in backup archive (#4413) 2017-06-25 01:16:32 -04:00
Unknwon 11b1498a6e
api/repo: load attributes when listing user repositories (#4565) 2017-06-21 17:41:18 -04:00
Unknwon e16196124e
setting: disable SSH minimum key size check when not eligible (#4507) 2017-06-11 02:06:26 -04:00
Unknwon a887e475e3
repo: change action visibility when repository visibility changed (#4414) 2017-06-11 00:43:56 -04:00
Unknwon 4400d2fdd9
Refactoring: rename package routers -> routes 2017-06-11 00:34:14 -04:00
Unknwon 91f65cedc8
repo/view: trim Windows line ending when display content (#4546) 2017-06-09 20:05:04 -04:00
Unknwon 09f2cbfb18
api/repo: response full API format for search results (#4522) 2017-06-08 15:53:19 -04:00
Unknwon 089eb1a099
Change required version to Go 1.6 2017-06-07 21:44:18 -04:00
Unknwon b40dc550ed
vendor: update github.com/go-xorm/* (#4419) 2017-06-07 01:19:32 -04:00
Unknwon a851b77ac9
markup: able to display image from IPython notebook (#4366) 2017-06-06 15:41:27 -04:00
Unknwon c0be055541
api/repo: fix admin migrate repo for non-org users (#4479) 2017-06-05 17:11:57 -04:00
Unknwon 36d6450977
repo/pull: detect case when no merge base found (#4434) 2017-06-05 00:10:53 -04:00
Unknwon 239dd978ff
repo: support go get subpkg (#1878) 2017-06-03 06:50:09 -04:00
Unknwon 16913ba814
css: start using fixing width container
Get rid of responsive issue.

Also fixes #4527.
2017-06-03 02:58:54 -04:00
Unknwon 6bb9c442b2
issue: fix updated_unix is not updated for new comments (#4462) 2017-06-02 17:30:15 -04:00
Unknwon 4e87e62d5c
models/repo_collaboration: cannot change permissions of collaborators (#4512) 2017-05-29 16:33:18 -04:00
Unknwon b17995a332
restore: reset table sequences for PostgreSQL (#4357) 2017-05-21 04:37:37 -04:00
Unknwon d71a8fece8
feature/org-mode: fix compile error 2017-05-17 18:50:14 -04:00
Unknwon 6500aafcb8
install: validate port in SMTP host address (#2243) 2017-04-07 23:23:39 -04:00
Unknwon 6ebdf91b32
templates/repo: fix README.ipynb not rendered (#4367) 2017-04-07 22:33:19 -04:00
Unknwon 91cd350b63
repo/editor: fix wrong context for subdirectory (#4368) 2017-04-07 21:44:55 -04:00
Unknwon fda4b1106e
user/setting: simplify code 2017-04-07 00:49:30 -04:00
Unknwon 8d0417497b
modes/mirror: make Updated unchanged if no new commits fetched (#4341)
After sync mirror, get latest commit date and compare to current
repository updated time, only update it if the commit date is newer.
2017-04-06 20:58:57 -04:00
Unknwon a617d52374
2fa: initial support (#945) 2017-04-06 00:14:30 -04:00
Unknwon e0a787b5ee
Update locales 2017-04-05 13:26:53 -04:00
Unknwon ae1d50d19a
models/mirror: escape credentials before write mirror address (#4014)
Special characters such as '@', ';', '#' and ':' could occur in
password portion of credentials, which breaks the interpretation
and saves 'config' file in with extra characters that are not
recognized by Git (due to INI library).
2017-04-04 19:40:46 -04:00
Unknwon d05395fe90
Refactoring: rename modules -> pkg
Reasons to change:

1. Shorter than 'modules'
2. More generally used by other Go projects
3. Corresponds to the naming of '$GOPATH/pkg' directory
2017-04-04 19:29:59 -04:00
Unknwon 55afc1ad21
models/repo_diff: move core functions to gogits/git-module 2017-04-04 01:45:57 -04:00
Unknwon b873ec2bce
templates/repo/branches: hide pull request button if not allowed (#4377) 2017-04-03 22:24:21 -04:00
Unknwon 88ae3510ff
Prepare release 2017-04-03 16:26:43 -04:00
Unknwon ab42671c63
repo: handle git.ErrUnsupportedVersion error type 2017-04-01 17:56:55 -04:00
Unknwon ab634ce61a
cmd/web: fix routes requires sign in (#4359)
Redirect user to sign in page when visit private repository with
public issues if user want to post comment or create new issue.
2017-03-30 00:34:20 -04:00
Unknwon 9d06ebd01a
markdown: improve filter of class attribute for code blocks
Only allow HighlightJS specific classes.

Reported by ChALkeR.
2017-03-29 19:52:53 -04:00
Unknwon 11ffdac3f8
org/dashboard: fix wrong repository count (#4351)
Should not include count for inaccessible repositories.
2017-03-28 11:16:29 -04:00
Unknwon 375f1b1fde
Prepare release
[CI SKIP]
2017-03-27 14:56:56 -04:00
Unknwon 1038916460
models/protect_branch: fix whitelist with invalid 'protect_branch_id' (#4333)
If user creates a protect branch for the first time (which has ID=0),
it generates invalid whitelist records with 'protect_branch_id=0'.
This prevents future updates of protect branch whitelist.

Migration: remove existing invalid protect branch whitelist records.
2017-03-27 13:13:04 -04:00
Unknwon 8f52ab8201
models/repo_editor: add pull request test task after commit (#4338) 2017-03-25 03:36:13 -04:00
Unknwon 8196430f47
repo: allow private repository to have public wiki or issues
Relates to #649 and #2157
2017-03-24 16:25:40 -04:00
Unknwon 79ba0314e9
milestone: only show issue-related count under issue list (#4316) 2017-03-24 14:00:01 -04:00
Unknwon fdc7cb565d
repo: fix unable to propose pull request from secondary fork (#4324) 2017-03-23 20:04:20 -04:00
Unknwon 8a3f4fc616
models: add config options for XORM logger (#3183)
Added new config section '[log.xorm]'.
2017-03-23 18:34:25 -04:00
Unknwon 66c1e6b0e8
user/settings: complete repositories panel (#4312) 2017-03-23 14:28:31 -04:00
Unknwon 85a050fca7
issue: fix redirect to random issue if index does not exist (#4315) 2017-03-22 13:20:29 -04:00
Unknwon 0203eaab00
user/dashboard: hide More button if reached end on first load 2017-03-20 14:00:51 -04:00
Unknwon 2807274e2d
repo/webhook: able to retrigger delivery history (#2187) 2017-03-19 17:44:46 -04:00
Unknwon 55a5ad5cdc
api/repo: fix incorrect permission values (#4309) 2017-03-18 16:44:40 -04:00
Unknwon cac7af2c78
explore: able list and search for private but accessible repositories (#3088) 2017-03-17 19:17:40 -04:00
Unknwon 171f97868d
repo: allow issues and wiki for bare repository (#4104) 2017-03-16 23:10:45 -04:00
Unknwon d591cb0dfb
dashboard/feeds: able to load more history (#2511) 2017-03-16 22:05:53 -04:00
Unknwon 9e8ffa14cb
webhook: add file status to push event (#3897) 2017-03-16 17:33:04 -04:00
Unknwon 1df54ea0cd
release: able to add attchments to release (#1614)
Added new config section '[release.attachment]’.
2017-03-13 04:32:20 -04:00
Unknwon 96ae0129ef
models/repo: minor code style and comment fix (#4273) 2017-03-13 00:53:50 -04:00
Unknwon bb19bb601e
repo: able to view size (#1158) 2017-03-12 01:59:48 -05:00
Unknwon 5c7cb1594b
repo/branches: overview and all (#2310) 2017-03-11 01:43:45 -05:00
Unknwon ac8b1e595f
markdown: support Smartypants (#4162)
Added new config section '[smartypants]', and disabled by default.
2017-03-10 23:30:40 -05:00
Unknwon 23da90e25d
issue_mail: send notifications to participants in comments (#2929) 2017-03-10 18:47:02 -05:00
Unknwon 451aef7a1c
release: improve page load performance
Previously, we load all releases of a repository which could hurt
performance when the repository has a lot of releases.

Now we're able to only load releases in current page view we need
to show by matching with 'tag_name'.
2017-03-10 14:12:46 -05:00
Unknwon 89cc6aa430
webhook: add issue comment event 2017-03-09 04:11:23 -05:00
Unknwon c93731339f
webhook: support Issues event (#2319)
Also addresses #3485.
2017-03-09 00:03:29 -05:00
Unknwon bab448681d
models/user: handle case when user doesn't belong to any organization (#4258) 2017-03-08 22:21:31 -05:00
Unknwon 295d251232
mirror: update repository updated_unix after sync (#2807) 2017-03-08 17:47:44 -05:00
Unknwon 83f6b8e847
Protected branches: allow whitelist bypass require pull request check (#4207) 2017-03-08 16:43:36 -05:00
Unknwon e6dbfd918c
security: fix vulnerability in changing username
Reported by João Arnaut.
2017-03-07 14:07:20 -05:00
Unknwon c2f0711db0
Update locale 2017-03-06 23:37:46 -05:00
Unknwon 8b73c8076f
modules/markdown: fix wrong raw link to internal images 2017-03-05 16:54:00 -05:00
Unknwon e9838a83ce
routers/repo/http: only prompt HTTP Basic Authentication when intended
Sometimes user could simply request wrong URL, but if that wrong URL
has nothing related Git HTTP operations, HTTP Basic Authentication
should not prompted. Instead, clean 404 page should be presented.

The patch also supports Git HTTP operations without '.git' suffix
to the repository name, which addresses #4226 and #4189.
2017-03-04 21:26:32 -05:00
Unknwon ebd95dd082
models/org: reduce to 2 SQL executions for GetOrgIDsByUserID
This also addresses #4231. It is now ignoring nonexistent
organizations returned from 'org_user' table.
This was a bug caused in older version that didn't cleanup
'org_user' table when delete an organization.
2017-03-03 18:26:51 -05:00
Unknwon f7b7d008b6
setting: fix Webhook.SkipTLSVerify didn't load (#4228) 2017-03-02 22:08:39 -05:00
Unknwon 600f748cb0
vendor: update golang.org/x/crypto/ssh
Related to #4160
2017-03-01 21:33:58 -05:00
Unknwon e08161a302
hook: fix can’t be executed while run as service on Windows (#4207) 2017-02-28 22:58:52 -05:00
Unknwon d43f5f17fd
webhook: fix push panic to organizational repository (#4206) 2017-02-28 10:28:48 -05:00
Unknwon fd667ca1d8
Merge branch 'master' of github.com:gogits/gogs into develop 2017-02-28 06:22:28 -05:00
Unknwon 9d40b8a83c
Bump version 2017-02-28 05:45:50 -05:00
Unknwon ca2cfaf71e
cmd: able to backup and restore
Not very robust, must execute under correct workdir.

Addresses #2072, #3708, #648
2017-02-27 22:48:19 -05:00
Unknwon 7fe13e72d8
cmd: refactoring command name 2017-02-27 22:47:12 -05:00
Unknwon b3757e424f
Prepare release 2017-02-27 18:38:16 -05:00
Unknwon e28bc7023f
modes/org: code format for PR #4194 2017-02-26 15:29:16 -05:00
Unknwon 10b93efc4a
repo: able to add organization member as repository collaborator 2017-02-24 13:56:02 -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 054e97d614
csrf: able to set custom cookie name
Add new config option '[session] CSRF_COOKIE_NAME'.
2017-02-22 21:46:43 -05:00
Unknwon 28983c94ff
comment: only show title of commit message from a commit ref (#3206) 2017-02-22 08:25:26 -05:00
Unknwon 60aca9ea18
webhook: also only enable certain types (#3356)
Add new config option '[webhook] TYPES’.
2017-02-21 20:21:25 -05:00
Unknwon 0f3155660e
webhook: minor improvements on Discord 2017-02-21 13:58:00 -05:00
Unknwon 437df04d8c
Prepare release 2017-02-21 12:17:39 -05:00
Unknwon 8216360da8
webhook: support color for Discord 2017-02-21 11:36:19 -05:00
Unknwon 5895d43574
editor: redirect to new pull request page after create new branch 2017-02-20 22:29:15 -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 934734a85a
diff: able to highlight line with hashtag URL 2017-02-20 16:16:32 -05:00
Unknwon 2322de653c
models/webhook: fix bad query 2017-02-20 01:04:02 -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 cd9b29ff3f
api: add list user and organization's repositories (#3984) 2017-02-18 23:37:16 -05:00
Unknwon 0a2f87f941
cron: add repository archive cleanup (#4061) 2017-02-18 19:35:59 -05:00
Unknwon 21d538a738
install: able to enable builtin SSH server (#3773) 2017-02-18 12:47:35 -05:00
Unknwon a07b1f630a
webhook: add native Discord support 2017-02-18 00:54:56 -05:00
Unknwon 266586e866
repo: assignee can be anyone who has read access (#3739) 2017-02-17 22:17:27 -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 5155f026b4
Security: fix XSS attack on milestone
Reported by Miguel Ángel Jimeno.
2017-02-17 08:06:48 -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 f129e0ecb5
repo/editor: fix breadcrumb path cuts parent dirs (#3859) 2017-02-16 08:34:49 -05:00
Unknwon 88143f1934
models/repo: UpdateLocalCopy should always aceept valid branch name 2017-02-16 06:28:37 -05:00
Unknwon 3137665e6e
Simplify description 2017-02-15 22:29:31 -05:00
Unknwon f97b250509
Security: prevent XSS attach on wiki page
Reported by Miguel Ángel Jimeno.
2017-02-15 18:05:02 -05:00
Unknwon 32a868d431
wiki: handle '#' in edit page (#3767) 2017-02-15 05:10:00 -05:00
Unknwon 039dc33367
git: delegate all server-side Git hooks (#1623) 2017-02-14 16:22:16 -05:00
Unknwon f4aedda13a
org/team: make 'new' as reserved for team name (#3789) 2017-02-14 03:16:02 -05:00
Unknwon d02e7d9e6a
install: no need to check SMTPFrom is not set (#4118) 2017-02-13 04:20:03 -05:00
Unknwon 2d38b75400
diff: fix can't show compare page for fork repository (#4110) 2017-02-12 18:43:26 -05:00
Unknwon f59a607361
install: allow sender's username to be non-email (#3717) 2017-02-12 18:35:25 -05:00
Unknwon 127005d733
webhook: remove bad characters of Slack-type webhook for Discord (#4088) 2017-02-11 16:31:58 -05:00
Unknwon 0ae666f3e6
auth: few security improvements 2017-02-11 07:12:06 -05:00
Unknwon 5791e1398c
install: validate SMTP From
Invalid SMTP From will cause fatal error in post-install and exit
the program.
2017-02-11 03:29:30 -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 2c154ccbe7
Minor improve on error handling 2017-02-10 16:05:11 -05:00
Unknwon eb66060cd7
log: start using gopkg.in/clog.v1 2017-02-09 19:29:59 -05:00
Unknwon f7c11a27d0
models/repo: clean up repository local copy after rename (#3641) 2017-02-09 15:56:39 -05:00
Unknwon 418dab9b96
models/pull: load attributes when fetch list of pull requests (#4089)
Code only fetched issues corresponding to the pull requests, and left
out necessary base/head repository objects, which is required later
to generate API format.
2017-02-09 15:45:35 -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 6622b7b49a
models: remove TiDB embedded driver support
Users should all start tidb-server process and connect to it as if
it is a MySQL server with MySQL drivers.
2017-02-09 09:31:38 -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 a2dd9ec2e1
models/org_team: panic when team num_repos is negative (#3671) 2017-02-08 18:13:46 -05:00
Unknwon 0d9e435bfe
IPythonNotebook: CSS adjustment for PR #4070 2017-02-07 17:11:46 -05:00
Unknwon 2bb1de1805
cmd/serve: minor code improve for PR #4078 2017-02-01 21:28:43 -05:00
Unknwon 2527037973
routers/repo: minor code fix for PR #3758 2017-02-01 07:24:20 -05:00
Unknwon 32a0255ce3
bindata: generate for PR #3646 2017-01-31 21:01:13 -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 412ba5b2a9
Prepare for release 2017-01-31 07:36:59 -05:00
Unknwon 7463d9c51d
Fix can not save release draft as draft again (#3669)
But release was not saved as draft in the first time, is not
possible to be draft afterwards because the Git tag was created.
2017-01-30 13:21:24 -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 207960b459
Fix create user can use user email which is used (#4016) 2017-01-29 18:29:53 -05:00
Unknwon 7b3b46c675
Fix showing total number of PRs when user does not have any repositories (#4007) 2017-01-28 20:17:01 -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