File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
" @changesets/ghcommit " : minor
3
3
---
4
4
5
- Introduce ` addDirectory ` option for ` commitChangesFromRepo ` to allow users to
5
+ Introduce ` addFromDirectory ` option for ` commitChangesFromRepo ` to allow users to
6
6
specify a subdirectory of the git repository that should be used to add files
7
7
from, rather then adding all changed files.
8
8
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const FILE_MODES = {
20
20
export const commitChangesFromRepo = async ( {
21
21
base,
22
22
repoDirectory,
23
- addDirectory ,
23
+ addFromDirectory ,
24
24
log,
25
25
...otherArgs
26
26
} : CommitChangesFromRepoArgs ) : Promise < CommitFilesResult > => {
@@ -50,7 +50,7 @@ export const commitChangesFromRepo = async ({
50
50
} ;
51
51
await git . walk ( {
52
52
fs,
53
- dir : addDirectory ?? resolvedRepoDirectory ,
53
+ dir : addFromDirectory ?? resolvedRepoDirectory ,
54
54
trees,
55
55
map : async ( filepath , [ commit , workdir ] ) => {
56
56
// Don't include ignored files
Original file line number Diff line number Diff line change @@ -112,12 +112,12 @@ export interface CommitChangesFromRepoArgs extends CommitFilesBasedArgs {
112
112
*/
113
113
repoDirectory ?: string ;
114
114
/**
115
- * Which directory to add the files from .
115
+ * The starting directory to recurse from when detecting changed files .
116
116
*
117
117
* Useful for monorepos where you want to add files from a specific directory only.
118
118
*
119
- * Defaults to resolved value as {@link repoDirectory},
119
+ * Defaults to resolved value of {@link repoDirectory},
120
120
* which will add all changed files in the repository.
121
121
*/
122
- addDirectory ?: string ;
122
+ addFromDirectory ?: string ;
123
123
}
You can’t perform that action at this time.
0 commit comments