Skip to content

Commit 523a7cf

Browse files
authored
chore: further enforce changes of plural variable name
1 parent 2d78f3a commit 523a7cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type config struct {
1919
GithubEventName string `env:"GITHUB_EVENT_NAME"`
2020
GithubEventPath string `env:"GITHUB_EVENT_PATH"`
2121
Types string `env:"INPUT_TYPES"`
22-
Scope string `env:"INPUT_SCOPES"`
22+
Scopes string `env:"INPUT_SCOPES"`
2323
}
2424

2525
type PullRequest struct {
@@ -57,7 +57,7 @@ func main() {
5757
titleType, titleScope, titleMessage := splitTitle(logger, title)
5858

5959
parsedTypes := parseTypes(logger, cfg.Types, defaultConventionTypes)
60-
parsedScope := parseScopes(logger, cfg.Scope)
60+
parsedScopes := parseScopes(logger, cfg.Scopes)
6161

6262
if err := checkAgainstConventionTypes(logger, titleType, parsedTypes); err != nil {
6363
logger.Error("error while checking the type against the allowed types",
@@ -68,7 +68,7 @@ func main() {
6868
os.Exit(1)
6969
}
7070

71-
if err := checkAgainstScopes(logger, titleScope, parsedScope); err != nil && len(parsedScope) >= 1 {
71+
if err := checkAgainstScopes(logger, titleScope, parsedScopes); err != nil && len(parsedScopes) >= 1 {
7272
logger.Error("error while checking the scope against the allowed scopes", slog.Any("error", err))
7373
os.Exit(1)
7474
}

0 commit comments

Comments
 (0)