mobbdev 0.0.145 → 0.0.148

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.mjs +17 -14
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -612,19 +612,21 @@ function detectAdoUrl(args) {
612
612
  }
613
613
  }
614
614
  if (hostname === adoHostname || scmType === "Ado" /* Ado */) {
615
- if (pathname.length === 3 && pathname[1] === "_git") {
616
- return {
617
- organization: pathname[0],
618
- projectName: pathname[2],
619
- repoName: pathname[2]
620
- };
621
- }
622
- if (pathname.length === 4 && pathname[2] === "_git") {
623
- return {
624
- organization: pathname[0],
625
- projectName: pathname[1],
626
- repoName: pathname[3]
627
- };
615
+ if (pathname[pathname.length - 2] === "_git") {
616
+ if (pathname.length === 3) {
617
+ return {
618
+ organization: pathname[0],
619
+ projectName: pathname[2],
620
+ repoName: pathname[2]
621
+ };
622
+ }
623
+ if (pathname.length > 3) {
624
+ return {
625
+ organization: pathname[pathname.length - 4],
626
+ projectName: pathname[pathname.length - 3],
627
+ repoName: pathname[pathname.length - 1]
628
+ };
629
+ }
628
630
  }
629
631
  }
630
632
  return null;
@@ -3877,7 +3879,8 @@ async function postFixComment(params) {
3877
3879
  patchAndQuestions: { patch }
3878
3880
  } = fix;
3879
3881
  const commentRes = await scm.postPrComment({
3880
- body: "empty",
3882
+ body: `# ${MobbIconMarkdown} Your fix is ready!
3883
+ Refresh the page in order to see the changes.`,
3881
3884
  pull_number: pullRequest,
3882
3885
  commit_id: commitSha,
3883
3886
  path: path9,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "0.0.145",
3
+ "version": "0.0.148",
4
4
  "description": "Automated secure code remediation tool",
5
5
  "repository": "https://github.com/mobb-dev/bugsy",
6
6
  "main": "dist/index.js",