]> source.dussan.org Git - gitea.git/log
gitea.git
13 months agoUse `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804)
KN4CK3R [Wed, 30 Aug 2023 06:55:25 +0000 (08:55 +0200)]
Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804)

13 months agoFix verifyCommits error when push a new branch (#26664)
CaiCandong [Wed, 30 Aug 2023 02:27:53 +0000 (10:27 +0800)]
Fix verifyCommits error when push a new branch (#26664)

> ### Description
> If a new branch is pushed, and the repository has a rule that would
require signed commits for the new branch, the commit is rejected with a
500 error regardless of whether it's signed.
>
> When pushing a new branch, the "old" commit is the empty ID
(0000000000000000000000000000000000000000). verifyCommits has no
provision for this and passes an invalid commit range to git rev-list.
Prior to 1.19 this wasn't an issue because only pre-existing individual
branches could be protected.
>
> I was able to reproduce with
[try.gitea.io/CraigTest/test](https://try.gitea.io/CraigTest/test),
which is set up with a blanket rule to require commits on all branches.

Fix #25565
Very thanks to @Craig-Holmquist-NTI for reporting the bug and suggesting
an valid solution!

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
13 months agoFix Uint8Array comparisons and update vitest (#26805)
silverwind [Wed, 30 Aug 2023 01:56:44 +0000 (03:56 +0200)]
Fix Uint8Array comparisons and update vitest (#26805)

Compare those `Uint8Array` via conversion to Array which are properly
comparable, so that we don't have to worry about whether `TextEncoder`
and `UInt8Array` from the environment are compatible or not.

---------

Co-authored-by: delvh <dev.lh@web.de>
13 months agoAdd various missing files-changed dependencies (#26799)
silverwind [Wed, 30 Aug 2023 01:40:13 +0000 (03:40 +0200)]
Add various missing files-changed dependencies (#26799)

We were missing a number of config files like `.golangci.yml` in the
dependencies for the pull request pipelines, which resulted in the
linting not running for https://github.com/go-gitea/gitea/pull/26786
because only `.golangci.yml` had changed.

13 months agoImprove flex list item padding (#26779)
wxiaoguang [Tue, 29 Aug 2023 23:13:30 +0000 (07:13 +0800)]
Improve flex list item padding (#26779)

Replace #26761

It's better to keep children elements simple, and let parent containers
layout the necessary padding/margin.

The old `not(:last-child)` and `.flex-item + .flex-item` are not easy to
maintain (for example, what if the developer would like to use a "tiny
height" item?)

The old approach also makes some UI look strange because the first item
doesn't have proper padding-top.

In this PR, we just simply use `.flex-item { padding: ... }`:

* Developers could manually set the item height they want easily
* It's easier to make it work with various containers -- with padding
(`ui segment`) and without padding (`div`)

And added more samples/examples.

![image](https://github.com/go-gitea/gitea/assets/2114189/719ea712-0241-4426-b67f-5723993c4ed7)

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoInclude the GITHUB_TOKEN/GITEA_TOKEN secret for fork pull requests (#26759)
js6pak [Tue, 29 Aug 2023 22:13:16 +0000 (00:13 +0200)]
Include the GITHUB_TOKEN/GITEA_TOKEN secret for fork pull requests (#26759)

Include `GITHUB_TOKEN`/`GITEA_TOKEN` secrets for actions triggered by
pull requests

This makes it consistent with the environment variables which you can
already access

```shell
echo env: $GITHUB_TOKEN
echo expression: ${{ secrets.GITHUB_TOKEN }}
```
before

![image](https://github.com/go-gitea/gitea/assets/35262707/b6f750f6-3995-40f0-b8aa-df01e7997c37)
after

![image](https://github.com/go-gitea/gitea/assets/35262707/ab74464b-7638-458a-afd5-f39e6101d2cf)

---------

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: Giteabot <teabot@gitea.io>
13 months agofeat(API): add route and implementation for creating/updating repository secret ...
Bo-Yi Wu [Tue, 29 Aug 2023 20:54:49 +0000 (04:54 +0800)]
feat(API): add route and implementation for creating/updating repository secret (#26766)

spec:
https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-a-repository-secret

- Add a new route for creating or updating a secret value in a
repository
- Create a new file `routers/api/v1/repo/action.go` with the
implementation of the `CreateOrUpdateSecret` function
- Update the Swagger documentation for the `updateRepoSecret` operation
in the `v1_json.tmpl` template file

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoReplace deprecated `elliptic.Marshal` (#26800)
Chongyi Zheng [Tue, 29 Aug 2023 20:19:40 +0000 (16:19 -0400)]
Replace deprecated `elliptic.Marshal` (#26800)

In PR #26786, the Go version for golangci-lint is bumped to 1.21. This
causes the following error:

```
models/migrations/v1_16/v210.go:132:23: SA1019: elliptic.Marshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function returns an encoding equivalent to that of PublicKey.Bytes in crypto/ecdh. (staticcheck)
                                        PublicKey:       elliptic.Marshal(elliptic.P256(), parsed.PubKey.X, parsed.PubKey.Y),
