]> source.dussan.org Git - gitea.git/log
gitea.git
11 months agoRevert #27870 (#27917)
KN4CK3R [Mon, 6 Nov 2023 06:09:34 +0000 (07:09 +0100)]
Revert #27870 (#27917)

Now that we have #27798 we don't need the check from #27870 anymore.
With the check it's not possible to remove an inactive auth source from
the user.

11 months agoFix JS NPE when viewing specific range of PR commits (#27912)
delvh [Mon, 6 Nov 2023 02:05:24 +0000 (03:05 +0100)]
Fix JS NPE when viewing specific range of PR commits (#27912)

This should be the easiest fix.
While other solutions might be possible that exterminate the root cause,
they will not be as trivial.

11 months agoInstall poetry dependencies with --no-root (#27919)
silverwind [Mon, 6 Nov 2023 00:11:34 +0000 (01:11 +0100)]
Install poetry dependencies with --no-root (#27919)

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).

11 months agoShow correct commit sha when viewing single commit diff (#27916)
sebastian-sauer [Sun, 5 Nov 2023 23:39:32 +0000 (00:39 +0100)]
Show correct commit sha when viewing single commit diff (#27916)

Show the correct sha when viewing a single commit.

![image](https://github.com/go-gitea/gitea/assets/1135157/5f39a84e-11ed-4700-b40b-eb9da6e91bec)

11 months agoFix 500 when deleting a dismissed review (#27903)
Nanguan Lin [Sun, 5 Nov 2023 13:25:40 +0000 (21:25 +0800)]
Fix 500 when deleting a dismissed review (#27903)

Fix #27767
Add a test to ensure its behavior

11 months agoRemove action runners on user deletion (#27902)
Earl Warren [Sun, 5 Nov 2023 12:48:32 +0000 (13:48 +0100)]
Remove action runners on user deletion (#27902)

- 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: Gusted <postmaster@gusted.xyz>
11 months agoRemove SSH workaround (#27893)
Earl Warren [Fri, 3 Nov 2023 15:21:05 +0000 (16:21 +0100)]
Remove SSH workaround (#27893)

Revert the workaround of #26409 and fix #26411, update github.com/gliderlabs/ssh to include https://github.com/gliderlabs/ssh/commit/02f9d573009f8c13755b6b90fa14a4f549b17b22

11 months agoRemove "tabindex" from some form buttons (#27892)
Earl Warren [Fri, 3 Nov 2023 14:40:48 +0000 (15:40 +0100)]
Remove "tabindex" from some form buttons (#27892)

Remove the "tabindex" from some form buttons on the "diff box" / "issue view content" page, let the browser use the default tab order.

---------

Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
11 months agoRefactor the function RemoveOrgUser (#27582)
Lunny Xiao [Fri, 3 Nov 2023 14:01:45 +0000 (22:01 +0800)]
Refactor the function RemoveOrgUser (#27582)

This PR is a small refactor to merge removeOrgUser into RemoveOrgUser.

11 months agoFix DownloadFunc when migrating releases (#27887)
Zettat123 [Fri, 3 Nov 2023 07:56:53 +0000 (15:56 +0800)]
Fix DownloadFunc when migrating releases (#27887)

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.

11 months agoRefactor Find Sources and fix bug when view a user who belongs to an unactive auth...
Lunny Xiao [Fri, 3 Nov 2023 01:41:00 +0000 (09:41 +0800)]
Refactor Find Sources and fix bug when view a user who belongs to an unactive auth source (#27798)

The steps to reproduce it.

First, create a new oauth2 source.
Then, a user login with this oauth2 source.
Disable the oauth2 source.
Visit users -> settings -> security, 500 will be displayed.
This is because this page only load active Oauth2 sources but not all
Oauth2 sources.

11 months ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 3 Nov 2023 00:23:16 +0000 (00:23 +0000)]
[skip ci] Updated translations via Crowdin

11 months agoAdd `Hide/Show all checks` button to commit status check (#26284) 25439/head
yp05327 [Thu, 2 Nov 2023 14:49:02 +0000 (23:49 +0900)]
Add `Hide/Show all checks` button to commit status check (#26284)

Step one for a GitHub like commit status check ui:

![image](https://github.com/go-gitea/gitea/assets/18380374/22953b88-1f91-4d19-bc57-ad92d33fa11f)

![image](https://github.com/go-gitea/gitea/assets/18380374/78572a49-c9b0-472b-86a8-8293197e807b)

![image](https://github.com/go-gitea/gitea/assets/18380374/bc5c8d1c-2ab5-4b03-b8c6-20c34b86d856)

Step two:

![image](https://github.com/go-gitea/gitea/assets/18380374/938b359e-8823-4192-b82d-55fa40b986fd)

![image](https://github.com/go-gitea/gitea/assets/18380374/2de5bb8f-40f5-462a-8d6d-bac13a32bc2a)

The design now will list all commit status checks which takes too much
space.
This is a pre-improve for #26247

---------

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
11 months agoFix http protocol auth (#27875)
Lunny Xiao [Thu, 2 Nov 2023 14:14:33 +0000 (22:14 +0800)]
Fix http protocol auth (#27875)

11 months agoDisplay issue task list on project cards (#27865)
KN4CK3R [Thu, 2 Nov 2023 10:42:02 +0000 (11:42 +0100)]
Display issue task list on project cards (#27865)

Display the issue task list on project cards.

![grafik](https://github.com/go-gitea/gitea/assets/1666336/e6cb3196-8980-403c-9795-3a7b03fbfb3c)

Co-authored-by: Giteabot <teabot@gitea.io>
11 months agoReduce margin/padding on flex-list items and divider (#27872)
silverwind [Thu, 2 Nov 2023 04:30:38 +0000 (05:30 +0100)]
Reduce margin/padding on flex-list items and divider (#27872)

Small CSS tweak, reduces margin/padding from 14px to 10px, which I think
looks better

11 months agoFilter inactive auth sources (#27870)
KN4CK3R [Wed, 1 Nov 2023 23:46:26 +0000 (00:46 +0100)]
Filter inactive auth sources (#27870)

Fix nil access for inactive auth sources.

> Render failed, failed to render template:
user/settings/security/security, error: template error:
builtin(static):user/settings/security/accountlinks:32:20 : executing
"user/settings/security/accountlinks" at <$providerData.IconHTML>: nil
pointer evaluating oauth2.Provider.IconHTML

Code tries to access the auth source of an `ExternalLoginUser` but the
list contains only the active auth sources.

11 months agorefactor postgres connection string building (#27723)
Moritz Poldrack [Wed, 1 Nov 2023 18:00:20 +0000 (19:00 +0100)]
refactor postgres connection string building (#27723)

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
11 months agodoc: actions/act-runner: document running as a systemd service (#27844)
nodiscc [Wed, 1 Nov 2023 15:14:40 +0000 (15:14 +0000)]
doc: actions/act-runner: document running as a systemd service (#27844)

This documents running `act-runner` as a systemd service under a
dedicated user account.

11 months agoSupport storage base path as prefix (#27827)
Lunny Xiao [Wed, 1 Nov 2023 11:17:18 +0000 (19:17 +0800)]
Support storage base path as prefix (#27827)

This PR adds a prefix path for all minio storage and override base path
will override the path.
The previous behavior is undefined officially, so it will be marked as
breaking.

11 months agoClean up template locale usage (#27856)
wxiaoguang [Tue, 31 Oct 2023 14:11:48 +0000 (22:11 +0800)]
Clean up template locale usage (#27856)

After many refactoring PRs for the "locale" and "template context
function", now the ".locale" is not needed for web templates any more.

This PR does a clean up for:

1. Remove `ctx.Data["locale"]` for web context.
2. Use `ctx.Locale` in `500.tmpl`, for consistency.
3. Add a test check for `500 page` locale usage.
4. Remove the `Str2html` and `DotEscape` from mail template context
data, they are copy&paste errors introduced by #19169 and #16200 . These
functions are template functions (provided by the common renderer), but
not template data variables.
5. Make email `SendAsync` function mockable (I was planning to add more
tests but it would make this PR much too complex, so the tests could be
done in another PR)

11 months agoFix package webhook (#27839)
Lunny Xiao [Tue, 31 Oct 2023 04:43:38 +0000 (12:43 +0800)]
Fix package webhook (#27839)

Fix #23742

---------

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
11 months agoAdd user secrets API integration tests (#27832)
Jean-Baptiste Gomond [Tue, 31 Oct 2023 03:46:09 +0000 (04:46 +0100)]
Add user secrets API integration tests (#27832)

Adds the missing user secrets API integration tests so #27829 does not
happen again

11 months agoFix wrong relative path on obtain token from command line (#27850)
Lunny Xiao [Tue, 31 Oct 2023 03:31:09 +0000 (11:31 +0800)]
Fix wrong relative path on obtain token from command line (#27850)

Caused by #27845

11 months agodoc: actions/act-runner: document obtaining a runner registration token from gitea...
nodiscc [Mon, 30 Oct 2023 23:28:02 +0000 (23:28 +0000)]
doc: actions/act-runner: document obtaining a runner registration token from gitea CLI (#27845)

11 months agoFix/upload artifact error windows (#27802)
FuXiaoHei [Mon, 30 Oct 2023 10:40:05 +0000 (18:40 +0800)]
Fix/upload artifact error windows (#27802)

From issue https://github.com/go-gitea/gitea/issues/27314

When act_runner in `host` mode on Windows. `upload_artifact@v3` actions
use `path.join` to generate `itemPath` params when uploading artifact
chunk. `itemPath` is encoded as `${artifact_name}\${artifact_path}`.

<del>It's twice query escaped from ${artifact_name}/${artifact_path}
that joined by Windows slash \.</del>

**So we need convert Windows slash to linux**.

In https://github.com/go-gitea/gitea/issues/27314, runner shows logs
from `upload_artifact@v3` like with `%255C`:

```
[artifact-cases/test-artifact-cases]   | ::error::Unexpected response. Unable to upload chunk to http://192.168.31.230:3000/api/actions_pipeline/_apis/pipelines/workflows/6/artifacts/34d628a422db9367c869d3fb36be81f5/upload?itemPath=more-files%255Css.json
```

But in gitea server at the same time, But shows `%5C`

```
2023/10/27 19:29:51 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /api/actions_pipeline/_apis/pipelines/workflows/6/artifacts/34d628a422db9367c869d3fb36be81f5/upload?itemPath=more-files%5Css.json for 192.168.31.230:55340, 400 Bad Request in 17.6ms @ <autogenerated>:1(actions.artifactRoutes.uploadArtifact-fm)
```

I found `%255C` is escaped by
`https://github.com/actions/upload-artifact/blob/main/dist/index.js#L2329`.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
11 months agoAlways use whole user name as link (#27815)
Denys Konovalov [Mon, 30 Oct 2023 09:53:16 +0000 (10:53 +0100)]
Always use whole user name as link (#27815)

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)

11 months agoFix display member unit in the menu bar if there are no hidden members in public...
yp05327 [Mon, 30 Oct 2023 09:11:16 +0000 (18:11 +0900)]
Fix display member unit in the menu bar if there are no hidden members in public org (#27795)

Follow #26363.
I missed that org templates also using
`templates/user/overview/header.tmpl`.
You can confirm this problem in https://gitea.com/gitea/-/projects with
anonymous access.

Before: (no login)

![image](https://github.com/go-gitea/gitea/assets/18380374/e285565c-ca65-4b18-9ff7-434c6367c13a)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/81e7532a-c458-4552-8d75-6896538e42cb)

11 months agoAdd Index to pull_auto_merge.doer_id (#27811)
JakobDev [Mon, 30 Oct 2023 08:39:29 +0000 (09:39 +0100)]
Add Index to pull_auto_merge.doer_id (#27811)

Reported at https://codeberg.org/forgejo/forgejo/issues/1677

This column is used by
[deleteUser](https://github.com/go-gitea/gitea/blob/f089be91da44ee3e85fbe326a204c7c8a5df3d31/services/user/delete.go#L90).

Note: This PR contains a Migration, so we can't backport it to 1.21.

11 months agoBump workflows in github actions (#27836)
Chongyi Zheng [Mon, 30 Oct 2023 07:56:43 +0000 (03:56 -0400)]
Bump workflows in github actions (#27836)

All major version upgrades are related to using Node v20 as default
runtime

11 months agoAllow pull requests Manually Merged option to be used by non-admins (#27780)
Brecht Van Lommel [Mon, 30 Oct 2023 03:13:06 +0000 (04:13 +0100)]
Allow pull requests Manually Merged option to be used by non-admins (#27780)

Currently this feature is only available to admins, but there is no
clear reason why. If a user can actually merge pull requests, then this
seems fine as well.

This is useful in situations where direct pushes to the repository are
commonly done by developers.

---------

Co-authored-by: delvh <dev.lh@web.de>
11 months agoList all Debian package versions in `Packages` (#27786)
KN4CK3R [Sun, 29 Oct 2023 14:14:47 +0000 (15:14 +0100)]
List all Debian package versions in `Packages` (#27786)

Closes #27783

This PR lists all and not only the latest package versions in the
`Packages` index.

11 months agoFix merge base commit for fast-forwarded GitLab PRs (#27825)
Sebastian Brückner [Sun, 29 Oct 2023 13:29:33 +0000 (13:29 +0000)]
Fix merge base commit for fast-forwarded GitLab PRs (#27825)

Due to a bug in the GitLab API, the diff_refs field is populated in the
response when fetching an individual merge request, but not when
fetching a list of them. That field is used to populate the merge base
commit SHA.
While there is detection for the merge base even when not populated by
the downloader, that detection is not flawless. Specifically, when a
GitLab merge request has a single commit, and gets merged with the
squash strategy, the base branch will be fast-forwarded instead of a
separate squash or merge commit being created. The merge base detection
attempts to find the last commit on the base branch that is also on the
PR branch, but in the fast-forward case that is the PR's only commit.
Assuming the head commit is also the merge base results in the import of
a PR with 0 commits and no diff.

This PR uses the individual merge request endpoint to fetch merge
request data with the diff_refs field. With its data, the base merge
commit can be properly set, which—by not relying on the detection
mentioned above—correctly imports PRs that were "merged" by
fast-forwarding the base branch.

ref: https://gitlab.com/gitlab-org/gitlab/-/issues/29620

11 months agoFix bad method call when deleting user secrets via API (#27829)
Jean-Baptiste Gomond [Sun, 29 Oct 2023 12:19:57 +0000 (13:19 +0100)]
Fix bad method call when deleting user secrets via API (#27829)

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.

11 months agoChange katex limits (#27823)
KN4CK3R [Sun, 29 Oct 2023 01:52:02 +0000 (02:52 +0100)]
Change katex limits (#27823)

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)

11 months agoDockerfile small refactor (#27757)
Patryk Krawaczyński [Sun, 29 Oct 2023 01:44:06 +0000 (02:44 +0100)]
Dockerfile small refactor (#27757)

- Size and layer optimization,
- Maintaining consistency in definitions (comments, apk etc.),

11 months agoUse GitLab's squash_commit_sha when available (#27824)
Sebastian Brückner [Sun, 29 Oct 2023 00:54:58 +0000 (01:54 +0100)]
Use GitLab's squash_commit_sha when available (#27824)

Before this PR, the PR migration code populates Gitea's MergedCommitID
field by using GitLab's merge_commit_sha field. However, that field is
only populated when the PR was merged using a merge strategy. When a
squash strategy is used, squash_commit_sha is populated instead.

Given that Gitea does not keep track of merge and squash commits
separately, this PR simply populates Gitea's MergedCommitID by using
whichever field is present in the GitLab API response.

11 months ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 28 Oct 2023 00:22:03 +0000 (00:22 +0000)]
[skip ci] Updated translations via Crowdin

11 months agoUpgrade xorm to 1.3.4 (#27807)
Nanguan Lin [Fri, 27 Oct 2023 11:28:53 +0000 (19:28 +0800)]
Upgrade xorm to 1.3.4 (#27807)

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).

11 months ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 27 Oct 2023 00:22:31 +0000 (00:22 +0000)]
[skip ci] Updated translations via Crowdin

11 months agoPackage repository/documentation link unification (#27804)
Danila Fominykh [Fri, 27 Oct 2023 00:16:12 +0000 (21:16 -0300)]
Package repository/documentation link unification (#27804)

Some translations are duplicated for the same package fields; it should
be possible to use the same approach. Checked packages to use the same
forms in templates.

1. Removed repeated translations for the same fields
2. Linked template files to the same translation fields
3. Added repository site link for nuget packages

11 months agoChroma v2.10.0 (#27803)
bt90 [Thu, 26 Oct 2023 21:42:24 +0000 (23:42 +0200)]
Chroma v2.10.0 (#27803)

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

11 months agoAdd link to members and repositories at teams page (#27744)
853 [Thu, 26 Oct 2023 02:50:43 +0000 (10:50 +0800)]
Add link to members and repositories at teams page (#27744)

![image](https://github.com/go-gitea/gitea/assets/8389962/123e4ca7-dd10-44e7-9702-4b8e9e0882a7)
The members and repositories text now can be click.

like Org home page:

https://github.com/go-gitea/gitea/blob/cab7b7f59c008eea8b3b484a8818eaaf48daa805/templates/org/home.tmpl#L81-L82

11 months agoAdd dedicated class for empty placeholders (#27788)
silverwind [Wed, 25 Oct 2023 21:42:14 +0000 (23:42 +0200)]
Add dedicated class for empty placeholders (#27788)

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: KN4CK3R <admin@oldschoolhack.me>
11 months agoClose all hashed buffers (#27787)
KN4CK3R [Wed, 25 Oct 2023 19:24:24 +0000 (21:24 +0200)]
Close all hashed buffers (#27787)

Add missing `.Close()` calls. The current code does not delete the
temporary files if the data grows over 32mb.

11 months agoFix typo when updating email address (#27789)
Joel Wetzell [Wed, 25 Oct 2023 17:21:23 +0000 (12:21 -0500)]
Fix typo when updating email address (#27789)

- correct text that is shown when attempting to change an email address

11 months agoImprove pull request command line instructions (#27778)
Brecht Van Lommel [Wed, 25 Oct 2023 15:01:31 +0000 (17:01 +0200)]
Improve pull request command line instructions (#27778)

* Show checkout instructions also when there is no permission to push,
for anyone who wants to locally test the changes.
* First checkout the branch exactly as is, without immediately having to
solve merge conflicts. Leave this to the merge step, since it's often
convenient to test a change without worrying about this.
* Use `git fetch -u`, so an existing local branch is updated when
re-testing the same pull request. But not the more risky `git fetch -f`
in to handle force pushes, as we don't want to accidentally overwrite
important local changes.
* Show different merge command depending on the chosen merge style,
interactively updated.

11 months agoFix issue not showing on default board and add test (#27720)
Nanguan Lin [Wed, 25 Oct 2023 11:51:49 +0000 (19:51 +0800)]
Fix issue not showing on default board and add test (#27720)

See https://github.com/go-gitea/gitea/pull/27718#issuecomment-1773743014
. Add a test to ensure its behavior.
Why this test uses `ProjectBoardID=0`? Because in `SearchOptions`,
`ProjectBoardID=0` means what it is. But in `IssueOptions`,
`ProjectBoardID=0` means there is no condition, and
`ProjectBoardID=db.NoConditionID` means the board ID = 0.
It's really confusing. Probably it's better to separate the db search
engine and the other issue search code. It's really two different
systems. As far as I can see, `IssueOptions` is not necessary for most
of the code, which has very simple issue search conditions.

11 months agoShow placeholder email in privacy popup (#27770)
Gerd Katzenbeisser [Wed, 25 Oct 2023 11:12:36 +0000 (13:12 +0200)]
Show placeholder email in privacy popup (#27770)

This PR will show the _noreply_ address in the privacy popup
_keep_email_private_popup_.

I had to look into the source code to figure out which E-Mail Adress I
had to use on gitea.com to hide it from public access.

According to the contribution guidelines I only updated the en-US
translation file.

Co-authored-by: Hakito <hakito@git.example.com>
11 months agoAdd word-break to organization name and description (#26624)
yp05327 [Wed, 25 Oct 2023 10:40:39 +0000 (19:40 +0900)]
Add word-break to organization name and description (#26624)

Fix #24318

Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/38282e5e-0b4d-4568-a853-59352798e826)

![image](https://github.com/go-gitea/gitea/assets/18380374/79d89ee6-61f6-45a7-af0b-d1c23fead25a)

![image](https://github.com/go-gitea/gitea/assets/18380374/39b45fae-52e2-4697-b83a-7cd10f76ac43)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/09e8cfcf-0150-494e-9f63-0868f529da65)

![image](https://github.com/go-gitea/gitea/assets/18380374/d2c348d3-fe03-466a-a5f4-878b7a93a318)

![image](https://github.com/go-gitea/gitea/assets/18380374/7f75b807-300c-42d5-b2c3-bae9e45e3c08)

![image](https://github.com/go-gitea/gitea/assets/18380374/06eca901-f5cf-4100-bb65-92457ad106e3)

11 months agoAdd border to file tree 'sub-items' and add padding to 'item-file' (#27593)
Nanguan Lin [Wed, 25 Oct 2023 10:00:53 +0000 (18:00 +0800)]
Add border to file tree 'sub-items' and add padding to 'item-file' (#27593)

## Add border to file tree 'sub-items'
close #24766
view in `gitea-light`
<img width="275" alt="image"
src="https://github.com/go-gitea/gitea/assets/70063547/f1bf8736-2db3-454f-86f5-d050a2fae3eb">
view in `gitea-dark`
<img width="296" alt="image"
src="https://github.com/go-gitea/gitea/assets/70063547/053e2e6e-28f7-41d2-a139-1dae4df45929">
## Change the 'item-file' padding
Before that the 'item-file' only have padding when they in
'item-directory', which is too compact when 'item-file' after
'item-directory'
<details>

![)RW`SDJ_UQL@$}0
PL(3DS7](https://github.com/go-gitea/gitea/assets/70063547/5fa523a4-44c3-4cb9-a882-a3ea6d944673)

---------

Co-authored-by: silverwind <me@silverwind.io>
11 months agoFix the missing repo count in new team page and edit team page (#27743)
853 [Wed, 25 Oct 2023 05:55:56 +0000 (13:55 +0800)]
Fix the missing repo count in new team page and edit team page (#27743)

Follow #26942
Before:

![image](https://github.com/go-gitea/gitea/assets/8389962/ffe3e914-c71c-493f-965b-369f27c70b4b)

![image](https://github.com/go-gitea/gitea/assets/8389962/eaad4f07-b8ce-4564-b883-97938de5ed79)

After:

![image](https://github.com/go-gitea/gitea/assets/8389962/353aeabe-caf4-4449-8330-d3a29f9bd326)

![image](https://github.com/go-gitea/gitea/assets/8389962/baf59bb6-2c74-4a56-a28c-1519bc3d2594)

11 months agoOnly show diff file tree when more than one file changed (#27775)
silverwind [Wed, 25 Oct 2023 03:09:18 +0000 (05:09 +0200)]
Only show diff file tree when more than one file changed (#27775)

When 0 or 1 files changed in a diff, we don't need to show a file tree.
This behaviour matches GitHub. Single-file diff after this change, note
absence of button:

<img width="1234" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/3618438b-e655-42a3-989f-f299267b2b8b">

Co-authored-by: Giteabot <teabot@gitea.io>
11 months agoAdd gap between diff boxes (#27776)
silverwind [Tue, 24 Oct 2023 22:47:17 +0000 (00:47 +0200)]
Add gap between diff boxes (#27776)

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">

11 months agoDo not force creation of _cargo-index repo on publish (#27266)
merlleu [Tue, 24 Oct 2023 03:26:38 +0000 (05:26 +0200)]
Do not force creation of _cargo-index repo on publish (#27266)

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: KN4CK3R <admin@oldschoolhack.me>
11 months agoUpgrade to golangci-lint@v1.55.0 (#27756)
silverwind [Tue, 24 Oct 2023 02:54:59 +0000 (04:54 +0200)]
Upgrade to golangci-lint@v1.55.0 (#27756)

https://github.com/golangci/golangci-lint/releases/tag/v1.55.0

11 months agoFix incorrect "tab" parameter for repo search sub-template (#27755)
wxiaoguang [Tue, 24 Oct 2023 02:00:06 +0000 (10:00 +0800)]
Fix incorrect "tab" parameter for repo search sub-template (#27755)

![image](https://github.com/go-gitea/gitea/assets/2114189/c546824e-4824-4f4d-bd33-e558c6ddf0ef)

![image](https://github.com/go-gitea/gitea/assets/2114189/713eb72c-22fb-412b-a867-9cccbf7548ec)

11 months agoFix label render containing invalid HTML (#27752)
Earl Warren [Mon, 23 Oct 2023 23:02:00 +0000 (01:02 +0200)]
Fix label render containing invalid HTML (#27752)

- 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: Gusted <postmaster@gusted.xyz>
11 months agoFix duplicate project board when hitting `enter` key (#27746)
Nanguan Lin [Mon, 23 Oct 2023 12:40:33 +0000 (20:40 +0800)]
Fix duplicate project board when hitting `enter` key (#27746)

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.

11 months agoFix `link-action` redirect network error (#27734)
Nanguan Lin [Mon, 23 Oct 2023 12:34:17 +0000 (20:34 +0800)]
Fix `link-action` redirect network error (#27734)

<img width="823" alt="image"
src="https://github.com/go-gitea/gitea/assets/70063547/99da3d5a-c28a-4fd0-8ae0-88461a9142e2">

---------

Co-authored-by: 6543 <6543@obermui.de>
11 months agoFix incorrect ctx usage in defer function (#27740)
wxiaoguang [Sun, 22 Oct 2023 14:12:27 +0000 (22:12 +0800)]
Fix incorrect ctx usage in defer function (#27740)

11 months agoEnable followCursor for language stats bar (#27713)
silverwind [Sun, 22 Oct 2023 13:06:04 +0000 (15:06 +0200)]
Enable followCursor for language stats bar (#27713)

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.

11 months agoteams: new View button (#27685)
tomholford [Sun, 22 Oct 2023 12:34:16 +0000 (05:34 -0700)]
teams: new View button (#27685)

Per the discussion on #22054, the flow for adding a new team member to
an org is not intuitive for new Gitea users.

The ideal solution would be to add a new button on the Org > Members
index view (see the screenshot mockup in the issue description).
However, this would require a refactor of the UX for the flow. The
current flow has an implicit context of which team within the org the
new member is being added to ('Owners' by default). From the Members
index, there is no implicit context; the flow would have to add a picker
for which team the new member should be added to.

So, as a stopgap, this change simply adds a button to the Teams index
page that performs the same action as clicking on the title of the team
(a behavior that is currently too obscure as indicated in the comments
on the issue). This should reduce support burden and serve as a decent
temporary measure until the Add Member flow is refactored.

---------

Co-authored-by: tomholford <tomholford@users.noreply.github.com>
11 months agofix issues in translation file (#27699)
Denys Konovalov [Sun, 22 Oct 2023 11:59:31 +0000 (13:59 +0200)]
fix issues in translation file (#27699)

- use correct comment sign for INI (`;`)
- remove duplicated `repo.branch.search` key
- remove duplicated spaces & similar

11 months agoFix an indentation in the Chinese documentation of Act Runner (#27730)
HoshinoRei [Sun, 22 Oct 2023 11:37:56 +0000 (19:37 +0800)]
Fix an indentation in the Chinese documentation of Act Runner (#27730)

In the [English
document](https://docs.gitea.com/1.21/usage/actions/act-runner#configuring-cache-when-starting-a-runner-using-docker-image),
there is indentation here, but there is no indentation in the Chinese
document.

11 months ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 22 Oct 2023 00:24:59 +0000 (00:24 +0000)]
[skip ci] Updated translations via Crowdin

11 months agoFix org team endpoint (#27721)
Nanguan Lin [Sat, 21 Oct 2023 23:40:59 +0000 (07:40 +0800)]
Fix org team endpoint (#27721)

Fix #27711

11 months agoImprove diff tree spacing (#27714)
silverwind [Sat, 21 Oct 2023 10:38:19 +0000 (12:38 +0200)]
Improve diff tree spacing (#27714)

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: 6543 <m.huber@kithara.com>
11 months agorefactor: make db iterate context aware (#27710)
6543 [Sat, 21 Oct 2023 02:05:29 +0000 (04:05 +0200)]
refactor: make db iterate context aware (#27710)

the iteration will run until finished atm.

this changes it by checking if if the context got canceled before each
run of a loop sequence is executed

[View this pull with now
whitespace](https://github.com/go-gitea/gitea/pull/27710/files?diff=unified&w=1)

11 months ago[FIX] resolve confusing colors in languages stats by insert a gap (#27704)
MrDevil [Fri, 20 Oct 2023 17:33:05 +0000 (01:33 +0800)]
[FIX] resolve confusing colors in languages stats by insert a gap (#27704)

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">

11 months agoFix sticky diff header background (#27697)
silverwind [Fri, 20 Oct 2023 14:56:19 +0000 (16:56 +0200)]
Fix sticky diff header background (#27697)

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">

11 months agoReplace -1 with GhostUserID (#27703)
Nanguan Lin [Fri, 20 Oct 2023 14:43:08 +0000 (22:43 +0800)]
Replace -1 with GhostUserID (#27703)

11 months agoClean some functions about project issue (#27705)
Nanguan Lin [Fri, 20 Oct 2023 12:01:25 +0000 (20:01 +0800)]
Clean some functions about project issue (#27705)

1. remove unused function `MoveIssueAcrossProjectBoards`
2. extract the project board condition into a function
3. use db.NoCondition instead of -1. (BTW, the usage of db.NoCondition
is too confusing. Is there any way to avoid that?)
4. remove the unnecessary comment since the ctx refactor is completed.
5. Change `b.ID != 0` to `b.ID > 0`. It's more intuitive but I think
they're the same since board ID can't be negative.

11 months agoAdapt `.changelog.yml` to new labeling system (#27701)
delvh [Thu, 19 Oct 2023 22:22:00 +0000 (00:22 +0200)]
Adapt `.changelog.yml` to new labeling system (#27701)

Otherwise, it is not possible anymore to generate changelogs.

11 months agoUpdate and add new eslint plugins (#27698)
silverwind [Thu, 19 Oct 2023 19:51:56 +0000 (21:51 +0200)]
Update and add new eslint plugins (#27698)

- Switch `eslint-plugin-import` to
[`eslint-plugin-i`](https://github.com/un-es/eslint-plugin-i), a fork
with better dependencies
- Update `eslint-plugin-regexp` to 2.0.0 and add new rules
- Add
[`eslint-plugin-vitest`](https://github.com/veritem/eslint-plugin-vitest)

11 months agoShow total TrackedTime on issue/pull/milestone lists (#26672)
6543 [Thu, 19 Oct 2023 14:08:31 +0000 (16:08 +0200)]
Show total TrackedTime on issue/pull/milestone lists (#26672)

TODOs:
- [x] write test for `GetIssueTotalTrackedTime`
- [x] frontport kitharas template changes and make them mobile-friendly

---

![image](https://github.com/go-gitea/gitea/assets/24977596/6713da97-201f-4217-8588-4c4cec157171)

![image](https://github.com/go-gitea/gitea/assets/24977596/3a45aba8-26b5-4e6a-b97d-68bfc2bf9024)

---
*Sponsored by Kithara Software GmbH*

11 months agoAdd doctor dbconsistency fix to delete repos with no owner (#27290)
6543 [Thu, 19 Oct 2023 13:20:52 +0000 (15:20 +0200)]
Add doctor dbconsistency fix to delete repos with no owner (#27290)

to address #27273
replace #24873

11 months agoDelete repos of org when purge delete user (#27273)
JakobDev [Thu, 19 Oct 2023 13:16:11 +0000 (15:16 +0200)]
Delete repos of org when purge delete user (#27273)

Fixes https://codeberg.org/forgejo/forgejo/issues/1514

I had to remove `RenameOrganization` to avoid circular import.

We should really add some foreign keys to the database.

12 months agoFix required checkboxes in issue forms (#27592)
JakobDev [Thu, 19 Oct 2023 11:43:15 +0000 (13:43 +0200)]
Fix required checkboxes in issue forms (#27592)

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)

12 months agoUpgrade xorm (#27673)
Nanguan Lin [Thu, 19 Oct 2023 10:25:57 +0000 (18:25 +0800)]
Upgrade xorm (#27673)

Related to https://gitea.com/xorm/xorm/pulls/2341

12 months ago[docs] Add note that PROTOCOL config is case-sensitive (#25685)
MiloCubed [Thu, 19 Oct 2023 08:14:46 +0000 (16:14 +0800)]
[docs] Add note that PROTOCOL config is case-sensitive (#25685)

See [issue on
gitea.com](https://gitea.com/gitea/gitea-docusaurus/issues/38), copied
below for convenience:
> Hello, may I first confirm that the app.ini PROTOCOL config is case
sensitive (must be lowercase)?
>
> If so, I'd like to suggest for it to be highlighted in the [HTTPS
Setup](https://docs.gitea.com/administration/https-setup#using-the-built-in-server)
page.
> Perhaps something like:
> For the PROTOCOL=https field, make sure https is lowercase. Writing
PROTOCOL=HTTPS may result in a SSL_ERROR_RX_RECORD_TOO_LONG error on
Firefox or ERR_SSL_PROTOCOL_ERROR on Chrome and Edge.
>
> Background
> At first I carelessly wrote PROTOCOL=HTTPS in my app.ini, and Firefox
didn't allow me to connect because:
> Secure Connection Failed
> An error occurred during a connection to gitea.local.lan. SSL received
a record that exceeded the maximum permissible length.
> Error code: SSL_ERROR_RX_RECORD_TOO_LONG
> I spent maybe half an hour troubleshooting my certs, ports, and other
configs before backtracking to the start and realizing the
capitalization difference there 😅. When I changed that config to
lowercase, it worked.

For this PR I added the note in the Config Cheat Sheet page and fixed
the links to it from the HTTPS Setup page.

Was originally thinking to put the note in the HTTPS Setup page itself,
but since there are 2 sections referencing the PROTOCOL config, I was
thinking it'd be neater and more concise to put it in the Config Cheat
Sheet page instead. Especially since both sections already link to it,
and I actually tried to check that link quite early on in my
troubleshooting (but didn't pay much attention to it since the link was
broken).

## Before/After screenshots as per [this repo's
docs](https://github.com/go-gitea/gitea/tree/main/docs)

Before - links

![image](https://github.com/go-gitea/gitea/assets/135522693/e0745077-f6a9-4178-aa78-2155ccb58fd6)
Note: For this the links weren't broken, the links fix is because they
were broken on gitea.com's docs (see below).

After - links

![image](https://github.com/go-gitea/gitea/assets/135522693/748b3759-aa13-4ad0-9811-c6664b6cdd35)

Before - config cheat sheet

![image](https://github.com/go-gitea/gitea/assets/135522693/4ff2e4e6-3528-4cea-a7a6-64a75854eb99)

After - config cheat sheet

![image](https://github.com/go-gitea/gitea/assets/135522693/c8e07ab6-5a26-4582-a4d0-b83d1f11a30e)

## Before/After screenshots as per [gitea.com's
docs](https://gitea.com/gitea/gitea-docusaurus)

Before - links

![image](https://github.com/go-gitea/gitea/assets/135522693/4d26ea67-b987-4b91-810b-c53852a13078)

After - links

![image](https://github.com/go-gitea/gitea/assets/135522693/24d02907-7f9e-4228-a190-7696623c00f7)

Before - config cheat sheet

![image](https://github.com/go-gitea/gitea/assets/135522693/978eedfd-ce05-488d-ab54-9d7f3c9f233d)

After - config cheat sheet

![image](https://github.com/go-gitea/gitea/assets/135522693/12d22566-a2b0-45ec-8302-a88eae9365d8)

12 months agoRemove network call on `make clean` (#27689)
techknowlogick [Thu, 19 Oct 2023 08:02:22 +0000 (04:02 -0400)]
Remove network call on `make clean` (#27689)

fix #27653

credit to silverwind for finding issue

12 months agoAdd unit tests for action runner token (#27670)
Nanguan Lin [Thu, 19 Oct 2023 07:24:24 +0000 (15:24 +0800)]
Add unit tests for action runner token (#27670)

In case the behavior of the register token changes.

12 months agoTypos fixed in documentation files (#27687)
SandeshPyakurel [Thu, 19 Oct 2023 06:46:26 +0000 (12:31 +0545)]
Typos fixed in documentation files (#27687)

Typos fixed in multiple docs files.

12 months ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 19 Oct 2023 00:23:11 +0000 (00:23 +0000)]
[skip ci] Updated translations via Crowdin

12 months agoAdd link for repositories README file (#27684)
sebastian-sauer [Wed, 18 Oct 2023 22:59:46 +0000 (00:59 +0200)]
Add link for repositories README file (#27684)

this allows to deep link to the readme section of a repository.

fixes #27641

Screenshots:

No changes on initial display:

![image](https://github.com/go-gitea/gitea/assets/1135157/efbef50e-c24b-4cca-b19f-9092e70b5a5f)

On hover the link is shown:

![image](https://github.com/go-gitea/gitea/assets/1135157/c8dff2b8-31dc-4b7b-96d0-27642318483d)

12 months agoFix typo "GetLatestRunnerToken" (#27680)
Jason Song [Wed, 18 Oct 2023 15:52:44 +0000 (23:52 +0800)]
Fix typo "GetLatestRunnerToken" (#27680)

12 months agoClipboard copy enhancements (#27669)
silverwind [Wed, 18 Oct 2023 15:16:06 +0000 (17:16 +0200)]
Clipboard copy enhancements (#27669)

1. Do not show temporary tooltips that are triggered from within
dropdowns. Previously this resulted in the tooltip being stuck to
top-left of the page like seen on issue comment URL copy. I could not
figure out any tippy options that prevent this, so I think it's better
to just not show it.
1. Refactor `initGlobalCopyToClipboardListener` so that it does not run
a often useless `document.querySelector` on every click, make
`data-clipboard-text-type` work with `data-clipboard-target`. No use in
current code base but still good to have. Finally some minor code
cleanup in the function.

Point 1 is for this copy button:

<img width="229" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/81f34746-8ea5-43d9-8c6f-f6f417a9e4ad">

---------

Co-authored-by: Giteabot <teabot@gitea.io>
12 months agoRemove unnecessary parameter (#27671)
Lunny Xiao [Wed, 18 Oct 2023 15:03:10 +0000 (23:03 +0800)]
Remove unnecessary parameter (#27671)

12 months agoAlways delete existing scheduled action tasks (#27662)
KN4CK3R [Wed, 18 Oct 2023 10:34:39 +0000 (12:34 +0200)]
Always delete existing scheduled action tasks (#27662)

Fixes #27650

12 months agoSupport allowed hosts for webhook to work with proxy (#27655)
Jason Song [Wed, 18 Oct 2023 09:44:36 +0000 (17:44 +0800)]
Support allowed hosts for webhook to work with proxy (#27655)

When `webhook.PROXY_URL` has been set, the old code will check if the
proxy host is in `ALLOWED_HOST_LIST` or reject requests through the
proxy. It requires users to add the proxy host to `ALLOWED_HOST_LIST`.
However, it actually allows all requests to any port on the host, when
the proxy host is probably an internal address.

But things may be even worse. `ALLOWED_HOST_LIST` doesn't really work
when requests are sent to the allowed proxy, and the proxy could forward
them to any hosts.

This PR fixes it by:

- If the proxy has been set, always allow connectioins to the host and
port.
- Check `ALLOWED_HOST_LIST` before forwarding.

12 months agoImprove the list header in milestone page (#27302)
yp05327 [Wed, 18 Oct 2023 00:03:42 +0000 (09:03 +0900)]
Improve the list header in milestone page (#27302)

The ui of list header in milestone page is not same as issue and pr list
page.
And they are using different template codes which can be merged into
one.

Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/29eb426c-2dd6-4cf2-96e0-82339fb631bb)

![image](https://github.com/go-gitea/gitea/assets/18380374/b36c4dff-469a-4395-8a02-a8c54e17ab21)

![image](https://github.com/go-gitea/gitea/assets/18380374/d882c74a-451b-431d-b58e-3635a15d9718)

![image](https://github.com/go-gitea/gitea/assets/18380374/292cd38d-1b50-47f1-b32c-9b5de90ce5fb)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/4529234e-67dc-4e17-9440-e638be4fbc41)

![image](https://github.com/go-gitea/gitea/assets/18380374/c15b4d86-0762-497b-b28d-72d09443d629)

---------

Co-authored-by: puni9869 <80308335+puni9869@users.noreply.github.com>
12 months agoFix poster is not loaded in get default merge message (#27657)
Lunny Xiao [Tue, 17 Oct 2023 15:07:23 +0000 (23:07 +0800)]
Fix poster is not loaded in get default merge message (#27657)

12 months agoHide archived labels by default from the suggestions when assigning labels for an...
puni9869 [Tue, 17 Oct 2023 14:10:45 +0000 (19:40 +0530)]
Hide archived labels by default from the suggestions when assigning labels for an issue (#27451)

Followup of #27115
Finally closes #25237

## Screenshots
### Issue Sidebar
<img width="513" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/9f7fda2f-5a03-4684-8619-fd3498a95b41">

### PR sidebar
<img width="367" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/53db9b64-faec-4a67-91d6-76945596a469">

### PR sidebar with archived labels shown
<img width="352" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/9dc5050f-4e69-4f76-bb83-582480a2281e">

---------

Signed-off-by: puni9869 <punitinani1@hotmail.com>
Co-authored-by: silverwind <me@silverwind.io>
12 months agoactions/setup-go use go-version-file (#27651)
Yevhen Pavlov [Tue, 17 Oct 2023 10:24:54 +0000 (13:24 +0300)]
actions/setup-go use go-version-file (#27651)

These changes will allow not to specify the version of go in every
pipeline.

12 months agoUpdate agit-support.en-us.md (#27652)
Sandro Santilli [Tue, 17 Oct 2023 09:53:36 +0000 (11:53 +0200)]
Update agit-support.en-us.md (#27652)

Clarify Agit PR creation documentation

See https://github.com/go-gitea/gitea/issues/27579

12 months agocleanup repo details icons/labels (#27644)
Denys Konovalov [Mon, 16 Oct 2023 21:06:15 +0000 (23:06 +0200)]
cleanup repo details icons/labels (#27644)

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.

12 months agoImprove dropdown button alignment and fix hover bug (#27632)
wxiaoguang [Mon, 16 Oct 2023 07:26:08 +0000 (15:26 +0800)]
Improve dropdown button alignment and fix hover bug (#27632)

1. fix #27631 , and add samples to devtest page
2. fix incorrect color for "ui dropdown button" when hover

12 months ago[skip ci] Updated licenses and gitignores
GiteaBot [Mon, 16 Oct 2023 00:24:20 +0000 (00:24 +0000)]
[skip ci] Updated licenses and gitignores

12 months agoImprove retrying index issues (#27554)
Jason Song [Sun, 15 Oct 2023 18:56:57 +0000 (02:56 +0800)]
Improve retrying index issues (#27554)

Fix #27540