Loïc Dachary
b9ae491650
[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
)
2023-10-02 16:13:39 +02:00
Loïc Dachary
c607dcaf9f
[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
)
2023-10-02 16:13:39 +02:00
Earl Warren
151a726620
[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
)
2023-10-02 16:13:39 +02:00
Earl Warren
492cc52059
[CI] DEFAULT_ACTIONS_URL = https://codeberg.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
)
2023-10-02 16:13:39 +02:00
24601
624c0ba920
fix: comment typo ( #27388 )
...
fix a typo in the comment
2023-10-02 08:31:03 +00:00
Lunny Xiao
439a0cca2c
Test more templates for if they contain an error ( #27367 )
2023-10-02 07:56:55 +00:00
wxiaoguang
e4313feefd
Document the line-number counting behavior ( #27386 )
...
Ref #27377
2023-10-02 07:23:18 +00:00
Lunny Xiao
4999d909a6
Remove upgrade from Gogs doc because the diverse has been 7 years and the code base changed totally ( #27387 )
...
The documentation becomes no help since that but make people confusing.
2023-10-02 14:53:55 +08:00
Ayaka
79e1f27eda
Fix incorrect Chinese translation of linked-references.zh-cn.md ( #27382 )
...
---
The original text "To address this" should be translated to "为了解决这个问题".
"工单" looks like corresponds to "issue".
2023-10-02 06:13:08 +00:00
Denys Konovalov
33de64cb21
link to file from its history ( #27354 )
...
Fixes #3852
Fixes https://github.com/go-gitea/gitea/issues/26707
Add a button on file history which directs you to the file at the
selected commit.
Co-authored-by: silverwind <me@silverwind.io>
2023-10-02 04:04:32 +00:00
Earl Warren
cb68e01e22
simplify issue deletion query ( #27312 )
...
- There's no need for `In` to be used, as it's a single parameter that's
being passed.
Refs: https://codeberg.org/forgejo/forgejo/pulls/1521
(cherry picked from commit 4a4955f43a
)
Co-authored-by: Gusted <postmaster@gusted.xyz>
2023-10-02 02:30:10 +00:00
GiteaBot
c9cc57f130
[skip ci] Updated licenses and gitignores
2023-10-02 00:23:46 +00:00
merlleu
a112cf34d3
Cargo package - Fix missing domain in cargo sparse url ( #27370 )
...
Hello, it seems that one my previous PR (adding the sparse index to the
cargo package content page), did not worked as expected: the
gitea-origin-url does not add the AppURL because of the `sparse+` prefix
in the url.
Currently the rendered page gives the following:
```toml
[registry]
default = "gitea"
[registries.gitea]
index = "sparse+/api/packages/ownername/cargo/" # Sparse index
# index = "https://git.example.com/ownername/_cargo-index.git " # Git
[net]
git-fetch-with-cli = true
```
2023-10-01 13:43:15 +00:00
puni9869
50070550a8
Hide archived labels when filtering by labels on the issue list ( #27115 )
...
Followup https://github.com/go-gitea/gitea/pull/26820
## Archived labels UI for issue filter and issue filter actions for
issues/pull request pages.
Changed:
* Enhanced the Issue filter and Issue filter actions UI page to
seamlessly incorporate a list of archived labels.
* Pagination functionality is same as before. If archived label checkbox
is checked then we are adding a query string`archived=true` in the url
to save the state of page.
* Issue filter actions menu is separated into different template.
* Adding the archived flag in issue url labels.
* Pull Request page is also work the same.
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
### Issue page
<img width="1360" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/d7efb2ef-5b2b-449d-83f0-d430a32ec432 ">
### Issue page with label filter on archived label checkbox when not
checked --> No archived label is there in list
<img width="1249" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/ceea68ef-91f2-4693-910f-2e25e236bfc9 ">
### Issue page with label filter on archived label checkbox when checked
--> Show archived label in the list.
<img width="710" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/2414d26b-2079-4c3c-bd9e-f2f5411bcabf ">
### Issue page with label filter on issue action menu on archived label
checkbox when checked --> Show archived label in the list.
<img width="409" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/259cac87-3e21-4778-99a2-a6a0b8c81178 ">
### Applied the archived=true in Issue labels when archived checkbox is
checked.
<img width="984" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/657ce3db-c0ae-402e-b12d-3b580d3c2ed0 ">
---
Part of https://github.com/go-gitea/gitea/issues/25237
---------
Signed-off-by: puni9869 <punitinani1@hotmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Giteabot <teabot@gitea.io>
2023-10-01 09:04:39 -04:00
CaiCandong
87aa552531
Fix unexpected context canceled when migrating repository ( #27368 )
...
Fix #27363
Regression of #27089
2023-10-01 12:04:35 +00:00
CaiCandong
7ad31567cd
Fix ldap admin privileges update bug ( #27051 )
...
When the user does not set a username lookup condition, LDAP will get an
empty string `""` for the user, hence the following code
```
if isExist, err := user_model.IsUserExist(db.DefaultContext, 0, sr.Username)
```
The user presence determination will always be nonexistent, so updates
to user information will never be performed.
Fix #27049
2023-10-01 11:32:12 +00:00
Lunny Xiao
6e87a44034
Allow get release download files and lfs files with oauth2 token format ( #26430 )
...
Fix #26165
Fix #25257
2023-10-01 10:41:52 +00:00
CaiCandong
6b65c41ebf
Fix missing ctx for GetRepoLink in dashboard ( #27372 )
...
As title
Fix #27369
Regression of #27265
2023-10-01 09:26:28 +00:00
Denys Konovalov
4ab597f479
highlight user details link ( #26998 )
...
This PR adds a separated column in the users table for operations. The
username link now redirects back to user page.
![grafik](https://github.com/go-gitea/gitea/assets/47871822/df8c8b30-3da6-443c-ae0f-6e3cac7dd9bb )
Resolves
https://github.com/go-gitea/gitea/pull/26713#pullrequestreview-1603001285
Co-authored-by: silverwind <me@silverwind.io>
2023-10-01 11:58:24 +08:00
silverwind
83f571628d
Feed UI Improvements ( #27356 )
...
Various improvements related to feeds:
- Fix markdown rendering
- Increase font size from 13px to default 14px via `flex-item`
- Add style to hashes
- Move the timestamp to title line. I realize it's not optimal for
translation, we may need to change all these translations
Before:
<img width="768" alt="Screenshot 2023-09-29 at 22 52 58"
src="https://github.com/go-gitea/gitea/assets/115237/edda8b84-23cf-4a43-90ad-a892798f4e6c ">
After:
<img width="781" alt="Screenshot 2023-09-29 at 22 58 09"
src="https://github.com/go-gitea/gitea/assets/115237/7097474d-efcf-4f22-a2ab-834a4e25c4e8 ">
2023-09-30 15:48:34 +00:00
Rafael Heard
4cb51cb985
Absolute positioned checkboxes overlay floated elements ( #26870 )
...
Currently, checkboxes are positioned as absolute. This positioning
causes the input to overlay an element that has been floated within the
editor. Floated elements are useful if you want your text to wrap around
this element. This PR fixes the overlaying of checkboxes by removing the
absolute positioning, updating the `ul` padding, and
displaying`.task-list-item` `flex` to ensure inputs and the associated
label are on the same line.
Screenshots:
Before:
<img width="762" alt="Screenshot 2023-09-01 at 3 40 59 PM"
src="https://github.com/go-gitea/gitea/assets/6152817/570247c7-7f5c-4697-bfc9-ad4655e37991 ">
After:
<img width="762" alt="Screenshot 2023-09-01 at 3 42 20 PM"
src="https://github.com/go-gitea/gitea/assets/6152817/db53df45-1294-4eee-84c0-b21ac4fdf805 ">
---------
Co-authored-by: rafh <rafaelheard@gmail.com>
2023-09-30 09:30:44 +00:00
Lunny Xiao
7d14aa062f
Fix template bug ( #27362 )
...
Fix #27361
2023-09-30 17:03:04 +08:00
GiteaBot
4f169e4b47
[skip ci] Updated translations via Crowdin
2023-09-30 00:22:01 +00:00
yp05327
393193a3e0
Fix repo count in org action settings ( #27245 )
...
Only in org action settings, repo count is missing
Before:
![image](https://github.com/go-gitea/gitea/assets/18380374/4a74c090-c55f-4f06-810a-c390337efa9d )
![image](https://github.com/go-gitea/gitea/assets/18380374/e234f7e7-178c-4186-bbc0-0f291192b011 )
![image](https://github.com/go-gitea/gitea/assets/18380374/c1db70cd-973b-40d5-ba17-1f354aed9149 )
In other setting page:
![image](https://github.com/go-gitea/gitea/assets/18380374/43bfec6b-a1a4-48a9-8280-ab6f967b7ec4 )
After:
![image](https://github.com/go-gitea/gitea/assets/18380374/9a697bd8-ce9f-40e2-8749-b46726d68d84 )
![image](https://github.com/go-gitea/gitea/assets/18380374/3b6d1e59-64dd-4655-953b-064718e6aa7a )
![image](https://github.com/go-gitea/gitea/assets/18380374/5604c063-556c-4252-8778-4e5a5e23b7e1 )
2023-09-29 15:46:07 +00:00
Panagiotis "Ivory" Vasilopoulos
65e09a303e
Introduce fixes and more rigorous tests for 'Show on a map' feature ( #26803 )
...
This change introduces a fix for the PR #26214 to set the UserLocationMapURL correctly.
2023-09-29 14:57:06 +00:00
Lunny Xiao
c3b7231966
Add protected branch name description ( #27257 )
...
Co-authored-by: delvh <dev.lh@web.de>
2023-09-29 14:02:35 +00:00
6543
2a2b0cb1d2
rename TotalTimes() to TotalTimesForEachUser() ( #27261 )
...
make function name more descriptive as it would otherwise imply it could
be used for e.g. #26672 too ...
---
*Sponsored by Kithara Software GmbH*
2023-09-29 13:04:14 +00:00
JakobDev
cf0df023be
More db.DefaultContext
refactor ( #27265 )
...
Part of #27065
This PR touches functions used in templates. As templates are not static
typed, errors are harder to find, but I hope I catch it all. I think
some tests from other persons do not hurt.
2023-09-29 12:12:54 +00:00
yp05327
3945c26722
Improve tree not found page ( #26570 )
...
Before:
![before](https://github.com/go-gitea/gitea/assets/18380374/383822d5-7d77-4ec3-b49b-4ab1e8b167ce )
After:
![after](https://github.com/go-gitea/gitea/assets/18380374/32afa0a3-fa05-4087-b96e-7d067f0ed756 )
In Github:
https://github.com/yp05327/test/blob/main/test.drawio
Updated:
UI changed
![image](https://github.com/go-gitea/gitea/assets/18380374/41ed07ff-b815-4b4e-9779-5ab36b5f3980 )
![image](https://github.com/go-gitea/gitea/assets/18380374/5d7b28d6-a2fc-4d4c-8d6d-d93f9c9a270b )
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-09-29 07:42:39 +00:00
Marcin Kuźmiński
89fa8f9896
Update comparison page with RhodeCode CE & EE ( #27329 )
...
Update RhodeCode features and add EE version
2023-09-29 13:31:54 +08:00
Lunny Xiao
968be05bcc
Add logs for data broken of comment review ( #27326 )
...
Fix #27306
2023-09-29 02:31:36 +00:00
Dmitry Sharshakov
5e02e3b7ee
Add support for forking single branch ( #25821 )
...
Fixes #25117
Add UI for choosing branch to fork
Change default branch on single-branch forks
![image](https://github.com/go-gitea/gitea/assets/19504461/28505f69-a9a2-43a8-8b19-a0cdac3ddc5a )
---------
Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-09-29 09:48:39 +08:00
GiteaBot
e8840e7e2b
[skip ci] Updated translations via Crowdin
2023-09-29 00:23:01 +00:00
Nanguan Lin
15a504cb9f
Fix the approval count of PR when there is no protection branch rule ( #27272 )
...
As title
![ksnip_20230926-115158](https://github.com/go-gitea/gitea/assets/70063547/a60be44a-06ad-421e-ba27-e4e0adfa5db7 )
2023-09-28 23:24:36 +00:00
JakobDev
9d9cebc5e7
Add Index to comment.dependent_issue_id
( #27325 )
...
This Column is missing index. It is used by
[issue_service.deleteIssue](7ea2a910ce/services/issue/issue.go (L300)
).
Co-authored-by: Giteabot <teabot@gitea.io>
2023-09-28 22:58:35 +02:00
Zettat123
3fcad582c9
Improvements of releases list and tags list ( #25859 )
...
Follow #23465 and #25624
This PR introduces the following improvements:
- We do not need to call `GetTags` to get tags because tags have been
loaded by `RepoAssignment`
ef90fdbd1d/modules/context/repo.go (L663-L668)
- Similarly, the number of tags and releases also have been loaded by
`RepoAssignment`, so the related code has been removed from the
handlers. The query condition of `GetReleaseCountByRepoID` in
`RepoAssignment` has been changed to include draft releases.
ef90fdbd1d/modules/context/repo.go (L538-L551)
- `releasesOrTags` function has been removed. The code for rendering
releases list and tags list moved to `Releases` and `TagList`
respectively.
2023-09-28 13:21:47 +00:00
JakobDev
1c039b4e1e
Fix Bug in Issue Config when only contact links are set ( #26521 )
...
Blank Issues should be enabled if they are not explicit disabled through
the `blank_issues_enabled` field of the Issue Config. The Implementation
has currently a Bug: If you create a Issue Config file with only
`contact_links` and without a `blank_issues_enabled` field,
`blank_issues_enabled` is set to false by default.
The fix is only one line, but I decided to also improve the tests to
make sure there are no other problems with the Implementation.
This is a bugfix, so it should be backported to 1.20.
2023-09-28 20:16:40 +08:00
wxiaoguang
1f00bc44b2
Fix review UI ( #27322 )
...
Close #26730
1. The `diff-detail-box` was abused, it shouldn't be used for
"DiffFileList/DiffFileTree".
2. Fix the sticky position for various screens.
![image](https://github.com/go-gitea/gitea/assets/2114189/558a5c06-c94c-4e5c-8395-d38473dd21c2 )
![image](https://github.com/go-gitea/gitea/assets/2114189/3390fb0e-7dc7-457f-bd0c-398fdb6d24c0 )
![image](https://github.com/go-gitea/gitea/assets/2114189/d19dd350-aecf-4909-8ef9-73b09d94560e )
2023-09-28 10:00:26 +00:00
wxiaoguang
72c68177ab
Improve issue history dialog and make poster can delete their own history ( #27323 )
...
Fix #27313 (see the comment)
And some UI improvements:
### Before
![image](https://github.com/go-gitea/gitea/assets/2114189/420a314d-8f34-4e30-a557-f41cf4f0d2f2 )
![image](https://github.com/go-gitea/gitea/assets/2114189/60ca0be4-b55e-4e65-be73-fd53e0d4fc36 )
### After
![image](https://github.com/go-gitea/gitea/assets/2114189/d354f815-5a0c-4e63-8d59-d03ed344dbea )
![image](https://github.com/go-gitea/gitea/assets/2114189/6ef437a4-aa6f-4917-a260-00625ee71e79 )
![image](https://github.com/go-gitea/gitea/assets/2114189/9d88a36c-616b-4dc9-8c6b-76adaad8acf6 )
2023-09-28 08:43:20 +00:00
wxiaoguang
7ea2a910ce
Improve branch list UI ( #27319 )
...
1. Put the `"octicon-shield-lock"` into the flex container, then it
doesn't need a separate flex box
2. Remove some unnecessary `gt-df` helpers
3. Make `btn` button has the same flex behavior as `ui button`
![image](https://github.com/go-gitea/gitea/assets/2114189/60ce75f7-7fac-4157-9c42-91c7dee9300e )
![image](https://github.com/go-gitea/gitea/assets/2114189/ea606baf-6f52-41e1-b964-c4840d3b1529 )
2023-09-28 04:04:32 +00:00
6543
15fa0383fb
doctor: delete action entries without existing user ( #27292 )
...
just extend doctor with a usefully check :)
Co-authored-by: techknowlogick <techknowlogick@gitea.com>
2023-09-28 03:03:08 +00:00
Earl Warren
98f02203f9
fix orphan check for deleted branch ( #27310 )
...
- Modify the deleted branch orphan check to check for the new table
instead.
- Regression from 6e19484f4d
- Resolves https://codeberg.org/forgejo/forgejo/issues/1522
(cherry picked from commit c1d888686f
)
Co-authored-by: Gusted <postmaster@gusted.xyz>
2023-09-28 02:07:33 +00:00
Lunny Xiao
673cf6af76
make writing main test easier ( #27270 )
...
This PR removed `unittest.MainTest` the second parameter
`TestOptions.GiteaRoot`. Now it detects the root directory by current
working directory.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-09-28 01:38:53 +00:00
GiteaBot
e74a3b18af
[skip ci] Updated translations via Crowdin
2023-09-28 00:22:57 +00:00
yp05327
e5e1d842c0
Fix protected branch icon location ( #26576 )
2023-09-27 22:21:31 +00:00
Nanguan Lin
70f8d10fc5
move the gitea admin
subcommands into separate files ( #27307 )
...
As title.
Probably it's better to put those sub cmd to different dirs. Will do
that in the future.
2023-09-27 12:25:38 +00:00
Lunny Xiao
5600504eed
Fix chinese translation ( #27296 )
...
Fix translation from #27291
Source Map will be kept as English in Chinese usage habit.
2023-09-27 08:15:12 +00:00
techknowlogick
9e446dbf04
bump bleve ( #27300 )
...
Co-authored-by: yp05327 <576951401@qq.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-09-27 07:10:58 +00:00
Lunny Xiao
3b2da7e4ae
Redefine the meaning of column is_active to make Actions Registration Token generation easier ( #27143 )
...
Partially Fix #25041
This PR redefined the meaning of column `is_active` in table
`action_runner_token`.
Before this PR, `is_active` means whether it has been used by any
runner. If it's true, other runner cannot use it to register again.
In this PR, `is_active` means whether it's validated to be used to
register runner. And if it's true, then it can be used to register
runners until it become false. When creating a new `is_active` register
token, any previous tokens will be set `is_active` to false.
2023-09-27 05:37:48 +00:00
silverwind
ee27b94b2c
Use vitest globals ( #27102 )
...
Enable [globals](https://vitest.dev/config/#globals ) in vitest, reducing
the noise in test files.
2023-09-27 04:37:13 +00:00