- 08 May, 2020 4 commits
-
-
赵智超 authored
If user create pull review through api but not set CommitID, I think it's necessary to use last headCommitID as default seting, or this review will be considered as stale review which is wrong Signed-off-by:
a1012112796 <1012112796@qq.com>
-
zeripath authored
There is a potential memory leak in `Workerpool` due to the intricacies of `time.Timer` stopping. Whenever a `time.Timer` is `Stop`ped its channel must be cleared using a `select` if the result of the `Stop()` is `false`. Unfortunately in `Workerpool` these were checked the wrong way round. However, there were a few other places that were not being checked. Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
techknowlogick <techknowlogick@gitea.io> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
zeripath authored
Thanks to @simon-on-gh for tracking down the issue. Fix #11200 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
L0veSunshine authored
* split some words from template * split some words from template * add " " to mustache expression * split some words from template Co-authored-by:
zeripath <art27@cantab.net> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 07 May, 2020 6 commits
-
-
zeripath authored
If the browser supports EventSource switch to use this instead of polling notifications. Signed-off-by: Andrew Thornton art27@cantab.net
-
6543 authored
-
zeripath authored
* Manage port in submodule refurl Fix #11304 Signed-off-by:
Andrew Thornton <art27@cantab.net> * fix lint Signed-off-by:
Andrew Thornton <art27@cantab.net> * URLJoin is causes a cyclic dependency and possibly isn't what what we want anyway Signed-off-by:
Andrew Thornton <art27@cantab.net> * Protect against leading .. in scp syntax Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
6543 authored
prevent double entries in results of GetOrgsCanCreateRepoByUserID I first try to only add GroupBy directly but xorm return broken user objects ... ... solution was to just query related UserIDs(OrgIDs) first and return OrgUsers based on this IDs close #11258 Co-authored-by:
zeripath <art27@cantab.net>
-
GiteaBot authored
-
opyale authored
Add an advanced label set to contrib
-
- 06 May, 2020 1 commit
-
-
6543 authored
Although default branch is not offered for deletion in the templates, we need to prevent it both at the router level and in the pre-receive hook. Co-authored-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
- 05 May, 2020 4 commits
-
-
6543 authored
Fix #11280
-
zeripath authored
There is an unfortunate signature change with the api.Context NotFound function; whereas the normal modules/context/Context NotFound function requires an error or nil, the api.Context variant will panic with an NPE if a nil is provided. This PR will allow api.Context.NotFound to tolerate a being passed a nil. Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
赵智超 authored
That's because many notic have more than one lines. So I think pre is more better to used in here than p Signed-off-by:
a1012112796 <1012112796@qq.com>
-
silverwind authored
Contains an apparently important bug fix for highlight.js [1], otherwise nothing of interest. [1] https://github.com/highlightjs/highlight.js/releases/tag/10.0.2 Co-authored-by:
zeripath <art27@cantab.net>
-
- 04 May, 2020 4 commits
-
-
Kyle Evans authored
* routers: make /compare route available to unauthenticated users Remove some bits of the compare interface if the user isn't signed in. Notably, they don't need to see the "New Pull Request" button box nor the hidden form that would fail to submit due to the POST request continuing to require proper privileges. Follow-up commits will improve the UI a bit around this, removing some "Pull Request" verbiage in favor of "Compare." * ui: home: show "compare" button for unauthenticated users This change requires pulling in the BaseRepo unconditionally and recording if the pull request is in-fact not allowed (.PullRequestCtx.Allowed). If the user isn't allowed to create a pull request, either because this isn't a fork or same-fork branch PRs aren't allowed, then we'll name the button "Compare" instead of "Pull Request." * ui: branch list: use the new Compare language when available When viewing the branch listing as an unauthenticated user, you'll get "Pull Request" buttons. use the new "Compare" verbiage instead, which matches GitHub behavior when you can't issue a pull request from the branches. Co-authored-by:
zeripath <art27@cantab.net> Co-authored-by:
guillep2k <18600385+guillep2k@users.noreply.github.com>
-
zeripath authored
Fix #11212 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
Adrian POIGET authored
In the /install form, the value for SSH Server Domain is taken form the DOMAIN variable and overwrites SSH_DOMAIN environment variable set the first time if nothing done Co-authored-by:
Adrian POIGET <adrian.poiget@viveris.fr>
-
guillep2k authored
Co-authored-by:
Guillermo Prandi <guillep2k@users.noreply.github.com>
-
- 03 May, 2020 5 commits
-
-
Cirno the Strongest authored
-
zeripath authored
* Add test Signed-off-by:
Andrew Thornton <art27@cantab.net> * Restore checkbox rendering and prevent poor sanitization of spans Signed-off-by:
Andrew Thornton <art27@cantab.net> * Also fix preview context Signed-off-by:
Andrew Thornton <art27@cantab.net> * Also fix preview context Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
Kyle Evans authored
Previously, this required authentication, but there's not actually any privileged information on this page. Move the endpoint out of the group that requires sign-in. It still requires the ability to read issues and pull requests, so private repositories (for instance) will not be exposed. Fixes #10312 Fixes #11233
-
GiteaBot authored
-
Kyle Evans authored
This is a boolean flag; simply checking if it's set isn't enough, we must check the value as well. Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
- 02 May, 2020 6 commits
-
-
zeripath authored
* Make sure that sendmail processes register with the process manager * Provide a timeout for these (initially of 5 minutes) * Add configurable value and tie in to documentation * Tie in to the admin config page. Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
GiteaBot authored
-
Lunny Xiao authored
-
zeripath authored
Fix #10525 Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
GiteaBot authored
-
6543 authored
* API: Added pull review read only endpoints * Update Structs, move Conversion, Refactor * refactor * lint & co * fix lint + refactor * add new Review state, rm unessesary, refacotr loadAttributes, convert patch to diff * add DeletePullReview * add paggination * draft1: Create & submit review * fix lint * fix lint * impruve test * DONT use GhostUser for loadReviewer * expose comments_count of a PullReview * infent GetCodeCommentsCount() * fixes * fix+impruve * some nits * Handle Ghosts
👻 * add TEST for GET apis * complete TESTS * add HTMLURL to PullReview responce * code format as per @lafriks * update swagger definition * Update routers/api/v1/repo/pull_review.go Co-authored-by:David Svantesson <davidsvantesson@gmail.com> * add comments Co-authored-by:
Thomas Berger <loki@lokis-chaos.de> Co-authored-by:
David Svantesson <davidsvantesson@gmail.com>
-
- 01 May, 2020 2 commits
-
-
mrsdizzie authored
Now that emojify.js has been removed, get rid of all instances of has-emoji class that was only used for that. Support for rendering shortcodes should remain in all of these places so it should still work the same. Co-authored-by:
6543 <6543@obermui.de> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
Kyle Evans authored
Not all dumps need to include the logs, in a similar vain to not all dumps needing to include repositories; these may be subject to different backup mechanisms/constraints. Add a simple option to let them be excluded from the dump to simplify workflows that need to exclude them or not collect in the first place. Co-authored-by:
techknowlogick <techknowlogick@gitea.io> Co-authored-by:
zeripath <art27@cantab.net>
-
- 30 Apr, 2020 8 commits
-
-
6543 authored
* [API] issue subscription indicate by http status * CI.restart()
-
zeripath authored
Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
6543 authored
Following on from #11008 refactor UpdateOAuth2Application
-
GiteaBot authored
-
Andrew Bezold authored
* Fix creation of Org repos Fix go-gitea#9269 * Change variable name to appease linter * Update PR with suggestions Add a note for user.CanCreateRepo() about failure assumptions Change repo.create help message Co-authored-by:
guillep2k <18600385+guillep2k@users.noreply.github.com>
-
silverwind authored
* add a 'this' to issue close/reopened messages * add 'this issue/pull request' and create new localization entries Co-authored-by:
Lauris BH <lauris@nix.lv>
-
Jason Duan authored
-
Km authored
Co-authored-by:
guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by:
6543 <6543@obermui.de> Co-authored-by:
Lauris BH <lauris@nix.lv>
-