mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Improve actions docs related to pull_request event (#27126)
				
					
				
			Related to #27039 The `ref` property in Gitea Actions is different from GitHub Actions. This PR improves the documentation to explain the difference.
This commit is contained in:
		@@ -180,3 +180,6 @@ For events supported only by GitHub, see GitHub's [documentation](https://docs.g
 | 
			
		||||
| pull_request_review_comment | `created`, `edited`                                                                                                      |
 | 
			
		||||
| release                     | `published`, `edited`                                                                                                    |
 | 
			
		||||
| registry_package            | `published`                                                                                                              |
 | 
			
		||||
 | 
			
		||||
> For `pull_request` events, in [GitHub Actions](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request), the `ref` is `refs/pull/:prNumber/merge`, which is a reference to the merge commit preview. However, Gitea has no such reference.
 | 
			
		||||
> Therefore, the `ref` in Gitea Actions is `refs/pull/:prNumber/head`, which points to the head of pull request rather than the preview of the merge commit.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user