Loïc Dachary
6e0928ae00
[CI] set PASSWORD_HASH_ALGO = argon2 for integration tests
...
(cherry picked from commit 1d7ce2a39c
)
(cherry picked from commit 3af8757583
)
(cherry picked from commit 0b81815209
)
(cherry picked from commit 7180a3222a
)
(cherry picked from commit 069044f4a6
)
(cherry picked from commit dd1438f389
)
(cherry picked from commit 4ae6b5d64d
)
(cherry picked from commit c572666d78
)
(cherry picked from commit de0a4480bc
)
(cherry picked from commit 60272ef4f7
)
(cherry picked from commit a68fdde4be
)
(cherry picked from commit ff448cf3a6
)
(cherry picked from commit 208498caaa
)
(cherry picked from commit 1abd3efad8
)
(cherry picked from commit 818c7f4ca9
)
(cherry picked from commit 1e552bbe44
)
(cherry picked from commit 88dbd6da1d
)
(cherry picked from commit b1c86fb777
)
(cherry picked from commit 185b1e25b1
)
(cherry picked from commit 0af35605ae
)
(cherry picked from commit 350975b63f
)
(cherry picked from commit 2788142515
)
(cherry picked from commit b418a53717b247e10d2dda26d1d236400d423a94)
(cherry picked from commit 086cde3f10
)
(cherry picked from commit 3e4818c779
)
(cherry picked from commit f2bf1fe64f
)
(cherry picked from commit db4eb288ee
)
(cherry picked from commit f8db31821b
)
(cherry picked from commit 2b13c06f49
)
(cherry picked from commit 3fd0092056
)
(cherry picked from commit 6f7662507f
)
(cherry picked from commit 8a15e41887
)
Conflicts:
tests/mysql8.ini.tmpl
https://codeberg.org/forgejo/forgejo/pulls/1573
(cherry picked from commit 56e67e34e2
)
(cherry picked from commit 6a049a939b
)
(cherry picked from commit 454fe7f5e1
)
(cherry picked from commit 93fa4406b7
)
(cherry picked from commit eab1c72227
)
(cherry picked from commit 8228adfd26
)
(cherry picked from commit ffdbe1bac8
)
(cherry picked from commit 7df4407714
)
(cherry picked from commit 9d8c4bc7ca
)
(cherry picked from commit 6696e09b1f
)
(cherry picked from commit 1bdc0e3458
)
(cherry picked from commit e2d1598475
)
2024-01-08 13:37:01 +01:00
Loïc Dachary
55bd48007f
[CI] implementation: forgejo container images
...
(cherry picked from commit dd1971d4e6
)
(cherry picked from commit 3981dbaf8c
)
(cherry picked from commit 8dff3cc2d1
)
(cherry picked from commit e7673e5d22
)
(cherry picked from commit 326174064b
)
(cherry picked from commit eb769dbde4
)
(cherry picked from commit 335829ade2
)
(cherry picked from commit 5e8e4f549d
)
Conflicts:
Dockerfile
Dockerfile.rootless
(cherry picked from commit b777fc91d0
)
(cherry picked from commit 02cda642ec
)
(cherry picked from commit 96ef93f3bc
)
(cherry picked from commit aa424551f2
)
Conflicts:
Dockerfile
Dockerfile.rootless
(cherry picked from commit e54fa86e49
)
(cherry picked from commit 043fa6d664
)
(cherry picked from commit 805b162480
)
(cherry picked from commit 86bf362a3c
)
(cherry picked from commit 13e0007959
)
(cherry picked from commit 00ff6f7cb3
)
(cherry picked from commit 95c7d8e883
)
(cherry picked from commit fb033d2bb6
)
(cherry picked from commit 1147910a55
)
(cherry picked from commit 6590b6e99c
)
(cherry picked from commit 78938113e4
)
(cherry picked from commit 57338224f172e30a72f03f565aa47876e1213e77)
(cherry picked from commit 4266cbcdd4
)
(cherry picked from commit bdc766a5a2
)
(cherry picked from commit 6fb9ad8504
)
(cherry picked from commit c4e6383240
)
(cherry picked from commit 490fa55b3a
)
(cherry picked from commit 802c8e72be
)
(cherry picked from commit 2b1efe2030
)
(cherry picked from commit fdcdd7389a
)
(cherry picked from commit b9ae491650
)
(cherry picked from commit e7867c6512
)
(cherry picked from commit 0a43263fa6
)
(cherry picked from commit 64bb6b8982
)
(cherry picked from commit dcc1fd6292
)
(cherry picked from commit b0250fd533
)
(cherry picked from commit 427b059996
)
(cherry picked from commit b6058e28cb
)
(cherry picked from commit b91a41dd79
)
(cherry picked from commit b8bcb22726
)
(cherry picked from commit 69ae87f11f
)
Conflicts:
Dockerfile
Dockerfile.rootless
https://codeberg.org/forgejo/forgejo/pulls/2029
(cherry picked from commit a4a846a8d5
)
(cherry picked from commit a1a947ce03
)
2024-01-08 13:37:00 +01:00
Loïc Dachary
a0be5c783e
[CI] implementation: publish forgejo- binaries instead of gitea-
...
(cherry picked from commit 6d910daafb
)
(cherry picked from commit d447861cc9
)
(cherry picked from commit dc6e9d8799
)
(cherry picked from commit ef232fa20c
)
(cherry picked from commit 290c55517a
)
(cherry picked from commit db48af1784
)
(cherry picked from commit 85f33237a2
)
(cherry picked from commit 76899ee33e
)
(cherry picked from commit 148b3ee9cb
)
(cherry picked from commit 1f6ad8f465
)
(cherry picked from commit c330afdba3
)
(cherry picked from commit b1f87075a7
)
(cherry picked from commit 7da40992cc
)
(cherry picked from commit 7ab19ff5e5
)
(cherry picked from commit e61e44921b
)
(cherry picked from commit 83646119fb
)
(cherry picked from commit 20cf748e61
)
(cherry picked from commit 0a99919cec
)
(cherry picked from commit 21215222a6
)
(cherry picked from commit 0f6c5658d7
)
(cherry picked from commit 1752e43d3c
)
(cherry picked from commit 2332080929
)
(cherry picked from commit 590aabf2a2
)
(cherry picked from commit 87d8b7b315c3e25bd3fcf9dc9c1d359bcd107281)
(cherry picked from commit ff37de38be
)
(cherry picked from commit cee32c9e7a
)
(cherry picked from commit 39faade524
)
(cherry picked from commit 0e5ca477b6
)
(cherry picked from commit 70e2730f7b
)
(cherry picked from commit 2ad4003944
)
(cherry picked from commit 2429de9e87
)
(cherry picked from commit c133915fc1
)
(cherry picked from commit c607dcaf9f
)
(cherry picked from commit 00f006637f
)
(cherry picked from commit 0de6646475
)
(cherry picked from commit b05e83bb1e
)
(cherry picked from commit cb71f139f0
)
(cherry picked from commit 2a8b08ee4f
)
(cherry picked from commit 3ebab73c4e
)
(cherry picked from commit 07626c088c
)
(cherry picked from commit 844e9bc999
)
(cherry picked from commit c315e24751
)
(cherry picked from commit f5f2b41f3c
)
(cherry picked from commit 09134424a8
)
(cherry picked from commit 6fc63d48c4
)
2024-01-08 13:37:00 +01:00
Earl Warren
f919c4d6c1
[CLI] implement forgejo-cli
...
(cherry picked from commit 2555e315f7
)
(cherry picked from commit 51b9c9092e
)
[CLI] implement forgejo-cli (squash) support initDB
(cherry picked from commit 5c31ae602a
)
(cherry picked from commit bbf76489a7
)
Conflicts:
because of d0dbe52e76
upgrade to https://pkg.go.dev/github.com/urfave/cli/v2
(cherry picked from commit b6c1bcc008
)
[CLI] implement forgejo-cli actions
(cherry picked from commit 08be2b226e
)
(cherry picked from commit b6cfa88c6e
)
(cherry picked from commit 59704200de
)
[CLI] implement forgejo-cli actions generate-secret
(cherry picked from commit 6f7905c8ec
)
(cherry picked from commit e085d6d273
)
[CLI] implement forgejo-cli actions generate-secret (squash) NoInit
(cherry picked from commit 962c944eb2
)
[CLI] implement forgejo-cli actions register
(cherry picked from commit 2f95143000
)
(cherry picked from commit 42f2f8731e
)
[CLI] implement forgejo-cli actions register (squash) no private
Do not go through the private API, directly modify the database
(cherry picked from commit 1ba7c0d39d
)
[CLI] implement forgejo-cli actions
(cherry picked from commit 6f7905c8ec
)
(cherry picked from commit e085d6d273
)
[CLI] implement forgejo-cli actions generate-secret (squash) NoInit
(cherry picked from commit 962c944eb2
)
(cherry picked from commit 4c121ef022
)
Conflicts:
cmd/forgejo/actions.go
tests/integration/cmd_forgejo_actions_test.go
(cherry picked from commit 36997a48e3
)
[CLI] implement forgejo-cli actions (squash) restore --version
Refs: https://codeberg.org/forgejo/forgejo/issues/1134
(cherry picked from commit 9739eb52d8
)
[CI] implement forgejo-cli (squash) the actions subcommand needs config
(cherry picked from commit def638475122a26082ab3835842c84cd03839154)
Conflicts:
cmd/main.go
https://codeberg.org/forgejo/forgejo/pulls/1209
(cherry picked from commit a1758a3910
)
(cherry picked from commit 935fa650c7
)
(cherry picked from commit cd21026bc9
)
(cherry picked from commit 1700b8973a
)
(cherry picked from commit 1def42a379
)
(cherry picked from commit 839d97521d
)
(cherry picked from commit fd8c13be6b
)
(cherry picked from commit 588e5d552f
)
(cherry picked from commit 151a726620
)
[v1.22] [CLI] implement forgejo-cli
https://codeberg.org/forgejo/forgejo/pulls/1541
(cherry picked from commit 46708de7b9
)
(cherry picked from commit a8e5c1369e
)
(cherry picked from commit c8a32aaf24
)
Conflicts:
models/actions/main_test.go
https://codeberg.org/forgejo/forgejo/pulls/1656
(cherry picked from commit 79f4553063
)
(cherry picked from commit 0379da0cf5
)
(cherry picked from commit 331d58c085
)
(cherry picked from commit 89705502c4
)
(cherry picked from commit 4723d5febf
)
(cherry picked from commit e71b260130
)
(cherry picked from commit 6a376a5b48
)
Conflicts:
cmd/main.go
https://codeberg.org/forgejo/forgejo/pulls/1969
(cherry picked from commit 6ba97cf4b5
)
(cherry picked from commit e0a6ebfeca
)
(cherry picked from commit 5702aeab2d
)
2024-01-08 13:37:00 +01:00
Earl Warren
04eda91d10
[CI] DEFAULT_ACTIONS_URL = https://code.forgejo.org
...
[CI] Revert "Restrict `[actions].DEFAULT_ACTIONS_URL` to only `github` or `self` (#25581 )"
This reverts commit 67bd9d4f1e
.
(cherry picked from commit 0547e94023
)
(cherry picked from commit d21ad654ad
)
(cherry picked from commit b905e9d838
)
(cherry picked from commit 251a5bf235b1723bc2bc324f9e8c03a8668bb5ae)
(cherry picked from commit b370e47694
)
(cherry picked from commit 2cc28d0785
)
(cherry picked from commit ed870a39e9
)
(cherry picked from commit 7bb0c4654e
)
(cherry picked from commit bab1f552c3
)
Conflicts:
custom/conf/app.example.ini
modules/setting/actions.go
https://codeberg.org/forgejo/forgejo/pulls/1413
[CI] DEFAULT_ACTIONS_URL = https://codeberg.org
(cherry picked from commit 52b364ddbd
)
(cherry picked from commit 99887cd567
)
(cherry picked from commit cd5788782a
)
(cherry picked from commit 71c698a704
)
(cherry picked from commit 71386241dd
)
(cherry picked from commit b7ab05aeac
)
(cherry picked from commit e78b9ca59c
)
(cherry picked from commit edb3adf460
)
(cherry picked from commit 3e40088197
)
[BRANDING] DEFAULT_ACTIONS_URL = https://code.forgejo.org
(cherry picked from commit d0e4512c90
)
(cherry picked from commit 8ba6e04709
)
(cherry picked from commit 6349081044
)
(cherry picked from commit e06bd44495
)
(cherry picked from commit d58219d8e1
)
(cherry picked from commit 052f2c2aa4
)
(cherry picked from commit 29dc395386
)
(cherry picked from commit 9eef3f59f3
)
(cherry picked from commit d650391fed
)
(cherry picked from commit c2e6e8c55d
)
(cherry picked from commit e28a47741d
)
[CI] DEFAULT_ACTIONS_URL support for self & github (squash)
Refs: https://codeberg.org/forgejo/forgejo/issues/1062
(cherry picked from commit 74cc25376e
)
(cherry picked from commit 405430708f
)
(cherry picked from commit 0274a6dee7f383bcd6b65b995b991b5ab0ee635a)
(cherry picked from commit be5cda0fd0
)
(cherry picked from commit d27474849f
)
(cherry picked from commit 4a5e9e2d81
)
(cherry picked from commit 65b31906b2
)
(cherry picked from commit 13cf0b0963
)
Conflicts:
custom/conf/app.example.ini
modules/setting/actions.go
https://codeberg.org/forgejo/forgejo/pulls/1413
(cherry picked from commit 49529badce
)
Conflicts:
custom/conf/app.example.ini
docs/content/administration/config-cheat-sheet.en-us.md
modules/setting/actions.go
https://codeberg.org/forgejo/forgejo/pulls/1460
(cherry picked from commit 00327b9b1f
)
(cherry picked from commit 3b322e43d5
)
(cherry picked from commit 492cc52059
)
Conflicts:
modules/setting/actions.go
https://codeberg.org/forgejo/forgejo/pulls/1573
(cherry picked from commit 9027b655df
)
(cherry picked from commit 4764383028
)
(cherry picked from commit fbb00fd1cf
)
(cherry picked from commit 417cd6c801
)
(cherry picked from commit 6b70773ad8
)
(cherry picked from commit 9ba069327d
)
Conflicts:
modules/setting/actions.go
https://codeberg.org/forgejo/forgejo/pulls/1827
(cherry picked from commit 727edf19ee
)
(cherry picked from commit 689326ce20
)
(cherry picked from commit 745d60aec4
)
(cherry picked from commit cb4ae4582c
)
(cherry picked from commit 48d5ffe1c0
)
Conflicts:
custom/conf/app.example.ini
https://codeberg.org/forgejo/forgejo/pulls/2068
(cherry picked from commit bbd4725bfd
)
2024-01-08 13:37:00 +01:00
Earl Warren
3bbf301a9f
[FORGEJO] temporarily remove .github & .gitea
2024-01-08 13:31:32 +01:00
GiteaBot
f4ea8d9a6c
[skip ci] Updated licenses and gitignores
2024-01-08 00:26:06 +00:00
wxiaoguang
a04f8c0f81
Move the captcha script loader to the template which really needs it ( #28718 )
...
It improves the maintainability for the templates.
Now `base/footer.tmpl` doesn't need to depend on "captcha" feature.
2024-01-07 15:41:46 +00:00
wxiaoguang
79da4bbc56
Suggest to use Type=simple for systemd service ( #28717 )
...
Although the systemd notify support was added, it seems that there are
some problems (#28553 , for the "non-installed" instance)
2024-01-07 15:18:04 +00:00
wxiaoguang
9296c31ff7
Fix incorrect URL for "Reference in New Issue" ( #28716 )
...
Gitea prefers to use relative URLs in code (to make multiple domain work
for some users)
So it needs to use `toAbsoluteUrl` to generate a full URL when click
"Reference in New Issues"
And add some comments in the test code
2024-01-07 10:50:03 +00:00
wxiaoguang
c5901b622d
Avoid unnecessary 500 panic when a commit doesn't exist ( #28719 )
...
In #26851 , it assumed that `Commit` always exists when
`PageIsDiff==true`.
But for a 404 page, the `Commit` doesn't exist, so the following code
would cause panic because nil value can't be passed as string parameter
to `IsMultilineCommitMessage(string)` (or the StringUtils.Cut in later
PRs)
2024-01-07 18:20:22 +08:00
GiteaBot
a43c7b81af
[skip ci] Updated translations via Crowdin
2024-01-07 00:27:22 +00:00
wxiaoguang
7215224112
Improve frontend guideline ( #28711 )
...
It has been a consensus for long time during reviewing: "avoiding inline
styles as much as possible".
2024-01-07 01:14:10 +08:00
wxiaoguang
e75e9a0e7e
Fix panic when parsing empty pgsql host ( #28708 )
...
Regression of #27723
Fix #28705
2024-01-06 17:30:03 +08:00
Kyle D
e522e774ca
Add merge arrow direction and update styling ( #28523 )
...
Close https://github.com/go-gitea/gitea/issues/28522
~Adds some [negative
margin](https://tailwindcss.com/docs/margin#using-negative-values )
helper css classes using tailwind's [prefix
syntax](https://tailwindcss.com/docs/configuration#prefix )~
### Before
![image](https://github.com/go-gitea/gitea/assets/12700993/5bdabf91-facd-41c8-8e36-e1535beb9409 )
### After
![image](https://github.com/go-gitea/gitea/assets/12700993/a6f11f6f-9e64-45b6-b9d7-dfea53fbc6d7 )
2024-01-05 17:38:56 +00:00
yp05327
dd5693387e
Add links to owner home page in explore ( #28341 )
...
User can select access repo or owner's home page.
Before:
![image](https://github.com/go-gitea/gitea/assets/18380374/f40a833f-8560-4585-b047-3a225be2e6ee )
After:
![image](https://github.com/go-gitea/gitea/assets/18380374/7893bf3a-5050-4bcb-af99-d56d6c7925f8 )
2024-01-05 03:34:35 +00:00
Earl Warren
92711b001e
Apply min-height in wiki only on preview pane ( #28687 )
...
In the commit 5a56f9699c
(3.) the min-height was applied to all wiki
elements. This resulted in huge blank spaces when viewing the wiki.
This fixes this by only applying the min-height to the preview when
editing.
Refs: https://codeberg.org/forgejo/forgejo/pulls/2080
(cherry picked from commit 8f0baefe5d
)
Co-authored-by: Fl1tzi <git@fl1tzi.com>
2024-01-04 02:48:55 +00:00
Kyle D
54acf7b0d4
Normalize oauth email username ( #28561 )
2024-01-03 18:48:20 -06:00
Denys Konovalov
657b23d635
Fix wrapping of label list ( #28684 )
...
The label list needs to wrap the items to avoid unnecessary overflow / incorrect text wrapping.
2024-01-03 20:33:55 +08:00
9b418158b9
Fix grammar in actions.variables.id_not_exist
(en-US) ( #28680 )
...
Fixes the capitalization and grammar of the key.
2024-01-03 10:43:38 +00:00
3ba1216b9d
Fix grammar issues on the repository Actions page (en-US) ( #28679 )
...
Fixes a few grammar issues in the en-US localization of the repository
Actions page.
2024-01-03 10:42:56 +00:00
361839fb1c
Fix tooltip of variable edit button ( #28681 )
...
The `variables.edit` key does not exist.
![image](https://github.com/go-gitea/gitea/assets/29505620/462a1c6c-775c-466a-8398-37115b2af47a )
2024-01-03 06:25:19 +00:00
Brecht Van Lommel
12c0487e01
Make cross-reference issue links work in markdown documents again ( #28682 )
...
In #26365 issue references were disabled entirely for documents,
intending to match GitHub behavior. However cross-references do appear
to work in documents on GitHub.
This is useful for example to write release notes in a markdown document
and reference issues. While the simpler syntax may create links when not
intended, hopefully the cross-reference syntax is unique enough to avoid
it.
2024-01-03 14:01:12 +08:00
wxiaoguang
91aa263225
Make template DateTime
show proper tooltip ( #28677 )
...
There was a question about "how to improve the datetime display for
SSH/PGP/WebAuthn"
https://github.com/go-gitea/gitea/pull/28262#issuecomment-1831141611
The root problem is that `DateTime` misses the "data-tooltip-content"
attribute, which should be used to make the tooltip popup smoothly.
Now the UI is consistent and the end users could see the detailed
hour/minute/second easily by hovering the element.
![image](https://github.com/go-gitea/gitea/assets/2114189/2211336f-d59d-4f64-a83b-099f8ef6d29b )
![image](https://github.com/go-gitea/gitea/assets/2114189/f02a9c86-476d-48d6-aece-85a800235fbd )
2024-01-02 20:09:18 +01:00
Yarden Shoham
cdc33b29a0
Add global setting how timestamps should be rendered ( #28657 )
...
- Resolves https://github.com/go-gitea/gitea/issues/22493
- Related to https://github.com/go-gitea/gitea/issues/4520
Some admins prefer all timestamps to display the full date instead of
relative time. They can do that now by setting
```ini
[ui]
PREFERRED_TIMESTAMP_TENSE = absolute
```
This setting is set to `mixed` by default, allowing dates to render as
"5 hours ago". Here are some screenshots of the UI with this setting set
to `absolute`:
![image](https://github.com/go-gitea/gitea/assets/20454870/f496457f-6afa-44be-a1e7-249ee5fe0706 )
![image](https://github.com/go-gitea/gitea/assets/20454870/c03b14f5-063d-4e13-9780-76ab002d76a9 )
![image](https://github.com/go-gitea/gitea/assets/20454870/f4b34e28-1546-4374-9199-c43348844edd )
---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: delvh <dev.lh@web.de>
2024-01-02 09:25:30 +08:00
GiteaBot
f8f394cb0e
[skip ci] Updated translations via Crowdin
2024-01-01 00:27:55 +00:00
Lunny Xiao
da58bb85fa
Upgrade xorm to new version which supported update join for all supported databases ( #28590 )
...
Fix https://github.com/go-gitea/gitea/pull/28547#issuecomment-1867740842
Since https://gitea.com/xorm/xorm/pulls/2383 merged, xorm now supports
UPDATE JOIN.
To keep consistent from different databases, xorm use
`engine.Join().Update`, but the actural generated SQL are different
between different databases.
For MySQL, it's `UPDATE talbe1 JOIN table2 ON join_conditions SET xxx
Where xxx`.
For MSSQL, it's `UPDATE table1 SET xxx FROM TABLE1, TABLE2 WHERE
join_conditions`.
For SQLITE per https://www.sqlite.org/lang_update.html , sqlite support
`UPDATE table1 SET xxx FROM table2 WHERE join conditions` from
3.33.0(2020-8-14).
POSTGRES is the same as SQLITE.
2023-12-31 05:00:35 +00:00
vincent
f8a1bad883
Fix: system webhooks API bug ( #28531 )
...
- Fix the bug about admin/hooks API that `GET /admin/hooks` can only
fetch system_hooks, `POST /admin/hooks` can only create default_hooks.
2023-12-31 04:31:50 +00:00
Nanguan Lin
b6e0957b9c
Fix alpine package files are not rebuilt ( #28638 )
...
I noticed the `BuildAllRepositoryFiles` function under the Alpine folder
is unused and I thought it was a bug.
But I'm not sure about this. Was it on purpose?
2023-12-31 12:08:46 +08:00
Lunny Xiao
cb10f2767c
Fix migration test ( #28659 )
2023-12-30 21:54:48 +08:00
wxiaoguang
e5d8c4b8d4
Avoid cycle-redirecting user/login page ( #28636 )
...
Fix #28231 , and remove some unused code. The `db.HasEngine` doesn't seem
useful because the db engine is always initialized before web route.
2023-12-30 08:48:34 +00:00
Mihir Joshi
3d474110c1
Fix long package version names overflowing ( #28619 )
...
Fixes #28534
---
Before:
![image](https://github.com/go-gitea/gitea/assets/50193156/b229551c-0a7d-4a99-9553-1f11b994876a )
After:
<img width="304" alt="image"
src="https://github.com/go-gitea/gitea/assets/50193156/53d04ad0-6d5c-47e2-8a7d-30a4d5dd9959 ">
Should we also apply this for long filenames in Assets?
It looks like this currently:
<img width="285" alt="image"
src="https://github.com/go-gitea/gitea/assets/50193156/e2dcbb2e-30d5-4e35-b304-6274ef60bda7 ">
---------
Co-authored-by: Mihir <mihir.joshi@senpiper.com>
2023-12-30 07:42:16 +00:00
silverwind
ce55a74374
Update JS dependencies ( #28537 )
...
- Update all JS dependencies excluding mcaptcha (breaking changes) and
stylelint (plugin not compatible with v16)
- Regenerate SVGs
- Update markdownlint rule names
- Fix one issue of heading in markdown discovered during lint
- Update for monaco options renames
- Fix stylelint rule length-zero-no-unit for custom properties
- Tested editor, swagger, sorting, vue, lint
2023-12-30 05:29:03 +00:00
wxiaoguang
19b1b698c9
Improve document for ARTIFACT_RETENTION_DAYS ( #28646 )
...
Follow #28626
2023-12-29 06:44:58 +00:00
Denys Konovalov
f10d716ff4
fix empty ref for cron workflow runs ( #28640 )
...
Fix #27678
Please see
https://github.com/go-gitea/gitea/issues/27678#issuecomment-1871445853
for details.
2023-12-29 06:18:57 +00:00
wxiaoguang
19c45dd479
Improve 1.22 document for Database Preparation ( #28643 )
...
Fix #28247
2023-12-29 05:42:22 +00:00
GiteaBot
4995b4a057
[skip ci] Updated translations via Crowdin
2023-12-29 00:20:25 +00:00
Denys Konovalov
6c133b9fe0
switch destination directory for apt signing keys ( #28639 )
...
According to [Debian
docs](https://wiki.debian.org/DebianRepository/UseThirdParty ):
> The certificate MUST NOT be placed in /etc/apt/trusted.gpg.d or loaded
by apt-key add.
> ...
> If future updates to the certificate will be managed by an apt/dpkg
package as recommended below, then it SHOULD be downloaded into
/usr/share/keyrings using the same filename that will be provided by the
package. If it will be managed locally , it SHOULD be downloaded into
/etc/apt/keyrings instead.
> ...
> A sources.list entry SHOULD have the signed-by option set.
2023-12-28 22:08:59 +01:00
Gerd Katzenbeisser
4d1277c0cb
Extend description for ARTIFACT_RETENTION_DAYS ( #28626 )
...
Make it clear that this value is just a default value and that every
artifact can have it's own value.
2023-12-28 10:11:44 +00:00
wxiaoguang
e743570f65
Refactor timeutil package ( #28623 )
...
1. make names more readable
2. remove unused FormatLong/FormatShort
3. use `FormatDate` instead of `Format "2006-01-02"`
2023-12-28 10:09:57 +00:00
wxiaoguang
f3999888c0
Refactor some legacy code and remove unused code ( #28622 )
...
1. use slices.Contains, remove Int64sContains
2. use HashEmail, remove base.EncodeMD5
3. remove BasicAuthEncode, IsLetter
2023-12-28 09:38:59 +00:00
Lunny Xiao
921df1cbad
Remove unnecessary syncbranchToDB with tests ( #28624 )
...
#28361 introduced `syncBranchToDB` in `CreateNewBranchFromCommit`. This
PR will revert the change because it's unnecessary. Every push will
already be checked by `syncBranchToDB`.
This PR also created a test to ensure it's right.
2023-12-28 15:28:57 +08:00
KN4CK3R
4cd666d7dc
Do not set Accept
header twice ( #28598 )
...
Revert #28550
Don't add the `Accept` header twice.
2023-12-28 03:59:00 +00:00
GiteaBot
c706b3e436
[skip ci] Updated translations via Crowdin
2023-12-28 00:24:21 +00:00
katsu
42149ff1a8
fix wrong link in user and organization profile when using relative url ( #28617 )
...
fix #28436 .
the doc https://docs.gitea.com/usage/profile-readme maybe also need to
be updated to tell that
the main branch is necessary,which means the following three conditions
should be satisfied:
- repo: **.profile**
- branch: **[default branch]**
- markdown: **README.md**
2023-12-27 08:32:27 +00:00
Lunny Xiao
baf0d402d9
Add get actions runner registration token for API routes, repo, org, user and global level ( #27144 )
...
Replace #23761
---------
Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2023-12-27 07:57:54 +00:00
Lunny Xiao
4c29c75968
Fix session key conflict with database keyword ( #28613 )
...
This is a regression from #28220 .
`builder.Cond` will not add `` ` `` automatically but xorm method
`Get/Find` adds `` ` ``.
This PR also adds tests to prevent the method from being implemented
incorrectly. The tests are added in `integrations` to test every
database.
2023-12-27 15:24:23 +08:00
GiteaBot
a1dfffd723
[skip ci] Updated translations via Crowdin
2023-12-27 00:23:45 +00:00
wxiaoguang
d68b9237bf
Use known issue IID to generate new PR index number when migrating from GitLab ( #28616 )
...
Fix #13884
2023-12-26 17:57:25 +00:00
Volodymyr Stelmashchuk
0e9c988373
Update repo-mirror.en-us.md ( #28612 )
...
Add small changes to the doc. The workflow scope require for push code
to github mirror in case the project use the github action compatibility
ui.
2023-12-27 00:36:11 +08:00