sharpvik / sema

Semantic commit tool
MIT License
56 stars 3 forks source link

Configure a list of known scopes #14

Closed jamesfoster closed 2 years ago

jamesfoster commented 2 years ago

Is it possible to configure sema to provide a list of options for "scope". I'm thinking some kind of well known file name it scans the directory structure for. .semantic-commit ? You could even use it to filter the list of allowed "types" by file type or folder?

.semantic-commit
----------------
{
  scopes: ["auth", "api", "ui", "parser", ...],
  types: [{
    paths: ["/docs", "*.md"],
    allowedTypes: ["docs", "chore", "style"],
    defaultType: "docs"
  }, ...]
}
sharpvik commented 2 years ago

One could probably do that, however, I'm not sure if juice is worth the squeeze in this case. Why would you require such precision? Could you come up with a use case where this is absolutely necessary?

sharpvik commented 2 years ago

Stale issue.