summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix some SimpleMDE (#9400)John Olheiser2019-12-172-0/+3
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* switch to fomantic-ui (#9374)techknowlogick2019-12-1768-3541/+105598
|
* Add description to labels on create issue (#9392)zeripath2019-12-171-1/+2
|
* Fixed errors logging in dump.go (#9218)Rychu2019-12-171-26/+32
| | | | | | | | | | | | * Fixed errors logging in dump.go * Replaced overlooked log.Fatal() with fatal() * Run make fmt on dump.go * Added missing new line to the fatal log * Run make fmt on dump.go
* 登陆 to 登录 (#9382)ZHOU Cheng2019-12-172-2/+2
|
* Fixed show repositories filter (#9234) (#9379)Alexey 〒erentyev2019-12-171-1/+1
| | | Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* fix wrong migration (#9381)Lunny Xiao2019-12-171-1/+2
|
* Sleep longer if request speed is over github limitation (#9335)Lunny Xiao2019-12-168-16/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Sleep longer if request speed is over github limitation * improve code * remove unused code * fix lint * Use github's rate limit remain value to determine how long to sleep * Save reset time when finished github api request * fix bug * fix lint * Add context.Context for sleep * fix test * improve code * fix bug and lint * fix import order
* AuthorizedKeysCommand should not query db directly (#9371)zeripath2019-12-166-50/+93
| | | | | | | | * AuthorizedKeysCommand should not query db directly * Update routers/private/internal.go * Fix import order
* Remove text from action-only webhooks (#9377)John Olheiser2019-12-174-72/+0
| | | | | | | | | | * Remove text from contextual webhooks Signed-off-by: jolheiser <john.olheiser@gmail.com> * Missed one in Telegram Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix double webhook for new PR (#9375)John Olheiser2019-12-161-2/+0
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add SimpleMDE to compare page for PRs (#9376)John Olheiser2019-12-161-0/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-1624-24/+0
|
* Add SimpleMDE and Fix Image Paste for Issue/Comment Editor (#9197)Benno2019-12-162-1/+59
| | | | | | | | * update #9132 and #8834 - add SimpleMDE for issue and fix image paste for comment editor * attache tribute to simplemde * update #9197 force simplemde file input event when backspace press
* Change target branch for pull request (#6488)Mario Lubenka2019-12-1619-19/+461
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adds functionality to change target branch of created pull requests Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use const instead of var in JavaScript additions Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Check if branches are equal and if PR already exists before changing target branch Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Make sure to check all commits Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Print error messages for user as error flash message Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Disallow changing target branch of closed or merged pull requests Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Resolve conflicts after merge of upstream/master Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Change order of branch select fields Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes duplicate check Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use ctx.Tr for translations Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Recompile JS Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use correct translation namespace Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Remove redundant if condition Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Moves most change branch logic into pull service Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Completes comment Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Add Ref to ChangesPayload for logging changed target branches instead of creating a new struct Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Revert changes to go.mod Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Directly use createComment method Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return 404 if pull request is not found. Move written check up Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Remove variable declaration Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return client errors on change pull request target errors Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return error in commit.HasPreviousCommit Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds blank line Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Test patch before persisting new target branch Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update patch before testing (not working) Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes patch calls when changeing pull request target Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes unneeded check for base name Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Moves ChangeTargetBranch completely to pull service. Update patch status. Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Set webhook mode after errors were validated Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update PR in one transaction Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Move logic for check if head is equal with branch to pull model Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds missing comment and simplify return Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adjust CreateComment method call Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Use ioutil.TmpDir for new created temp directory (#9368)Lunny Xiao2019-12-163-15/+12
| | | | | | * Use os.TmpDir for new created temp directory * fix error message
* remove unused method and rename createcommentWithNoAction (#9367)Lunny Xiao2019-12-169-89/+17
|
* Refactor comment (#9330)Lunny Xiao2019-12-1516-45/+144
| | | | | | | | * Refactor comment * fix test * improve code
* Fix cache problem on dashboard (#9358)Lunny Xiao2019-12-151-0/+2
|
* Combine Drone release steps (#9338)silverwind2019-12-152-34/+6
| | | | | | | | | | | | | | | | | * Combine Drone release steps Fixes missing JS/CSS because drone did unwanted parallelization of the js/css task and the generate task. Combined the tasks into one and made 'make release' work standalone. Fixes: https://github.com/go-gitea/gitea/issues/9324 Fixes: https://github.com/go-gitea/gitea/issues/9362 * move js/css to generate dependencies * remove unneccessary go-all target * remove go target as well
* Fix the intermittent TestGPGGit failures (#9360)zeripath2019-12-1528-10865/+11803
| | | | | | * Fix the intermittent TestGPGGit failures Reattempt to open the listener if the port is busy with a delay up to a second Switch from generating a private key each time, just use a known good key
* Add /milestones endpoint (#8733)Brad Albright2019-12-1514-7/+568
| | | | | Create a /milestones endpoint which basically serves as a dashboard view for milestones, very similar to the /issues or /pulls page. Closes #8232
* Fix missed change to GetManager() (#9361)zeripath2019-12-151-1/+1
|
* Sign protected branches (#8993)zeripath2019-12-156-97/+129
| | | | | | | | * Move SignMerge to PullRequest * Add approved signing mode * As per @guillep2k comment
* Graceful: Xorm, RepoIndexer, Cron and Others (#9282)zeripath2019-12-1537-290/+631
| | | | | | | | | | | | * Change graceful to use a singleton obtained through GetManager instead of a global. * Graceful: Make TestPullRequests shutdownable * Graceful: Make the cron tasks graceful * Graceful: AddTestPullRequest run in graceful ctx * Graceful: SyncMirrors shutdown * Graceful: SetDefaultContext for Xorm to be HammerContext * Avoid starting graceful for migrate commands and checkout * Graceful: DeliverHooks now can be shutdown * Fix multiple syncing errors in modules/sync/UniqueQueue & Make UniqueQueue closable * Begin the process of making the repo indexer shutdown gracefully
* test: command keys (#9357)Antoine GIRARD2019-12-152-1/+73
|
* Move PushToBaseRepo from models to services/pull (#9352)Lunny Xiao2019-12-156-53/+57
|
* Push to create repo (#8419)John Olheiser2019-12-157-50/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add push-create to SSH serv Signed-off-by: jolheiser <john.olheiser@gmail.com> * Cannot push for another user unless admin Signed-off-by: jolheiser <john.olheiser@gmail.com> * Get owner in case admin pushes for another user Signed-off-by: jolheiser <john.olheiser@gmail.com> * Set new repo ID in result Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update to service and use new org perms Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move pushCreateRepo to services Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix import order Signed-off-by: jolheiser <john.olheiser@gmail.com> * Changes for @guillep2k * Check owner (not user) in SSH * Add basic tests for created repos (private, not empty) Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-141-1/+11
|
* Move some repository methods from models to modules/repository (#9353)Lunny Xiao2019-12-1410-209/+245
| | | | | | * Move some repository methods from models to modules/repository * fix test
* DefaultBranch needs to be prefixed by BranchPrefix (#9356)zeripath2019-12-141-1/+1
|
* site admin could view org's members (#9346)Lunny Xiao2019-12-144-117/+136
|
* Default NO_REPLY_ADDRESS to DOMAIN (#9325)zeripath2019-12-133-2/+4
| | | | | | | | | | | * Default NO_REPLY_ADDRESS to DOMAIN The default NO_REPLY_ADDRESS was previously noreply.example.org This PR changes this to default to the default DOMAIN for gitea. * Change default to noreply.%(DOMAIN)s * Change default to "noreply" + Domain
* Remove release attachments which repository has been deleted (#9334)Lunny Xiao2019-12-132-0/+43
|
* Fix PR/issue redirects when having external tracker (#9339)David Svantesson2019-12-143-16/+16
| | | | | | | | * Make sure only issues are redirected to external tracker * Ensure correct redirects for pulls after dependency or watch. * NewIssuePost is always issues so no need to redirect with type.
* deps: update and fix chardet import (#9351)Antoine GIRARD2019-12-1416-10/+9
|
* Remove SavePatch and generate patches on the fly (#9302)zeripath2019-12-1316-404/+430
| | | | | | | | | | | | | | | | | | | | | | | | | | * Save patches to temporary files * Remove SavePatch and generate patches on the fly * Use ioutil.TempDir * fixup! Use ioutil.TempDir * fixup! fixup! Use ioutil.TempDir * RemoveAll LocalCopyPath() in initIntergrationTest * Default to status checking on PR creation * Remove unnecessary set to StatusChecking * Protect against unable to load repo * Handle conflicts * Restore original conflict setting * In TestPullRequests update status to StatusChecking before running TestPatch
* Update _headers (#9349)John Olheiser2019-12-131-1/+1
|
* Fix protected branch using IssueID (#9348)John Olheiser2019-12-131-1/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix nondeterministic behavior (#9341)Mura Li2019-12-132-2/+2
| | | | | | | | | The underlying implementation of os.exec uses channels and goroutines. It is possible to have time-variant error values returned from Cmd.Wait depending on which comes first. Also, the git subcommand and options should be separated tokens. Fixes a flaky test in modules/git/command_test.go
* Supports both CMD and PowerShell (#9344)Matthew Bramer2019-12-131-2/+2
| | | sc is aliased to Set-Content in PowerShell and these commands will not work without the `.exe` extension.
* Youtrack now supports Gitea (#9343)techknowlogick2019-12-121-0/+3
| | | | | | * Youtrack now supports Gitea * Update third-party-tools.en-us.md
* Fix notification page panic (#9337)jaqra2019-12-131-1/+1
|
* fix issue indexer not triggered when migrating a repository (#9332)Lunny Xiao2019-12-122-16/+22
|
* Make repository management section handle lfs locks (#8726)zeripath2019-12-1210-9/+367
| | | | | | | | | | | | | | | | | | | | * Make repository maangement section handle lfs locks * Add check attribute handling and handle locking paths better * More cleanly check-attributes * handle error * Check if file exists in default branch before linking to it. * fixup * Properly cleanPath * Use cleanPath * Sigh
* Fix bug that release attachment files not deleted when deleting repository ↵Lunny Xiao2019-12-121-7/+28
| | | | | | | | | | | | (#9322) * Fix bug that release attachment files not deleted when deleting repository * improve code * add quote * improve code
* [API] extend StopWatch (#9196)65432019-12-119-141/+482
| | | | | | | | | | | | | | * squash api-stopwatch * fix prepair logic! + add Tests * fix lint * more robust time compare * delete responce 202 -> 204 * change http responce in test too
* Add SyncTags to uploader interface (#9326)John Olheiser2019-12-123-17/+16
| | | | | | | | | | * Add sync tags to interface Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix revive Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Only sync tags after all batches (#9319)John Olheiser2019-12-113-7/+15
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* refactor(models/attachement): use getAttachmentsByUUIDs (#9317)Antoine GIRARD2019-12-114-20/+23
|