summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add ActionCommentPull action (#9456)mrsdizzie2019-12-229-9/+18
| | | | | | | | | | | * Add ActionCommentPull action Adds ActionCommentPull action to distinguish between a comment on an issue and on a pull request * Update modules/notification/action/action.go Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* fixed bug in GitTreeBySHA where pulling items from a page other than page 1 ↵Brad Albright2019-12-221-5/+5
| | | | would fail because the wrong var was used to set the entries to return (#9459)
* Issue with Migration rule v111 (#9449)Marge Bouvier2019-12-211-0/+3
| | | | | | | | | | | | * Issue with Migration rule v111 I was facing some issues with migration rule v111 * Update v111.go Fix pgsql test cases Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* Fix wrong notification on merge (#9450)guillep2k2019-12-201-1/+1
|
* Apache configuration for Let's Encrypt webroot validation (#9438)NZTim2019-12-201-0/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-201-0/+14
|
* Swagger info corrections (#9441)65432019-12-2052-648/+1262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * use numbers and not http.Status___ enum * fix test * add many missing swagger responses * code format * Deletion Sould return 204 ... * error handling improvements * if special error type ... then add it to swagger too * one smal nit * invalidTopicsError is []string * valid swagger specification 2.0 - if you add responses swagger can tell you if you do it right :+1: * use ctx.InternalServerError * Revert "use numbers and not http.Status___ enum" This reverts commit b1ff386e2418ed6a7f183e756b13277d701278ef. * use http.Status* enum everywhere
* Response for context on retry database connection (#9444)Lunny Xiao2019-12-201-0/+6
|
* chore: update license list (#9436)Antoine GIRARD2019-12-2041-0/+4325
| | | | | | go run scripts/generate-licenses.go Co-authored-by: zeripath <art27@cantab.net>
* chore: update gitignore list (#9437)Antoine GIRARD2019-12-1985-288/+1572
| | | Updated the gitignore list with the command : `go run scripts/generate-gitignores.go`
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-191-0/+8
|
* Fix NewCommitStatus (#9434)John Olheiser2019-12-192-4/+4
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add migration to sanitize repository original_url (#9423)mrsdizzie2019-12-192-0/+54
| | | | | | | | | | | | | | | | | | | | * Add migration to sanitize repository original_url During a large code move in #6200 the OriginalURL field was accidentially changed to be populated with the CloneAddr field which will contain the username and/or password provided during a migration. This behavior was fixed in previous PR #9097 and this migration will remove any authentication details that were stored in the database between those two. * use net/url to rebuild URL instead of strings.Replace * Update models/migrations/migrations.go * changes per lunny * make fmt
* Fix background reactions in the arc-green theme (#9421)Alexey 〒erentyev2019-12-183-6/+8
| | | | | | | | | | * Fixed arc-green theme reactions background Signed-off-by: Alexey Terentyev <axifnx@gmail.com> * Added MD5 AppVer Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* chore: update github.com/couchbase/gomemcached and ↵Antoine GIRARD2019-12-1812-207/+1562
| | | | github.com/couchbase/go-couchbase (#9419)
* Add .ignore file for search tools (#9417)silverwind2019-12-191-0/+5
| | | | | | | | | | | | | | | | | * Add .ignore file for search tools Tools like `rg` [1] and `ag` [2] support a `.ignore` file which defines files that are ignored during a recursive search. This adds the file which makes recursive file searches in the code base ignore files that are generally not desirable to search in like bindata, vendored files and compiled frontend assets. [1] https://github.com/BurntSushi/ripgrep/ [2] https://github.com/ggreer/the_silver_searcher * add leading slash * remove files already in .gitignore
* Use OriginalURL insead of CloneAddr in migration logging (#9418)mrsdizzie2019-12-181-2/+2
| | | | | CloneAddr will contain username and password credentials and they will get stored in system notices about failed migrations (and logs if trace is set). Replace with OriginalURL that doesn't have those.
* Change PR commits and diffs to use base repo rather than forked (#3648)Keith Rutkowski2019-12-181-70/+35
| | | | | | Change the repository referenced when displaying commits or diffs in pull request to the base repository. The forked repository may not be readable by users who can read the base repository. See discussion for (#3356).
* Address minor portability issues (#9414)dankm2019-12-181-1/+4
| | | | | | | | | * Add os specific sed for FreeBSD. * Replace hardcoded "make" with $(MAKE) Some systems don't use GNU make by default, and use something like gnumake or gmake. Respect that when determining the make version.
* Add warning to docs in order to avoid template mismatches (#9411)pseudocoder2019-12-181-1/+1
| | | | | | | | | | * DOCS: add mention of swagger api reference It's(swagger api link) mentioned vaguely in the FAQ but IMHO missing from API usage page. * Add warning to avoid template mismatches Related to https://github.com/go-gitea/gitea/issues/9320
* [Vendor Update] go-swagger v0.20.1 -> v0.21.0 (#9410)65432019-12-1815-65/+77
| | | | | | * Update go-swagger v0.20.1 -> v0.21.0 * go mod tidy
* Hide not allowed Reactions (#9387)65432019-12-1810-472/+150
| | | | | | | | | | | | * Hide not allowed Reactions * filter in query :D * use ` Co-Authored-By: Alexey 〒erentyev <axifnx@gmail.com> * update xorm v0.8.0 -> v0.8.1
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-181-0/+14
|
* Remove unsued struct (#9405)Lauris BH2019-12-181-6/+0
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-181-0/+147
|
* Fix Slack webhook payload title generation to work with Mattermost (#9378)Cornel2019-12-181-73/+86
| | | | | | * Fix Slack webhook payload title generation to work with Mattermost by using a markdown link instead of html * Fix Slack webhook attachment title and title link handling
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-182-0/+10
|
* 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
|