@@ -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_SCOPE "`
22+ Scopes string `env:"INPUT_SCOPES "`
2323}
2424
2525type 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