chore(integration): use consistent naming of [gG]ithub in code
Relates to the discussion at PR #14039. Relates-to: PR #14039 Relates-to: PR #14174 Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
import type { Transformer } from './index';
|
||||
import {
|
||||
replaceGitHubUrlType,
|
||||
replaceGithubUrlType,
|
||||
ScmIntegrationRegistry,
|
||||
} from '@backstage/integration';
|
||||
import FeedbackOutlinedIcon from '@material-ui/icons/FeedbackOutlined';
|
||||
@@ -59,7 +59,7 @@ export const addGitFeedbackLink = (
|
||||
// Convert GitHub edit url to blob type so it can be parsed by git-url-parse correctly
|
||||
const gitUrl =
|
||||
integration?.type === 'github'
|
||||
? replaceGitHubUrlType(sourceURL.href, 'blob')
|
||||
? replaceGithubUrlType(sourceURL.href, 'blob')
|
||||
: sourceURL.href;
|
||||
const gitInfo = parseGitUrl(gitUrl);
|
||||
const repoPath = `/${gitInfo.organization}/${gitInfo.name}`;
|
||||
|
||||
Reference in New Issue
Block a user