summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add changelog for v1.11.3 (#10700)v1.11.3Lunny Xiao2020-03-101-0/+7
| | | | | | | | | | | | | | * Add changelog for v1.11.3 * Apply suggestions from code review Co-Authored-By: John Olheiser <john.olheiser@gmail.com> * Update CHANGELOG.md Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* cross compile using go 1.13.x (#10684)techknowlogick2020-03-091-2/+2
|
* Prevent panic in stopwatch (#10670) (#10673)zeripath2020-03-081-2/+5
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* add changelog for v1.10.5 (#10628) (#10632)Lunny Xiao2020-03-081-0/+5
|
* Fix bug on pull view when required status check no ci result (#10648) (#10651)Lunny Xiao2020-03-071-0/+5
|
* Changelog for v1.11.2 (#10627)v1.11.2zeripath2020-03-062-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Changelog for v1.11.2 * Update CHANGELOG.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update CHANGELOG.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update CHANGELOG.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update CHANGELOG.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update CHANGELOG.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update CHANGELOG.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update CHANGELOG.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * as per @jolheiser * as per @jolheiser x2 * Update CHANGELOG.md Co-Authored-By: John Olheiser <john.olheiser@gmail.com> * Update CHANGELOG.md Co-Authored-By: John Olheiser <john.olheiser@gmail.com> * another security pr * another security pr Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* Issue writers perms can modify issues (#10623) (#10626)John Olheiser2020-03-062-1/+3
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Handle deleted base branch in PR (#10618) (#10619)Lauris BH2020-03-051-0/+10
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Delete dependencies when deleting a repository (#10608) (#10616)zeripath2020-03-051-0/+12
| | | | | | | | Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net>
* Ensure executable bit is kept on the web editor (#10607) (#10614)Lunny Xiao2020-03-051-2/+10
| | | | | | Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* Update mergebase in pr checker (#10586) (#10605)guillep2k2020-03-041-1/+1
|
* Build gitea1.11 with go1.13 (#10584)techknowlogick2020-03-031-3/+3
|
* Logout POST action (#10582) (#10585)John Olheiser2020-03-034-3/+6
| | | | | | | | | * Change logout to POST * Update for redirect * Revert octicon to font Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Admin page for managing user e-mail activation (#10557) (#10579)guillep2k2020-03-0212-22/+726
| | | | | | | | | | | | | | | | | | * Admin page for managing user e-mail activation (#10557) * Implement mail activation admin panel * Apply suggestions by @lunny * Add UI for user activated emails * Prevent admin from self-deactivate; add modal Co-authored-by: zeripath <art27@cantab.net> * Fix pagination options downgrade Co-authored-by: zeripath <art27@cantab.net>
* Fix migration bug on v96.go (#10572) (#10573)guillep2k2020-03-021-16/+31
| | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix redirection path if Slack webhook channel is invalid (#10566)James Lakin2020-03-021-2/+2
| | | The path to the hook config is already defined by orgRepoCtx
* head.tmpl og:image picture location (#10531) (#10556)65432020-03-011-1/+1
| | | | | | | | | | | | * head.tmpl og:image picture location (#10531) og:image picture location * CI.restart() * CI.restart() Co-authored-by: FreeCipher <admin@freecipher.com>
* Fix 404 after activating secondary email (backport of #10547) (#10553)Andreas Shimokawa2020-03-011-1/+1
|
* Fix appearance of unsigned sha box in view_list (#10543) (#10544)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>
* Show Signer in commit lists and add basic trust (#10425) (#10524)zeripath2020-02-2815-70/+418
| | | | | | | | | | | | | | | | | | | | | | | | Backport #10425 Backport #10511 * Show Signer in commit lists and add basic trust (#10425) 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> Fix the signing icon in the view_list.tmpl page (#10511) Co-Authored-By: silverwind <me@silverwind.io> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Fix potential bugs (#10513) (#10518)65432020-02-286-9/+13
| | | | | | * 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) (#10514)John Olheiser2020-02-276-15/+26
| | | | | | | * More org fixes * Move form action query to inputs Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Use [:space:] instead of \s (#10508) (#10509)zeripath2020-02-271-1/+1
| | | Backport #10508
* [BugFix] Avoid mailing explicit unwatched (#10475) (#10500)65432020-02-272-5/+17
| | | * [BugFix] Avoid mailing explicit unwatched (#10475)
* Handle push rejection message in Merge & Web Editor (#10373) (#10497)zeripath2020-02-278-19/+137
| | | | | | | | | | | | | | Backport #10373 * Handle push rejection message in Merge * Fix sanitize, adjust message handling * Handle push-rejection in webeditor CRUD too Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix SQLite concurrency problems by using BEGIN IMMEDIATE (#10368) (#10493)guillep2k2020-02-263-3/+3
|
* Show the username as a fallback on feeds if full name is blank (#10461)James Lakin2020-02-262-5/+10
| | | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix double PR notification from API (#10482) (#10486)John Olheiser2020-02-261-3/+0
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix admin notices (#10480) (#10483)John Olheiser2020-02-263-3/+6
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Change admin dashboard to POST (#10465) (#10466)John Olheiser2020-02-255-55/+81
| | | | | | | | | | | | * Change admin dashboard to POST (#10465) * Add form and convert to POST * Redirect for flash * Convert octicons back to fa for 1.11 Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Change action GETs to POST (#10462) (#10464)John Olheiser2020-02-2511-35/+79
| | | | | | | | | | | | | | | | | | * Change action GETs to POST * submite = submit + smite * No more # href * Fix test * Match other tests * Explicit csrf Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update markbates/goth (backport) (#10445)oscar.lofwenhamn2020-02-2411-18/+46
| | | | | | | | | | | | | | Update markbates/goth to v1.61.2 - Fixes a JWT decoding issue in the OpenID provider - Updates the GitHub provider to use the authorization header for authentication - Updates the Twitch provider for Twitch's v5 API changes - Adds the email and is_private_email fields to the Apple provider's GetUser implementation - Modifies gothic to export a non-collidable context key for setting the Provider in a context.Context - Adds new scopes to the Spotify provider - Adds the IDToken from OpenID providers on the user struct - Make Apple provider's SecretParams public - Adds support for sign in with Apple, and drops support for Go versions 1.7 and 1.8 - Fixes the Slack provider's FetchURL logic to use the appropriate scope for the info it needs Signed-off-by: Oscar LÃfwenhamn <oscar.lofwenhamn@cgi.com>
* Trigger webhooks on issue label-change via API too (#10421) (#10439)65432020-02-242-36/+44
| | | | | | | | | | | | | * trigger webhooks with api too * fix comment * notify report old too * CI restart * restart CI again * remove duplicated code
* Fix webhook bug (#10427) (#10432)Lunny Xiao2020-02-241-2/+2
| | | | Co-authored-by: techknowlogick <matti@mdranta.net>
* Various fixes in login sources (#10428) (#10429)zeripath2020-02-2315-21/+66
| | | | Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add frontend/backend make targets, fix source release (#10325) (#10414)silverwind2020-02-224-14/+53
| | | | | | | | | | | | | | | | | | | | | | | | * Add frontend/backend make targets, fix source release - Add 'make backend' and 'make frontend' make targets which are used to build go and js/css/svg files respectively. - The 'backend' target can be invoked without requiring Node.js to be present on the system if pre-built frontend assets are present like in the release source tarballs. - Fix source releases missing 'dist' folders inside 'node_modules' which were erronously excluded from tar. - Store VERSION in file VERSION for the release tarballs and prefer that file over git-derived version. * fix release task * fix typo * fix another typo Fixes: https://github.com/go-gitea/gitea/issues/10253
* Prevent panic on merge to PR (#10403) (#10408)guillep2k2020-02-212-0/+19
| | | | | | | | | | If you attempt to merge to a branch which on a PR there will be a nil pointer error in the pull request checker. This panic is uncaught and will bring down the gitea server. This PR adds protection to prevent this. Co-authored-by: zeripath <art27@cantab.net>
* update crypto vendors (#10398)guillep2k2020-02-21129-1374/+3568
| | | Co-authored-by: @techknowlogick
* Ensure only own addresses are updated (#10397) (#10399)guillep2k2020-02-212-2/+2
|
* Fix wrong num closed issues on repository when close issue via commit ↵Lunny Xiao2020-02-202-7/+19
| | | | | | | | (#10364) (#10380) Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv>
* Reading pull attachments should depend on read UnitTypePullRequests (#10346) ↵guillep2k2020-02-182-2/+6
| | | | | | (#10354) Co-authored-by: zeripath <art27@cantab.net>
* Set max-width on review-box comment box (#10348) (#10353)65432020-02-181-0/+33
| | | | Co-authored-by: zeripath <art27@cantab.net>
* Prevent nil pointer in GetPullRequestCommitStatusState (#10342) (#10344)zeripath2020-02-181-0/+5
| | | | | | | Backport #10344 Ensure that pr.HeadRepo is loaded before using it in GetPullRequestCommitStatusState. Fixes error on merging with successful commit merge statuses.
* Fix status check enable (#10341) (#10343)John Olheiser2020-02-181-1/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Truncate long commit message header (#10301) (#10319)zeripath2020-02-183-3/+40
| | | | | | | | | | | | | * Truncate long commit message header * Fix overflow in view commit table * Use @media less * Further improvements * Fix the commit message on small screens * adjust width of minimal table
* Set the initial commit status to Success otherwise it will always be Pending ↵zeripath2020-02-171-1/+1
| | | | | | | (#10317) (#10318) Backport #10317 The commit status code has a bug whereby setting the initial status to Pending means you can never have the status of Success - it should be set to Success.
* Don't manually replace whitespace during render (#10291) (#10315)mrsdizzie2020-02-172-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't manually replace whitespace during render For historical reasons Gitea manually alters the urlPrefix and replaces a whitespace with a +. This Works for URLs, but we're also passing urlPrefix to git calls and adding the + is breaking the tree path. Goldmark will automatically convert a white space to the proper %20, so we should leave the string as is which lets us pass it to git unmodified and then let Goldmark fix it. Also fixed separate bug in URLJoin I noticed while testing where it will silently discard sections of a path that have # in them (possibly others). We should just escape it first. Fixes 10156 * Escape elems as well * Revert "Escape elems as well" This reverts commit 8bf49596fee6fac4d9da256cd1e90a0ec0183671. * restart ci * remove changes to URLJoin * restart ci Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <matti@mdranta.net>
* Create Changelog for v1.11.1 release (#10286)v1.11.1zeripath2020-02-171-0/+14
| | | | | | | | | | | | | | * Create Changelog * Update CHANGELOG.md Co-Authored-By: techknowlogick <matti@mdranta.net> * Include Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* fix: set explicit POSTGRES_PASSWORD for pgsql on drone CI (#10303)Antoine GIRARD2020-02-161-0/+1
|
* v1.10.4 Changelog (#10294) (#10305)zeripath2020-02-161-0/+13
| | | | | | | * v1.10.4 Changelog * Add backport identifier for #10261 * Update CHANGELOG.md entry for #9884