@allurereport/ci 3.19.1 → 3.20.1
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/detectors/azure.js +12 -1
- package/package.json +3 -3
package/dist/detectors/azure.js
CHANGED
|
@@ -48,6 +48,17 @@ const getRepositoryFromUrl = () => {
|
|
|
48
48
|
const repositoryUrl = getRepositoryUrl();
|
|
49
49
|
return repositoryUrl ? resolveRepositoryFromGitUrl(repositoryUrl) : undefined;
|
|
50
50
|
};
|
|
51
|
+
const getBrowserRepositoryUrl = (repositoryUrl) => {
|
|
52
|
+
try {
|
|
53
|
+
const url = new URL(repositoryUrl);
|
|
54
|
+
url.username = "";
|
|
55
|
+
url.password = "";
|
|
56
|
+
return url.toString().replace(/\/$/, "");
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
return repositoryUrl;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
51
62
|
export const azure = {
|
|
52
63
|
type: CiType.Azure,
|
|
53
64
|
get detected() {
|
|
@@ -101,7 +112,7 @@ export const azure = {
|
|
|
101
112
|
return `${repositoryUrl}/pull/${pullRequestId}`;
|
|
102
113
|
}
|
|
103
114
|
if (repositoryProvider === "TfsGit" || repositoryProvider === "TfsVersionControl") {
|
|
104
|
-
return `${repositoryUrl}/pullrequest/${pullRequestId}`;
|
|
115
|
+
return `${getBrowserRepositoryUrl(repositoryUrl)}/pullrequest/${pullRequestId}`;
|
|
105
116
|
}
|
|
106
117
|
return "";
|
|
107
118
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/ci",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.20.1",
|
|
4
4
|
"description": "Utilities set to get useful report data from different CI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"lint:fix": "oxlint --import-plugin --fix src test features stories"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@allurereport/core-api": "3.
|
|
36
|
-
"@allurereport/plugin-api": "3.
|
|
35
|
+
"@allurereport/core-api": "3.20.1",
|
|
36
|
+
"@allurereport/plugin-api": "3.20.1",
|
|
37
37
|
"axios": "^1.20.0",
|
|
38
38
|
"glob": "^13.0.6"
|
|
39
39
|
},
|