Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
Artifacts
Releases
CI
Agents
Settings
fix(server): thread PR and CI tools no longer tell agents to pass url or host
#41408
Send to my agent
Open
juliusmarminge
wants to merge 2 commits into
main
from
refs/pull/41408/head
·
opened
2 weeks ago
View on GitHub
Conversation
4
Commits
2
Files changed
2
Impact
Showing
2 changed files
with
22 additions
and
1 deletion
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
3 additions and 0 deletions
+3
-0
apps/server/src/mcp/toolkits/pullRequests/handlers.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/mcp/toolkits/pullRequests/handlers.test.ts
View file
Expand up
Show all 399 lines
@@ -400,6 +400,9 @@
400
400
.
call
(
"link_pull_request"
, {
repository
:
"tfs/Collection/Project/_git/Repo"
,
number
:
124
})
401
401
.
pipe
(
Effect
.
flip
);
402
402
expect
(error).
toMatchObject
({
_tag
:
"PullRequestUrlUnavailableError"
});
403
+
// pull_request_read takes no url or host, so its error must not ask for them.
404
+
const
readError =
yield
* harness.
call
(
"pull_request_read"
, {
number
:
124
}).
pipe
(
Effect
.
flip
);
405
+
expect
(readError.
message
).
not
.
toMatch
(
/\b(url|host)\b/i
);
403
406
404
407
const
supplied =
"https://scm.example.test/tfs/Collection/Project/_git/Repo/pullrequest/123"
;
405
408
const
fromUrl =
yield
* harness.
call
(
"link_pull_request"
, {
url
: supplied });
Expand down
Show all lines
19 additions and 1 deletion
+19
-1
apps/server/src/mcp/toolkits/pullRequests/handlers.ts
Modified
Diff
Before/After
Viewed
apps/server/src/mcp/toolkits/pullRequests/handlers.ts
View file
Expand up
Show all 506 lines
@@ -507,6 +507,11 @@
507
507
return
comments.
map
((comment) => placed.
get
(comment)!);
508
508
});
509
509
510
+
const
projectRemoteUnresolved =
new
PullRequestForgeError
({
511
+
detail
:
512
+
"This thread's project has no recognised remote, so its pull requests cannot be read here."
,
513
+
});
514
+
510
515
/** The thread's checkout, its project, and the PR the input names (default: the branch's). */
511
516
const
locate =
Effect
.
fn
(
"PullRequestsToolkit.locate"
)(
function
* (input:
ThreadPullRequestInput
) {
512
517
const
thread =
yield
*
requireThread
(
PullRequestForgeError
,
undefined
);
Expand up
Expand down
Show all 23 lines
@@ -536,7 +541,20 @@
536
541
?
null
537
542
: {
number
: branchPullRequest.
number
,
repository
: branchPullRequest.
repository
};
Home
Search
Explore
Menu