mirror of
				https://github.com/freeedcom/ai-codereviewer.git
				synced 2025-11-03 23:50:54 +00:00 
			
		
		
		
	Added support for review_requested hook
This commit is contained in:
		
					parent
					
						
							
								a9a064dfa1
							
						
					
				
			
			
				commit
				
					
						1961761a90
					
				
			
		
					 2 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -29,6 +29,7 @@ on:
 | 
			
		|||
    types:
 | 
			
		||||
      - opened
 | 
			
		||||
      - synchronize
 | 
			
		||||
      - review_requested
 | 
			
		||||
permissions: write-all
 | 
			
		||||
jobs:
 | 
			
		||||
  review:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -194,6 +194,12 @@ async function main() {
 | 
			
		|||
      prDetails.repo,
 | 
			
		||||
      prDetails.pull_number
 | 
			
		||||
    );
 | 
			
		||||
  } else if (eventData.action === "review_requested") {
 | 
			
		||||
    diff = await getDiff(
 | 
			
		||||
      prDetails.owner,
 | 
			
		||||
      prDetails.repo,
 | 
			
		||||
      prDetails.pull_number
 | 
			
		||||
    );
 | 
			
		||||
  } else if (eventData.action === "synchronize") {
 | 
			
		||||
    const newBaseSha = eventData.before;
 | 
			
		||||
    const newHeadSha = eventData.after;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue