feat: initial implementation #5
3 changed files with 4 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
||||||
name: 'Pull Request Lint'
|
name: 'Pull Request Lint'
|
||||||
description: 'Validates a pull request for semantical commit message'
|
description: 'A simple Gitea action written in go'
|
||||||
runs:
|
runs:
|
||||||
using: 'node16'
|
using: 'go'
|
||||||
main: 'invoke-binary.js'
|
main: 'main.go'
|
||||||
|
|
|
@ -2,15 +2,6 @@ const childProcess = require('child_process')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
function runGo() {
|
function runGo() {
|
||||||
childProcess.spawnSync(
|
|
||||||
'ls',
|
|
||||||
["-la"],
|
|
||||||
{
|
|
||||||
cwd: __dirname,
|
|
||||||
stdio: 'inherit',
|
|
||||||
shell: true,
|
|
||||||
},
|
|
||||||
)
|
|
||||||
const goProcess = childProcess.spawnSync(
|
const goProcess = childProcess.spawnSync(
|
||||||
'go',
|
'go',
|
||||||
['run', '.'],
|
['run', '.'],
|
||||||
|
|
2
main.go
2
main.go
|
@ -1,4 +1,4 @@
|
||||||
package pullrequestlint
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue