feat(action): update to use Go for pull request linting
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Lint Pull Request / Lint Pr Title (pull_request) Successful in 9s
				
			
		
		
	
	
		
	
		
			All checks were successful
		
		
	
	Lint Pull Request / Lint Pr Title (pull_request) Successful in 9s
				
			This commit is contained in:
		
					parent
					
						
							
								da4a8b3030
							
						
					
				
			
			
				commit
				
					
						6d9c48078c
					
				
			
		
					 3 changed files with 4 additions and 13 deletions
				
			
		|  | @ -1,5 +1,5 @@ | |||
| name: 'Pull Request Lint' | ||||
| description: 'Validates a pull request for semantical commit message' | ||||
| description: 'A simple Gitea action written in go' | ||||
| runs: | ||||
|   using: 'node16' | ||||
|   main: 'invoke-binary.js' | ||||
|   using: 'go' | ||||
|   main: 'main.go' | ||||
|  |  | |||
|  | @ -2,15 +2,6 @@ const childProcess = require('child_process') | |||
| const path = require('path') | ||||
| 
 | ||||
| function runGo() { | ||||
|     childProcess.spawnSync( | ||||
|         'ls', | ||||
|         ["-la"], | ||||
|         { | ||||
|             cwd: __dirname, | ||||
|             stdio: 'inherit', | ||||
|             shell: true, | ||||
|         }, | ||||
|     ) | ||||
|     const goProcess = childProcess.spawnSync( | ||||
|         'go', | ||||
|         ['run', '.'], | ||||
|  |  | |||
							
								
								
									
										2
									
								
								main.go
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
										
									
									
									
								
							|  | @ -1,4 +1,4 @@ | |||
| package pullrequestlint | ||||
| package main | ||||
| 
 | ||||
| import ( | ||||
| 	"fmt" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue