Giteabot and Yarden Shoham
2774a2afc6
Disable Test Delivery and Replay webhook buttons when webhook is inactive ( #27211 ) ( #27253 )
...
Backport #27211 by @yardenshoham
These buttons are now disabled when the webhook is not active.
The buttons were always enabled before this change.
- Fixes #26824
- Replaces #26814
# Before


# After


Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: Yarden Shoham <git@yardenshoham.com >
2023-09-25 10:21:06 +00:00
Giteabot and Nabapadma-sarker
89b6f20bf8
Fix PushEvent NullPointerException jenkinsci/github-plugin ( #27203 ) ( #27251 )
...
Backport #27203 by @Nabapadma-sarker
Fixes #27202
Co-authored-by: Nabapadma-sarker <nabapadmacse1991@gmail.com >
2023-09-25 08:24:50 +00:00
Giteabot and silverwind
37c7780e85
Use mask-based fade-out effect for .new-menu ( #27181 ) ( #27243 )
...
Backport #27181 by @silverwind
The `.new-menu` was using a pseudo-element based fade-out effect.
Replace this with a more modern mask-based effect which in this case
required a child element to avoid fading out the background as well, so
I applied it to child `new-menu-inner` which was present on all these
menus except explore where I added it.
There is no visual difference except that the items on the explore page
have no `gap` between them any longer, making it consistent with other
menus. Before and after:
<img width="221" alt="Screenshot 2023-09-21 at 21 13 19"
src="https://github.com/go-gitea/gitea/assets/115237/b4a38ce2-cee1-4c54-84a5-e1d0bfd79e29 ">
<img width="222" alt="Screenshot 2023-09-21 at 21 32 36"
src="https://github.com/go-gitea/gitea/assets/115237/bb6b1335-d935-4ad4-bb85-3b0fc3027c2b ">
Also, this cleans up the related CSS vars:
- `--color-header-wrapper-transparent` is removed, no longer needed
- `--color-header-wrapper` is defined in base theme as well, was
previously unset and therefor transparent.
[no whitespace
diff](https://github.com/go-gitea/gitea/pull/27181/files?diff=unified&w=1 )
[demo of mask fade](https://jsfiddle.net/silverwind/tsfadb3u/ )
Co-authored-by: silverwind <me@silverwind.io >
2023-09-25 07:52:41 +00:00
Giteabot and yp05327
e0832da7fa
Add missing public user visibility in user details page ( #27246 ) ( #27250 )
...
Backport #27246 by @yp05327
It seems that `Public` user visibility is missing in the template.
Before:

After:

Co-authored-by: yp05327 <576951401@qq.com >
2023-09-25 07:03:22 +00:00
Giteabot and Denys Konovalov
daaf0ad473
cleanup locale function usage ( #27227 ) ( #27240 )
...
Backport #27227 by @denyskon
Throughout the Gitea codebase, you can meet some weird constructions to
make `locale.Tr` work in subtemplates.
Since we now have `ctx.Locale.Tr` which solves that problem, clean up
various templates which pass `locale` through `dict` or use some weird
constructions like `$.root.locale`
Going on, it would be great to replace every case of `$.locale.Tr` and
`.locale.Tr` with `ctx.Locale.Tr`, but that needs to be done with
patience.
Co-authored-by: Denys Konovalov <kontakt@denyskon.de >
2023-09-25 00:21:38 +00:00
Giteabot and silverwind
9fc24a8f5e
Fix z-index on markdown completion ( #27237 ) ( #27239 )
...
Backport #27237 by @silverwind
Fixes: https://github.com/go-gitea/gitea/issues/27230
Co-authored-by: silverwind <me@silverwind.io >
2023-09-24 23:41:37 +00:00
Giteabot and silverwind
a1029cb2ca
Fix EOL handling in web editor ( #27141 ) ( #27234 )
...
Backport #27141 by @silverwind
Fixes https://github.com/go-gitea/gitea/issues/27136 .
This does the following for Monaco's EOL setting:
1. Use editorconfig setting if present
2. Use the file's dominant line ending as detected by monaco, which uses
LF for empty file
Co-authored-by: silverwind <me@silverwind.io >
2023-09-24 22:10:38 +00:00
Giteabot and techknowlogick
134c7636ef
Update database-preparation and add note re: MariaDB ( #27232 ) ( #27236 )
...
Backport #27232 by @techknowlogick
update DB docs per feedback.
https://gitea.com/gitea/gitea-docusaurus/issues/69
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
2023-09-25 05:27:25 +08:00
Giteabot and JakobDev
88271167d6
Allow copying issue comment link on archived repos and when not logged in ( #27193 ) ( #27210 )
...
Backport #27193 by @JakobDev
Fixes https://codeberg.org/Codeberg/Community/issues/1303
Co-authored-by: JakobDev <jakobdev@gmx.de >
2023-09-24 19:25:09 +00:00
Giteabot and Denys Konovalov
a8086f6148
fix issues on action runners page ( #27226 ) ( #27233 )
...
Backport #27226 by @denyskon
- switch from some weird status badge to label
- translate untranslated `Reset registration token` string
- change documentation link from act_runner README to Gitea Docs site
- fix "No runners available" message width
- use `ctx.Locale.Tr` where possible

Co-authored-by: Denys Konovalov <kontakt@denyskon.de >
2023-09-24 18:43:12 +00:00
Giteabot and wxiaoguang
f4f6885c1f
Fix Fomantic UI dropdown icon bug when there is a search input in menu ( #27225 ) ( #27228 )
...
Backport #27225 by @wxiaoguang
Fix #27224
And add the case to the devtest page.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2023-09-24 13:42:00 +00:00
Giteabot and KN4CK3R
64c0a6a4e2
Quote table release in sql queries ( #27205 ) ( #27218 )
...
Backport #27205 by @KN4CK3R
Fixes #27174
`release` is a reserved keyword in MySql. I can't reproduce the issue on
my setup and we have a test for that code but it seems there can be
setups where it fails.
https://github.com/go-gitea/gitea/blob/a101dbaa7952e359843c6d8303ca24a0e63c865c/tests/integration/repo_activity_test.go#L45-L46
Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
2023-09-23 21:15:05 +00:00
Giteabot
2181b3713e
Update go-enry to 2.8.5 ( #27215 ) ( #27217 )
2023-09-23 16:05:59 -04:00
Giteabot
2084c3933d
Update nodejs installation method in release container ( #27207 ) ( #27212 )
...
Backport #27207 by @silverwind
Nodesource has
[deprecated](https://github.com/nodesource/distributions#new-update-%EF%B8%8F )
their install script, so use this new [manual
method](https://github.com/nodesource/distributions#installation-instructions )
instead.
2023-09-23 21:25:34 +08:00
Giteabot and metiftikci
b6dab855f5
fix: text decorator on issue sidebar menu label ( #27206 ) ( #27209 )
...
Backport #27206 by @metiftikci
fix underline for label on issue sidebar
Co-authored-by: metiftikci <metiftikci@hotmail.com >
2023-09-23 20:47:40 +08:00
Giteabot and silverwind
e9fcdf822c
Update JS and Poetry dependencies and eslint ( #27200 ) ( #27201 )
...
Backport #27200 by @silverwind
- Update all JS and Poetry dependencies
- Remove deprecated `eslint-plugin-custom-elements` and replace it with
rules from `eslint-plugin-wc`
- Add a convenience `make update` to update both js and py dependencies
- Tested markdown toolbar, swagger and citation
Co-authored-by: silverwind <me@silverwind.io >
2023-09-22 21:26:42 +00:00
Giteabot and John Olheiser
7750a7313d
Fix release URL in webhooks ( #27182 ) ( #27185 )
...
Backport #27182 by @jolheiser
Resolves #27180
`URL` points to the API URL, `HTMLURL` points to the web page.
Notably, however, for PRs they are the same URL. I switched them to use
HTMLURL to match the rest of the codebase terminology.
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
2023-09-21 23:22:14 +00:00
81ae35aa4f
Fix review request number and add more tests ( #27104 ) ( #27168 )
...
Backport #27104 by @lng2020
fix #27019
## testfixture yml
1. add issue20(a pr issue) in repo 23, org 17
2. add user15 to team 9
3. add four reviews about issue20
## test case
add two tests that are described with code comments
the code before pr #26784 failed the first test
<img width="479" alt="image"
src="https://github.com/go-gitea/gitea/assets/70063547/1d9b5787-11b4-4c4d-931f-6a9869547f35 ">
current code failed the second test(as mentioned in #27019 )
<img width="484" alt="image"
src="https://github.com/go-gitea/gitea/assets/70063547/05608055-7587-43d1-bae1-92c688270819 ">
Any advice is appreciated.
Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com >
Co-authored-by: CaiCandong <50507092+CaiCandong@users.noreply.github.com >
2023-09-21 17:01:37 +00:00
Giteabot and wxiaoguang
2e49a4da48
Fix dropdown icon position ( #27175 ) ( #27177 )
...
Backport #27175 by @wxiaoguang
According to https://fomantic-ui.com/modules/dropdown.html and our
"devtest" page, many dropdown elements has incorrect "icon" position.
This PR fixes all of them. Fix #27173
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2023-09-21 16:24:07 +00:00
Giteabot and wxiaoguang
8d9e2d07f3
Fix repo sub menu ( #27169 ) ( #27170 )
...
Backport #27169 by @wxiaoguang
Fix #27166
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2023-09-21 13:22:38 +00:00
Giteabot and Nanguan Lin
b34727c632
Fix the variable regexp pattern on web page ( #27161 ) ( #27164 )
...
Backport #27161 by @lng2020
same as (https://github.com/go-gitea/gitea/pull/26910 )
Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com >
2023-09-21 12:09:44 +00:00
Giteabot and Dionysios Kakouris
0ca233258d
Fix organization field being null in POST /orgs/{orgid}/teams ( #27150 ) ( #27163 )
...
Backport #27150 by @memphis88
Similarly to the fix in https://github.com/go-gitea/gitea/pull/24694 ,
this addresses the team creation not returning the organization
information in the response.
This fix is connected to the
[issue](https://gitea.com/gitea/terraform-provider-gitea/issues/27 )
discovered in the terraform provider.
Moreover, the
[documentation](https://docs.gitea.com/api/1.20/#tag/organization/operation/orgCreateTeam )
suggests that the response body should include the `organization` field
(currently being `null`).
Co-authored-by: Dionysios Kakouris <1369451+memphis88@users.noreply.github.com >
2023-09-21 12:15:20 +02:00
Giteabot and JakobDev
c3b7120042
Add index to issue_user.issue_id ( #27154 ) ( #27158 )
...
Backport #27154 by @JakobDev
This fixes a performance bottleneck. It was discovered by Codeberg.
Every where query on that table (which has grown big over time) uses
this column, but there is no index on it.
See this part of the log which was posted on Matrix:
```
2023/09/10 00:52:01 ...rs/web/repo/issue.go:1446:ViewIssue() [W] [Slow SQL Query] UPDATE `issue_user` SET is_read=? WHERE uid=? AND issue_id=? [true x y] - 51.395434887s
2023/09/10 00:52:01 ...rs/web/repo/issue.go:1447:ViewIssue() [E] ReadBy: Error 1205 (HY000): Lock wait timeout exceeded; try restarting transaction
2023/09/10 00:52:01 ...eb/routing/logger.go:102:func1() [I] router: completed GET /Codeberg/Community/issues/1201 for [::ffff:xxx]:0, 500 Internal Server Error in 52384.2ms @ repo/issue.go:1256(repo.ViewIssue)
```
Co-authored-by: JakobDev <jakobdev@gmx.de >
2023-09-21 11:42:34 +08:00
GiteaBot
558eea69bd
[skip ci] Updated licenses and gitignores
2023-09-18 00:23:39 +00:00
GiteaBot
ea83c0647c
[skip ci] Updated translations via Crowdin
2023-09-17 00:24:27 +00:00
GiteaBot
684ab403aa
[skip ci] Updated translations via Crowdin
2023-09-16 00:21:59 +00:00
GiteaBot
f8a1094406
[skip ci] Updated translations via Crowdin
2023-09-15 00:22:32 +00:00
GiteaBot
d0318c4ae0
[skip ci] Updated translations via Crowdin
2023-09-14 00:22:27 +00:00
GiteaBot
7d56459c6c
[skip ci] Updated translations via Crowdin
2023-09-13 00:22:36 +00:00
GiteaBot
f599814001
[skip ci] Updated translations via Crowdin
2023-09-12 00:21:32 +00:00
GiteaBot
148c9c4b05
[skip ci] Updated translations via Crowdin
2023-09-11 00:22:57 +00:00
GiteaBot
a20e0affba
[skip ci] Updated translations via Crowdin
2023-09-10 00:23:48 +00:00
GiteaBot
049b9f3718
[skip ci] Updated translations via Crowdin
2023-09-09 00:21:42 +00:00
GiteaBot
6cbbd51ad4
[skip ci] Updated translations via Crowdin
2023-09-08 00:21:56 +00:00
GiteaBot
9860dba566
[skip ci] Updated translations via Crowdin
2023-09-07 00:22:15 +00:00
GiteaBot
a38cf868c5
[skip ci] Updated licenses and gitignores
2023-09-04 00:23:31 +00:00
GiteaBot
3ff81d38d8
[skip ci] Updated translations via Crowdin
2023-09-01 00:24:05 +00:00
GiteaBot
10aab8a385
[skip ci] Updated translations via Crowdin
2023-08-31 00:22:07 +00:00
GiteaBot
aeeeac8edf
[skip ci] Updated translations via Crowdin
2023-08-29 00:22:17 +00:00
GiteaBot
2401e6e121
[skip ci] Updated licenses and gitignores
2023-08-28 00:22:48 +00:00
GiteaBot
37b3ba22a1
[skip ci] Updated translations via Crowdin
2023-08-27 00:27:26 +00:00
GiteaBot
00cf36d6c7
[skip ci] Updated translations via Crowdin
2023-08-19 00:20:23 +00:00
GiteaBot
445dbda276
[skip ci] Updated translations via Crowdin
2023-08-18 00:21:36 +00:00
GiteaBot
16aee56e6a
[skip ci] Updated translations via Crowdin
2023-08-17 00:21:25 +00:00
GiteaBot
e17e43f1db
[skip ci] Updated translations via Crowdin
2023-08-12 00:20:47 +00:00
GiteaBot
906e253d5e
[skip ci] Updated translations via Crowdin
2023-08-09 00:26:05 +00:00
GiteaBot
049e400327
[skip ci] Updated licenses and gitignores
2023-08-07 00:27:21 +00:00
GiteaBot
907bedaad0
[skip ci] Updated translations via Crowdin
2023-08-04 00:26:21 +00:00
GiteaBot
7dc2e50113
[skip ci] Updated licenses and gitignores
2023-07-31 00:32:16 +00:00
GiteaBot
5db640abcd
[skip ci] Updated translations via Crowdin
2023-07-25 00:27:42 +00:00
GiteaBot
4e4a71f3a0
[skip ci] Updated translations via Crowdin
2023-07-24 00:27:48 +00:00
GiteaBot
3acaaa29dd
[skip ci] Updated translations via Crowdin
2023-07-21 00:26:46 +00:00
GiteaBot
cf467119ff
[skip ci] Updated translations via Crowdin
2023-07-20 00:27:21 +00:00
GiteaBot
c7455e9f23
[skip ci] Updated translations via Crowdin
2023-07-19 00:46:27 +00:00
GiteaBot
24b49bcf66
[skip ci] Updated translations via Crowdin
2023-07-18 00:43:46 +00:00
GiteaBot
faf28b2823
[skip ci] Updated translations via Crowdin
2023-07-15 00:29:55 +00:00
GiteaBot
d1f30f2185
[skip ci] Updated translations via Crowdin
2023-07-14 00:31:01 +00:00
GiteaBot
ef90fdbd1d
[skip ci] Updated translations via Crowdin
2023-07-13 00:29:39 +00:00
GiteaBot
d1e066f5d6
[skip ci] Updated translations via Crowdin
2023-07-12 00:32:23 +00:00
GiteaBot
b1eb1676aa
[skip ci] Updated translations via Crowdin
2023-07-07 00:30:02 +00:00
GiteaBot
ab6095707f
[skip ci] Updated translations via Crowdin
2023-07-06 00:31:13 +00:00
GiteaBot
3dbcbf7a1b
[skip ci] Updated translations via Crowdin
2023-07-05 00:31:02 +00:00
GiteaBot
deb007ca2b
[skip ci] Updated translations via Crowdin
2023-07-03 20:02:34 +00:00
GiteaBot
eab011db58
[skip ci] Updated licenses and gitignores
2023-07-03 00:30:17 +00:00
GiteaBot
1704c64a15
[skip ci] Updated translations via Crowdin
2023-07-01 00:32:07 +00:00
GiteaBot
b08647f0b9
[skip ci] Updated translations via Crowdin
2023-06-29 00:29:20 +00:00
GiteaBot
72c60f94c1
[skip ci] Updated translations via Crowdin
2023-06-27 00:29:26 +00:00
GiteaBot
2a6e2afab9
[skip ci] Updated translations via Crowdin
2023-06-26 00:31:01 +00:00
GiteaBot
326df0f6ed
[skip ci] Updated translations via Crowdin
2023-06-24 00:30:41 +00:00
GiteaBot
a59bfeb175
[skip ci] Updated translations via Crowdin
2023-06-19 00:27:14 +00:00
GiteaBot
39a15623f6
[skip ci] Updated translations via Crowdin
2023-06-15 00:26:55 +00:00
GiteaBot
dc0a7168f1
[skip ci] Updated translations via Crowdin
2023-06-14 00:26:25 +00:00
GiteaBot
6da19d76bf
[skip ci] Updated translations via Crowdin
2023-06-13 00:27:02 +00:00
GiteaBot
d67e411c26
[skip ci] Updated licenses and gitignores
2023-06-12 00:29:16 +00:00
GiteaBot
c17423e0a1
[skip ci] Updated translations via Crowdin
2023-06-11 00:29:35 +00:00
GiteaBot
eb2ba43fa1
[skip ci] Updated translations via Crowdin
2023-06-10 00:25:26 +00:00
GiteaBot
6d063a81f0
[skip ci] Updated translations via Crowdin
2023-06-09 00:28:43 +00:00
GiteaBot
447ee6620f
[skip ci] Updated translations via Crowdin
2023-06-08 00:28:45 +00:00
GiteaBot
d63d8108b4
[skip ci] Updated licenses and gitignores
2023-06-05 00:27:49 +00:00
GiteaBot
7a5873335a
[skip ci] Updated translations via Crowdin
2023-06-02 00:26:50 +00:00
GiteaBot
8faf9465b3
[skip ci] Updated translations via Crowdin
2023-05-29 00:24:30 +00:00
GiteaBot
7de46b0749
[skip ci] Updated translations via Crowdin
2023-05-27 00:25:56 +00:00
GiteaBot
26fa94bc25
[skip ci] Updated translations via Crowdin
2023-05-26 00:24:37 +00:00
GiteaBot
84d93c82cd
[skip ci] Updated licenses and gitignores
2023-05-22 00:25:26 +00:00
GiteaBot
6ba4f89723
[skip ci] Updated translations via Crowdin
2023-05-21 00:26:26 +00:00
GiteaBot
1698c15cba
[skip ci] Updated translations via Crowdin
2023-05-20 00:22:02 +00:00
GiteaBot
98c4089b4b
[skip ci] Updated translations via Crowdin
2023-05-16 00:23:56 +00:00
GiteaBot
707c7e60c9
[skip ci] Updated translations via Crowdin
2023-05-09 00:24:20 +00:00
GiteaBot
3319e9597e
[skip ci] Updated licenses and gitignores
2023-05-08 00:23:39 +00:00
GiteaBot
8f17237b82
[skip ci] Updated translations via Crowdin
2023-05-05 00:22:45 +00:00
GiteaBot
da65b7ad47
[skip ci] Updated translations via Crowdin
2023-05-02 00:23:19 +00:00
GiteaBot
c205d559f9
[skip ci] Updated licenses and gitignores
2023-05-01 00:25:30 +00:00
GiteaBot
0f52beb6b7
[skip ci] Updated translations via Crowdin
2023-04-30 00:25:54 +00:00
GiteaBot
ef9e0ce9c9
[skip ci] Updated translations via Crowdin
2023-04-29 00:23:39 +00:00
GiteaBot
de265f3771
[skip ci] Updated translations via Crowdin
2023-04-27 01:07:47 +00:00
GiteaBot
fa86a1b74a
[skip ci] Updated translations via Crowdin
2023-04-26 00:07:58 +00:00
GiteaBot
1ef43f9bfe
[skip ci] Updated translations via Crowdin
2023-04-25 00:07:53 +00:00
GiteaBot
a0cfc1c953
[skip ci] Updated translations via Crowdin
2023-04-24 00:07:49 +00:00
GiteaBot
30ea09c277
[skip ci] Updated translations via Crowdin
2023-04-23 00:07:50 +00:00
GiteaBot
fb32b4c534
[skip ci] Updated translations via Crowdin
2023-04-22 00:07:44 +00:00