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.
- package/dist/index.mjs +17 -14
- 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
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
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:
|
|
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,
|