You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If parameters are missing the command will prompt to fill them, the pull request number is optional and if not provided the command will try to guess it based on the current branch name and remote if the current directory is in a git repository.
25
25
26
+
### Customizing the allowed types
27
+
28
+
To customize the types that will be displayed in the prompt, create a line
29
+
delimited file with the types are allow and pass it as the `-allowed-types-file`
30
+
flag.
31
+
32
+
As an example, to allow only `bug` and `enhancement` types, create a file with the following content:
flag.BoolVar(&Url, "add-url", false, "add GitHub issue URL (omitted by default due to formatting in changelog-build)")
@@ -53,6 +54,7 @@ func main() {
53
54
flag.StringVar(&description, "description", "", "the changelog entry content")
54
55
flag.StringVar(&changelogTmpl, "changelog-template", "", "the path of the file holding the template to use for the changelog entries")
55
56
flag.StringVar(&dir, "dir", "", "the relative path from the current directory of where the changelog entry file should be written")
57
+
flag.StringVar(&allowedTypes, "allowed-types-file", "", "the relative path from the current directory to a line separated file of allowed types. If not provided, default types are used")
0 commit comments