oliverpool 
								
							 
						 
						
							
							
								
							
							
	1c99c289f6  
						 
						
							
							
								
								
								refactor: sourcehut_builds ignore unused fields  
							
							... 
							
							
							
							
							(cherry picked from commit 1f6f909b2e 
							
						 
						
							2024-05-24 00:26:19 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	287253ff7d  
						 
						
							
							
								
								
								fix: sourcehut_builds preserve unused fields  
							
							... 
							
							
							
							
							Fix  #3820 
(cherry picked from commit c9f38e2813 
						
							2024-05-24 00:26:19 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	855f95f7a2  
						 
						
							
							
								
								
								test: sourcehut_builds trigger  
							
							... 
							
							
							
							
							(cherry picked from commit 7b47cb43c1 
							
						 
						
							2024-05-24 00:26:19 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Earl Warren 
								
							 
						 
						
							
							
								
							
							
	cfbc52921e  
						 
						
							
							
								
								
								Merge pull request '[v7.0/forgejo] fix: webhook: send short ref on gitea create/delete payload' ( #3560 ) from bp-v7.0/forgejo-0d3a9e6-cb0f361 into v7.0/forgejo  
							
							... 
							
							
							
							
							Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3560 
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> 
							
						 
						
							2024-04-30 12:51:43 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	e97ffdae6f  
						 
						
							
							
								
								
								webhook: send short ref on gitea create/delete payload  
							
							... 
							
							
							
							
							(cherry picked from commit 0d3a9e6491 
							
						 
						
							2024-04-30 09:12:11 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	67647d5f39  
						 
						
							
							
								
								
								test: webhook gitea tag creation ref  
							
							... 
							
							
							
							
							(cherry picked from commit cb0f361171 
							
						 
						
							2024-04-30 09:12:10 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	b15d2a6bc7  
						 
						
							
							
								
								
								webhook: fix getPayloadBranch  
							
							... 
							
							
							
							
							(cherry picked from commit df06904f4a 
							
						 
						
							2024-04-30 08:17:11 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	cd77a78a93  
						 
						
							
							
								
								
								test: webhook fix branch filter tests  
							
							... 
							
							
							
							
							(cherry picked from commit 79380c209d 
							
						 
						
							2024-04-30 08:17:10 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									0ko 
								
							 
						 
						
							
							
								
							
							
	c7ba51518c  
						 
						
							
							
								
								
								s/Gitea/Forgejo in various log messages and comments  
							
							... 
							
							
							
							
							(cherry picked from commit 469c214ec8 
							
						 
						
							2024-04-22 14:41:17 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Giteabot 
								
							 
						 
						
							
							
								
							
							
	
	
	6ad8ed5da1 
 
						 
						
							
							
								
								
								Fix missed doer ( #30231 ) ( #30343 )  
							
							... 
							
							
							
							
							Backport #30231  by @lunny
Fix  #29879 
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
(cherry picked from commit e0b9638191508180a3e5da916550d00c76dd7eaa) 
							
						 
						
							2024-04-15 16:21:45 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	01dc275a19  
						 
						
							
							
								
								
								webhook: add admin-hooks tests  
							
							... 
							
							
							
							
							(cherry picked from commit 9a94019db4 
							
						 
						
							2024-04-09 21:57:34 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	a2a833c5ac  
						 
						
							
							
								
								
								[FIX] webhook creation payload ref  
							
							... 
							
							
							
							
							(cherry picked from commit 2c85a1417b 
							
						 
						
							2024-04-06 07:30:48 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	82b92c3f2c  
						 
						
							
							
								
								
								[FEAT] sourcehut webhooks  
							
							... 
							
							
							
							
							(cherry picked from commit ed9dd0e62a 
							
						 
						
							2024-04-05 19:36:04 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	4ad42a4e3f  
						 
						
							
							
								
								
								[REFACTOR] webhook shared code to prevent import cycles  
							
							... 
							
							
							
							
							(cherry picked from commit 04a398a1af 
							
						 
						
							2024-04-05 19:36:03 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	84eeab59af  
						 
						
							
							
								
								
								[REFACTOR] add Icon to webhook.Interface  
							
							
							
							
						 
						
							2024-03-31 07:20:19 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	
	
	ef800a7ff1 
 
						 
						
							
							
								
								
								Fix possible data race on tests ( #30093 )  
							
							... 
							
							
							
							
							(cherry picked from commit 0c8b828f5d5ac7eb8e251edfb1f2536ce1c30336) 
							
						 
						
							2024-03-30 07:17:30 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Gusted 
								
							 
						 
						
							
							
								
							
							
	
	
	f579bde69d 
 
						 
						
							
							
								
								
								[CHORE] Cleanup dependency  
							
							... 
							
							
							
							
							- Remove `gitea.com/lunny/dingtalk_webhook` as dependency, we only use
two structs which are small enough to be recreated in Forgejo and don't
need to rely on the dependency.
- Existing tests (thanks @oliverpool) prove that this has no effect. 
							
						 
						
							2024-03-30 00:01:42 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	4ab341e971  
						 
						
							
							
								
								
								[REFACTOR] webhook gogs endpoint  
							
							
							
							
						 
						
							2024-03-27 15:38:39 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	dce754cde1  
						 
						
							
							
								
								
								[REFACTOR] webhook packagist endpoint  
							
							
							
							
						 
						
							2024-03-27 15:38:39 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	36a1d37532  
						 
						
							
							
								
								
								[REFACTOR] webhook wechatwork endpoint  
							
							
							
							
						 
						
							2024-03-27 15:38:39 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	6b719f08d0  
						 
						
							
							
								
								
								[REFACTOR] webhook feishu endpoint  
							
							
							
							
						 
						
							2024-03-27 15:38:39 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	97f0ad49ff  
						 
						
							
							
								
								
								[REFACTOR] webhook msteams endpoint  
							
							
							
							
						 
						
							2024-03-27 15:38:39 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	46b71ec709  
						 
						
							
							
								
								
								[REFACTOR] webhook telegram endpoint  
							
							
							
							
						 
						
							2024-03-27 15:38:39 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	9dff719523  
						 
						
							
							
								
								
								[REFACTOR] webhook dingtalk endpoint  
							
							
							
							
						 
						
							2024-03-27 15:38:39 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	c3f8e6ed60  
						 
						
							
							
								
								
								[REFACTOR] webhook discord endpoint  
							
							
							
							
						 
						
							2024-03-27 15:38:39 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	6f00821f3d  
						 
						
							
							
								
								
								[REFACTOR] webhook slack endpoints  
							
							
							
							
						 
						
							2024-03-27 15:38:38 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	7e0965b02c  
						 
						
							
							
								
								
								[REFACTOR] webhook forgejo/gitea endpoints  
							
							
							
							
						 
						
							2024-03-27 15:38:38 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	8dfbbfef07  
						 
						
							
							
								
								
								[REFACTOR] webhook matrix endpoints  
							
							
							
							
						 
						
							2024-03-27 15:38:38 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Earl Warren 
								
							 
						 
						
							
							
								
							
							
	e41e18f87e  
						 
						
							
							
								
								
								Merge pull request '[REFACTOR] webhook.Handler interface' ( #2758 ) from oliverpool/forgejo:webhook_2_interface into forgejo  
							
							... 
							
							
							
							
							Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2758 
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> 
							
						 
						
							2024-03-27 13:45:04 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Denys Konovalov 
								
							 
						 
						
							
							
								
							
							
	
	
	20f839ad00 
 
						 
						
							
							
								
								
								fix telegram webhook ( #29864 )  
							
							... 
							
							
							
							
							Fix  #29837  which is a regression caused by
https://github.com/go-gitea/gitea/pull/29145/files#diff-731445ee00f0f1bf2ff731f4f96ddcf51cdc53fd2faaf406eb3536fc292ea748L48 .
The line was probably removed by accident.
---------
Co-authored-by: Giteabot <teabot@gitea.io>
(cherry picked from commit 0285b04f4ca981d7467097dbca3b281011b7798c) 
						
							2024-03-26 19:04:25 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	702152bfde  
						 
						
							
							
								
								
								[REFACTOR] webhook.Handler interface  
							
							
							
							
						 
						
							2024-03-24 10:35:06 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	2536c2db89  
						 
						
							
							
								
								
								fix webhook fixtures  
							
							
							
							
						 
						
							2024-03-24 07:11:19 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	a47a1e0777  
						 
						
							
							
								
								
								[BUG] Packagist webhook: support all events  
							
							... 
							
							
							
							
							Fixes  #2329  
						
							2024-03-13 09:27:12 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	
	
	ed6f724a5d 
 
						 
						
							
							
								
								
								add test for webhook default method  
							
							... 
							
							
							
							
							https://github.com/go-gitea/gitea/pull/29690  
						
							2024-03-11 23:37:00 +07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	
	
	1b8aa3ab6f 
 
						 
						
							
							
								
								
								Fix broken webhooks ( #29690 )  
							
							... 
							
							
							
							
							Fix  #29689 
(cherry picked from commit 6e8762f962c5eaaee1c92e910c95c8b85b7c1e11) 
						
							2024-03-11 23:37:00 +07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	
	
	53f6f62ad4 
 
						 
						
							
							
								
								
								Store webhook event in database ( #29145 )  
							
							... 
							
							
							
							
							Refactor the webhook logic, to have the type-dependent processing happen
only in one place.
---
1. An event happens
2. It is pre-processed (depending on the webhook type) and its body is
added to a task queue
3. When the task is processed, some more logic (depending on the webhook
type as well) is applied to make an HTTP request
This means that webhook-type dependant logic is needed in step 2 and 3.
This is cumbersome and brittle to maintain.
Updated webhook flow with this PR:
1. An event happens
2. It is stored as-is and added to a task queue
3. When the task is processed, the event is processed (depending on the
webhook type) to make an HTTP request
So the only webhook-type dependent logic happens in one place (step 3)
which should be much more robust.
- the raw event must be stored in the hooktask (until now, the
pre-processed body was stored)
- to ensure that previous hooktasks are correctly sent, a
`payload_version` is added (version 1: the body has already been
pre-process / version 2: the body is the raw event)
So future webhook additions will only have to deal with creating an
http.Request based on the raw event (no need to adjust the code in
multiple places, like currently).
Moreover since this processing happens when fetching from the task
queue, it ensures that the queuing of new events (upon a `git push` for
instance) does not get slowed down by a slow webhook.
As a concrete example, the PR #19307  for custom webhooks, should be
substantially smaller:
- no need to change `services/webhook/deliver.go`
- minimal change in `services/webhook/webhook.go` (add the new webhook
to the map)
- no need to change all the individual webhook files (since with this
refactor the `*webhook_model.Webhook` is provided as argument)
(cherry picked from commit 26653b196bd1d15c532af41f60351596dd4330bd)
Conflicts:
	services/webhook/deliver_test.go
	trivial context conflict 
							
						 
						
							2024-03-11 23:36:59 +07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									6543 
								
							 
						 
						
							
							
								
							
							
	
	
	e2371743d5 
 
						 
						
							
							
								
								
								remove util.OptionalBool and related functions ( #29513 )  
							
							... 
							
							
							
							
							and migrate affected code
_last refactoring bits to replace **util.OptionalBool** with
**optional.Option[bool]**_
(cherry picked from commit a3f05d0d98408bb47333b19f505b21afcefa9e7c)
Conflicts:
	services/repository/branch.go
	trivial context conflict 
							
						 
						
							2024-03-06 12:10:46 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Earl Warren 
								
							 
						 
						
							
							
								
							
							
	
	
	094c84ed6d 
 
						 
						
							
							
								
								
								Merge branch 'rebase-forgejo-dependency' into wip-forgejo  
							
							
							
							
						 
						
							2024-02-05 18:58:23 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Gusted 
								
							 
						 
						
							
							
								
							
							
	
	
	2baec139fa 
 
						 
						
							
							
								
								
								[GITEA] Fix test TestWebhookProxy with http proxy env  
							
							... 
							
							
							
							
							- Unset the http proxies environments for the `TestWebhookProxy`.
- Resolves  #2132 
(cherry picked from commit 244b9786fc8602dfa6a28621449209aefa77f917 
							
						 
						
							2024-02-05 16:09:43 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Gusted 
								
							 
						 
						
							
							
								
							
							
	
	
	fa37a211fb 
 
						 
						
							
							
								
								
								[GITEA] Drop sha256-simd in favor of stdlib  
							
							... 
							
							
							
							
							- In Go 1.21 the crypto/sha256 [got a massive
improvement](https://go.dev/doc/go1.21#crypto/sha256 ) by utilizing the
SHA instructions for AMD64 CPUs, which sha256-simd already was doing.
The performance is now on par and I think it's preferable to use the
standard library rather than a package when possible.
```
cpu: AMD Ryzen 5 3600X 6-Core Processor
                │  simd.txt   │               go.txt                │
                │   sec/op    │    sec/op     vs base               │
Hash/8Bytes-12    63.25n ± 1%    73.38n ± 1%  +16.02% (p=0.002 n=6)
Hash/64Bytes-12   98.73n ± 1%   105.30n ± 1%   +6.65% (p=0.002 n=6)
Hash/1K-12        567.2n ± 1%    572.8n ± 1%   +0.99% (p=0.002 n=6)
Hash/8K-12        4.062µ ± 1%    4.062µ ± 1%        ~ (p=0.396 n=6)
Hash/1M-12        512.1µ ± 0%    510.6µ ± 1%        ~ (p=0.485 n=6)
Hash/5M-12        2.556m ± 1%    2.564m ± 0%        ~ (p=0.093 n=6)
Hash/10M-12       5.112m ± 0%    5.127m ± 0%        ~ (p=0.093 n=6)
geomean           13.82µ         14.27µ        +3.28%
                │   simd.txt   │               go.txt                │
                │     B/s      │     B/s       vs base               │
Hash/8Bytes-12    120.6Mi ± 1%   104.0Mi ± 1%  -13.81% (p=0.002 n=6)
Hash/64Bytes-12   618.2Mi ± 1%   579.8Mi ± 1%   -6.22% (p=0.002 n=6)
Hash/1K-12        1.682Gi ± 1%   1.665Gi ± 1%   -0.98% (p=0.002 n=6)
Hash/8K-12        1.878Gi ± 1%   1.878Gi ± 1%        ~ (p=0.310 n=6)
Hash/1M-12        1.907Gi ± 0%   1.913Gi ± 1%        ~ (p=0.485 n=6)
Hash/5M-12        1.911Gi ± 1%   1.904Gi ± 0%        ~ (p=0.093 n=6)
Hash/10M-12       1.910Gi ± 0%   1.905Gi ± 0%        ~ (p=0.093 n=6)
geomean           1.066Gi        1.032Gi        -3.18%
```
(cherry picked from commit abd94ff5b515e81637abhttps://codeberg.org/forgejo/forgejo/pulls/1581 
(cherry picked from commit 325d92917fhttps://codeberg.org/forgejo/forgejo/pulls/1617 
(cherry picked from commit 358819e895362fd7aae14f64ee294e4bde77f7b11311e30a8157b69e334c52dc892fad77f54f41870d0392f3a5https://codeberg.org/forgejo/forgejo/pulls/2034 
(cherry picked from commit 92798364e843d218127745c88b86a3a1cd6f4e3a01191dc2ad151e07f37e 
							
						 
						
							2024-02-05 16:09:40 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Earl Warren 
								
							 
						 
						
							
							
								
							
							
	
	
	e20cd83bc5 
 
						 
						
							
							
								
								
								[BRANDING] add the forgejo webhook type & update webhook docs URLs  
							
							... 
							
							
							
							
							templates/swagger/v1_json.tmpl updated with `make generate-swagger`
(cherry picked from commit 88899c492e7171bd96171a742446c1d7c189d7b2cbdea868e46cd150483b47246da8d3f2aa0e6b765a4fc69a1648e444ca09888e5378115121f493c99394e55fdf3a2ce51768719ead3a6583e6f82e2a494a429b214d775db6b4b68f777dc25b934023fa3b1ed8b16c6bc4a46c9f8064bb24a3https://codeberg.org/forgejo/forgejo/pulls/1181 
(cherry picked from commit 55f5588a91a428bc06b3d2186eceb9b4e126e9afe4c7a92c2da7165c8146https://codeberg.org/forgejo/forgejo/pulls/1420 
[BRANDING] add the forgejo webhook type & update webhook docs URLs (squash) gitea logo for gitea webhooks
Refs: https://codeberg.org/forgejo/forgejo/issues/1367 
(cherry picked from commit 2d8c1b93739135a5e1db270f4020b033e5e2f0d87af8bcf479https://codeberg.org/forgejo/forgejo/pulls/1548 
(cherry picked from commit ce2a434dcfc2fa42b4fd3858c8d4dbebb0ae492093d354c418d5b08a2a4be5e5caffaa974d405700e654fbccb185515977fbe192647bc095fb1b7242ea7bd8022fbf8465ccd0e1baa0a30001b4f4c514da330b1e517b26c27c200c781e6f6d0f663a84143297fd4f152f4ef403cb 
							
						 
						
							2024-02-05 16:02:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Earl Warren 
								
							 
						 
						
							
							
								
							
							
	
	
	ec8f162b33 
 
						 
						
							
							
								
								
								[BRANDING] add X-Forgejo-* headers  
							
							... 
							
							
							
							
							(cherry picked from commit 0a3388f93f7eba0a440aeb9646c7eff1972578f57f96222fb4e3c7c9fe7b84fdead90285148e1196c0086bd70dd1e31ef318681d3ed5c476a3001f5ba55a9567d3aa7adc167dd5354cb52c472c489996dc816d065b4795f9ea85ddd4ae53430e95f2a36b47a41a4e7bd4416fcd3ef279d153b6959f908ffd82df9531018f8c9fd9e3d4a0db770644594d623962b1de579e507abee3538c36ac42c772f74067f48e5a9e187bcff8f43c7e493cc93e6dc94352b4d43f622c51a784c62ad447ba186c8ee44238ef291d3ef1bd61b9f304086bb664a2edabcb6accea6ba72296e93a422bf0be3b1bfb4652b1977d462cf353f5319660dd 
							
						 
						
							2024-02-05 16:02:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Adam Majer 
								
							 
						 
						
							
							
								
							
							
	
	
	cbf923e87b 
 
						 
						
							
							
								
								
								Abstract hash function usage ( #28138 )  
							
							... 
							
							
							
							
							Refactor Hash interfaces and centralize hash function. This will allow
easier introduction of different hash function later on.
This forms the "no-op" part of the SHA256 enablement patch. 
							
						 
						
							2023-12-13 21:02:00 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	
	
	df1e7d0067 
 
						 
						
							
							
								
								
								Use db.Find instead of writing methods for every object ( #28084 )  
							
							... 
							
							
							
							
							For those simple objects, it's unnecessary to write the find and count
methods again and again. 
							
						 
						
							2023-11-24 03:49:41 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	58f5fa6536 
 
						 
						
							
							
								
								
								Fix Matrix and MSTeams nil dereference ( #28089 )  
							
							... 
							
							
							
							
							Fixes  #28088  
Fixes  #28094 
Added missing tests.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
						
							2023-11-17 12:17:33 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	
	
	16d15ce087 
 
						 
						
							
							
								
								
								Fix package webhook ( #27839 )  
							
							... 
							
							
							
							
							Fix  #23742 
---------
Co-authored-by: KN4CK3R <admin@oldschoolhack.me> 
						
							2023-10-31 04:43:38 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jason Song 
								
							 
						 
						
							
							
								
							
							
	
	
	4e98224a45 
 
						 
						
							
							
								
								
								Support allowed hosts for webhook to work with proxy ( #27655 )  
							
							... 
							
							
							
							
							When `webhook.PROXY_URL` has been set, the old code will check if the
proxy host is in `ALLOWED_HOST_LIST` or reject requests through the
proxy. It requires users to add the proxy host to `ALLOWED_HOST_LIST`.
However, it actually allows all requests to any port on the host, when
the proxy host is probably an internal address.
But things may be even worse. `ALLOWED_HOST_LIST` doesn't really work
when requests are sent to the allowed proxy, and the proxy could forward
them to any hosts.
This PR fixes it by:
- If the proxy has been set, always allow connectioins to the host and
port.
- Check `ALLOWED_HOST_LIST` before forwarding. 
							
						 
						
							2023-10-18 09:44:36 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									JakobDev 
								
							 
						 
						
							
							
								
							
							
	
	
	76a85a4ce9 
 
						 
						
							
							
								
								
								Final round of db.DefaultContext refactor ( #27587 )  
							
							... 
							
							
							
							
							Last part of #27065  
							
						 
						
							2023-10-14 08:37:24 +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 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									John Olheiser 
								
							 
						 
						
							
							
								
							
							
	
	
	7520cd678c 
 
						 
						
							
							
								
								
								Fix release URL in webhooks ( #27182 )  
							
							
							
							
						 
						
							2023-09-21 17:55:09 -05:00