Ethan Koenig
a6fc1ad1af
Unit tests for models/pull.go
8 years ago
Ethan Koenig
feb1506600
Fix typos in models/ ( #576 )
8 years ago
typeless
c1cbf675c9
Speed up conflict checking in pull request creation ( #276 )
* Speed up conflict checking in pull request creation
In order to check conflicts of a PR, we set up a working tree by
cloning the base branch, which is quite time-consuming when the repository is huge.
Instead, this PR uses `git read-tree` and `git apply --check --cached` to check conflicts.
For #258
* Use $GIT_INDEX_FILE instead of --index-output to avoid lockfile problem
The lockfile gets renamed to the final destination after the operation
finishes. But it must be located in the same filesystem, which prevents
us from using /tmp.
* Temporary file names should not prefixed with '-'
8 years ago
Lunny Xiao
301dcd4876
update code.gitea.io/git ( #450 )
8 years ago
Alexander Lunegov
ace89e326a
Fix string format verbs ( #3637 )
8 years ago
Richie B2B
fc77e7c7bf
Remove fixed FIXME ( #408 )
8 years ago
Bwko
dd94092787
Fixes issue #283
Delete old temp local copy before we create a new temp local copy
8 years ago
Ethan Koenig
2872b66e89
Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
8 years ago
Kim "BKC" Carlbäcker
42bff5c4fd
Fix regression in PR-API #248 ( #349 )
* Fix #344 (regression in PR-API #248 )
8 years ago
Bwko
8a714b742a
Fix for #320
Suppress the error when we're removing a file that may not exist
8 years ago
Kim "BKC" Carlbäcker
b20aadde50
[API] Pull Requests ( #248 )
8 years ago
Bwko
6299533be7
Catch os... errors
8 years ago
Lunny Xiao
7bc49ac26e
typo
8 years ago
Kim "BKC" Carlbäcker
0287afefa6
Fix breakage from vendor-update
8 years ago
Lunny Xiao
ff0b322b16
golint fixed for models/pull.go ( #292 )
8 years ago
Lunny Xiao
b5a7692d63
Golint fixed for modules/setting ( #262 )
* golint fixed for modules/setting
* typo fixed and renamed UNIXSOCKET to UnixSocket
8 years ago
Sandro Santilli
70a8e6cb35
Lint action.go
8 years ago
Thibault Meyer
6ef997ca64
Normalize files with gofmt
8 years ago
Sandro Santilli
827c85ad85
Fix import path of go-sdk ( #141 )
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
8 years ago
Thibault Meyer
b747797b29
Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queries
# Conflicts:
# models/git_diff.go
# models/issue.go
# models/org.go
# models/pull.go
# models/repo.go
8 years ago
Thibault Meyer
5d29fda874
Rewrite XORM queries
8 years ago
Sandro Santilli
cb1b3cc148
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
8212aa70ba
Use MixedCase constant names
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
8 years ago
Thomas Boerger
91624c0e0e
Merge pull request #108 from go-gitea/go-sdk
Replaced gogits go-gogs-client with go-sdk
8 years ago
Thomas Boerger
a2f2fa9326
Replaced go-gogs-client with go-sdk imports
8 years ago
Sandro Santilli
78f6bac474
Fix typo in unused constant name
8 years ago
Sandro Santilli
43349da21a
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
3c9693defb
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
Matthias Loibl
929972fc8d
Fix imports found by goimports.
8 years ago
Rémy Boulanouar
9712d5ee89
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Unknwon
a9fc6fad64
modules/sync: add UniqueQueue
8 years ago
Unknwon
288bd17939
Web editor: support upload files
8 years ago
Unknwon
cc9a66db51
General code quality improvement
8 years ago
Unknwon
38c02e6ece
#2246 add HTMLURL to webhook type
- Fill Milestone and Assignee field when available in webhook payload
8 years ago
Unknwon
e3b20a093b
models/repo_editor: improve code quality
8 years ago
Unknwon
ca313c82d3
models/issue: improve quality and performance of NewIssue function
8 years ago
Unknwon
0c19e1f0ec
Web editor: improve edit file and diff preview
8 years ago
Richard Mahn
247e2fc567
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 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
6e37e3f3d7
Replace convert.To with APIFormat calls
8 years ago
Unknwon
f60f4fc56e
#2246 fully support of webhooks for pull request
8 years ago
lstahlman
c997baf983
Add test pull request task on merging a PR. Fixes #3396 ( #3425 )
8 years ago
Unknwon
d94b5f971e
#3393 fix missing sub-url prefix in relative avatar link
8 years ago
Unknwon
3b42ab0e57
Refactor User.Id to User.ID
9 years ago
Unknwon
d61bcdc10b
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
9 years ago
Unknwon
7b4e810eb5
#2854 fix no mail notification when issue is closed/reopened
9 years ago
Unknwon
bc2448daaa
models/repo: remove redundant info for some repo methods
RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
9 years ago
Unknwon
9f43369667
#2302 Replace time.Time with Unix Timestamp (int64)
9 years ago
Unknwon
b88ceff9bf
Update locales
9 years ago
Unknwon
ad53fffebe
#1597 fix pull request remote head can't update with force push
9 years ago
Unknwon
3d87381ce4
#1597 support pull requests in same repository
9 years ago