Skip to content

Commit

Permalink
refactor: default to repo url (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed Apr 6, 2024
1 parent a213db1 commit 71eb675
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export async function generateGitHubWebUrl(
notification: Notification,
accounts: AuthState,
): Promise<string> {
let url: string;
let url = notification.repository.html_url;
const token = getTokenForHost(notification.hostname, accounts);

if (notification.subject.latest_comment_url) {
Expand All @@ -275,7 +275,6 @@ export async function generateGitHubWebUrl(
url = getWorkflowRunUrl(notification);
break;
default:
url = notification.repository.html_url;
break;
}
}
Expand Down

0 comments on commit 71eb675

Please sign in to comment.