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
CI
Agents
Settings
fix(azure-devops): Issues search finds a work item by its ID
#48221
Send to my agent
Open
juliusmarminge
wants to merge 2 commits into
main
from
refs/pull/48221/head
·
opened
1 hour ago
View on GitHub
Conversation
4
Commits
2
Files changed
2
Impact
Showing
2 changed files
with
53 additions
and
1 deletion
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
43 additions and 0 deletions
+43
-0
packages/source-control-azure-devops/src/server/AzureDevOpsIssueTracker.test.ts
Modified
Diff
Before/After
Viewed
packages/source-control-azure-devops/src/server/AzureDevOpsIssueTracker.test.ts
View file
Expand up
Show all 363 lines
@@ -364,6 +364,49 @@
364
364
}).
pipe
(
Effect
.
provide
(
NodeFileSystem
.
layer
)),
365
365
);
366
366
367
+
it.
effect
(
"finds a work item by its numeric ID, not only by its title"
, () =>
368
+
Effect
.
gen
(
function
* () {
369
+
const
fs =
yield
*
FileSystem
.
FileSystem
;
370
+
const
bodies:
string
[] = [];
371
+
const
api =
yield
*
AzureDevOpsIssueTracker
.
make
.
pipe
(
372
+
Effect
.
provide
(
373
+
Layer
.
mock
(
AzureDevOpsCli
.
AzureDevOpsCli
)({
374
+
execute
: ({ args }) => {
375
+
const
resource = args[args.
indexOf
(
"--resource"
) +
1
];
376
+
if
(resource ===
"workitemtypes"
) {
377
+
return
Effect
.
succeed
(
TestSourceControlHost
.
processOutput
(
encode
(
WORK_ITEM_TYPES
)));
378
+
}
379
+
return
fs.
readFileString
(args[args.
indexOf
(
"--in-file"
) +
1
]!).
pipe
(
380
+
Effect
.
orDie
,
381
+
Effect
.
map
((body) => {
382
+
bodies.
push
(body);
383
+
return
TestSourceControlHost
.
processOutput
(
encode
({
workItems
: [] }));
384
+
}),
385
+
);
386
+
},
387
+
}),
388
+
),
389
+
);
390
+
for
(
const
query
of
[
"46"
,
"#46"
]) {
391
+
yield
* api.
listIssues
({
392
+
cwd
:
"/w"
,
Home
Search
Explore
Menu