```

The change now uses [func (*PublicKey)
ECDH](https://pkg.go.dev/crypto/ecdsa#PublicKey.ECDH), which is added in
Go 1.20.

13 months agoUpdating the js libraries to latest version. (#26795)
puni9869 [Tue, 29 Aug 2023 18:29:13 +0000 (23:59 +0530)]
Updating the js libraries to latest version. (#26795)

As title.

<img width="657" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/db8f6c80-78b5-4992-800c-802ee7b9ba6d">

13 months agoFix some slice append usages (#26778)
Chongyi Zheng [Tue, 29 Aug 2023 15:47:26 +0000 (11:47 -0400)]
Fix some slice append usages (#26778)

Co-authored-by: delvh <dev.lh@web.de>
13 months agoUse Go 1.21 for golangci-lint (#26786)
Chongyi Zheng [Tue, 29 Aug 2023 14:25:24 +0000 (10:25 -0400)]
Use Go 1.21 for golangci-lint (#26786)

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoFix notification circle (border-radius) (#26794)
wxiaoguang [Tue, 29 Aug 2023 14:03:34 +0000 (22:03 +0800)]
Fix notification circle (border-radius) (#26794)

`border-radius` means `radius`, not `diameter`, so it should be `50%` and `boxHeight / 2`

13 months agoFix context filter has no effect in dashboard (#26695)
yp05327 [Tue, 29 Aug 2023 12:46:52 +0000 (21:46 +0900)]
Fix context filter has no effect in dashboard (#26695)

Fix #26686

13 months agoAdd default label in branch select list (#26697)
yp05327 [Tue, 29 Aug 2023 12:15:19 +0000 (21:15 +0900)]
Add default label in branch select list (#26697)

13 months agoRemove redundant nil check in `WalkGitLog` (#26773)
Eng Zer Jun [Tue, 29 Aug 2023 11:03:43 +0000 (19:03 +0800)]
Remove redundant nil check in `WalkGitLog` (#26773)

From the Go specification:

> "1. For a nil slice, the number of iterations is 0."
https://go.dev/ref/spec#For_range

Therefore, an additional nil check for before the loop is unnecessary.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
13 months agoRemove fomantic `item` module (#26775)
silverwind [Tue, 29 Aug 2023 10:14:33 +0000 (12:14 +0200)]
Remove fomantic `item` module (#26775)

All selectors had `.ui.items` prefix and I did not find it in any of the
templates or JS, so this is a pretty safe removal.

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoUpdate info regarding internet connection for build (#26776)
silverwind [Tue, 29 Aug 2023 09:09:44 +0000 (11:09 +0200)]
Update info regarding internet connection for build (#26776)

This build info was outdated since we no longer vendor go modules.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
13 months agoFix being unable to use a repo that prohibits accepting PRs as a PR source. (#26785)
CaiCandong [Tue, 29 Aug 2023 09:07:15 +0000 (17:07 +0800)]
Fix being unable to use a repo that prohibits accepting PRs as a PR source. (#26785)

## Description
Sometimes, we need to use an upstream mirror repository to update the
current development repository, but mirror repositories are prohibited
from PR. It should not appear in `merge to,` but it can appear in `pull
from.`
Fix #24585 #26193 #26781
Related #24183

Many thanks to @apnote  for assisting me in reproducing this bug!

## ScreenShot
---
### Before

<img
src="https://github.com/go-gitea/gitea/assets/50507092/3d76c376-1f54-45b9-80c9-6ba8319d6a9a"
width="400px">

<img
src="https://github.com/go-gitea/gitea/assets/50507092/fbfd9f7f-421f-4a2e-9a3e-f2958bbf3312"
width="400px">

### After

<img
src="https://github.com/go-gitea/gitea/assets/50507092/e6984524-4f61-4310-b795-4d8598bd8963"
width="400px">

<img
src="https://github.com/go-gitea/gitea/assets/50507092/04065b44-78d7-4721-bf31-0f1674150727"
width="400px">

13 months agoAdd fix incorrect can_create_org_repo for org owner team (#26683)
yp05327 [Tue, 29 Aug 2023 01:11:23 +0000 (10:11 +0900)]
Add fix incorrect can_create_org_repo for org owner team (#26683)

Related to: #8312 #26491

In migration v109, we only added a new column `CanCreateOrgRepo` in Team
table, but not initial the value of it.
This may cause bug like #26491.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
13 months ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 29 Aug 2023 00:22:17 +0000 (00:22 +0000)]
[skip ci] Updated translations via Crowdin

13 months agoImprove modal dialog UI (#26764)
wxiaoguang [Mon, 28 Aug 2023 23:49:21 +0000 (07:49 +0800)]
Improve modal dialog UI (#26764)

1. Fine tune the CSS styles, and add more examples
2. Add necessary "dimmer" animation for modal dialogs, otherwise the UI
seems flicking (follow #26469)

13 months agoImprove the "bug report" template and "support options" document (#26753)
wxiaoguang [Mon, 28 Aug 2023 22:37:39 +0000 (06:37 +0800)]
Improve the "bug report" template and "support options" document (#26753)

* `/help/support` is a better document than
`/administration/logging-config` for bug reporting
* Improve `support.en-us.md`
    * Move/add detailed contents into `Advanced Bug Report Tips` section
    * Merge `Chinese Support` section into `Support Options`

13 months agoUnify `border-radius` behavior (#26770)
delvh [Mon, 28 Aug 2023 19:43:59 +0000 (21:43 +0200)]
Unify `border-radius` behavior (#26770)

## Changes
- no more hardcoded `border-radius`es (apart from `0`)
- no more value inconsistencies
- no more guessing what pixel value you should use
- two new variables:
- `--border-radius-medium` (for elements where the normal border radius
does not suffice)
  - `--border-radius-circle` (for displaying circles)

---------

Co-authored-by: silverwind <me@silverwind.io>
13 months agoReduce some allocations in type conversion (#26772)
Chongyi Zheng [Mon, 28 Aug 2023 16:43:16 +0000 (12:43 -0400)]
Reduce some allocations in type conversion (#26772)

13 months agoRefactor some CSS styles and simplify code (#26771)
wxiaoguang [Mon, 28 Aug 2023 14:14:51 +0000 (22:14 +0800)]
Refactor some CSS styles and simplify code (#26771)

Refactor some CSS styles and simplify code.

Some styles are not in use, remove them.

13 months agoAdd auth-required to config.json for Cargo http registry (#26729)
merlleu [Mon, 28 Aug 2023 07:05:39 +0000 (09:05 +0200)]
Add auth-required to config.json for Cargo http registry (#26729)

Cargo registry-auth feature requires config.json to have a property
auth-required set to true in order to send token to all registry
requests.
This is ok for git index because you can manually edit the config.json
file to add the auth-required, but when using sparse
(setting index url to
"sparse+https://git.example.com/api/packages/{owner}/cargo/"), the
config.json is dynamically rendered, and does not reflect changes to the
config.json file in the repo.

I see two approaches:
- Serve the real config.json file when fetching the config.json on the
cargo service.
- Automatically detect if the registry requires authorization. (This is
what I implemented in this PR).

What the PR does:
- When a cargo index repository is created, on the config.json, set
auth-required to wether or not the repository is private.
- When the cargo/config.json endpoint is called, set auth-required to
wether or not the request was authorized using an API token.

13 months agorefactor(API): refactor secret creation and update functionality (#26751)
Bo-Yi Wu [Mon, 28 Aug 2023 05:08:19 +0000 (13:08 +0800)]
refactor(API): refactor secret creation and update functionality (#26751)

According to the GitHub API Spec:
https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret

Merge the Create and Update secret into a single API.

- Remove the `CreateSecretOption` struct and replace it with
`CreateOrUpdateSecretOption` in `modules/structs/secret.go`
- Update the `CreateOrUpdateOrgSecret` function in
`routers/api/v1/org/action.go` to use `CreateOrUpdateSecretOption`
instead of `UpdateSecretOption`
- Remove the `CreateOrgSecret` function in
`routers/api/v1/org/action.go` and replace it with
`CreateOrUpdateOrgSecret`
- Update the Swagger documentation in
`routers/api/v1/swagger/options.go` and `templates/swagger/v1_json.tmpl`
to reflect the changes in the struct names and function names

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
13 months agoFix bug for ctx usage (#26762)
Lunny Xiao [Mon, 28 Aug 2023 04:06:47 +0000 (12:06 +0800)]
Fix bug for ctx usage (#26762)

Regression from #26158

Fix #26684

13 months agoRemove some transition related code (#26755)
wxiaoguang [Mon, 28 Aug 2023 01:26:23 +0000 (09:26 +0800)]
Remove some transition related code (#26755)

Remove transition related code because the transition module has been
removed by #26469

13 months agoExpanded minimum RSA Keylength to 3072 (#26604)
mainboarder [Mon, 28 Aug 2023 00:53:16 +0000 (02:53 +0200)]
Expanded minimum RSA Keylength to 3072 (#26604)

German Federal Office for Information Security requests in its technical
guideline BSI TR-02102-1 RSA Keylength not shorter than 3000bits
starting 2024, in the year 2023 3000bits as a recommendation. Gitea
should request longer RSA Keys by default in favor of security and drop
old clients which do not support longer keys.

https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Publikationen/TechnischeRichtlinien/TR02102/BSI-TR-02102.pdf?__blob=publicationFile&v=9
- Page 19, Table 1.2

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
13 months ago[skip ci] Updated licenses and gitignores
GiteaBot [Mon, 28 Aug 2023 00:22:48 +0000 (00:22 +0000)]
[skip ci] Updated licenses and gitignores

13 months agoUse docs.gitea.com instead of docs.gitea.io (#26739)
Lunny Xiao [Sun, 27 Aug 2023 11:59:12 +0000 (19:59 +0800)]
Use docs.gitea.com instead of docs.gitea.io (#26739)

13 months agoAdding hint `Archived` to archive label. (#26741)
puni9869 [Sun, 27 Aug 2023 09:32:54 +0000 (15:02 +0530)]
Adding hint `Archived` to archive label. (#26741)

Followup  https://github.com/go-gitea/gitea/pull/26478
## Archived labels UI

Changed:
* Enhanced the Filtered UI page to seamlessly incorporate a list of
archived labels.

Outsourced:
* Defer the implementation of specialized handling for archived labels
to upcoming pull requests. This step will be undertaken subsequent to
the successful merge of this pull request.

Screenshots

![image](https://github.com/go-gitea/gitea/assets/80308335/1f33cfb2-2bac-46f0-9103-9e62d235b1d2)

![image](https://github.com/go-gitea/gitea/assets/80308335/3609acd0-b1ba-4ee9-8c4e-1a34dbc37dd7)

![image](https://github.com/go-gitea/gitea/assets/80308335/9860196d-2391-409b-a9a0-1205ab4b412b)

---

Part of https://github.com/go-gitea/gitea/issues/25237

---------

Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: silverwind <me@silverwind.io>
13 months agoMove `modules/mirror` to `services` (#26737)
Chongyi Zheng [Sun, 27 Aug 2023 02:24:45 +0000 (22:24 -0400)]
Move `modules/mirror` to `services` (#26737)

To solve the cyclic imports in a better way

Closes #20261

13 months ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 27 Aug 2023 00:27:26 +0000 (00:27 +0000)]
[skip ci] Updated translations via Crowdin

13 months agoFix template bugs in recently_pushed_new_branches.tmpl (#26744)
wxiaoguang [Sun, 27 Aug 2023 00:16:02 +0000 (08:16 +0800)]
Fix template bugs in recently_pushed_new_branches.tmpl (#26744)

Fix some bugs from #25715, fix #25830

1. `$.locale.Tr ... Safe` needs `Escape`, but not `PathEscapeSegments`
2. The attribute should be `role`
3. The `ComposeBranchCompareURL` already does escaping correctly

13 months agoFix incorrect "tabindex" attributes (#26733)
wxiaoguang [Sat, 26 Aug 2023 02:44:00 +0000 (10:44 +0800)]
Fix incorrect "tabindex" attributes (#26733)

Fix #26731

Almost all "tabindex" in code are incorrect.

1. All "input/button" by default are focusable, so no need to use "tabindex=0"
2. All "div/span" by default are not focusable, so no need to use "tabindex=-1"
3. All "dropdown" are focusable by framework, so no need to use "tabindex"
4. Some tabindex values are incorrect (eg: `new_form.tmpl`), so remove them

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoSimplify helper CSS classes and avoid abuse (#26728)
wxiaoguang [Fri, 25 Aug 2023 23:35:10 +0000 (07:35 +0800)]
Simplify helper CSS classes and avoid abuse (#26728)

Removed CSS helper classes (some of them are not useful while some of
them are abused often)

* `gt-db`: in most cases it could be replaced by `gt-df` and the flex
layout should be encouraged. Other cases: either it does need the
`gt-df` (eg: by using `div` directly) or it is an abuse (eg: the warning
message in a form)
* `gt-di`: it doesn't seem useful, or it could be replaced by `gt-dib`
in most cases.
* `gt-dif`: not useful, it could be replaced by `flex-text-inline` or
`gt-df`
* `gt-js`: never used
* All `<i class="icon gt-df gt-ac gt-jc">` could be written as `<i
class="icon">`

## Some UI samples

### Admin Notice

![image](https://github.com/go-gitea/gitea/assets/2114189/d02010d4-dc7d-463f-bc99-dcc9b6e2e2ac)

### Admin Stacktrace

![image](https://github.com/go-gitea/gitea/assets/2114189/4045695c-a8c4-4e37-b720-e77a61b1e965)

### Org Home

![image](https://github.com/go-gitea/gitea/assets/2114189/069f02d0-76ad-4052-8a80-700d7e501d40)

### Org Team Repo

![image](https://github.com/go-gitea/gitea/assets/2114189/dc8d6106-bb6b-4f60-83ac-06cb28df3ab5)

### Release List

![image](https://github.com/go-gitea/gitea/assets/2114189/0845e8a5-d1a9-487a-9d25-3c200ad54c17)

### User Setting Application Token Scope

![image](https://github.com/go-gitea/gitea/assets/2114189/fffbde27-432b-49c6-827e-17b8cd3457ff)

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoRemove fomantic loader module (#26670)
silverwind [Fri, 25 Aug 2023 16:03:14 +0000 (18:03 +0200)]
Remove fomantic loader module (#26670)

Replace Fomantic `loader` CSS module with our existing `is-loading`
spinner. Only three places in the UI used this module, which are
pictured here:

imagediff:
<img width="1237" alt="Screenshot 2023-08-22 at 22 18 01"
src="https://github.com/go-gitea/gitea/assets/115237/b0d82531-f05e-43c6-9e5b-1bfc268c056d">

webauthn:
<img width="894" alt="Screenshot 2023-08-22 at 22 05 05"
src="https://github.com/go-gitea/gitea/assets/115237/7b583425-d944-474a-a57a-22a65bbd8b29">

heatmap (I removed the previous loading text, it was unreadable because
it was tiny and on fast machines only visible for a fraction of a
second):
<img width="764" alt="Screenshot 2023-08-22 at 22 18 44"
src="https://github.com/go-gitea/gitea/assets/115237/1c7472d6-3e17-4224-a992-d8c0b380cc73">

Also, heatmap container does not resize any more after loading now and
previous duplicate id `user-heatmap` is gone.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
13 months agoFix link in mirror docs (#26719)
silverwind [Fri, 25 Aug 2023 15:13:07 +0000 (17:13 +0200)]
Fix link in mirror docs (#26719)

Fix hash fragment in this link

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoAdd `eslint-plugin-vue-scoped-css` (#26720)
silverwind [Fri, 25 Aug 2023 13:47:27 +0000 (15:47 +0200)]
Add `eslint-plugin-vue-scoped-css` (#26720)

Adds
[eslint-plugin-vue-scoped-css](https://github.com/future-architect/eslint-plugin-vue-scoped-css)
and fixes discovered issues which are:

- 1 unused selector
- 3 selectors with `.full.height` parent in a `<style scoped>` block so
the rule could not find the parent. Move these into the unscoped block
instead. They worked before and after.

13 months agoFixed text overflow in dropdown menu (#26694)
Viktor Suprun [Fri, 25 Aug 2023 11:15:21 +0000 (22:15 +1100)]
Fixed text overflow in dropdown menu (#26694)

Fixes #26622

![image](https://github.com/go-gitea/gitea/assets/683358/168b7e4d-97ba-4b5f-a5f5-33ee67e8b4be)

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoMake web context initialize correctly for different cases (#26726)
wxiaoguang [Fri, 25 Aug 2023 11:07:42 +0000 (19:07 +0800)]
Make web context initialize correctly for different cases (#26726)

The web context (modules/context.Context) is quite complex, it's
difficult for the callers to initialize correctly.

This PR introduces a `NewWebContext` function, to make sure the web
context have the same behavior for different cases.

13 months agoRemove incorrect CSS helper classes (#26712)
wxiaoguang [Fri, 25 Aug 2023 06:47:59 +0000 (14:47 +0800)]
Remove incorrect CSS helper classes (#26712)

13 months agoFocus editor on "Write" tab click (#26714)
silverwind [Fri, 25 Aug 2023 05:26:32 +0000 (07:26 +0200)]
Focus editor on "Write" tab click (#26714)

Focus the editor when clicking the "Write" tab. Works for both Textarea
and EasyMDE. Does for some reason not work without the
`requestAnimationFrame`.

13 months agoFix review bar misalignment (#26711)
wxiaoguang [Thu, 24 Aug 2023 15:46:30 +0000 (23:46 +0800)]
Fix review bar misalignment (#26711)

13 months agoUse "small-loading-icon" insead of "btn-octicon is-loading" (#26710)
wxiaoguang [Thu, 24 Aug 2023 14:21:41 +0000 (22:21 +0800)]
Use "small-loading-icon" insead of "btn-octicon is-loading" (#26710)

The "btn-octicon is-loading" was introduced by #21842 , it is only used
by the "Copy Content" button, but the "btn-octicon" selector would
affect too many uncertain elements.

Now there is a general "small-loading-icon" class, so the "btn-octicon
is-loading" could be removed.

13 months agoImprove Image Diff UI (#26696)
wxiaoguang [Thu, 24 Aug 2023 12:13:23 +0000 (20:13 +0800)]
Improve Image Diff UI (#26696)

1. Use `is-loading` instead of `ui loader`
2. Introduce class name `image-diff-tabs`, instead of searching `gt-hidden`, which is fragile
3. Align the UI elements, see the screenshots.

13 months agoMake issue template field template access correct template data (#26698)
wxiaoguang [Thu, 24 Aug 2023 11:09:36 +0000 (19:09 +0800)]
Make issue template field template access correct template data (#26698)

Regression of #23092, the `{{$field := .}}` was missing during that refactoring.

13 months agoadd Upload URL to release API (#26663)
Earl Warren [Thu, 24 Aug 2023 10:36:10 +0000 (12:36 +0200)]
add Upload URL to release API (#26663)

- Resolves https://codeberg.org/forgejo/forgejo/issues/580
- Return a `upload_field` to any release API response, which points to
the API URL for uploading new assets.
- Adds unit test.
- Adds integration testing to verify URL is returned correctly and that
upload endpoint actually works

---------

Co-authored-by: Gusted <postmaster@gusted.xyz>
13 months agoAdd merge files files to GetCommitFileStatus (#20515)
Laurent Cahour [Thu, 24 Aug 2023 10:03:49 +0000 (12:03 +0200)]
Add merge files files to GetCommitFileStatus (#20515)

Hi,

We'd like to add merge files files to GetCommitFileStatus fucntions so
API returns the list of all the files associated to a merged pull
request commit, like GitHub API does.
The list of affectedFiles for an API commit is fetched from toCommit()
function in routers/api/v1/repo/commits.go, and API was returning no
file in case of a pull request with no conflict, or just files
associated to the confict resolution, but NOT the full list of merged
files.

This would lead to situations where a CI polling a repo for changes
could miss some file changes due to API returning an empty / partial
list in case of such merged pull requests. (Hope this makes sense :) )

NOTE: I'd like to add a unittest in
integrations/api_repo_git_commits_test.go but failed to understand how
to add my own test bare repo so I can make a test on a merged pull
request commit to check for affectedFiles.
Is there a merged pull request in there that I could use maybe?
Could someone please direct me to the relevant ressources with
informations on how to do that please?

Thanks for your time,
Laurent.

---------

Co-authored-by: Thomas Desveaux <desveaux.thomas@gmail.com>
13 months agoPATCH branch-protection updates check list even when checks are disabled (#26351)
Infinoid [Thu, 24 Aug 2023 05:36:04 +0000 (01:36 -0400)]
PATCH branch-protection updates check list even when checks are disabled (#26351)

Fixes: #26333.
Previously, this endpoint only updates the `StatusCheckContexts` field
when `EnableStatusCheck==true`, which makes it impossible to clear the
array otherwise.

This patch uses slice `nil`-ness to decide whether to update the list of
checks. The field is ignored when either the client explicitly passes in
a null, or just omits the field from the json ([which causes
`json.Unmarshal` to leave the struct field
unchanged](https://go.dev/play/p/Z2XHOILuB1Q)). I think this is a better
measure of intent than whether the `EnableStatusCheck` flag was set,
because it matches the semantics of other field types.

Also adds a test case. I noticed that [`testAPIEditBranchProtection`
only checks the branch
name](https://github.com/go-gitea/gitea/blob/c1c83dbaec840871c1247f4bc3f875309b0de6bb/tests/integration/api_branch_test.go#L68)
and no other fields, so I added some extra `GET` calls and specific
checks to make sure the fields are changing properly.

I added those checks the existing integration test; is that the right
place for it?

13 months agoAdd `member`, `collaborator`, `contributor`, and `first-time contributor` roles and...
yp05327 [Thu, 24 Aug 2023 05:06:17 +0000 (14:06 +0900)]
Add `member`, `collaborator`, `contributor`, and `first-time contributor` roles and tooltips (#26658)

GitHub like role descriptor

![image](https://github.com/go-gitea/gitea/assets/18380374/ceaed92c-6749-47b3-89e8-0e0e7ae65321)

![image](https://github.com/go-gitea/gitea/assets/18380374/8193ec34-cbf0-47f9-b0de-10dbddd66970)

![image](https://github.com/go-gitea/gitea/assets/18380374/56c7ed85-6177-425e-9f2f-926e99770782)

---------

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
13 months agochore(actions): support cron schedule task (#26655)
Lunny Xiao [Thu, 24 Aug 2023 03:06:51 +0000 (11:06 +0800)]
chore(actions): support cron schedule task (#26655)

Replace #22751

1. only support the default branch in the repository setting.
2. autoload schedule data from the schedule table after starting the
service.
3. support specific syntax like `@yearly`, `@monthly`, `@weekly`,
`@daily`, `@hourly`

## How to use

See the [GitHub Actions
document](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule)
for getting more detailed information.

```yaml
on:
  schedule:
    - cron: '30 5 * * 1,3'
    - cron: '30 5 * * 2,4'

