748 Commits (f430d26f7ee7530e9613e6fe5055bec12d7f4d92)

Author SHA1 Message Date
lstahlman 89f71b44f7 Add committer information to API and Webhooks. Also fixes #3271 (#3414) 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
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
Unknwon 2f105f3979 #2162 completely disable builtin issue tracker when enable external tracker 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
Unknwon 29ccf047d8 routers/repo/issue: remove redundant format string 8 years ago
Unknwon 899e799459 #1601 support delete issue comment 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 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
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
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
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 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
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 dd36c431ec #2842 add quotes to attachment file name 8 years ago
Unknwon 60ae8ac3d2 Add route for #2846 8 years ago
Unknwon 9bd9ad4205 #1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
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
Unknwon 0e9bc2d410 Fix pull request availability check 8 years ago
Unknwon 9cf7f3e46f Remove duplicated of code 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 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 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
Martin Hartkorn 51f15880d1 Call PushToBaseRepo() also on Pull Request creation and not only on git push 8 years ago
Unknwon 912f7b51e9 #1821 add actions for close and reopen issues 8 years ago
Unknwon d5a3021a7d Make markdown as an independent module 8 years ago
Unknwon 7140dbac95 Fix #857 8 years ago
Unknwon a703f7d7b4 Merge pull request #2647 from andreynering/issue-template
Implement issue and pull request templates
8 years ago
Unknwon 2408df3f35 Merge pull request #2663 from Download-Fritz/MirrorForks
#2505 Allow to fork and disallow to create PRs for mirrors.
8 years ago
Download-Fritz a1b28fc33c Rename MustEnablePulls() to MustAllowPulls() and simplify the contained check to AllowsPulls(). 8 years ago
Download-Fritz a467184e13 #2505 Allow to fork and disallow to create PRs for mirrors. 8 years ago
Andrey Nering 658bfc2704 Implement issue and pull request templates.
Similar to GitHub:
https://github.com/blog/2111-issue-and-pull-request-templates

Priority:
- root
- .gogs
- .github
8 years ago
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.
8 years ago
Unknwon d5ca913b2f #2639 add branch prefix for test webhook 8 years ago
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.
9 years ago
Unknwon 632c27802c Minor fix for #2624 9 years ago
Martin Hartkorn bb595666ac Moved UpdateRepository() to CleanUpMigrateInfo() and correctly delete mirror from database 9 years ago
Martin Hartkorn 15d37b7a95 Refactored according to suggestions 9 years ago
Martin Hartkorn 15394f613f Add missing safety check 9 years ago
Martin Hartkorn 3650bd8528 Convert mirrors to regular repositories. 9 years ago
Unknwon 0ad5f51059 Merge pull request #2599 from mhartkorn/fix-release-error-deleted-user
Fix for server error on release page when a user deleted their account
9 years ago
Martin Hartkorn 6b3e47b103 Removed HTTP 500 error on the release page when a user deleted their account 9 years ago
Unknwon f15a2f9b25 Merge pull request #2528 from andreynering/diff-sintax-highlight-733
Enable syntax highlighting on diff view
9 years ago
Tobias Kunicke bc0eee48d5 parse milestone.deadline as local time 9 years ago
Andrey Nering 2bfb8bb5fd Enable sintax highlighting on diff view. Close #733 9 years ago
Florian Kaiser 0e4ae27caa Use pretty 404 pages in repo.HTTPBackend 9 years ago
Unknwon 1c74612b3c Minor fix for #2444 9 years ago
Unknwon d3ba246693 Merge pull request #2444 from bkcsoft/feature/participants
Implemented participant-listing for issue-pages (Fixes #2377)
9 years ago
Florian Kaiser 3e0a27157c Make highlighted markdown code blocks work on issue pages 9 years ago
Andrey Nering 5deb726f3f Refactoring of inline diff computing to prevent empty diff box. Fix #2489 9 years ago
Kim "BKC" Carlbäcker 85335c5f56 Go-ism :D 9 years ago
Kim "BKC" Carlbäcker b31c7fe074 Fixed Poster/Commenter-bug and clean-up 9 years ago
Kim "BKC" Carlbäcker 2665728ee7 Fix OP not 'participating' until commented 9 years ago
Kim Carlbäcker f65dedc3be Optimize participant-fetching 9 years ago
Kim "BKC" Carlbäcker 2cc1ee3fc0 Implemented participant-listing for issue-pages 9 years ago
Andrey Nering ee5d6fb025 Compute inline diff for pull request view, too. Fix #2462 9 years ago
Kim "BKC" Carlbäcker a3eab8185d Admins are allowed to create repos for arbitrary Orgs 9 years ago
Unknwon a72f57374d Merge pull request #2403 from ddelpero/master
Update repo.go
9 years ago
Unknwon bcf6aed452 Merge pull request #2335 from andreynering/highlight-diff
Highlight diff
9 years ago
ddelpero 7655337a1f Update repo.go
Release download file name doesn't include tag number #2339
Download: Changed to use refName instead of commit.ID for downloaded file name
9 years ago
Unknwon e0f0f72a36 #2345 disallow access of some pages for empty repo 9 years ago
Andrey Nering 73474c043b Highlighting differences of lines in the diff view. 9 years ago
zhuharev 0d5dc8a064 typo fix 9 years ago
Kim "BKC" Carlbäcker 8fe5d887ae Changed name from inline to unified 9 years ago
Kim "BKC" Carlbäcker 0df39b33eb Implement Split Diff-View
- Unified/Inline Diff-View Selectable
9 years ago
Unknwon a62290de52 #2311 improve HTTP auth error message 9 years ago
Unknwon 8d58e06ad8 more fix on #2268 9 years ago
Unknwon 93f03707a7 #2283 set text/plain for non-binary files in raw mode 9 years ago
Unknwon a49af93faf #1692 APIs: Users Followers
- User profile un/follow
- List user's followers/following
9 years ago
Unknwon c62a6b7a12 #2014 allow switch branches between two orgs in compose PR 9 years ago
Unknwon 5ff6eedf5e #2251 fix button name 9 years ago