c2b6897e35 
								
							 
						 
						
							
							
								
								Fix text truncate ( #26354 )  
							
							... 
							
							
							
							Fixes: https://github.com/go-gitea/gitea/issues/25597 
Before:

After:

Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-07 22:44:04 +02:00  
				
					
						
							
							
								 
						
							
								3a42743b3a 
								
							 
						 
						
							
							
								
								Fix incorrect sort link with  `.profile`  repository ( #26374 )  
							
							... 
							
							
							
							fix  #26360  
						
							2023-08-07 19:59:17 +00:00  
				
					
						
							
							
								 
						
							
								f5dbac9d36 
								
							 
						 
						
							
							
								
								Use more `IssueList` instead of `[]*Issue` ( #26369 )  
							
							
							
						 
						
							2023-08-07 19:26:40 +00:00  
				
					
						
							
							
								 
						
							
								ab0eb1c47b 
								
							 
						 
						
							
							
								
								Rename code_langauge.go to code_language.go ( #26377 )  
							
							
							
						 
						
							2023-08-07 15:00:53 -04:00  
				
					
						
							
							
								 
						
							
								a5d8f95550 
								
							 
						 
						
							
							
								
								Add changelog for 1.20.3 ( #26373 )  
							
							
							
						 
						
							2023-08-07 18:11:33 +02:00  
				
					
						
							
							
								 
						
							
								87f70979cf 
								
							 
						 
						
							
							
								
								Do not highlight `#number` in documents ( #26365 )  
							
							... 
							
							
							
							- Currently the post processing will transform all issue indexes (such as `#6`) into a clickable link.
- This makes sense in an situation like issues or PRs,
where referencing to other issues is quite common
and only referencing their issue index is an handy and efficient way to do it.
- Currently this is also run for documents
(which is the user profile and viewing rendered files),
but in those situations it's less common to reference issues by their index and instead could mean something else.
- This patch disables this post processing for issue index for documents. Matches Github's behavior.
- Added unit tests.
- Resolves https://codeberg.org/Codeberg/Community/issues/1120 
Co-authored-by: Gusted <postmaster@gusted.xyz> 
							
						 
						
							2023-08-07 15:11:25 +02:00  
				
					
						
							
							
								 
						
							
								e4b1ea6f15 
								
							 
						 
						
							
							
								
								Bypass MariaDB performance bug of the "IN" sub-query, fix incorrect IssueIndex ( #26279 )  
							
							... 
							
							
							
							Close  #26277 
Fix  #26285  
						
							2023-08-07 12:23:59 +02:00  
				
					
						
							
							
								 
						
							
								24fbf4e059 
								
							 
						 
						
							
							
								
								Fix nil pointer dereference  error when open link with invalid pull index ( #26353 )  
							
							... 
							
							
							
							fix  #26331  
Before:

After:
 
						
							2023-08-07 11:43:18 +08:00  
				
					
						
							
							
								 
						
							
								049e400327 
								
							 
						 
						
							
							
								
								[skip ci] Updated licenses and gitignores  
							
							
							
						 
						
							2023-08-07 00:27:21 +00:00  
				
					
						
							
							
								 
						
							
								8736b134bd 
								
							 
						 
						
							
							
								
								Display human-readable text instead of cryptic filemodes ( #26352 )  
							
							... 
							
							
							
							Now, you don't need to be a git expert anymore to know what these
numbers mean.
## Before

## After

or when the mode actually changed:
 
							
						 
						
							2023-08-06 21:52:34 +02:00  
				
					
						
							
							
								 
						
							
								c1c83dbaec 
								
							 
						 
						
							
							
								
								[docs] Add missing backtick in quickstart.zh-cn.md ( #26349 )  
							
							... 
							
							
							
							Added missing backtick in quickstart.zh-cn.md docs so inline code can
render properly.
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-06 00:28:25 +08:00  
				
					
						
							
							
								 
						
							
								d92b4cd093 
								
							 
						 
						
							
							
								
								Fix incorrect CLI exit code and duplicate error message ( #26346 )  
							
							... 
							
							
							
							Follow the CLI refactoring, and add tests. 
							
						 
						
							2023-08-05 23:36:45 +08:00  
				
					
						
							
							
								 
						
							
								4f513474dc 
								
							 
						 
						
							
							
								
								Improve CLI and messages ( #26341 )  
							
							... 
							
							
							
							Follow the CLI refactoring
1. Remove the "checkCommandFlags" helper
2. Unify the web startup message, make them have consistent names as `./gitea help`
3. Fine tune some other messages (see the diff) 
							
						 
						
							2023-08-05 13:24:49 +00:00  
				
					
						
							
							
								 
						
							
								ecb04cc324 
								
							 
						 
						
							
							
								
								Remove backslashed newlines on markdown ( #26344 )  
							
							... 
							
							
							
							Fix https://gitea.com/gitea/gitea-docusaurus/issues/56  
							
						 
						
							2023-08-05 12:48:46 +00:00  
				
					
						
							
							
								 
						
							
								9ac6bb053c 
								
							 
						 
						
							
							
								
								Hide `last indexed SHA` when a repo could not be indexed yet ( #26340 )  
							
							... 
							
							
							
							Now, for a new repo without any commit, the Last indexed SHA field looks like this:
Before:

After: 

Fixes  #26336  
							
						 
						
							2023-08-05 13:04:14 +02:00  
				
					
						
							
							
								 
						
							
								952882fe4a 
								
							 
						 
						
							
							
								
								Fix log typo in task.go ( #26337 )  
							
							... 
							
							
							
							Signed-off-by: cassiozareck <cassiomilczareck@gmail.com> 
							
						 
						
							2023-08-05 11:43:03 +02:00  
				
					
						
							
							
								 
						
							
								2d3924d0e7 
								
							 
						 
						
							
							
								
								Prevent newline errors with Debian packages ( #26332 )  
							
							... 
							
							
							
							Fixes  #26313  
						
							2023-08-05 10:59:52 +02:00  
				
					
						
							
							
								 
						
							
								9a8af92577 
								
							 
						 
						
							
							
								
								Fix the bug when getting files changed for `pull_request_target` event ( #26320 )  
							
							... 
							
							
							
							Follow #25229 
Copy from
https://github.com/go-gitea/gitea/pull/26290#issuecomment-1663135186 
The bug is that we cannot get changed files for the
`pull_request_target` event. This event runs in the context of the base
branch, so we won't get any changes if we call
`GetFilesChangedSinceCommit` with `PullRequest.Base.Ref`. 
							
						 
						
							2023-08-05 14:26:06 +08:00  
				
					
						
							
							
								 
						
							
								5db4c8db93 
								
							 
						 
						
							
							
								
								Refactor backend SVG package and add tests ( #26335 )  
							
							... 
							
							
							
							Introduce a well-tested `svg.Normalize` function.
Make `RenderHTML` faster and more stable. 
							
						 
						
							2023-08-05 04:34:59 +00:00  
				
					
						
							
							
								 
						
							
								12c249c5ca 
								
							 
						 
						
							
							
								
								Fix bug with sqlite load read ( #26305 )  
							
							... 
							
							
							
							Possible fix  #26280  
							
						 
						
							2023-08-05 10:40:27 +08:00  
				
					
						
							
							
								 
						
							
								e5011a0e6d 
								
							 
						 
						
							
							
								
								Remove commit load branches and tags in wiki repo ( #26304 )  
							
							... 
							
							
							
							If click `load branches and tags`, you will get 500 error from backend,
as it is a wiki repo.


Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-04 15:49:43 +00:00  
				
					
						
							
							
								 
						
							
								945a0cb96b 
								
							 
						 
						
							
							
								
								Add highlight to selected repos in milestone dashboard ( #26300 )  
							
							... 
							
							
							
							Before:

After:

Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-04 15:16:56 +00:00  
				
					
						
							
							
								 
						
							
								6a7a5ea32a 
								
							 
						 
						
							
							
								
								Do not show Profile README when repository is private ( #26295 )  
							
							... 
							
							
							
							As mentioned in the original thread (#23260 ) and in the enhancements PR
#24753 , this PR ensures the .profile repository is public before the
README file is shown.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-04 14:45:33 +00:00  
				
					
						
							
							
								 
						
							
								30eae5a40c 
								
							 
						 
						
							
							
								
								Fix incorrect color of selected assignees when create issue ( #26324 )  
							
							... 
							
							
							
							Before:

After:

Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-04 14:14:30 +00:00  
				
					
						
							
							
								 
						
							
								6151e69d95 
								
							 
						 
						
							
							
								
								Delete `issue_service.CreateComment` ( #26298 )  
							
							... 
							
							
							
							I noticed that `issue_service.CreateComment` adds transaction operations
on `issues_model.CreateComment`, we can merge the two functions and we
can avoid calling each other's methods in the `services` layer.
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-04 13:34:34 +00:00  
				
					
						
							
							
								 
						
							
								2de0752be7 
								
							 
						 
						
							
							
								
								Make git batch operations use parent context timeout instead of default timeout ( #26325 )  
							
							... 
							
							
							
							Fix  #26064 
Some git commands should use parent context, otherwise it would exit too
early (by the default timeout, 10m), and the "cmd.Wait" waits till the
pipes are closed. 
						
							2023-08-04 14:50:41 +02:00  
				
					
						
							
							
								 
						
							
								68c652d8f3 
								
							 
						 
						
							
							
								
								Fix typos and grammer problems for actions documentation ( #26328 )  
							
							... 
							
							
							
							follow #26317 
fix typos and adjust grammer problems. 
							
						 
						
							2023-08-04 10:04:37 +00:00  
				
					
						
							
							
								 
						
							
								0da8ebc95b 
								
							 
						 
						
							
							
								
								Update documentation for 1.21 actions ( #26317 )  
							
							... 
							
							
							
							As title.
Close  #26309 
Related to #24724 , #24806  
							
						 
						
							2023-08-04 09:06:02 +00:00  
				
					
						
							
							
								 
						
							
								96f151392f 
								
							 
						 
						
							
							
								
								Fix the wrong derive path ( #26271 )  
							
							... 
							
							
							
							This PR will fix  #26264 , caused by #23911 .
The package configuration derive is totally wrong when storage type is
local in that PR.
This PR fixed the inherit logic when storage type is local with some
unit tests.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-08-04 03:41:16 +00:00  
				
					
						
							
							
								 
						
							
								8a2f019d69 
								
							 
						 
						
							
							
								
								Support getting changed files when commit ID is `EmptySHA` ( #26290 )  
							
							... 
							
							
							
							Fixes  #26270 .
Co-Author: @wxiaoguang 
Thanks @lunny for providing this solution
As
https://github.com/go-gitea/gitea/issues/26270#issuecomment-1661695151 
said, at present we cannot get the names of changed files correctly when
the `OldCommitID` is `EmptySHA`. In this PR, the `GetCommitFilesChanged`
method is added and will be used to get the changed files by commit ID.
References:
- https://stackoverflow.com/a/424142 
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
							2023-08-04 02:53:15 +00:00  
				
					
						
							
							
								 
						
							
								865d2221c0 
								
							 
						 
						
							
							
								
								Add `Retry` button when creating a mirror-repo fails ( #26228 )  
							
							... 
							
							
							
							fixed  #26156  
* Added a retry button in the frontend (only displayed when the status
is abnormal)
* After clicking Retry, the backend adds the task back to the task queue


---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
							2023-08-04 10:21:32 +08:00  
				
					
						
							
							
								 
						
							
								907bedaad0 
								
							 
						 
						
							
							
								
								[skip ci] Updated translations via Crowdin  
							
							
							
						 
						
							2023-08-04 00:26:21 +00:00  
				
					
						
							
							
								 
						
							
								6832a8eb06 
								
							 
						 
						
							
							
								
								Add locale for deleted head branch ( #26296 )  
							
							... 
							
							
							
							As title.
It will be displayed in:
 
							
						 
						
							2023-08-03 22:07:15 +00:00  
				
					
						
							
							
								 
						
							
								70647bd04c 
								
							 
						 
						
							
							
								
								Use yellow if an approved review is stale ( #26312 )  
							
							... 
							
							
							
							By using a different color it's clear that the review isn't pointing to
the latest commit.
**Screenshots:**
Not stale review:

Stale review:

fixes  #26306  
							
						 
						
							2023-08-04 00:28:21 +03:00  
				
					
						
							
							
								 
						
							
								d74c2228e3 
								
							 
						 
						
							
							
								
								Remove nonsense `<a>` for commit status check icon ( #26287 )  
							
							... 
							
							
							
							We are using `<a>` for commit status check icon with no link. So it is
clickable but this is no sense.
I think we can convert this to `div`.

Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-03 19:58:41 +02:00  
				
					
						
							
							
								 
						
							
								0827fbd49c 
								
							 
						 
						
							
							
								
								Make confusable character warning less jarring ( #25069 )  
							
							... 
							
							
							
							This commit assumes that the warning can be made more discreet
so as to make it less annoying for the people that do not actually
need the warning, without necessarily increasing the risk for those
that do need it.
This doesn't fix the underlying problem of the warning being shown
in certain cases that, say, a certain kind of whitespace character
like 0x1E could be absolutely justifiable from a technical
perspective.
---------
Co-authored-by: delvh <dev.lh@web.de> 
							
						 
						
							2023-08-03 22:16:06 +08:00  
				
					
						
							
							
								 
						
							
								8ba54a2e16 
								
							 
						 
						
							
							
								
								Update Gmail example ( #26302 )  
							
							... 
							
							
							
							The `IS_TLS_ENABLED` option in the `mailer` section is deprecated. This
is specified by setting `PROTOCOL=smtps` 
							
						 
						
							2023-08-03 18:20:40 +08:00  
				
					
						
							
							
								 
						
							
								539015403f 
								
							 
						 
						
							
							
								
								Fix the topic validation rule and suport dots ( #26286 )  
							
							... 
							
							
							
							1. Allow leading and trailing spaces by user input, these spaces have
already been trimmed at backend
2. Allow using dots in the topic 
							
						 
						
							2023-08-03 09:18:06 +00:00  
				
					
						
							
							
								 
						
							
								cad22512b8 
								
							 
						 
						
							
							
								
								Upgrade x/net to 0.13.0 ( #26297 )  
							
							
							
						 
						
							2023-08-03 08:29:57 +00:00  
				
					
						
							
							
								 
						
							
								7bde2bf809 
								
							 
						 
						
							
							
								
								add unit test for user renaming ( #26261 )  
							
							... 
							
							
							
							- The user renaming function has zero test coverage.
- This patch brings that up to speed to test for various scenarios and
ensure that in a normal workflow the correct things has changed to their
respective new value. Most scenarios are to ensure certain things DO NOT
happen.
(cherry picked from commit 5b9d34ed115c9ef24012b8027959ea0afdcb4e2d)
Refs: https://codeberg.org/forgejo/forgejo/pulls/1156 
Co-authored-by: Gusted <postmaster@gusted.xyz> 
							
						 
						
							2023-08-03 09:38:51 +08:00  
				
					
						
							
							
								 
						
							
								02d5f422ea 
								
							 
						 
						
							
							
								
								add some Wiki unit tests ( #26260 )  
							
							... 
							
							
							
							- Just to get 100% coverage on services/wiki/wiki_path.go, nothing
special. This is just an formality.
(cherry picked from commit 6b3528920fbf18c41d6aeb95498af48443282370)
Refs: https://codeberg.org/forgejo/forgejo/pulls/1156 
Co-authored-by: Gusted <postmaster@gusted.xyz> 
							
						 
						
							2023-08-03 09:37:48 +08:00  
				
					
						
							
							
								 
						
							
								54c28fddd8 
								
							 
						 
						
							
							
								
								Clarify the logger's MODE config option ( #26267 )  
							
							... 
							
							
							
							1. Fix the wrong document (add the missing `MODE=`)
2. Add a more friendly log message to tell users to add `MODE=` in their
config
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-01 18:28:23 +00:00  
				
					
						
							
							
								 
						
							
								b1089bdafe 
								
							 
						 
						
							
							
								
								speed up TestEventSourceManagerRun ( #26262 )  
							
							... 
							
							
							
							- `setting.UI.Notification.EventSourceUpdateTime` is by default 10
seconds, which adds an 10 second delay before the test succeeds.
- Lower the interval to reduce it to at most 3 second delay (the code
only send events when they are at least 2 seconds old).
(cherry picked from commit 3adb9ae6009ff3ddebaed4875e086343f668ef7b)
Refs: https://codeberg.org/forgejo/forgejo/pulls/1166 
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-01 17:57:11 +00:00  
				
					
						
							
							
								 
						
							
								6ed4626ed5 
								
							 
						 
						
							
							
								
								Merge `templates/projects/list.tmpl` and `templates/repo/projects/list.tmpl` together ( #26265 )  
							
							... 
							
							
							
							(cherry picked from commit 473862a1d599382ca022482e2e044025872d240b)
Refs: https://codeberg.org/forgejo/forgejo/pulls/1126 
Co-authored-by: Louis Seubert <louis.seubert.ls@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-01 16:54:54 +00:00  
				
					
						
							
							
								 
						
							
								ab388deb0e 
								
							 
						 
						
							
							
								
								Allow editing push mirrors after creation ( #26151 )  
							
							... 
							
							
							
							Allow users to edit the sync interval for existing push mirrors.
Currently, there is no way to modify the interval once the mirror is
created.
<details>
  <summary>Screenshots</summary>
  
## Before
<img width="936" alt="Screenshot 2023-07-26 at 9 31 21 AM"
src="https://github.com/go-gitea/gitea/assets/80308335/35b8a40c-4320-474c-a866-1dea0f1fa0de ">
## After
<img width="945" alt="Screenshot 2023-07-26 at 9 44 40 AM"
src="https://github.com/go-gitea/gitea/assets/80308335/ee12e12f-0f68-4feb-90eb-33366f5997d3 ">
### On hover
<img width="247" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/2f32de45-bd50-4150-9623-3be2ef3ea7f8 ">
<img width="237" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/49f4ab4d-ccff-4489-80ce-a9788a73c3bb ">
<img width="245" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/165fc888-9d48-438a-b730-d4beb12122af ">
### Edit modal
<img width="905" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/2a7ca24b-4f36-4e0e-9799-39f2ecc46413 ">
### Only valid times are allowed
<img width="728" alt="Screenshot 2023-07-26 at 9 50 01 AM"
src="https://github.com/go-gitea/gitea/assets/80308335/ced6d330-c235-4e29-8f17-28daddcf1444 ">
<img width="853" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/8636f62a-70d1-4684-a3e8-b205adc03580 ">
</details>
Fixes  #21295 
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-08-01 16:00:59 +00:00  
				
					
						
							
							
								 
						
							
								ab0e588217 
								
							 
						 
						
							
							
								
								Update Arch linux URL from community to extra ( #26273 )  
							
							... 
							
							
							
							Arch linux package link has changed from the community repo to the extra repo.
The link has been updated. 
							
						 
						
							2023-08-01 15:28:20 +00:00  
				
					
						
							
							
								 
						
							
								edd93fcfbc 
								
							 
						 
						
							
							
								
								Fix due date rendering the wrong date in issue ( #26268 )  
							
							... 
							
							
							
							Closes  #26263 
We have to pass the date without the time.
# Before

# After

Signed-off-by: Yarden Shoham <git@yardenshoham.com> 
						
							2023-08-01 16:21:04 +02:00  
				
					
						
							
							
								 
						
							
								9a65d011f6 
								
							 
						 
						
							
							
								
								Some fixes of the prompt of new branches ( #26257 )  
							
							... 
							
							
							
							Related to #26239 
This PR makes some fixes:
- do not show the prompt for mirror repos and repos with pull request
units disabled
- use `commit_time` instead of `updated_unix`, as `commit_time` is the
real time when the branch was pushed 
							
						 
						
							2023-08-01 07:25:11 +00:00  
				
					
						
							
							
								 
						
							
								b9baed2c74 
								
							 
						 
						
							
							
								
								Introduce `flex-list` & `flex-item` elements for Gitea UI ( #25790 )  
							
							... 
							
							
							
							This PR introduces a new UI element type for Gitea called `flex-item`.
It consists of a horizontal card with a leading, main and trailing part:

The idea behind it is that in Gitea UI, we have many cases where we use
this kind of layout, but it is achieved in many different ways:
  - grid layout
  - `.ui.list` with additional hacky flexbox
- `.ui.key.list` - looks to me like a style set originally created for
ssh/gpg key list, was used in many other places
  - `.issue.list` - created for issue cards, used in many other places
  - ...
This new style is based on `.issue.list`, specifically the refactoring
of it done in #25750 .
In this PR, the new element is introduced and lots of templates are
being refactored to use that style. This allows to remove a lot of
page-specific css, makes many of the elements responsive or simply
provides a cleaner/better-looking way to present information.
A devtest section with the new style is also available.
<details>
<summary>Screenshots (left: before, right: after)</summary>



















</details>
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-01 00:13:42 +02:00  
				
					
						
							
							
								 
						
							
								fc6c3d626e 
								
							 
						 
						
							
							
								
								Mention `devtest` in frontend contributing guidelines ( #26249 )  
							
							... 
							
							
							
							Our `devtest` page contains some good UI examples which should be taken
as example when working on Gitea UI. Mention it in our frontend
contributing guidelines to for new contributors to know about it. 
							
						 
						
							2023-07-31 12:49:21 +02:00