summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Versions (#10597)guillep2k2020-03-046-12/+11
| | | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Ensure executable bit is kept on the web editor (#10607)Antoine GIRARD2020-03-051-2/+10
| | | | Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* OAuth2: add Yandex provider (#8335) (#10564)Lauris BH2020-03-058-0/+256
| | | | | | | | | | | | | | | | | | | | | | * OAuth2: add Yandex provider (#8335) * remove changes from locale ru-RU * fmt modules/auth/oauth2/oauth2.go Co-Authored-By: 6543 <6543@obermui.de> * fix fmt * Update templates/admin/auth/new.tmpl * fix fmt Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix templates (#10596)John Olheiser2020-03-042-2/+2
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update mergebase in pr checker (#10586)zeripath2020-03-031-1/+1
|
* Fix LFS max file size enforcement (#10593)zeripath2020-03-031-0/+6
| | | | | Unfortunately the batch handler also needs to enforce max file size. Enforce max file size in batch handler
* [skip ci] Updated translations via CrowdinGiteaBot2020-03-0323-44/+0
|
* Frontend build improvements, fix Fomantic build (#10576)silverwind2020-03-032-13/+17
| | | | | | | | | | | | | | - add package-lock.json to webpack/fomantic prereqs making them always rebuild when dependencies change. - remove FOMANTIC_EVIDENCE. It seemed better to just track a few output files instead. - delete fomantic output files before build to prevent possible bugs in fomantic's build. - resolve WEBPACK_SOURCES only once for performance - reorder variables for clarity - use clean-all in Dockerfile - detect busybox for find syntax Fixes: https://github.com/go-gitea/gitea/issues/10569 Fixes: https://github.com/go-gitea/gitea/issues/10565 Fixes: https://github.com/go-gitea/gitea/issues/10570 Fixes: https://github.com/go-gitea/gitea/issues/10568
* Rename repo size sorting options (#10587)Felix W. Dekker2020-03-031-2/+2
|
* Remove unnecessary parentheses in template (#10583)zeripath2020-03-031-1/+1
| | | | | | Fix #10552 Co-authored-by: Lauris BH <lauris@nix.lv>
* Logout POST action (#10582)John Olheiser2020-03-024-3/+6
| | | | | | | | * Change logout to POST * Update for redirect Signed-off-by: jolheiser <john.olheiser@gmail.com>
* nextcloud oauth (#10562)techknowlogick2020-03-0211-3/+396
| | | Fix #7078
* Change default value of DefaultCommandExecutionTimeout to match cheatsheet ↵zeripath2020-03-021-1/+1
| | | | (#10581)
* Display pull request head branch even the branch deleted or repository ↵Lunny Xiao2020-03-0212-180/+184
| | | | | | | | | | | | | | | | deleted (#10413) * Display pull request head branch even the branch deleted or repository deleted * Merge getHeadRepo/loadHeadRepo and getBaseRepo/loadBaseRepo on pull and fill repo when pr.Issue.Repo is available * retrieve sha from pull head when pull request branch deleted and fix tests * Fix test * Ensure MustHeadRepoName returns empty string if no head repo Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-03-0225-0/+31
|
* Fix make find command (#10580)silverwind2020-03-021-1/+5
| | | | | | | | | | Continuation of https://github.com/go-gitea/gitea/pull/10577 This version also includes an additional fix for Darwin and FreeBSD which do not accept the `-regextype` option, but only `-E` and the argument order is specifically required like this for `-E` to work. Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Admin page for managing user e-mail activation (#10557)guillep2k2020-03-0212-22/+724
| | | | | | | | | | | | | | | | | | | | | | | | * Implement mail activation admin panel * Add export comments * Fix another export comment * again... * And again! * Apply suggestions by @lunny * Add UI for user activated emails * Make new activation UI work * Fix lint * Prevent admin from self-deactivate; add modal Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-03-021-0/+28
|
* Fix migration bug on v96.go (#10572)Lunny Xiao2020-03-021-16/+31
|
* Speed up make (#10560)silverwind2020-03-021-9/+9
| | | | | | | | | | | | | | | | * Speed up make - stop `find` from venturing into node_modules and other directories that do not contain *.go files - only run `find` once for *.go files - move image tempdir generation to that task - rename GOFILES to GO_SOURCES_OWN for consistency and to indicate that vendor files are not included - pre-resolve FOMANTIC_SOURCES * exclude more Co-authored-by: Lauris BH <lauris@nix.lv>
* Remove Unused Functions (#10516)65432020-03-0210-179/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * remove ReplaceLeft * remove GetRepositoryByOwnerAndName chainload to models.GetRepositoryByOwnerAndName * remove CheckUnitUser chainload to models.CheckUnitUser * remove MakeAssigneeList * remove DownloadDiff & DownloadPatch -> DownloadDiffOrPatch * remove GetRandomBytesAsBase64 * remove PushUpdateDeleteTags * remove GetUserByKeyID (you still can resolve user by "k, err := GetPublicKeyByID; userID := k.OwnerID") * remove BasicAuthEncode from struct package -> same function in modules/base/tools ! * remove UserID from api.utils * remove unused func from structs package
* Fix redirection path if Slack webhook channel is invalid (#10548)James Lakin2020-03-011-2/+2
| | | | | | The path to the hook config is already defined by orgRepoCtx Co-authored-by: Lauris BH <lauris@nix.lv>
* vendor: update github.com/yuin/goldmark to v1.1.24 (#10551)Antoine GIRARD2020-03-014-5/+9
|
* Fix 404 after activating secondary email (#10547)Andreas Shimokawa2020-02-291-1/+1
|
* Fix appearance of unsigned sha box in view_list (#10543)zeripath2020-02-291-4/+4
| | | | | | Unfortunately the fix in #10511 was slightly incorrect and placed the detail box at one level too far out. Signed-off-by: Andrew Thornton <art27@cantab.net>
* issue search on my related repositories (#9758)Brad Albright2020-02-294-54/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * adding search capability to user's issues dashboard * global issue search * placement of search bar on issues dashboard * fixed some bugs in the issue dashboard search * added unit test because IssueIDs option was added to UserIssueStatsOptions * some renaming of fields in the issue dashboard code to be more clear; also trying to fix issue of searching the right repos based on the filter * added unit test fro GetRepoIDsForIssuesOptions; fixed search lost on pagination; using shown issue status for open/close count; removed some debugging * fix issue with all count showing incorrectly * removed todo comment left in by mistake * typo pulling wrong count * fxied all count being off when selecting repositories * setting the opts.IsClosed after pulling repos to search, this is done so that the list of repo ids to serach for the keyword is not limited, we need to get all the issue ids for the shown issue stats * added "accessibleRepositoryCondition" check on the query to pull the repo ids to search for issues, this is an added protection to ensure we don't search repos the user does not have access to * added code so that in the issues search, we won't use an in clause of issues ids that goes over 1000 * fixed unit test * using 950 as the limit for issue search, removed unneeded group by in GetRepoIDsForIssuesOptions, showing search on pulls dashboard page too (not just issues) Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* adds API endpoints to manage OAuth2 Application (list/create/delete) (#10437)Gustavo Marin2020-02-299-1/+421
| | | | | | | | | | | | | | | | | | | | | | | | | | * add API endpoint to create OAuth2 Application. * move endpoint to /user. Add swagger documentations and proper response type. * change json tags to snake_case. add CreateOAuth2ApplicationOptions to swagger docs. * change response status to Created (201) * add methods to list OAuth2 apps and delete an existing OAuth2 app by ID. * add APIFormat convert method and file header * fixed header * hide secret on oauth2 application list * add Created time to API response * add API integration tests for create/list/delete OAuth2 applications. Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [Refactor] move APIFormat() of Issue and Label to convert package (#10423)65432020-02-2811-145/+167
| | | | | | | | | | | | | | | | | | | * Label: delete .APIFormat() and use convert.ToLabel() * move issue APIFormat too * add missing one * move TEST too * handle error -> return empty APIIssue * Apply suggestions from code review Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Handle panic in indexer initialisation better (#10534)zeripath2020-02-282-0/+19
| | | | | * Handle panic in indexer initialisation better * as per @guillep2k
* Relax sanitization as per https://github.com/jch/html-pipeline (#10527)zeripath2020-02-282-9/+41
| | | | | | | Looking at github/markup#245 it is clear that GH uses https://github.com/jch/html-pipeline to sanitize. This PR relaxes our sanitization to more closely match this. Fixes #10471 and likely others...
* Prevent accidential selection of language stats bar (#10537)silverwind2020-02-291-0/+1
|
* Set correct content_type value for Gogs/Gitea webhooks (#9504) (#10456)Jeff Stein2020-02-282-41/+41
| | | | | The content_type value was defaulting to the string value of the ContentType, not the integer value as expected by the backend.
* vendor: unknown/cae move to taged version (#10521)65432020-02-283-4/+4
|
* goldmark v1.1.19 -> v1.1.23 (#10519)65432020-02-2818-120/+1902
| | | vendor update
* head.tmpl og:image picture location (#10531)FreeCipher2020-02-281-1/+1
| | | og:image picture location
* update: macaron cores,gzip,session (#10522)65432020-02-2847-349/+2154
| | | | Co-authored-by: zeripath <art27@cantab.net>
* inform participants on UI too (#10473)65432020-02-285-28/+54
| | | | | | | | * inform participants on UI too * ajust test * refactor getParticipantIDsByIssue
* Add max-file-size to LFS (#10463)zeripath2020-02-284-0/+10
| | | | | | | | | | | | | | | * Add max-file-size to LFS * Update modules/lfs/server.go * As per @silverwind Co-Authored-By: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Use media links for img in post-process (#10515)zeripath2020-02-281-5/+29
| | | | | | * use media links for img in post-process * do not visit text of anchors
* Fix the signing icon in the view_list.tmpl page (#10511)zeripath2020-02-272-6/+6
| | | | | | | | | | | | | | | * Fix the view_list.tmpl page * fix-centerlock * Update web_src/less/_base.less as per @silverwind Co-Authored-By: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Fix potential bugs (#10513)65432020-02-277-10/+14
| | | | | | | * use e if it is an option * potential nil so check err first * check err first * m == nil already checked
* Org action fixes and form cleanup (#10512)John Olheiser2020-02-276-15/+26
| | | | | | | | * More org fixes * Move form action query to inputs Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Show Signer in commit lists and add basic trust (#10425)zeripath2020-02-2716-70/+416
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Show Signer in commit lists and add basic trust Show the avatar of the signer in the commit list pages as we do not enforce that the signer is an author or committer. This makes it clearer who has signed the commit. Also display commits signed by non-members differently from members and in particular make it clear when a non-member signer is different from the committer to help reduce the risk of spoofing. Signed-off-by: Andrew Thornton <art27@cantab.net> * ensure orange text and background is available Signed-off-by: Andrew Thornton <art27@cantab.net> * Update gpg_key.go * Update models/gpg_key.go * Apply suggestions from code review * Require team collaborators to have access to UnitTypeCode * as per @6543 * fix position of sha as per @silverwind * as per @guillep2k
* Use [:space:] instead of \s (#10508)zeripath2020-02-271-1/+1
|
* [BugFix] Avoid mailing explicit unwatched (#10475)65432020-02-272-4/+12
| | | | | | | | | | * Avoid mailing explicit unwatched * CI.restart() * back to normal Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add fluid-icon (#10491)silverwind2020-02-271-0/+1
| | | | | | | | | | | | This provides Firefox (and possible other browsers) with a high-resolution rich icon, in place of the previously removed apple-touch-icon without having to use that one as it lacks an alpha channel. This is the same method GH uses. https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/UI_considerations#Rich_icons Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <matti@mdranta.net>
* Fix SQLite concurrency problems by using BEGIN IMMEDIATE (#10368)guillep2k2020-02-273-3/+3
| | | | | | | | | * Test locking immediate for SQLite3 * fix url field separator Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* Show the username as a fallback on feeds if full name is blank (#10438)James Lakin2020-02-262-5/+10
| | | | | Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Tweak language stats bar (#10487)silverwind2020-02-262-12/+24
| | | | | | | | | - Ensure bar does not overflow parent - Remove unneccessary borders/background - Fix shaky animation caused by JS animation miscalculation by setting fixed height on the summary box. Box itself is still shaky during animation, but better it then the whole page. Fixes: https://github.com/go-gitea/gitea/issues/10474
* Fixed formatting (#10485)Karsten Lehmann2020-02-261-1/+1
| | | | Co-authored-by: John Olheiser <john.olheiser@gmail.com>