summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Unify two factor check (#27915) (#27929)Giteabot2023-11-064-65/+77
| | | | | | | | | | | | Backport #27915 by @KN4CK3R Fixes #27819 We have support for two factor logins with the normal web login and with basic auth. For basic auth the two factor check was implemented at three different places and you need to know that this check is necessary. This PR moves the check into the basic auth itself. Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Remove `known issue` section in Gitea Actions Doc (#27930) (#27938)Giteabot2023-11-062-62/+0
| | | | | | | | | | | Backport #27930 by @lng2020 The bug has been fixed for several months in the `docker/build-push-action` The fix commit is [d8823bfaed](https://github.com/docker/build-push-action/commit/d8823bfaed2a82c6f5d4799a2f8e86173c461aba) as the Gitea Actions Doc mentioned too. Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com>
* Fix JS NPE when viewing specific range of PR commits (#27912) (#27923)Giteabot2023-11-061-1/+1
| | | | | | | | | Backport #27912 by @delvh This should be the easiest fix. While other solutions might be possible that exterminate the root cause, they will not be as trivial. Co-authored-by: delvh <dev.lh@web.de>
* Install poetry dependencies with --no-root (#27919) (#27920)Giteabot2023-11-061-1/+1
| | | | | | | | | | | | Backport #27919 by @silverwind Poetry 1.7.0 or higher will print a warning otherwise, see discussions: https://github.com/python-poetry/poetry/pull/8369 https://github.com/python-poetry/poetry/issues/1132 > --no-root Do not install the root package (the current project). Co-authored-by: silverwind <me@silverwind.io>
* Show correct commit sha when viewing single commit diff (#27916) (#27921)Giteabot2023-11-061-1/+1
| | | | | | | | | | Backport #27916 by @sebastian-sauer Show the correct sha when viewing a single commit. ![image](https://github.com/go-gitea/gitea/assets/1135157/5f39a84e-11ed-4700-b40b-eb9da6e91bec) Co-authored-by: sebastian-sauer <sauer.sebastian@gmail.com>
* Fix 500 when deleting a dismissed review (#27903) (#27910)Giteabot2023-11-052-0/+40
| | | | | | | | Backport #27903 by @lng2020 Fix #27767 Add a test to ensure its behavior Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com>
* Remove action runners on user deletion (#27902) (#27908)Giteabot2023-11-053-0/+33
| | | | | | | | | | | | | Backport #27902 by @earl-warren - On user deletion, delete action runners that the user has created. - Add a database consistency check to remove action runners that have nonexistent belonging owner. - Resolves https://codeberg.org/forgejo/forgejo/issues/1720 (cherry picked from commit 009ca7223dab054f7f760b7ccae69e745eebfabb) Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com> Co-authored-by: Gusted <postmaster@gusted.xyz>
* Backport translations to v1.21 (#27899)Denys Konovalov2023-11-0427-5956/+3548
| | | | I manually fixed most of the files so that used translation keys don't get deleted.
* Remove set tabindex on view issue (#27892) (#27896)Giteabot2023-11-032-7/+7
| | | | | | | | | | | Backport #27892 by @earl-warren - Remove the set tabindex and instead let the browser figure out the correct tab order. - Resolves https://codeberg.org/forgejo/forgejo/issues/1626 Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix DownloadFunc when migrating releases (#27887) (#27890)Giteabot2023-11-032-6/+9
| | | | | | | | | | | | | Backport #27887 by @Zettat123 We should not use `asset.ID` in DownloadFunc because DownloadFunc is a closure. https://github.com/go-gitea/gitea/blob/1bf5527eac6b947010c8faf408f6747de2a2384f/services/migrations/gitea_downloader.go#L284-L295 A similar bug when migrating from GitHub has been fixed in #14703. This PR fixes the bug when migrating from Gitea and GitLab. Co-authored-by: Zettat123 <zettat123@gmail.com>
* Fix http protocol auth (#27875) (#27876)Giteabot2023-11-024-14/+47
| | | | | Backport #27875 by @lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Reduce margin/padding on flex-list items and divider (#27872) (#27874)Giteabot2023-11-022-3/+3
| | | | | | Backport #27872 by @silverwind Small CSS tweak, reduces margin/padding from 14px to 10px, which I think looks better
* refactor postgres connection string building (#27723) (#27869)Giteabot2023-11-013-30/+47
| | | | | | | | | | | | Backport #27723 by @mpldr This patchset changes the connection string builder to use net.URL and the host/port parser to use the stdlib function for splitting host from port. It also adds a footnote about a potentially required portnumber for postgres UNIX sockets. Fixes: #24552 Co-authored-by: Moritz Poldrack <33086936+mpldr@users.noreply.github.com>
* Change katex limits (#27823) (#27868)Giteabot2023-11-011-2/+12
| | | | | | | | | | | | Backport #27823 by @KN4CK3R Fixes #27812 Use higher defaults again but limit the input size. ![grafik](https://github.com/go-gitea/gitea/assets/1666336/23cdf572-de30-4799-b9cf-ef386b1623b9) Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* doc: actions/act-runner: document running as a systemd service (#27844) (#27866)Giteabot2023-11-011-0/+34
| | | | | | | | Backport #27844 by @nodiscc This documents running `act-runner` as a systemd service under a dedicated user account. Co-authored-by: nodiscc <nodiscc@gmail.com>
* Delete repos of org when purge delete user (#27273) (#27728)65432023-11-0114-51/+79
| | | | | | | | | Fixes https://codeberg.org/forgejo/forgejo/issues/1514 Backports #27273 --------- Co-authored-by: JakobDev <jakobdev@gmx.de>
* Clean up template locale usage (#27856) (#27857)wxiaoguang2023-10-3110-65/+33
| | | | | | | Backport #27856 The only conflict is `ThemeName` in `500.tmpl`, it has been resolved manually by keeping using old `{{.SignedUser.Theme}}{{else}}{{DefaultTheme}}`
* Fix package webhook (#27839) (#27855)Giteabot2023-10-3114-1/+97
| | | | | | | | Backport #27839 by @lunny Fix #23742 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Add user secrets API integration tests (#27832) (#27852)Giteabot2023-10-311-0/+98
| | | | | | | | Backport #27832 by @jbgomond Adds the missing user secrets API integration tests so #27829 does not happen again Co-authored-by: Jean-Baptiste Gomond <dev@jbgomond.com>
* Fix wrong relative path on obtain token from command line (#27850) (#27851)Giteabot2023-10-312-1/+3
| | | | | | | Backport #27850 by @lunny Caused by #27845 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* doc: actions/act-runner: document obtaining a runner registration token from ↵Giteabot2023-10-301-0/+6
| | | | gitea CLI (#27845) (#27848)
* Fix/upload artifact error windows (#27802) (#27840)Giteabot2023-10-301-1/+2
|
* Always use whole user name as link (#27815) (#27838)Giteabot2023-10-301-5/+1
| | | | | | | | | | | | | | | | | Backport #27815 by @denyskon Starting from #25790 this shared template only linked the username of the user if both display name and username were shown. I experienced myself always trying to click on the display name - I think it is annoying for others too. After: ![grafik](https://github.com/go-gitea/gitea/assets/47871822/a0e82127-b773-4ca4-890f-d18422a7bef2) ![grafik](https://github.com/go-gitea/gitea/assets/47871822/79efcf93-2f50-4fc4-ba15-afc6174be48c) Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
* Fix bad method call when deleting user secrets via API (#27829) (#27831)Giteabot2023-10-291-1/+1
| | | | | | | | | Backport #27829 by @jbgomond Fixed a little mistake when you deleting user secrets via the API. Found it when working on #27725. It should be backported to 1.21 I think. Co-authored-by: Jean-Baptiste Gomond <dev@jbgomond.com>
* Dockerfile small refactor (#27757) (#27826)Giteabot2023-10-293-24/+54
| | | | | | | | Backport #27757 by @nfsec - Size and layer optimization, - Maintaining consistency in definitions (comments, apk etc.), Co-authored-by: Patryk Krawaczyński <nfsec@users.noreply.github.com>
* Upgrade xorm to 1.3.4 (#27807) (#27813)Giteabot2023-10-273-4/+4
| | | | | | | | | | | Backport #27807 by @lng2020 Noticeable change: Remove the `OrderBy("1") ` [patch](https://github.com/go-gitea/gitea/pull/27673#issuecomment-1768570142) for mssql since xorm has [fixed it](https://gitea.com/xorm/xorm/commit/0f085408afd85707635eadb2294ab52be04f3c0f). Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com>
* Chroma v2.10.0 (#27803) (#27805)Giteabot2023-10-272-3/+3
| | | | | | | | | | | Backport #27803 by @bt90 Bump the chroma version to v2.10.0: https://github.com/alecthomas/chroma/releases/tag/v2.10.0 This release includes a better Java lexer https://github.com/alecthomas/chroma/pull/873 Co-authored-by: bt90 <btom1990@googlemail.com>
* Add dedicated class for empty placeholders (#27788) (#27792)Giteabot2023-10-263-6/+8
| | | | | | | | | | | | | Backport #27788 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/27784 <img width="1033" alt="Screenshot 2023-10-25 at 19 07 15" src="https://github.com/go-gitea/gitea/assets/115237/1a363851-1a86-48cb-99ec-0a573371bb6e"> <img width="1051" alt="Screenshot 2023-10-25 at 19 07 41" src="https://github.com/go-gitea/gitea/assets/115237/add4b606-2264-430a-af35-249ef005817f"> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Close all hashed buffers (#27787) (#27790)Giteabot2023-10-254-1/+19
| | | | | | | | Backport #27787 by @KN4CK3R Add missing `.Close()` calls. The current code does not delete the temporary files if the data grows over 32mb. Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Add gap between diff boxes (#27776) (#27781)Giteabot2023-10-251-0/+3
| | | | | | | | | | | | | Backport #27776 by @silverwind Before (almost no gap between files): <img width="1240" alt="Screenshot 2023-10-24 at 19 43 32" src="https://github.com/go-gitea/gitea/assets/115237/30cdbdbc-d102-479c-89ce-3f68837ae0cd"> After (with 8px gap): <img width="1241" alt="Screenshot 2023-10-24 at 19 43 22" src="https://github.com/go-gitea/gitea/assets/115237/72b26a30-8730-4a36-8de9-be143b684b98"> Co-authored-by: silverwind <me@silverwind.io>
* Do not force creation of _cargo-index repo on publish (#27266) (#27765)Giteabot2023-10-243-7/+13
| | | | | | | | | | | | | | | | | | | | | | | Backport #27266 by @merlleu Hello there, Cargo Index over HTTP is now prefered over git for package updates: we should not force users who do not need the GIT repo to have the repo created/updated on each publish (it can still be created in the packages settings). The current behavior when publishing is to check if the repo exist and create it on the fly if not, then update it's content. Cargo HTTP Index does not rely on the repo itself so this will be useless for everyone not using the git protocol for cargo registry. This PR only disable the creation on the fly of the repo when publishing a crate. This is linked to #26844 (error 500 when trying to publish a crate if user is missing write access to the repo) because it's now optional. Co-authored-by: merlleu <r.langdorph@gmail.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Fix incorrect "tab" parameter for repo search sub-template (#27755) (#27764)Giteabot2023-10-241-2/+2
| | | | | Backport #27755 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* fix issues in translation file (#27699) (#27737)Denys Konovalov2023-10-241-11/+9
| | | | | | | Backport #27699 - use correct comment sign for INI (`;`) - remove duplicated `repo.branch.search` key - remove duplicated spaces & similar
* Fix label render containing invalid HTML (#27752) (#27762)Giteabot2023-10-241-1/+1
| | | | | | | | | | | | Backport #27752 by @earl-warren - The label HTML contained a quote that wasn't being closed. Refs: https://codeberg.org/forgejo/forgejo/pulls/1651 (cherry picked from commit e2bc2c9a1fff482c49dbeb3a51e4e1c698bf506c) Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com> Co-authored-by: Gusted <postmaster@gusted.xyz>
* Fix `link-action` redirect network error (#27734) (#27749)Giteabot2023-10-232-6/+8
| | | | | | | | | Backport #27734 by @lng2020 <img width="823" alt="image" src="https://github.com/go-gitea/gitea/assets/70063547/99da3d5a-c28a-4fd0-8ae0-88461a9142e2"> Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de>
* Fix duplicate project board when hitting `enter` key (#27746) (#27751)Giteabot2023-10-231-14/+0
| | | | | | | | | | | | Backport #27746 by @lng2020 When hitting the `enter` key to create a new project column, the request is sent twice because the `submit` event and `key up` event are both triggered. Probably a better solution is to rewrite these parts of the code to avoid using native jQuery but reuse the `form-fetch-action` class. But it's beyond my ability. Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com>
* Fix incorrect ctx usage in defer function (#27740) (#27741)wxiaoguang2023-10-221-2/+2
|
* fix labeler config on release/v1.21 (#27738)Denys Konovalov2023-10-221-16/+17
| | | Manual backport of #27525
* Enable followCursor for language stats bar (#27713) (#27739)Giteabot2023-10-222-2/+4
| | | | | | | | | | | | | Backport #27713 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/27600 ![](https://github.com/go-gitea/gitea/assets/115237/96743d90-0712-4f13-84ec-66f84e6ed2d7) Also tested together with https://github.com/go-gitea/gitea/pull/27704, works well. Co-authored-by: silverwind <me@silverwind.io>
* Add doctor dbconsistency fix to delete repos with no owner (#27290) (#27693)65432023-10-222-6/+79
| | | Backport #27290
* Fix org team endpoint (#27721) (#27727)Giteabot2023-10-221-4/+4
| | | | | | | Backport #27721 by @lng2020 Fix #27711 Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com>
* Feed UI Improvements (#27356) (#27717)Giteabot2023-10-212-13/+14
| | | | | | | | | | | | | | | | | | | | | Backport #27356 by @silverwind Various improvements related to feeds: - Fix markdown rendering - Increase font size from 13px to default 14px via `flex-item` - Add style to hashes - Move the timestamp to title line. I realize it's not optimal for translation, we may need to change all these translations Before: <img width="768" alt="Screenshot 2023-09-29 at 22 52 58" src="https://github.com/go-gitea/gitea/assets/115237/edda8b84-23cf-4a43-90ad-a892798f4e6c"> After: <img width="781" alt="Screenshot 2023-09-29 at 22 58 09" src="https://github.com/go-gitea/gitea/assets/115237/7097474d-efcf-4f22-a2ab-834a4e25c4e8"> Co-authored-by: silverwind <me@silverwind.io>
* Improve diff tree spacing (#27714) (#27719)Giteabot2023-10-212-5/+16
| | | | | | | | | | | | | | | | Backport #27714 by @silverwind 1. Un-indent top-level items, matching GitHub rendering 2. Increase item padding and add 1px gap between items Before and After: <img width="247" alt="Screenshot 2023-10-20 at 18 37 32" src="https://github.com/go-gitea/gitea/assets/115237/43c1ce86-1814-4a8a-9dd2-0c4a82a2be7c"> <img width="241" alt="Screenshot 2023-10-20 at 18 40 46" src="https://github.com/go-gitea/gitea/assets/115237/b541b85b-c428-4903-becd-773ae5807495"> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: 6543 <m.huber@kithara.com>
* Improve feed icons and feed merge text color (#27498) (#27716)Giteabot2023-10-212-13/+17
| | | | | | | | | | | | | | | | | | Backport #27498 by @silverwind 1. Improve various feed icons 2. Fix merge message color <img width="763" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/3f5bcb23-6d90-4c63-85f2-46bd7e1c96d6"> <img width="769" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/466c37b4-e2f4-42bb-922d-b86596cdc6d0"> Fixes: https://github.com/go-gitea/gitea/issues/27495 Continues: https://github.com/go-gitea/gitea/pull/27356 Co-authored-by: silverwind <me@silverwind.io>
* [FIX] resolve confusing colors in languages stats by insert a gap (#27704) ↵Giteabot2023-10-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | (#27715) Backport #27704 by @RightFS The current language stats are too obsessed with color matching. Similar colors are always next to each other. It is a bit troublesome to find the place where the color matching is generated, so just follow the example of github and add a gap. ## before <img width="883" alt="image" src="https://github.com/go-gitea/gitea/assets/12915306/cf54430c-616c-4b37-b561-5a37c20b2d94"> ## after <img width="877" alt="image" src="https://github.com/go-gitea/gitea/assets/12915306/e518ea36-2b8f-4f11-a867-a58dc393db85"> Co-authored-by: MrDevil <Right.Sun@outlook.com>
* Fix sticky diff header background (#27697) (#27712)Giteabot2023-10-201-1/+2
| | | | | | | | | | | | | | Backport #27697 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/27604 Add negative margins so the header covers any shadow of active elements. No rendering change of the content of the header because the padding counteracts the effect. <img width="128" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/3d0f55b6-9351-4985-a290-da9a92d15b4e"> Co-authored-by: silverwind <me@silverwind.io>
* Adapt `.changelog.yml` to new labeling system (#27701) (#27702)Giteabot2023-10-201-16/+12
| | | | | | | Backport #27701 by @delvh Otherwise, it is not possible anymore to generate changelogs. Co-authored-by: delvh <dev.lh@web.de>
* cleanup repo details icons/labels (#27644) (#27654)v1.21.0-rc2Giteabot2023-10-195-60/+28
| | | | | | | | | | | Backport #27644 by @denyskon Fix #27596 Change confusing behavior when showing information about a repo via labels and icons. Implement changes proposed by @lng2020 in https://github.com/go-gitea/gitea/pull/27627#pullrequestreview-1678787673. Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
* Fix required checkboxes in issue forms (#27592) (#27692)Giteabot2023-10-191-4/+7
| | | | | | | | | | | | | | | | | Backport #27592 by @JakobDev If you set a checkbox as required in a issue form at the moment, the checkbox is checked and read only, what does not make much sense. With this PR, the Checkbox actually needs to be checked. The label supports now also Markdown. This matches GitHub's behaviour. And yes, I know the CSS is a ugly workaround. It looks like the given CSS code is part Fomantic and I don't know how to change that. The Maintainers are free to change that. ![grafik](https://github.com/go-gitea/gitea/assets/15185051/3f35be75-b0b4-42a7-9048-a4970384a035) Co-authored-by: JakobDev <jakobdev@gmx.de>
* Upgrade xorm (#27673) (#27691)Giteabot2023-10-194-5/+13
| | | | | | | Backport #27673 by @lng2020 Related to https://gitea.com/xorm/xorm/pulls/2341 Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com>