azdo-cli 0.5.0-029-pr-comment-reply.523 → 0.5.0-030-auth-diagnostics.527

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -9
  2. 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*=\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;
@@ -3229,8 +3229,8 @@ function autoDetectZeroMatch(branch) {
3229
3229
  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.`;
3230
3230
  }
3231
3231
  function autoDetectMultiMatch(branch, ids) {
3232
- const prList = ids.map((id) => `#${id}`).join(", ");
3233
- return `Multiple open pull requests match branch ${branch}: ${prList}. Re-run with --pr-number to choose.`;
3232
+ const idList = ids.map((id) => `#${id}`).join(", ");
3233
+ return `Multiple open pull requests match branch ${branch}: ${idList}. Re-run with --pr-number to choose.`;
3234
3234
  }
3235
3235
  function writeContractError(line) {
3236
3236
  process.stderr.write(`${line}
@@ -5226,10 +5226,7 @@ program.hook("postAction", async () => {
5226
5226
  process.stderr.write(notice + "\n");
5227
5227
  }
5228
5228
  });
5229
- async function main() {
5230
- await program.parseAsync();
5231
- if (process.argv.length <= 2) {
5232
- program.help();
5233
- }
5229
+ await program.parseAsync();
5230
+ if (process.argv.length <= 2) {
5231
+ program.help();
5234
5232
  }
5235
- void main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azdo-cli",
3
- "version": "0.5.0-029-pr-comment-reply.523",
3
+ "version": "0.5.0-030-auth-diagnostics.527",
4
4
  "description": "Azure DevOps CLI tool",
5
5
  "type": "module",
6
6
  "bin": {