Skip to content

refactor(links): rename openGitHub* host helpers to openHost*#2885

Merged
setchy merged 1 commit into
mainfrom
refactor-rename-host-link-helpers
May 12, 2026
Merged

refactor(links): rename openGitHub* host helpers to openHost*#2885
setchy merged 1 commit into
mainfrom
refactor-rename-host-link-helpers

Conversation

@afonsojramos
Copy link
Copy Markdown
Member

Summary

Follow-up to #2874. openGitHubNotifications, openGitHubIssues, openGitHubPulls in system/links.ts build https://{hostname}/notifications (and friends) from a passed hostname. The function names imply GitHub-specific behavior, but the paths happen to be portable — Gitea uses the same /notifications, /issues, /pulls routes.

Pure rename — no semantic change. The helpers now match their actual behavior (open a host-level page on whatever forge the user is on). If a future forge needs different paths, this naming is closer to where the per-forge dispatch would go.

Test plan

  • pnpm exec tsc --noEmit — clean
  • pnpm lint — clean
  • pnpm exec vitest --run src/renderer/utils/system/links.test.ts src/renderer/components/GlobalShortcuts.test.tsx src/renderer/components/notifications/AccountNotifications.test.tsx — passes

@github-actions github-actions Bot added the refactor Refactoring of existing feature label May 12, 2026
@sonarqubecloud
Copy link
Copy Markdown

@setchy setchy merged commit d0009d3 into main May 12, 2026
17 checks passed
@setchy setchy deleted the refactor-rename-host-link-helpers branch May 12, 2026 01:36
@github-actions github-actions Bot added this to the Release 7.0.0 milestone May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactoring of existing feature

Development

Successfully merging this pull request may close these issues.

2 participants