wxiaoguang 
							
						 
					 
					
						
						
							
						
						b1e326d09e 
					 
					
						
						
							
							Auto expand "New PR" form ( #33971 )  
						
						... 
						
						
						
						Follow GitHub's behavior: use `?expand=1` to expand the "New PR" form 
						
						
					 
					
						2025-03-24 14:28:02 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						39de2955fd 
					 
					
						
						
							
							Improve sync fork behavior ( #33319 )  
						
						... 
						
						
						
						Fix  #33271 
Suppose there is a `branch-a` in fork repo:
1. if `branch-a` exists in base repo: try to sync `base:branch-a` to `fork:branch-a`
2. if `branch-a` doesn't exist in base repo: try to sync `base:main` to `fork:branch-a` 
					
						2025-01-20 15:17:47 +08:00 
						 
				 
			
				
					
						
							
							
								Chai-Shi 
							
						 
					 
					
						
						
							
						
						55e0756c68 
					 
					
						
						
							
							Fix push message behavior ( #33215 )  
						
						... 
						
						
						
						Fixes  #32769  by the logic from pr #33192 
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
					
						2025-01-17 19:37:17 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						1299fdb084 
					 
					
						
						
							
							Add a confirm dialog for "sync fork" ( #33270 )  
						
						... 
						
						
						
						Try to quickly fix  #33264  
						
						
					 
					
						2025-01-14 18:30:43 +00:00 
						 
				 
			
				
					
						
							
							
								Chai-Shi 
							
						 
					 
					
						
						
							
						
						e5f3c16587 
					 
					
						
						
							
							Fix sync fork for consistency ( #33147 )  
						
						... 
						
						
						
						Fixes  #33145 
An integration test could be added.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
					
						2025-01-10 05:29:55 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						afe314fa77 
					 
					
						
						
							
							Use primary as button color ( #32949 )  
						
						... 
						
						
						
						* Fix  #32871 
* Fix  #32948  
						
						
					 
					
						2024-12-22 23:03:39 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						513da407f4 
					 
					
						
						
							
							Support "merge upstream branch" (Sync fork) ( #32741 )  
						
						... 
						
						
						
						Add basic "sync fork" support (GitHub-like)
<details>

</details> 
						
						
					 
					
						2024-12-06 21:10:35 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						b068dbd40e 
					 
					
						
						
							
							Refactor DateUtils and merge TimeSince ( #32409 )  
						
						... 
						
						
						
						Follow #32383  and #32402  
						
						
					 
					
						2024-11-04 11:30:00 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						1f8ac27b31 
					 
					
						
						
							
							Fix overflow on push notification ( #31179 )  
						
						... 
						
						
						
						Fixes: https://github.com/go-gitea/gitea/issues/30063 
<img width="1301" alt="Screenshot 2024-05-30 at 14 43 24"
src="https://github.com/go-gitea/gitea/assets/115237/00443af0-088d-49a5-be9e-8c9adcc2c01d "> 
						
						
					 
					
						2024-06-04 07:14:24 +00:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						daf2a4c047 
					 
					
						
						
							
							Fix wrong display of recently pushed notification ( #25812 )  
						
						... 
						
						
						
						There's a bug in #25715 : 
If user pushed a commit into another repo with same branch name, the
no-related repo will display the recently pushed notification
incorrectly.
It is simple to fix this, we should match the repo id in the sql query.

The latest commit is 2 weeks ago.

The notification comes from another repo with same branch name:

After:
In forked repo:

New PR Link will redirect to the original repo:

In the original repo:

New PR Link:

In the same repo:

New PR Link:

08/15 Update:
Follow #26257 , added permission check and logic fix mentioned in
https://github.com/go-gitea/gitea/pull/26257#discussion_r1294085203 
2024/04/25 Update:
Fix  #30611 
---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2024-05-21 17:00:35 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						9946353282 
					 
					
						
						
							
							Remove fomantic button module ( #30475 )  
						
						... 
						
						
						
						CSS-only module. Button colors are reduced to this:
<img width="639" alt="Screenshot 2024-04-14 at 15 36 07"
src="https://github.com/go-gitea/gitea/assets/115237/882d6c02-d1de-44f2-b707-db02a9f5070d ">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2024-04-14 17:53:52 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						68ec9b4859 
					 
					
						
						
							
							Migrate margin and padding helpers to tailwind ( #30043 )  
						
						... 
						
						
						
						This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g'   {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g'   {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g'   {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g'   {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g'   {web_src/js,templates,routers,services}/**/*
``` 
						
						
					 
					
						2024-03-24 17:42:49 +01:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						04f9ad0568 
					 
					
						
						
							
							Fix incorrect tailwind migration ( #30007 )  
						
						... 
						
						
						
						Fixes https://github.com/go-gitea/gitea/issues/30005 . Regression from
https://github.com/go-gitea/gitea/pull/29945 .
There was only once instance of `tw-content-center` before that PR, so I
just ran below command and reverted that one instance.
```sh
perl -p -i -e 's#tw-content-center#tw-items-center#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
``` 
						
						
					 
					
						2024-03-22 20:51:29 +01:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						f88ad5424f 
					 
					
						
						
							
							Replace 10 more gt- classes with tw- ( #29945 )  
						
						... 
						
						
						
						Likely the biggest change of the tailwind refactors. Only thing of note
is that `tw-flex-1` resolves to `flex: 1 1 0%` while our `gt-f1` was
`flex: 1 1 0`, I don't think it will make any difference. Commands I've
ran:
```sh
perl -p -i -e 's#gt-vm#tw-align-middle#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-fw#tw-flex-wrap#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-f1#tw-flex-1#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-fc#tw-flex-col#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-sb#tw-justify-between#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-je#tw-justify-end#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-jc#tw-justify-center#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-ac#tw-content-center#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
perl -p -i -e 's#gt-df#tw-flex#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
perl -p -i -e 's#gt-dib#tw-inline-block#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2024-03-22 13:45:10 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						c381343a60 
					 
					
						
						
							
							Add a link for the recently pushed branch notification ( #29627 )  
						
						
						
						
					 
					
						2024-03-06 11:25:00 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						d2f6588b66 
					 
					
						
						
							
							Remove incorrect and unnecessary Escape from templates ( #29394 )  
						
						... 
						
						
						
						Follow #29165 
* some of them are incorrect, which would lead to double escaping (eg:
`(print (Escape $.RepoLink)`)
* other of them are not necessary, because `Tr` handles strings&HTML
automatically
Suggest to review by "unified view":
https://github.com/go-gitea/gitea/pull/29394/files?diff=unified&w=0  
						
						
					 
					
						2024-02-25 14:02:20 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						7a1557d2cc 
					 
					
						
						
							
							Remove unnecessary "Safe" modifier from templates ( #29318 )  
						
						... 
						
						
						
						Follow #29165  
						
						
					 
					
						2024-02-22 17:02:33 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						93bd4351bf 
					 
					
						
						
							
							Fix more "locale" usages ( #27259 )  
						
						
						
						
					 
					
						2023-09-25 20:42:40 +08:00 
						 
				 
			
				
					
						
							
							
								delvh 
							
						 
					 
					
						
						
							
						
						7960ba7e2b 
					 
					
						
						
							
							Always use ctx.Locale.Tr inside templates ( #27231 )  
						
						
						
						
					 
					
						2023-09-25 08:56:50 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						5914a2f8c0 
					 
					
						
						
							
							Fix template bugs in recently_pushed_new_branches.tmpl ( #26744 )  
						
						... 
						
						
						
						Fix some bugs from #25715 , fix  #25830 
1. `$.locale.Tr ... Safe` needs `Escape`, but not `PathEscapeSegments`
2. The attribute should be `role`
3. The `ComposeBranchCompareURL` already does escaping correctly 
						
						
					 
					
						2023-08-27 08:16:02 +08:00 
						 
				 
			
				
					
						
							
							
								Zettat123 
							
						 
					 
					
						
						
							
						
						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 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						6375419468 
					 
					
						
						
							
							Newly pushed branches hints on repository home page ( #25715 )  
						
						... 
						
						
						
						This PR will display a pull request creation hint on the repository home
page when there are newly created branches with no pull request. Only
the recent 6 hours and 2 updated branches will be displayed.
Inspired by #14003  
Replace #14003  
Resolves  #311 
Resolves  #13196 
Resolves  #23743 
co-authored by @kolaente 
						
						
					 
					
						2023-07-08 05:19:00 +02:00