jobs:
  test_schedule:
    runs-on: ubuntu-latest
    steps:
      - name: Not on Monday or Wednesday
        if: github.event.schedule != '30 5 * * 1,3'
        run: echo "This step will be skipped on Monday and Wednesday"
      - name: Every time
        run: echo "This step will always run"
```

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
---------

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
13 months agofeat(API): update and delete secret for managing organization secrets (#26660)
Bo-Yi Wu [Thu, 24 Aug 2023 02:07:00 +0000 (10:07 +0800)]
feat(API): update and delete secret for managing organization secrets (#26660)

- Add `UpdateSecret` function to modify org or user repo secret
- Add `DeleteSecret` function to delete secret from an organization
- Add `UpdateSecretOption` struct for updating secret options
- Add `UpdateOrgSecret` function to update a secret in an organization
- Add `DeleteOrgSecret` function to delete a secret in an organization

GitHub API

1. Update Org Secret:
https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret
2. Delete Org Secret:
https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#delete-an-organization-secret

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
13 months agoRemove ref name in PR commits page (#25876)
yp05327 [Thu, 24 Aug 2023 01:31:54 +0000 (10:31 +0900)]
Remove ref name in PR commits page (#25876)

The branch name display here is based on the repo's default branch which
is not correct.

![image](https://github.com/go-gitea/gitea/assets/18380374/d899f6dc-b240-41ea-9a3e-ea0e103874ad)

For example, if I changed the default branch, the branch name here will
also be changed:

![image](https://github.com/go-gitea/gitea/assets/18380374/032ead94-2287-4158-a9e4-02e9fb74777d)

![image](https://github.com/go-gitea/gitea/assets/18380374/e1e6cbbc-31f8-40a2-b99a-508b5b2b3145)
you can confirm this in :
https://try.gitea.io/yp05327/testrepo/pulls/1/commits

I think we do not need to display branch name here, as we already have
the branch info above.

![image](https://github.com/go-gitea/gitea/assets/18380374/66f30a0c-3c2b-4d26-936d-bbe289f33be0)

13 months agoModify the content format of the Feishu webhook (#25106)
谈笑风生间 [Thu, 24 Aug 2023 01:00:11 +0000 (09:00 +0800)]
Modify the content format of the Feishu webhook (#25106)

close https://github.com/go-gitea/gitea/issues/24368

## what my pull request does

Since the official documentation states that custom bots do not support
hyperlink functionality, simply adding it without making some formatting
changes would result in an unappealing output. Therefore, I have
modified the formatting of the output. Currently, it is only used for
Feishu.

---

[docs](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json#%E8%B6%85%E9%93%BE%E6%8E%A5%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E)

<img width="641" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/360e1c81-ab64-4ef6-851e-aa450d6e85a4">

- Issue

<img width="423" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/519f6fae-81ab-4ec8-89b8-f6a73ff93783">

- Issue Comment

<img width="548" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/749c0d1c-3657-431e-b787-8bf4c23cce83">

- Assign

<img width="431" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/066f99e5-eabb-455d-91fb-a8359cc26dc7">

<img width="457" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/c6c10f99-db83-46ef-a775-4c91979fa68f">

- Merge

<img width="408" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/e627bf43-5954-45aa-acf6-261ee046802f">

- PullRequest

<img width="425" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/72cfa714-d3fa-4fb9-abdd-e8508d756056">

13 months agoHandle "comment form combo editor init" more gracefully (#26688)
wxiaoguang [Wed, 23 Aug 2023 15:15:06 +0000 (23:15 +0800)]
Handle "comment form combo editor init" more gracefully (#26688)

Now Gitea exposes unhandled promise rejection messages as error message on the UI.

The "comment form" was quite unclear before, so it should be handled more gracefully to avoid such error.

13 months agoPrefer variables over subprocesses (#26690)
Thomas McWork [Wed, 23 Aug 2023 12:43:05 +0000 (14:43 +0200)]
Prefer variables over subprocesses (#26690)

… because it doesn't require a separate shell, spawning a process which
cost unnecessary resources and takes time.

13 months agoFix archived unix time when archiving the label (#26681)
puni9869 [Wed, 23 Aug 2023 10:12:20 +0000 (15:42 +0530)]
Fix archived unix time when archiving the label (#26681)

Small Fix :-`ArchivedUnix` column changed only change the date when it is newly archived.

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoMake "link-action" backend code respond correct JSON content (#26680)
wxiaoguang [Wed, 23 Aug 2023 09:36:57 +0000 (17:36 +0800)]
Make "link-action" backend code respond correct JSON content (#26680)

Otherwise the `link-action` JS code couldn't parse the response.

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoFix doubled box-shadow in branch dropdown menu (#26678)
wxiaoguang [Wed, 23 Aug 2023 08:13:04 +0000 (16:13 +0800)]
Fix doubled box-shadow in branch dropdown menu (#26678)

13 months agoRefactor toast module (#26677)
wxiaoguang [Wed, 23 Aug 2023 07:25:13 +0000 (15:25 +0800)]
Refactor toast module (#26677)

1. Do not use "async"
2. Call `hideToast` instead of `removeElement` for manual closing

13 months agoMore improvements for the "flex list" and the dashboard list (#26675)
wxiaoguang [Wed, 23 Aug 2023 04:23:30 +0000 (12:23 +0800)]
More improvements for the "flex list" and the dashboard list (#26675)

Follow #26649 and #25790 and add one more example (text truncate) in the devtest page

13 months agoFix counting and filtering on the dashboard page for issues (#26657)
Jason Song [Wed, 23 Aug 2023 02:29:17 +0000 (10:29 +0800)]
Fix counting and filtering on the dashboard page for issues (#26657)

This PR has multiple parts, and I didn't split them because
it's not easy to test them separately since they are all about the
dashboard page for issues.

1. Support counting issues via indexer to fix #26361
2. Fix repo selection so it also fixes #26653
3. Keep keywords in filter links.

The first two are regressions of #26012.

After:

https://github.com/go-gitea/gitea/assets/9418365/71dfea7e-d9e2-42b6-851a-cc081435c946

Thanks to @CaiCandong  for helping with some tests.

13 months agoadd mfa doc (#26654)
Lunny Xiao [Wed, 23 Aug 2023 01:56:11 +0000 (09:56 +0800)]
add mfa doc (#26654)

copy and modified from #14572

> Whilst debating enforcing MFA within our team, I realised there isn't
a lot of context to the side effects of enabling it. Most of us use Git
over HTTP and would need to add a token.

I plan to add another PR that adds a sentence to the UI about needing to
generate a token when enabling MFA if HTTP is to be used.

---------

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: silverwind <me@silverwind.io>
13 months ago[Refactor] getIssueStatsChunk to move inner function into own one (#26671)
6543 [Wed, 23 Aug 2023 01:29:49 +0000 (03:29 +0200)]
[Refactor] getIssueStatsChunk to move inner function into own one (#26671)

move inner **countSession** of **getIssueStatsChunk** into it's own
function for reuse

---
*Sponsored by Kithara Software GmbH*

13 months agoUse line-height: normal by default (#26635)
wxiaoguang [Tue, 22 Aug 2023 10:19:15 +0000 (18:19 +0800)]
Use line-height: normal by default (#26635)

Fix #26537 again because 1.15 is too small for some fonts.

13 months agoImprove repo sub menu (#26531)
yp05327 [Tue, 22 Aug 2023 09:20:09 +0000 (18:20 +0900)]
Improve repo sub menu (#26531)

Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/9e71282c-4645-45f3-bdb8-13c4333f7c2b)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/656ff837-35cf-43f8-88d0-f5e123600e57)

Icons are not in the middle of the line.

13 months agoFix organization list in dashboard (#26650)
yp05327 [Tue, 22 Aug 2023 08:49:00 +0000 (17:49 +0900)]
Fix organization list in dashboard (#26650)

Fix ui problem comes from #26326

Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/c59264c9-ed63-48ae-8f76-779058e4b226)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/77d69274-6988-494a-970a-42fe69767e1e)

13 months agoImprove show role (#26621) 22751/head
yp05327 [Tue, 22 Aug 2023 05:30:33 +0000 (14:30 +0900)]
Improve show role (#26621)

Add a general show role template.

13 months agoImprove some flex layouts (#26649)
wxiaoguang [Tue, 22 Aug 2023 04:57:02 +0000 (12:57 +0800)]
Improve some flex layouts (#26649)

Fix #26617

1. Separate the "flex-list" examples into a dedicated template, and add some more examples
2. Use `flex-basis` instead of `flex-shrink` for `flex-item-trailing`, to avoid wrapping the texts too aggressively
3. Some `flex-wrap: wrap;` are removed

13 months agofeat: implement organization secret creation API (#26566)
Bo-Yi Wu [Tue, 22 Aug 2023 03:20:34 +0000 (11:20 +0800)]
feat: implement organization secret creation API (#26566)

- Add a new `CreateSecretOption` struct for creating secrets
- Implement a `CreateOrgSecret` function to create a secret in an
organization
- Add a new route in `api.go` to handle the creation of organization
secrets
- Update the Swagger template to include the new `CreateOrgSecret` API
endpoint

---------

Signed-off-by: appleboy <appleboy.tw@gmail.com>
13 months agoCheck disabled workflow when rerun jobs (#26535)
yp05327 [Tue, 22 Aug 2023 02:30:02 +0000 (11:30 +0900)]
Check disabled workflow when rerun jobs (#26535)

In GitHub, we can not rerun jobs if the workflow is disabled.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
13 months agoUpdate minimum password length requirements (#25946)
techknowlogick [Mon, 21 Aug 2023 19:27:50 +0000 (15:27 -0400)]
Update minimum password length requirements (#25946)

13 months agocynkra is covered via oc links now (#26641)
techknowlogick [Mon, 21 Aug 2023 17:16:23 +0000 (13:16 -0400)]
cynkra is covered via oc links now (#26641)

13 months agoupdate config docs url (#26640)
techknowlogick [Mon, 21 Aug 2023 17:14:49 +0000 (13:14 -0400)]
update config docs url (#26640)

13 months agodevpod use go1.21 (#26637)
techknowlogick [Mon, 21 Aug 2023 16:20:50 +0000 (12:20 -0400)]
devpod use go1.21 (#26637)

13 months agoUse correct minio error (#26634)
delvh [Mon, 21 Aug 2023 16:20:11 +0000 (18:20 +0200)]
Use correct minio error (#26634)

Previously, `err` was defined above, checked for `err == nil` and used
nowhere else.
Hence, the result of `convertMinioErr` would always be `nil`.
This leads to a NPE further down the line.
That is not intentional, it should convert the error of the most recent
operation, not one of its predecessors.

Found through
https://discord.com/channels/322538954119184384/322538954119184384/1143185780206993550.

13 months agoRemove avatarHTML from template helpers (#26598)
wxiaoguang [Mon, 21 Aug 2023 15:00:14 +0000 (23:00 +0800)]
Remove avatarHTML from template helpers (#26598)

The HTML code is more readable and more correct (it needs `"ui avatar"`
class)

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoAdd optimistic lock to ActionRun table (#26563)
Jason Song [Mon, 21 Aug 2023 14:07:52 +0000 (22:07 +0800)]
Add optimistic lock to ActionRun table (#26563)

Should fix #26559.

How xorm works: https://xorm.io/docs/chapter-06/1.lock/

---------

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoImprove the branch selector tab UI (#26631)
wxiaoguang [Mon, 21 Aug 2023 13:35:02 +0000 (21:35 +0800)]
Improve the branch selector tab UI (#26631)

13 months agoImprove translation of milestone filters (#26569)
CaiCandong [Mon, 21 Aug 2023 13:11:07 +0000 (21:11 +0800)]
Improve translation of milestone filters (#26569)

https://github.com/go-gitea/gitea/issues/26567#issue-1855312074
> The terms `closest` and `furthest` don't describe the actual sorting
behavior as these two are semantically relative to the current date.
> Could we switch to `earliest` and `latest` instead?

close #26567

---------

Co-authored-by: yp05327 <576951401@qq.com>
Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoAdd `branch_filter` to hooks API endpoints (#26599)
Yarden Shoham [Mon, 21 Aug 2023 11:43:52 +0000 (14:43 +0300)]
Add `branch_filter` to hooks API endpoints (#26599)

We now include the branch filler in the response.

- Closes #26591

# Before

![image](https://github.com/go-gitea/gitea/assets/20454870/73933940-c1a7-4573-abae-f340b63028b2)

# After

![image](https://github.com/go-gitea/gitea/assets/20454870/3b3c4a85-0f7c-48c7-8617-def7a66c671d)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoReplace box-shadow for `floating` dropdown as well (#26581)
silverwind [Mon, 21 Aug 2023 10:49:49 +0000 (12:49 +0200)]
Replace box-shadow for `floating` dropdown as well (#26581)

Add `box-shadow` replacement to the `floating` dropdown variant as well,
which was missed in https://github.com/go-gitea/gitea/pull/26469. The
Fomantic style has `!important`, so this has to have too. Also made a
tiny adjustment to shadow color on dark theme.

<img width="305" alt="Screenshot 2023-08-18 at 16 40 34"
src="https://github.com/go-gitea/gitea/assets/115237/a0aac9cb-6393-4d69-b0b3-00eaac5ccf9f">
<img width="202" alt="Screenshot 2023-08-18 at 16 40 22"
src="https://github.com/go-gitea/gitea/assets/115237/0a5fa3aa-7452-4dbd-86ed-ccbc1c872ebb">

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoAdd link to job details and tooltip to commit status in repo list in dashboard (...
yp05327 [Mon, 21 Aug 2023 07:26:10 +0000 (16:26 +0900)]
Add link to job details and tooltip to commit status in repo list in dashboard (#26326)

Tooltip:

![image](https://github.com/go-gitea/gitea/assets/18380374/237cb545-7844-424b-b995-1008eaaaedec)

Link to the target job:

![image](https://github.com/go-gitea/gitea/assets/18380374/0c11a97f-6517-47f2-8773-f381488c084e)

13 months agoIgnore the trailing slashes when comparing oauth2 redirect_uri (#26597)
wxiaoguang [Mon, 21 Aug 2023 04:15:55 +0000 (12:15 +0800)]
Ignore the trailing slashes when comparing oauth2 redirect_uri (#26597)

Fix #26526

13 months agoUpdate tool dependencies (#26607)
silverwind [Sun, 20 Aug 2023 22:59:19 +0000 (00:59 +0200)]
Update tool dependencies (#26607)

- Updated all tool dependencies to latest versions
- Add Makefile to `swagger` files because it specifies `go-swagger`
version
- Fix lint

13 months agobump go to 1.21 (#26608)
techknowlogick [Sun, 20 Aug 2023 22:27:46 +0000 (18:27 -0400)]
bump go to 1.21 (#26608)

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoUpdate 1.20.3 changelog (#26609)
delvh [Sun, 20 Aug 2023 19:17:15 +0000 (21:17 +0200)]
Update 1.20.3 changelog (#26609)

13 months agoFix NPM packages name validation (#26595)
TimberBro [Sun, 20 Aug 2023 15:06:42 +0000 (18:06 +0300)]
Fix NPM packages name validation (#26595)

- Added new tests to cover corner cases
- Replace existing regex with new one
Closes #26551

---
As @silverwind suggested, I started from
[validate-npm-package-name](https://github.com/npm/validate-npm-package-name),
but found this solution too complicated.
Then I tried to fix existing regex myself, but thought, that exclude all
restricted symbols is harder, than set only allowed symbols.
Then I search a bit more and found
[package-name-regex](https://github.com/dword-design/package-name-regex)
and regex from it works for all new test cases.

Let me know, if more information or help with this PR is needed.

13 months agoUse "input" event instead of "keyup" event for migration form (#26602)
wxiaoguang [Sun, 20 Aug 2023 14:36:07 +0000 (22:36 +0800)]
Use "input" event instead of "keyup" event for migration form (#26602)

Otherwise, "pasted" content won't update the UI.

13 months agoDo not use deprecated log config options by default (#26592)
wxiaoguang [Sun, 20 Aug 2023 01:05:29 +0000 (09:05 +0800)]
Do not use deprecated log config options by default (#26592)

Simplify the log config

* Remove unnecessary `ROUTER` config, it defaults to the `MODE`.
* `XORM` config was deprecated

13 months agofix reopen logic for agit flow pull request (#26399)
a1012112796 [Sat, 19 Aug 2023 09:29:34 +0000 (17:29 +0800)]
fix reopen logic for agit flow pull request (#26399)

the head branch is meaningless for a agit flow pull request, so should
not check it when reopen it.

related: #24231
fix #26334

Signed-off-by: a1012112796 <1012112796@qq.com>
13 months agoUpdate JS dependencies (#26586)
silverwind [Sat, 19 Aug 2023 08:18:39 +0000 (10:18 +0200)]
Update JS dependencies (#26586)

- Update all JS dependencies
- Adapt `ansi_up` import for ESM
- Tested Mermaid and Ansi rendering

13 months agodocs: template variables (#26547)
lonix1 [Sat, 19 Aug 2023 00:24:27 +0000 (02:24 +0200)]
docs: template variables (#26547)

Explanation for using gitea's variables in `.tmpl` files.

Thanks to @wxiaoguang for advising me on
[discord](https://discord.com/channels/322538954119184384/561007778139734027/1141217820441587722).

13 months ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 19 Aug 2023 00:20:23 +0000 (00:20 +0000)]
[skip ci] Updated translations via Crowdin

13 months agoRewrite the DiffFileTreeItem and fix misalignment (#26565)
wxiaoguang [Fri, 18 Aug 2023 19:55:56 +0000 (03:55 +0800)]
Rewrite the DiffFileTreeItem and fix misalignment (#26565)

Fix some layout / user-interaction problems and close #25650 , the code
has been simplified (+46 −108)

<details>

![image](https://github.com/go-gitea/gitea/assets/2114189/55c38812-3338-4048-9137-0cae0ef213e8)

</details>

---------

Co-authored-by: delvh <dev.lh@web.de>
13 months agoAllow text selection in actions step header (#26588)
silverwind [Fri, 18 Aug 2023 18:38:29 +0000 (20:38 +0200)]
Allow text selection in actions step header (#26588)

13 months agoBump xgo to go-1.21.x and node to 20 in release-version (#26589)
silverwind [Fri, 18 Aug 2023 18:32:14 +0000 (20:32 +0200)]
Bump xgo to go-1.21.x and node to 20 in release-version (#26589)

Now that https://github.com/techknowlogick/xgo/issues/163 is resolved,
we can bump these.

It seems there is no way to dry-run this, so we may only notice issues
next release, but I don't expect any.