refactor: clean up unused dependencies and functions
Some checks failed
Lint Pull Request / Lint Pr Title (pull_request) Failing after 9s
Some checks failed
Lint Pull Request / Lint Pr Title (pull_request) Failing after 9s
This commit is contained in:
parent
044823552b
commit
19b376ac40
5 changed files with 8 additions and 55 deletions
9
main.go
9
main.go
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue