@@ -21,7 +21,7 @@ async function getStdoutFromCommandWithin(
21
21
* Runs a Git command within the given repository, obtaining the immediate
22
22
* output.
23
23
*
24
- * @param repositoryDirectoryPath - The directory of the repository.
24
+ * @param repositoryDirectoryPath - The path to the repository directory .
25
25
* @param args - The arguments to the command.
26
26
* @returns The standard output of the command.
27
27
* @throws An execa error object if the command fails in some way.
@@ -44,7 +44,7 @@ export async function getStdoutFromGitCommandWithin(
44
44
* If the URL of the "origin" remote matches neither pattern, an error is
45
45
* thrown.
46
46
*
47
- * @param repositoryDirectoryPath - The path to the project directory.
47
+ * @param repositoryDirectoryPath - The path to the repository directory.
48
48
* @returns The HTTPS URL of the repository, e.g.
49
49
* `https://github.com/OrganizationName/RepositoryName`.
50
50
*/
@@ -83,30 +83,30 @@ export async function getRepositoryHttpsUrl(
83
83
* This function does three things:
84
84
*
85
85
* 1. Stages all of the changes which have been made to the repo thus far and
86
- * creates a new Git commit which carries the name of the new release.
86
+ * creates a new Git commit which carries the name of the new release.
87
87
* 2. Creates a new branch pointed to that commit (which also carries the name
88
- * of the new release).
88
+ * of the new release).
89
89
* 3. Switches to that branch.
90
90
*
91
- * @param projectRepositoryPath - The path to the project directory.
91
+ * @param repositoryDirectoryPath - The path to the repository directory.
92
92
* @param releaseName - The name of the release, which will be used to name the
93
93
* commit and the branch.
94
94
*/
95
95
export async function captureChangesInReleaseBranch (
96
- projectRepositoryPath : string ,
96
+ repositoryDirectoryPath : string ,
97
97
releaseName : string ,
98
98
) {
99
99
// TODO: What if the index was dirty before this script was run? Or what if
100
100
// you're in the middle of a rebase? Might want to check that up front before
101
101
// changes are even made.
102
102
// TODO: What if this branch already exists? Append the build number?
103
- await getStdoutFromGitCommandWithin ( projectRepositoryPath , [
103
+ await getStdoutFromGitCommandWithin ( repositoryDirectoryPath , [
104
104
'checkout' ,
105
105
'-b' ,
106
106
`release/${ releaseName } ` ,
107
107
] ) ;
108
- await getStdoutFromGitCommandWithin ( projectRepositoryPath , [ 'add' , '-A' ] ) ;
109
- await getStdoutFromGitCommandWithin ( projectRepositoryPath , [
108
+ await getStdoutFromGitCommandWithin ( repositoryDirectoryPath , [ 'add' , '-A' ] ) ;
109
+ await getStdoutFromGitCommandWithin ( repositoryDirectoryPath , [
110
110
'commit' ,
111
111
'-m' ,
112
112
`Release ${ releaseName } ` ,
0 commit comments