feat: add linters #11

Merged
jank merged 3 commits from linter into main 2025-04-09 17:40:45 +00:00
2 changed files with 4 additions and 0 deletions
Showing only changes of commit f0839e48e1 - Show all commits

View file

@ -1,3 +1,4 @@
// Package validation General validation tasks
package validation
import (
@ -6,6 +7,7 @@ import (
"strings"
)
// ValidateConventionalCommit validates if string follows conventional commit
func ValidateConventionalCommit(commit string) error {
// Regex to match the commit format
// type(scope)!: description

View file

@ -1,3 +1,4 @@
// Package main is the main package
package main
import (
@ -8,6 +9,7 @@ import (
"git.kjan.de/actions/pull-request-lint/internal/validation"
)
// GithubEvent represents a github actions event
type GithubEvent struct {
PullRequest struct {
Title string `json:"title"`