File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,9 +93,26 @@ In addition to `CommitFilesBasedArgs`, this function has the following arguments
9393 /**
9494 * The root of the repository.
9595 *
96- * @default process.cwd()
96+ * When unspecified, the root of the repository will be found by recursively
97+ * searching for the `.git` directory from the current working directory.
9798 */
9899 repoDirectory ?: string ;
100+ /**
101+ * The starting directory to recurse from when detecting changed files.
102+ *
103+ * Useful for monorepos where you want to add files from a specific directory only.
104+ *
105+ * Defaults to resolved value of {@link repoDirectory } ,
106+ * which will add all changed files in the repository.
107+ */
108+ addFromDirectory ?: string ;
109+ /**
110+ * An optional function that can be used to filter which files are included
111+ * in the commit. True should be returned for files that should be included.
112+ *
113+ * By default, all files are included.
114+ */
115+ filterFiles ?: (file : string ) => boolean ;
99116}
100117```
101118
You can’t perform that action at this time.
0 commit comments