Skip to content

Commit

Permalink
feat(npm): add missing options and document all options with tsdoc co…
Browse files Browse the repository at this point in the history
…mments
  • Loading branch information
favna authored and orhun committed Sep 21, 2024
1 parent a6e3b78 commit 2eae2f1
Showing 1 changed file with 71 additions and 8 deletions.
79 changes: 71 additions & 8 deletions npm/git-cliff/src/options.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,92 @@
export type Options = Partial<{
//#region Flags
/** Prints help information */
help: boolean;
/** Prints version information */
version: boolean;
/** Increases the logging verbosity */
verbose: boolean;
/** Prints bumped version for unreleased changes */
bumpedVersion: boolean;
/** Processes the commits starting from the latest tag */
latest: boolean;
/** Processes the commits that belong to the current tag */
current: boolean;
/** Processes the commits that do not belong to a tag */
unreleased: boolean;
/** Sorts the tags topologically */
topoOrder: boolean;
/** Disables the external command execution */
noExec: boolean;
/** Prints changelog context as JSON */
context: boolean;
//#endregion

//#region Options
/** Writes the default configuration file to cliff.toml */
init: boolean | string;
/**
* Bumps the version for unreleased changes
* @default 'auto'
*/
bump: "auto" | "major" | "minor" | "patch";
/**
* Sets the configuration file
* @default 'cliff.toml'
*/
config: string;
/** Sets the working directory */
workdir: string;
/** Sets the git repository */
repository: string;
/** Sets the path to include related commits */
includePath: string;
/** Sets the path to exclude related commits */
excludePath: string;
/** Sets the regex for matching git tags */
tagPattern: string;
/** Sets custom commit messages to include in the changelog */
withCommit: string;
/** Sets custom message for the latest release */
withTagMessage: string;
/** Sets the tags to ignore in the changelog */
ignoreTags: string | string[];
/** Sets the tags to count in the changelog */
countTags: string | string[];
/** Sets commits that will be skipped in the changelog */
skipCommit: string | string[];
/** Prepends entries to the given changelog file */
prepend: string;
/** Writes output to the given file */
output: string;
/** Sets the tag for the latest version */
tag: string;
bump: boolean;
bumpedVersion: boolean;
/** Sets the template for the changelog body */
body: string;
latest: boolean;
current: boolean;
unreleased: boolean;
topoOrder: boolean;
noExec: boolean;
context: boolean;
/** Generates changelog from a JSON context */
fromContext: string;
/** Strips the given parts from the changelog */
strip: "header" | "footer" | "all";
/**
* Sets sorting of the commits inside sections
* @default 'oldest'
*/
sort: "oldest" | "newest";
/** Sets the GitHub API token */
githubToken: string;
/** Sets the GitHub repository */
githubRepo: string;
/** Sets the GitLab API token */
gitlabToken: string;
/** Sets the GitLab repository */
gitlabRepo: string;
/** Sets the Gitea API token */
giteaToken: string;
/** Sets the Gitea repository */
giteaRepo: string;
/** Sets the Bitbucket API token */
bitbucketToken: string;
/** Sets the Bitbucket repository */
bitbucketRepo: string;
//#endregion
}>;

0 comments on commit 2eae2f1

Please sign in to comment.