Skip to content

feat: add commands to open webhook settings pages on GitHub#3

Merged
seiya-koji merged 1 commit into
mainfrom
feat/open-webhook-settings-pages
Jul 1, 2026
Merged

feat: add commands to open webhook settings pages on GitHub#3
seiya-koji merged 1 commit into
mainfrom
feat/open-webhook-settings-pages

Conversation

@seiya-koji

Copy link
Copy Markdown
Owner

Summary

  • Add webhookSettingsUrl() helper to build browser URLs for GitHub webhook settings pages (supports github.com and GitHub Enterprise Server)
  • Add githubWebhooks.openWebhookSettings command — opens the settings page for a specific webhook from the tree item context menu
  • Add githubWebhooks.openRepoWebhooks command — opens the repository's webhook list page from the view toolbar

Test plan

  • Right-click a webhook node in the tree → "Open Webhook Settings on GitHub" opens the correct URL in the browser
  • Click the toolbar button → "Open Repository Webhooks Page on GitHub" opens the webhook list URL
  • With no repository detected, clicking the toolbar button shows a warning message instead of opening the browser
  • Unit tests pass for webhookSettingsUrl() (github.com and GitHub Enterprise Server URLs)

https://claude.ai/code/session_01SHj8e2Newy1DFz2uS6GKEB

Provide two ways to jump to GitHub's webhook settings from the tree view:
- An inline gear icon on each webhook opens that hook's settings page
  (.../settings/hooks/{id}).
- A toolbar button opens the repository's webhooks list page
  (.../settings/hooks).

URLs are built by a new webhookSettingsUrl() helper that reuses the
resolved RepoRef (host/owner/repo), so GitHub Enterprise hosts work too.
@seiya-koji seiya-koji merged commit 426e5ec into main Jul 1, 2026
2 checks passed
@seiya-koji seiya-koji deleted the feat/open-webhook-settings-pages branch July 1, 2026 05:52
seiya-koji added a commit that referenced this pull request Jul 1, 2026
Add the two commands introduced in #3 to the README:
- open a webhook's settings page from its context menu
- open the repository's Webhooks list from the view's title bar

Reflected in both the Features and Usage sections.

Claude-Session: https://claude.ai/code/session_01CDSKU7zDQV92CAfeA3AuXa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant