1278 Commits (587d870f1edc51bf86bd0c213424d418702c9a24)

Author SHA1 Message Date
Unknwon 7e9b42c87d #2780 code clean up 8 years ago
Robin Lambertz b6c14f8b21 Add AddCollaborator API Endpoint (#2780)
* Add AddCollaborator API Endpoint

* Add optional Permission to AddCollaborator endpoint

* Use APIContext
8 years ago
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
8 years ago
Unknwon d625e41c6c #3408 minor code fix 8 years ago
Thibault Meyer 6a81632e36 Fix typo CacheInternal -> CacheInterval (#3432) 8 years ago
Unknwon b85927e488 #3091 show Git configs on admin panel 8 years ago
lstahlman 89f71b44f7 Add committer information to API and Webhooks. Also fixes #3271 (#3414) 8 years ago
Unknwon edd786446c #3158 skip RUN_USER check on Windows 8 years ago
Unknwon f70343660d Little code refactoring 8 years ago
Rory McNamara c8b45ecc27 Render the Code view on the server (minus syntax highlighting) (#2942)
* render code view server side

* remove debug print

* fix multiline selection bug

* change string concatenation to bytes.Buffer for efficiency

* Fix newlines added by previous for hljs

* fix selection highlighting

* make css changes in .less
8 years ago
lstahlman 2c82fc3edb Fix for #3410 overall issues for organisations is limited to num_repos from the user (#3412) 8 years ago
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
8 years ago
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
8 years ago
Unknwon ab9c5fb5e7 #2593 allow render raw content
Use URL query parameter render=1 to render content in raw mode.
8 years ago
rugk 28dc5bb566 Replace gogs.io http links with https version (#3386) 8 years ago
Unknwon cf6d321991 Ignore repository with issue disabled or use external tracker in dashboard issues 8 years ago
Unknwon 50422f1fc2 #3348 always use relative avatar link in the template 8 years ago
Unknwon db3d393576 routers/api: rename handlers to be unexported 8 years ago
Unknwon 2f105f3979 #2162 completely disable builtin issue tracker when enable external tracker 8 years ago
Unknwon e7fd65f0cf #3290 better code structure and batch minor improvements 8 years ago
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
8 years ago
Unknwon 10dc330640 #3345 dump content directly to HTTP ResponseWriter 8 years ago
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>
8 years ago
마누엘 fe60ca408b routers/repo/release: Use correct branch reference (#3330)
When calculating the current behind commit count the calculation should
use the current release target to get the total commit count. Should the
release target not exist anymore the calculation will return zero for
the newest release on that target. Older releases on that target will then
use that calculated commit count as reference.

The only use case that is now somehow invalid is when the release target
was merged / deleted after a tag on that release target:

    master 1 - - - - - - - 6
            \             /
    branch   2 - 3 - 4 - 5

When `4` is the last tag on branch `branch` and the branch `branch` is not
yet deleted the calculated numbers would be:

    1 commits to branch since this release

Now if the branch `branch` gets deleted the calculation function will not
find the branch and use the commit count of the newest release (`4`) as
reference resulting in:

    0 commit to branch since this release

This fixes #3326
8 years ago
Richard Mahn 0402c803c6 Added Full Name to CreateUser api call (#3333) 8 years ago
Unknwon 29ccf047d8 routers/repo/issue: remove redundant format string 8 years ago
Unknwon 899e799459 #1601 support delete issue comment 8 years ago
Unknwon e74630ae3b #1384 add pagination for repositories 8 years ago
Unknwon 1f2e173a74 Refactor User.Id to User.ID 8 years ago
Unknwon 46e96c008c Use struct for UI settings 8 years ago
Unknwon 256cd6374a #2790 fix not detect diff style in pull request file changes 8 years ago
Unknwon 4b5e09e4d6 #3181 detect situation when base branch is deleted in pull request 8 years ago
Unknwon e63b2881b1 api: fix panic if anonymous user request admin API
Add sign in check before check user account level
8 years ago
Unknwon c912494609 #3076 detect invalid tag name git error 8 years ago
lstahlman 25b3836418 Refresh repository mirror from database when the repository's name has changed. (#3276) 8 years ago
Unknwon 5aa2bf86f4 Update locales and .gopmfile 8 years ago
Unknwon 60110adc06 models/webhook: restrict deletion to be explicitly with repo and org ID 8 years ago
Dennis Chen 5ff2dfb23e api: delete repository webhooks (#3275)
Allows the deletion of a webhook from a repository at the
/:user/:repo/hooks/:id endpoint.

Solves drone/drone issue #1603.

Signed-off-by: Dennis Chen <barracks510@gmail.com>
8 years ago
Unknwon c083d76567 #2937 able to prohibit user login 8 years ago
Unknwon 3d93532c87 #3274 fix can't get webhook detail of organization 8 years ago
Unknwon f1b8d52eb3 #2854 fix no mail notification when issue is closed/reopened 8 years ago
Unknwon 7ca5f8f119 models/repo: remove redundant info for some repo methods
RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
8 years ago
lstahlman 846bf2ca9f Add timestamps to repository api response (#3255)
Additional properties: created_at, updated_at
8 years ago
Kim Carlbäcker f4ab50501e [Fix] Don't display way too large files #1513 (#3253)
* Add MaxDisplayFileSize setting

* Don't show files that are too large

* Localized FileTooLarge

* Change IsFileTooBig => IsFileTooLarge
8 years ago
lstahlman 12cb84b97f Extend the API to include more repository properties (#3249)
Adds description, stars_count, forks_count, watchers_count and
open_issues_count.
8 years ago
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
8 years ago
Unknwon d62ab49978 #3057 retrieve webhook with repo_id
This prevents user retrieve arbitrary webhook by changing URL to
access webhook from other unauthorized repositories.
8 years ago
Unknwon 401bf944ef Use SecurityProtocol to replace UseSSL in LDAP config
Initially proposed by #2376 and fixes #3068 as well.
8 years ago
Unknwon 4b25bdfbc4 #3058 #3059 support correct page size and link header 8 years ago
Unknwon e84ac64964 Do not show filename not have suffifx .md 8 years ago
Andrey Nering 743d22669a Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff (#3174) 8 years ago
Franz Schmidt 8b35c194ec Fixes #3110 (#3136) 8 years ago
Unknwon 4bbb878d20 Minor fix for #3194
- Update locale bindata
8 years ago
Sandro Santilli 2ce60ff314 Include repository owner name and description in html title (#3194)
Closes #3192
8 years ago
Unknwon c041273dd3 repo/http: clean code 8 years ago
Unknwon e9ae926e04 #809 fix wrong closed issue count when create closed issue via API
Add start count corrector for Repository.NumClosedIssues
8 years ago
Unknwon bf5faf76eb #809 able to set issue state to closed when create 8 years ago
Kim Carlbäcker 3df8eb60e3 PDF-Previews in file-lists now working (#3000) 8 years ago
Thomas Boerger dfad51fe9e Made the issue stats query more secure with parameterized placeholders (#2895) 8 years ago
Cosmin Stroe ba314a7a36 Support alphanumeric issue style (ABC-1234) for external issue tracker (#2992) 8 years ago
Tamás Molnár 39356f4238 Set utf-8 charset for text files when serving raw content (#2898) 8 years ago
Unknwon d27ca649c7 api/admin: add/remove organization team repository 8 years ago
Unknwon 762ab056a2 Fix XORM IN condition table name parse 8 years ago
Unknwon dd36c431ec #2842 add quotes to attachment file name 8 years ago
Unknwon b1d41cfa60 #1692 add admin APIs to add/remove a user from teams 8 years ago
Unknwon 5e11341232 Fix status code 8 years ago
Unknwon 90e93b1f3a Change list teams API to non-admin specific 8 years ago
Unknwon e6f927f61a #1692 api: admin list and create team under organization 8 years ago
Unknwon 60ae8ac3d2 Add route for #2846 8 years ago
Unknwon 149d62a648 #13 fix admin can't search private repos
- update glide info
8 years ago
Unknwon 8966f5635d Merge pull request #2823 from zacheryph/feature/local-only-password-reset
Prevent `Forgot Password` for non local users
8 years ago
Zachery Hostens 63e21c146a ensure we don’t try changing LDAP passswords 8 years ago
Unknwon 9bd9ad4205 #1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
8 years ago
Unknwon dd6faf7f9b Convert all API handers to use *context.APIContext 8 years ago
Unknwon b4f47a7623 #1891 attempt to fix invalid csrf token 8 years ago
Unknwon 2bf8494332 #13 finish user and repository search
Both are possible on explore and admin panel
8 years ago
Unknwon 514382e2eb Rename module: middleware -> context 8 years ago
Marin Jankovski 1314ba219e Updated and created were appended with _unix. Fresh databases have only the newly named fields. 8 years ago
Alec S 792c13cf0a readd 'dashboard' to title 8 years ago
Alec S af847ef94e Merge branch 'develop' of github.com:gogits/gogs into develop 8 years ago
Alec S bfed3ea7d3 fix indentation 8 years ago
Alec S affa3c2dbf Remove dashboard keyword from title 8 years ago
Alec S 6775ac7334 change page titles for user and org dashes 8 years ago
Jan Christophersen 72a8fa3bc8 Allowing site admins to view private repositories in org/home 8 years ago
Unknwon 0e9bc2d410 Fix pull request availability check 8 years ago
Unknwon 9cf7f3e46f Remove duplicated of code 8 years ago
Tamás Molnár 9c91e27933 Added: Ability to delete org avatar. 8 years ago
Unknwon a5b0400be7 #1146 finish new access rights for collaborators 8 years ago
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.
8 years ago
Unknwon a2f13eae55 #1157 some avatar setting changes
- Allow to delete current avatar
8 years ago
Unknwon 4cb8bf1b75 #1597 fix premission logic check of pull request 8 years ago
Unknwon 2d2d85bba4 #1597 support pull requests in same repository 8 years ago
Unknwon 9df6ce48c5 Minor fixes for #2746 8 years ago
Josh Frye 1ca171dbe9 Add ability to delete single wiki pages. 8 years ago
Unknwon 260723e2cc Minor fixes for #2745 8 years ago
Josh Frye f3358f5927 Repo setting to delete and disable wiki 8 years ago
Unknwon f946040fa9 #1891 attempt to fix expected invalid CSRF token
- Remove unused config settings `[picture] service`
8 years ago
Unknwon 8055a0bdac Post work for #2637
Improve test cases, config settings, also show SSH config settings on admin config panel.
8 years ago
Unknwon 7a91d7e776 Merge pull request #2694 from mhartkorn/pullrefs
Improved Pull Request refs
8 years ago
Unknwon 129638117f #2697 fix panic when close issue via commit message 8 years ago