feat: initial implementation #5

Merged
jank merged 21 commits from main into release 2025-04-09 16:25:18 +00:00
3 changed files with 4 additions and 13 deletions
Showing only changes of commit 6d9c48078c - Show all commits

View file

@ -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'

View file

@ -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', '.'],

View file

@ -1,4 +1,4 @@
package pullrequestlint package main
import ( import (
"fmt" "fmt"