File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ export default class MenuBuilder {
7878 {
7979 label : 'Visit Repository' ,
8080 click : ( ) => {
81- shell . openExternal ( `https://github.com/${ APPLICATION . REPO_SLUG } ` ) ;
81+ shell . openExternal (
82+ `${ APPLICATION . GITHUB_BASE_URL } /${ APPLICATION . REPO_SLUG } ` ,
83+ ) ;
8284 } ,
8385 } ,
8486 {
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ export const Constants = {
1616 clientSecret : process . env . OAUTH_CLIENT_SECRET as ClientSecret ,
1717 } satisfies LoginOAuthAppOptions ,
1818
19- GITHUB_BASE_URL : 'https://github.com' ,
2019 GITHUB_API_BASE_URL : 'https://api.github.com' ,
2120 GITHUB_API_GRAPHQL_URL : 'https://api.github.com/graphql' ,
2221
Original file line number Diff line number Diff line change 11import type { AxiosResponse } from 'axios' ;
22
3+ import { APPLICATION } from '../../../shared/constants' ;
4+
35import { Constants } from '../../constants' ;
46
57import type { Hostname } from '../../types' ;
@@ -17,7 +19,7 @@ export function getGitHubAPIBaseUrl(hostname: Hostname): URL {
1719}
1820
1921export function getGitHubAuthBaseUrl ( hostname : Hostname ) : URL {
20- const url = new URL ( Constants . GITHUB_BASE_URL ) ;
22+ const url = new URL ( APPLICATION . GITHUB_BASE_URL ) ;
2123
2224 if ( isEnterpriseServerHost ( hostname ) ) {
2325 url . hostname = hostname ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { generateGitHubWebUrl } from './helpers';
1717
1818export function openGitifyReleaseNotes ( version : string ) {
1919 openExternalLink (
20- `https://github.com /${ APPLICATION . REPO_SLUG } /releases/tag/${ version } ` as Link ,
20+ `${ APPLICATION . GITHUB_BASE_URL } /${ APPLICATION . REPO_SLUG } /releases/tag/${ version } ` as Link ,
2121 ) ;
2222}
2323
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ export const APPLICATION = {
99
1010 WEBSITE : 'https://gitify.io' ,
1111
12+ GITHUB_BASE_URL : 'https://github.com' ,
13+
1214 REPO_SLUG : 'gitify-app/gitify' ,
1315
1416 DEFAULT_KEYBOARD_SHORTCUT : 'CommandOrControl+Shift+G' ,
You can’t perform that action at this time.
0 commit comments