Skip to content

Commit

Permalink
chore: version bump to 1.0.5-beta-3
Browse files Browse the repository at this point in the history
  • Loading branch information
shivani170 committed Nov 18, 2024
1 parent 9781e4c commit 3bdfedc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtron-labs/devtron-fe-common-lib",
"version": "1.0.5",
"version": "1.0.5-beta-3",
"description": "Supporting common component library",
"type": "module",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Common.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export function getWebhookEventsForEventId(eventId: string | number) {
*/
export const getGitBranchUrl = (gitUrl: string, branchName: string): string | null => {
if (!gitUrl) return null
const trimmedGitUrl = gitUrl.trim().replace('.git', '').replace(/\/$/, '') // Remove any trailing slash
const trimmedGitUrl = gitUrl.trim()?.replace('.git', '').replace(/\/$/, '') // Remove any trailing slash
if (trimmedGitUrl.includes(GitProviderType.GITLAB)) return `${trimmedGitUrl}/-/tree/${branchName}`
else if (trimmedGitUrl.includes(GitProviderType.GITHUB)) return `${trimmedGitUrl}/tree/${branchName}`
else if (trimmedGitUrl.includes(GitProviderType.BITBUCKET)) return `${trimmedGitUrl}/branch/${branchName}`
Expand Down

0 comments on commit 3bdfedc

Please sign in to comment.