mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	Extract from #34531. This will reduce unnecessary count operation in databases. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| -
 | |
|   id: 1
 | |
|   index: 1
 | |
|   repo_id: 1
 | |
|   state: "pending"
 | |
|   sha: "1234123412341234123412341234123412341234"
 | |
|   target_url: https://example.com/builds/
 | |
|   description: My awesome CI-service
 | |
|   context: ci/awesomeness
 | |
|   context_hash: c65f4d64a3b14a3eced0c9b36799e66e1bd5ced7
 | |
|   creator_id: 2
 | |
| 
 | |
| -
 | |
|   id: 2
 | |
|   index: 2
 | |
|   repo_id: 1
 | |
|   state: "warning"
 | |
|   sha: "1234123412341234123412341234123412341234"
 | |
|   target_url: https://example.com/converage/
 | |
|   description: My awesome Coverage service
 | |
|   context: cov/awesomeness
 | |
|   context_hash: 3929ac7bccd3fa1bf9b38ddedb77973b1b9a8cfe
 | |
|   creator_id: 2
 | |
| 
 | |
| -
 | |
|   id: 3
 | |
|   index: 3
 | |
|   repo_id: 1
 | |
|   state: "success"
 | |
|   sha: "1234123412341234123412341234123412341234"
 | |
|   target_url: https://example.com/converage/
 | |
|   description: My awesome Coverage service
 | |
|   context: cov/awesomeness
 | |
|   context_hash: 3929ac7bccd3fa1bf9b38ddedb77973b1b9a8cfe
 | |
|   creator_id: 2
 | |
| 
 | |
| -
 | |
|   id: 4
 | |
|   index: 4
 | |
|   repo_id: 1
 | |
|   state: "failure"
 | |
|   sha: "1234123412341234123412341234123412341234"
 | |
|   target_url: https://example.com/builds/
 | |
|   description: My awesome CI-service
 | |
|   context: ci/awesomeness
 | |
|   context_hash: c65f4d64a3b14a3eced0c9b36799e66e1bd5ced7
 | |
|   creator_id: 2
 | |
| 
 | |
| -
 | |
|   id: 5
 | |
|   index: 5
 | |
|   repo_id: 1
 | |
|   state: "error"
 | |
|   sha: "1234123412341234123412341234123412341234"
 | |
|   target_url: https://example.com/builds/
 | |
|   description: My awesome deploy service
 | |
|   context: deploy/awesomeness
 | |
|   context_hash: ae9547713a6665fc4261d0756904932085a41cf2
 | |
|   creator_id: 2
 |