200 Commits (ac701637b42d2d6bb5fe9b258f3f54959b6a505e)

Author SHA1 Message Date
kolaente 1bff02de55 Added dependencies for issues (#2196) (#2531) 6 years ago
kolaente 95f2e2b57b Multiple assignees (#3705) 6 years ago
Lauris BH ca4f5c37e6
Fix branch deletion for squash or rebase merged pull requests (#3425) 7 years ago
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
7 years ago
Morgan Bazalgette 65861900cd Handle refactor (#3339)
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound

* Change Handle(403) to NotFound, avoid using macaron's NotFound
7 years ago
Deyong Zhu d663cef2a5 Fix branch name escaping in compare url (#3311)
* Fixes #3303
7 years ago
Sandro Santilli 44053532bb Serve .patch for pull requests (#3305)
* Serve .patch for pull requests

Closes #3259
Updates "git" module, for GetFormatPatch

* Handle io.Copy error
7 years ago
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
7 years ago
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
7 years ago
Ethan Koenig 515cdaa85d Fix ignored errors when checking if organization, team member (#3177) 7 years ago
harry 03ec35ed79 Mention completion for issue editor. (#3136)
* new issue mention

* Mention completion on new issue and view issue page.

* Code format.

* Require tribute in pull request page.
7 years ago
Lauris BH 0d4c63fd70
Fix go-get, src and raw urls to new scheme (#2978) 7 years ago
Ethan Koenig 40c545ddbc Fix files/commits of merged PRs (#2937) 7 years ago
Lunny Xiao cdc4600725
Fix fork repository cycle to self (#2860)
* fix fork repository cycle to self

* rename testForkRepo to traverseParentRepo
7 years ago
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
7 years ago
Kazuki Sawada e1266a19c8 Change pull description text (#2075) (#2646)
* Change pull description text

* move duplicated code into helper function
7 years ago
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
7 years ago
Ethan Koenig b689bb6180 Webhooks for repo creation/deletion (#1663)
* Webhooks for repo creation/deletion

* add createHookTask

* Add handles for GetSlackPayload and GetDiscordPayload
7 years ago
Bwko 8f171210b9 Revert "Add ability to fork your own repos (#761)" (#2193) 7 years ago
Kim "BKC" Carlbäcker cc6b3f60c6 Fix displaying commits and files of PR created from now deleted fork (#2023)
Fix displaying commits and files of PR created from now deleted fork
7 years ago
Lauris BH 0a5dc640a1 Make branch deletion URL more like GitHub's, fixes #1397 (#1994)
* Make branch deletion URL more like GitHub's, fixes #1397

* Add PR branch deletion integration test

* Do not allow deleting protected branch

* Change http error code to 403 if user has no write rights to repository

* Add check to not panic if forked repository has alrady been deleted
7 years ago
Lauris Bukšis-Haberkorns 63504bf132
Fix displaying commits and files of PR created from now deleted forked repository 7 years ago
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
7 years ago
Lunny Xiao d2165a5890 fix compare button failed when there is no fork repos (#1104) 7 years ago
Andrey Nering 27d30f1a61 Notifying on open PR, and Close/Reopen/Merge issue or PR 8 years ago
Bwko e08421017c Add ability to fork your own repos (#761) 8 years ago
Manuel Kuhlmann dc3ff9f2ab Rename .gogs to .gitea and comply with github template guidelines (#568) (#582)
Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>
8 years ago
Lunny Xiao 70900bd167 bug fixed for fork repos (#560) 8 years ago
Lunny Xiao 2343feadd4 resolved #310: hide fork to self (#323) 8 years ago
Lunny Xiao ec87a75c00 golint fixed for modules/auth 8 years ago
Lunny Xiao 94da472717 Golint fixed for modules/setting (#262)
* golint fixed for modules/setting

* typo fixed and renamed UNIXSOCKET to UnixSocket
8 years ago
Lunny Xiao 3917ed45de golint fixed for routers (#208) 8 years ago
Andrey Nering 739f07c98e Remember diff view style (#163) 8 years ago
Thibault Meyer ddee4c8b58
Normalize files with gofmt 8 years ago
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
8 years ago
Sandro Santilli 80eea77953 Use MixedCase constant names
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
8 years ago
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
8 years ago
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)
8 years ago
Sandro Santilli f36544f98d Merge branch 'master' into feature/goimports 8 years ago
Andrey Nering bd898a10f8 Refactor editorconfig middleware 8 years ago
Matthias Loibl 1f44b01e2a Fix imports found by goimports. 8 years ago
Andrey Nering 984fa8d83b Fix 500 when repo has invalid .editorconfig
Creating a notice instead
8 years ago
Andrey Nering 87b593f93e Show issue/PR number on title 8 years ago
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs (#37) 8 years ago
Unknwon 6f9a95f830 #2246 add HTMLURL to webhook type
- Fill Milestone and Assignee field when available in webhook payload
8 years ago
Unknwon 61e27dedf7 #3466 fix response of pull request form validation error 8 years ago
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
8 years ago
Unknwon 3f7f4852ef #2246 fully support of webhooks for pull request 8 years ago
Andrey Nering dbed39ba05 On showing diff/file, use the tab_width specified on .editorconfig, if any (#3241)
Closes #3182
8 years ago
Unknwon 1f2e173a74 Refactor User.Id to User.ID 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 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
Andrey Nering 743d22669a Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff (#3174) 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
Unknwon 0e9bc2d410 Fix pull request availability check 8 years ago
Unknwon a5b0400be7 #1146 finish new access rights for collaborators 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
Martin Hartkorn 51f15880d1 Call PushToBaseRepo() also on Pull Request creation and not only on git push 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
Andrey Nering 2bfb8bb5fd Enable sintax highlighting on diff view. Close #733 9 years ago
Andrey Nering 5deb726f3f Refactoring of inline diff computing to prevent empty diff box. Fix #2489 9 years ago
Andrey Nering ee5d6fb025 Compute inline diff for pull request view, too. Fix #2462 9 years ago
Unknwon c62a6b7a12 #2014 allow switch branches between two orgs in compose PR 9 years ago
Unknwon 9cd16c5b12 #1692 add organization APIs 9 years ago
Unknwon 19423957b1 rename import path 9 years ago
Unknwon 3362b3a44f fix possible disclosure 9 years ago
Unknwon c6083c335e #1612 Ability to send mail when a new pull request is submitted 9 years ago
Unknwon 9a2e43bff2 move out git module and #1573 send push hook 9 years ago
Unknwon c50a3503e6 introduce git-shell 9 years ago
Unknwon b2fb7e3fd2 more HTTP clone word fix 9 years ago
Unknwon 81d7359fdd fix #1981 9 years ago
Unknwon c3ba5590c9 Reopen PR need retest patch 9 years ago
Unknwon 0fbb8c8826 New push to head repo of head branch: regenerate patch and retest apply 9 years ago
Unknwon fc7959d3bc New/reopen PR checks if there is any unmerged and open PR 9 years ago
Unknwon 4dc6285715 add new status: checking 9 years ago
Unknwon 215920772a save PR info as patch and minor fix on PR 9 years ago
Unknwon 119dec51f2 Mirror repository should not allow fork 9 years ago
Unknwon 2a2a8cd619 ui and pulls index fix 9 years ago
Unknwon 83dc2468f5 finish initial version of pull request 9 years ago
Unknwon 5da306c0e5 tmp: fix issue open count 9 years ago
Unknwon 953bb06857 basic PR feature 9 years ago
Unknwon 1abfe4e05f PR: nothing to commit and has pull request check 9 years ago
Unknwon 37e0cee877 finish PR UI 9 years ago
Unknwon ebf1bd4f51 add view pull desc 9 years ago
Unknwon 8c046073a8 work on PR conversation 9 years ago
Unknwon 670ade9a61 #1206 does not allow fork bare repo 9 years ago
Unknwon 1ca257ad9f rename fields 9 years ago
Unknwon dea3a8c6a4 WIP: create PR - choose branch 9 years ago
Unknwon e3bdfd51ff better fork permission check 9 years ago
Unknwon 9db4acc62e improve fork process 9 years ago
Unknwon 8dd07c0ddd New UI merge in progress 10 years ago
Unknown 314193029a Use constants to name template file 10 years ago
Unknown d0e6a4c25a Change new martini impot path 10 years ago
Unknown 2fa8d0c8dd Added create issue 10 years ago
Unknown 59bbddb318 Mirror fix 10 years ago
FuXiaoHei 137538e54b refactor repo.go 10 years ago