azdo-cli 0.10.0-develop.504 → 0.10.0-develop.512
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -624,7 +624,7 @@ function findDotEnvPat(startDir = process.cwd()) {
|
|
|
624
624
|
if (existsSync(envFile)) {
|
|
625
625
|
const contents = readFileSync2(envFile, "utf8");
|
|
626
626
|
for (const line of contents.split("\n")) {
|
|
627
|
-
const match = line.match(/^AZDO_PAT\s
|
|
627
|
+
const match = line.match(/^AZDO_PAT\s*=([^\n\r]+)$/);
|
|
628
628
|
if (match) {
|
|
629
629
|
const value = match[1].trim().replace(/^["']|["']$/g, "");
|
|
630
630
|
if (value.length > 0) return value;
|
|
@@ -3205,7 +3205,8 @@ function autoDetectZeroMatch(branch) {
|
|
|
3205
3205
|
return `No open pull request matches branch ${branch}. Pass --pr-number to target a specific PR, or push the branch and open a pull request.`;
|
|
3206
3206
|
}
|
|
3207
3207
|
function autoDetectMultiMatch(branch, ids) {
|
|
3208
|
-
|
|
3208
|
+
const idList = ids.map((id) => `#${id}`).join(", ");
|
|
3209
|
+
return `Multiple open pull requests match branch ${branch}: ${idList}. Re-run with --pr-number to choose.`;
|
|
3209
3210
|
}
|
|
3210
3211
|
function writeContractError(line) {
|
|
3211
3212
|
process.stderr.write(`${line}
|
|
@@ -5141,10 +5142,7 @@ program.hook("postAction", async () => {
|
|
|
5141
5142
|
process.stderr.write(notice + "\n");
|
|
5142
5143
|
}
|
|
5143
5144
|
});
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
program.help();
|
|
5148
|
-
}
|
|
5145
|
+
await program.parseAsync();
|
|
5146
|
+
if (process.argv.length <= 2) {
|
|
5147
|
+
program.help();
|
|
5149
5148
|
}
|
|
5150
|
-
void main();
|