refactor: clean up unused dependencies and functions
Some checks failed
Lint Pull Request / Lint Pr Title (pull_request) Failing after 9s

This commit is contained in:
Jan K9f 2025-04-09 18:19:21 +02:00
parent 044823552b
commit 19b376ac40
Signed by: jank
GPG key ID: B9F475106B20F144
5 changed files with 8 additions and 55 deletions

View file

@ -4,6 +4,8 @@ import (
"encoding/json"
"fmt"
"os"
"git.kjan.de/actions/pull-request-lint/internal/validation"
)
type GithubEvent struct {
@ -35,5 +37,10 @@ func main() {
}
prTitle := event.PullRequest.Title
fmt.Println("Pull Request Title:", prTitle)
semanticValidationErr := validation.ValidateConventionalCommit(prTitle)
if semanticValidationErr != nil {
fmt.Println(err)
os.Exit(1)
}
os.Exit(0)
}