Skip to content

Add github-search column for keyword/URL mention monitoring - #7

Closed
aaronjmars wants to merge 1 commit into
mainfrom
feat/github-search-column
Closed

aaronjmars wants to merge 1 commit into
mainfrom
feat/github-search-column

Conversation

@aaronjmars

Copy link
Copy Markdown
Collaborator

Summary

  • New github-search plugin (separate from the feed-style github one) that watches GitHub for mentions of a keyword or URL with a swappable scope: Repos / Issues / PRs / Code / Commits.
  • URL queries are auto-quoted before hitting /search/... so GitHub treats them as exact matches instead of tokenizing on punctuation.
  • GITHUB_TOKEN is genuinely optional. The fetcher only sends Authorization when the env var is set, so it works keyless out of the box (60 req/hr) and "upgrades" to 5000/hr when added. Code search throws a friendly error if the token is missing, since GitHub requires auth there.

Why a new plugin instead of extending github

The existing github plugin is feed-style (Trending / Releases / Issue search) with mode-specific fields (language, period, repo). This one is mention-monitoring: one query box, one scope dropdown, different result types per scope. Bundling them would have meant a much wider union schema and conditional UI; the plugin contract is cheap enough that a clean split is the better trade.

Test plan

  • npm run build passes (parity check + types) — verified locally
  • Add a github-search column with scope Issues / PRs and query react — items render with PR/issue badges
  • Add a column with scope Repositories and query next.js — items render with stars/forks/language
  • Add a column with scope Commits and query fix typo — items render with short SHA + repo
  • Add a column with scope Code without GITHUB_TOKEN — friendly error surfaces
  • Add a column with scope Code with GITHUB_TOKEN set — code fragments render with a monospace font
  • Paste a URL like https://example.com as the query — it is auto-quoted and returns exact-match hits
  • Click "Load more" — page 2 is fetched

🤖 Generated with Claude Code

New plugin separate from `github` (feed-style). Searches GitHub for
mentions across repositories, issues/PRs, code, or commits with one
swappable scope. URL queries are auto-quoted for exact matching.
GITHUB_TOKEN is optional (60→5000 req/hr; required only for code search).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
aaronjmars added a commit that referenced this pull request Apr 30, 2026
Consolidates the 15 stacked column-type PRs into a single merge:
instagram, rednote, hacker-news-search, github-search, tiktok,
weibo-search, substack, linkedin, facebook, github-backlinks,
wallet-tx, github-prs, telegram-search, app-reviews, github-watchers.

The 3 registry files (manifest, client registry, server registry) are
rewritten to register all new plugins; lib/integrations/github.ts
combines the additive sections from #7, #15, #18; hackernews.ts and
xai.ts pick up the appends from #6 and #12. Build + lint pass.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aaronjmars

Copy link
Copy Markdown
Collaborator Author

Superseded by #19, which consolidates all 15 stacked column plugin PRs into one merge.

@aaronjmars aaronjmars closed this Apr 30, 2026
@aaronjmars
aaronjmars deleted the feat/github-search-column branch April 30, 2026 20:18
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