Sandro Santilli
12619c74a7
Force-push to base repo's ref/pull/#/head ( #3393 )
* Force-push to base repo's ref/pull/#/head
Fixes force-pushing to pull request branches, otherwise failing with:
[...gitea/models/pull.go:1022 AddTestPullRequestTask()] [E] PushToBaseRepo: Push: exit status 1 - To /path/to/gitea-repositories/org/repo.git
! [rejected] issue-fix -> refs/pull/20/head (non-fast-forward)
* format
7 years ago
Lauris BH
5be20e7d75
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
Lauris BH
7e6c1c22ee
Remove hardcoded paths to fix randomly failing tests ( #3347 )
* Remove hardcoded paths to fix randomly failing tests
* Use correct function for merge path
7 years ago
Lauris BH
c91f81de8d
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
Lunny Xiao
a5c212cd1e
Refactor struct's time to remove unnecessary memory usage ( #3142 )
* refactor struct's time to remove unnecessary memory usage
* use AsTimePtr simple code
* fix tests
* fix time compare
* fix template on gpg
* use AddDuration instead of Add
7 years ago
Kazuki Sawada
06e097c7ea
table `pull_request` wasn't updated correctly ( #2649 )
* Fix: table `pull_request` won't be updated correctly
* Update also status column when manually merged
7 years ago
Ethan Koenig
a186f896eb
Replace deprecated Id method with ID ( #2655 )
7 years ago
Lunny Xiao
c2b107fcb0
Use AfterLoad instead of AfterSet on Structs ( #2628 )
* use AfterLoad instead of AfterSet on Structs
* fix the comments on AfterLoad
* fix the comments on action AfterLoad
7 years ago
Lunny Xiao
1a57c8f911
Reduce usage of allcols on update ( #2596 )
* reduce usage of allcols on update
* fix bug and tests
7 years ago
Ethan Koenig
734935d94f
Improve issue search ( #2387 )
* Improve issue indexer
* Fix new issue sqlite bug
* Different test indexer paths for each db
* Add integration indexer paths to make clean
7 years ago
Ethan Koenig
edc7ed09f5
Fix SQL bug in models.PullRequests
8 years ago
Bwko
d6e009cdaf
Fix exit status 1 not handled @ getMergeCommit
8 years ago
Ethan Koenig
8e97389958
Fix fast-forward PR bug ( #1989 )
8 years ago
Lauris BH
625f482b25
Refactor session close as xorm already does everything needed internally ( #2020 )
8 years ago
Lauris BH
0d9a7a93f3
Wrong PR merge commit ID saved ( #2007 )
8 years ago
Ethan Koenig
8d55d51475
Don't ignore error in getMergeCommit ( #1843 )
8 years ago
Ethan Koenig
f41d919144
Update code.gitea.io/git ( #1824 )
* Update code.gitea.io/git
* Update function calls
* govendor fetch
8 years ago
Ethan Koenig
66ee05fd53
Fix activity feed ( #1779 )
* Fix activity feed
Preserve actions after user/repo name change
* Add missing comment
* Fix migration, and remove fields completely
* Tests
8 years ago
Diep Pham
767ab45005
fixes wrong after field in webhook payload
when merge pull request
8 years ago
Lunny Xiao
6f6395522a
fix potential lock when sqlite ( #1647 )
8 years ago
Jonas Östanbäck
cb068099b6
Add create_at and updated_at in PR json ( #1616 )
* Move new fields to object creation (use reference)
* Vendor: Update SDK
8 years ago
Mura Li
3e9ae8b124
Add length check for the return string ( #1420 )
* Add length check for the return string
* Differentiate error paths and logging messages
* Rectify error message
8 years ago
Ethan Koenig
f8e89a7034
LableIDs -> LabelIDs ( #1088 )
8 years ago
Lunny Xiao
644cd620cc
fix setMerged for remove unnecessary db connection ( #1067 )
8 years ago
Bwko
a6b17af490
Check for manual merging of a pull request ( #719 )
When an open pull request got manually merged mark the pull request as
merged
8 years ago
Gabriel Jackson
3e7f8ec9d3
Cleanup log messaging
This change corrects a few logging issues:
* Standardized formatting errors with '%v'.
* Standardized failure warning word usage.
* Corrected an instance of using the standard log library when
the gitea log library should be used instead.
8 years ago
Lunny Xiao
c8ee0b9df0
add milestone changed traker on issue view ( #804 )
8 years ago
Thomas Boerger
9f98dea69b
Allow custom public files ( #782 )
* Allow custom public files
* Gofmt code, lots of places not related to this pr
8 years ago
Matthias Loibl
799bb6e441
Refactor process package and introduce ProcessManager{} with tests ( #75 )
* Add a process.Manager singleton with process.GetManager()
* Use process.GetManager everywhere
* Fix godoc comments for process module
* Increment process counter id after locking the mutex
8 years ago
Andrey Nering
867864eb4c
Merge pull request #555 from ethantkoenig/tests/pull
Unit tests for models/pull.go
8 years ago
Andrey Nering
57b5bd07c9
Create missing database indexes ( #596 )
8 years ago
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