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): a state name finished for one work item type no longer closes other types
#48225
Send to my agent
Open
juliusmarminge
wants to merge 2 commits into
main
from
refs/pull/48225/head
·
opened
1 hour ago
View on GitHub
Conversation
5
Commits
2
Files changed
3
Impact
Showing
3 changed files
with
128 additions
and
27 deletions
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
57 additions and 0 deletions
+57
-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,63 @@
364
364
}).
pipe
(
Effect
.
provide
(
NodeFileSystem
.
layer
)),
365
365
);
366
366
367
+
it.
effect
(
"keeps a work item open when only another type finishes in its state"
, () =>
368
+
Effect
.
gen
(
function
* () {
369
+
const
fs =
yield
*
FileSystem
.
FileSystem
;
370
+
const
queries:
string
[] = [];
371
+
const
task = {
372
+
...
WORK_ITEM
,
373
+
id
:
12
,
374
+
fields
: { ...
WORK_ITEM
.
fields
,
"System.State"
:
"Verified"
,
"System.WorkItemType"
:
"Task"
},
375
+
};
376
+
const
api =
yield
*
AzureDevOpsIssueTracker
.
make
.
pipe
(
377
+
Effect
.
provide
(
378
+
Layer
.
mock
(
AzureDevOpsCli
.
AzureDevOpsCli
)({
379
+
execute
: ({ args }) => {
380
+
const
resource = args[args.
indexOf
(
"--resource"
) +
1
];
381
+
if
(resource ===
"workitemtypes"
) {
382
+
// An inherited process may give one state name a category per type.
383
+
return
Effect
.
succeed
(
384
+
TestSourceControlHost
.
processOutput
(
385
+
encode
({
386
+
value
: [
387
+
{
name
:
"Bug"
,
states
: [{
name
:
"Verified"
,
category
:
"Completed"
}] },
388
+
{
name
:
"Task"
,
states
: [{
name
:
"Verified"
,
category
:
"InProgress"
}] },
389
+
],
390
+
}),
391
+
),
392
+
);
Home
Search
Explore
Menu