Skip to content

Commit 8ca0002

Browse files
committed
chore: version bump to 1.0.7
1 parent d02d2c5 commit 8ca0002

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.0.6-beta-1",
3+
"version": "1.0.7",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Common/Common.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ export function getWebhookEventsForEventId(eventId: string | number) {
520520
*/
521521
export const getGitBranchUrl = (gitUrl: string, branchName: string): string | null => {
522522
if (!gitUrl) return null
523-
const trimmedGitUrl = gitUrl.trim()?.replace('.git', '').replace(/\/$/, '') // Remove any trailing slash
523+
const trimmedGitUrl = gitUrl.trim()?.replace(/\.git$/, '').replace(/\/$/, '') // Remove any trailing slash
524524
if (trimmedGitUrl.includes(GitProviderType.GITLAB)) return `${trimmedGitUrl}/-/tree/${branchName}`
525525
else if (trimmedGitUrl.includes(GitProviderType.GITHUB)) return `${trimmedGitUrl}/tree/${branchName}`
526526
else if (trimmedGitUrl.includes(GitProviderType.BITBUCKET)) return `${trimmedGitUrl}/branch/${branchName}`

0 commit comments

Comments
 (0)