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
console.error(` repo_owner - The owner of the repo on GitHub. i.e. microsoft`);
26
+
console.error(` repo_name - The name of the repo on GitHub. i.e. vscode-cpptools`);
27
+
console.error(` auth_user - User account wiith permission to post a pull request against the GitHub repo.`);
28
+
console.error(` auth_token - A PAT associated with auth_user.`);
29
+
console.error(` user_full_name - A full name to associate with a git commit. (This is replaced by the PR account if commit is squashed.)`);
30
+
console.error(` user_email - An email to associate with a git commit. (This is replaced by the PR account if commit is squashed.)`);
31
+
console.error(` loc_root_path - The path to the folder with language-specific directories (containing localized xlf files).`);
32
+
console.error(` loc_sub_path - A sub-path after the language-specific directory, where the xlf to import is located. This should not include the name of the xlf file to import.)`);
25
33
return;
26
34
}
27
35
28
36
console.log(`repoOwner=${repoOwner}`);
29
37
console.log(`repoName=${repoName}`);
30
-
console.log(`locProjectName=${locProjectName}`);
31
38
console.log(`authUser=${authUser}`);
32
-
console.log(`authToken=${authToken}`);
33
-
console.log(`locRepoPath=${locRepoPath}`);
39
+
console.log(`userFullName=${userFullName}`);
40
+
console.log(`userEmail=${userEmail}`);
41
+
console.log(`locRootPath=${locRootPath}`);
42
+
console.log(`locSubPath=${locSubPath}`);
34
43
35
44
functionhasBranch(branchName){
36
45
console.log(`Checking for existance of branch "${branchName}" (git branch --list ${branchName})`);
@@ -50,7 +59,10 @@ function hasAnyChanges() {
50
59
letlines=output.toString().split("\n");
51
60
letanyChanges=false;
52
61
lines.forEach(line=>{
53
-
anyChanges=anyChanges||(line!='');
62
+
if(line!=''){
63
+
console.log("Change detected: "+line);
64
+
anyChanges=true;
65
+
}
54
66
});
55
67
56
68
returnanyChanges;
@@ -71,11 +83,10 @@ function sleep(ms) {
71
83
console.log("This script is potentially DESTRUCTIVE! Cancel now, or it will proceed in 10 seconds.");
0 commit comments