Skip to content

Commit df69a22

Browse files
committed
improvement(search-mcp): reserve more GitHub site routes in link parsing
1 parent b4a1838 commit df69a22

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎apps/sim/lib/sim-search/live/links.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ describe('parseDocumentLinks', () => {
152152
['a published copy of a Doc', 'https://docs.google.com/document/d/e/2PACX-1vQabcdefghij/pub'],
153153
['a Slack channel', 'https://acme.slack.com/archives/C0123ABC'],
154154
['a GitHub site page', 'https://github.com/orgs/acme/projects'],
155+
['a GitHub site listing', 'https://github.com/pulls/assigned'],
155156
[
156157
'a Gmail conversation without a message ID',
157158
'https://mail.google.com/mail/u/0/#inbox/FMfcgzQXJ',

‎apps/sim/lib/sim-search/live/links.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,20 @@ const NUMERIC_ID = /^\d+$/
6161
/** First path segments on github.com that are site pages, not repository owners. */
6262
const GITHUB_RESERVED_OWNERS = new Set([
6363
'apps',
64+
'codespaces',
6465
'collections',
66+
'dashboard',
6567
'enterprises',
68+
'explore',
6669
'features',
70+
'issues',
6771
'login',
6872
'marketplace',
73+
'new',
6974
'notifications',
75+
'organizations',
7076
'orgs',
77+
'pulls',
7178
'search',
7279
'settings',
7380
'sponsors',

0 commit comments

Comments
 (0)