Skip to content

Commit d51a3ed

Browse files
committed
make work status array
1 parent 2a86398 commit d51a3ed

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/guides/all/track-ai-driven-pull-requests.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ When installing Port's GitHub app, the `Service` and `Pull request` blueprints a
222222
"title": "AI Coding Agent",
223223
"target": "ai_coding_agent",
224224
"required": false,
225-
"many": false
225+
"many": true
226226
}
227227
```
228228
</details>
@@ -376,8 +376,8 @@ This automation only runs when the `ai_coding_agent` relation is null (before an
376376
"condition": {
377377
"type": "JQ",
378378
"expressions": [
379-
".diff.before.relations.ai_coding_agent == null",
380-
".diff.after.relations.ai_coding_agent == null"
379+
".diff.before.relations.ai_coding_agent == []",
380+
".diff.after.relations.ai_coding_agent == []"
381381
],
382382
"combinator": "and"
383383
}
@@ -444,7 +444,7 @@ This automation only runs if the commits response contains a match for AI agents
444444
"mapping": {
445445
"identifier": "{{ .event.diff.before.payload.headers.Identifier | tostring }}",
446446
"relations": {
447-
"ai_coding_agent": "{{ .event.diff.before.response | [.[] | .commit.author.name // \"\" | if test(\"(?i)copilot\") then \"Copilot\" elif test(\"(?i)claude\") then \"Claude\" elif test(\"(?i)devin\") then \"Devin\" else empty end] | unique | first }}"
447+
"ai_coding_agent": "{{ .event.diff.before.response | [.[] | .commit.author.name // \"\" | if test(\"(?i)copilot\") then \"Copilot\" elif test(\"(?i)claude\") then \"Claude\" elif test(\"(?i)devin\") then \"Devin\" else empty end] | unique }}"
448448
}
449449
}
450450
},
@@ -489,8 +489,8 @@ This flow identifies AI involvement in code review by analyzing comment data.
489489
"condition": {
490490
"type": "JQ",
491491
"expressions": [
492-
".diff.before.relations.ai_coding_agent == null",
493-
".diff.after.relations.ai_coding_agent == null"
492+
".diff.before.relations.ai_coding_agent == []",
493+
".diff.after.relations.ai_coding_agent == []"
494494
],
495495
"combinator": "and"
496496
}
@@ -555,7 +555,7 @@ This automation only runs if the comments response contains a match for AI agent
555555
"mapping": {
556556
"identifier": "{{ .event.diff.before.payload.headers.Identifier | tostring }}",
557557
"relations": {
558-
"ai_coding_agent": "{{ .event.diff.before.response | [.[] | (.user.login // \"\") + \" \" + (.body // \"\") | if test(\"(?i)copilot\") then \"Copilot\" elif test(\"(?i)claude\") then \"Claude\" elif test(\"(?i)devin\") then \"Devin\" else empty end] | unique | first }}"
558+
"ai_coding_agent": "{{ .event.diff.before.response | [.[] | (.user.login // \"\") + \" \" + (.body // \"\") | if test(\"(?i)copilot\") then \"Copilot\" elif test(\"(?i)claude\") then \"Claude\" elif test(\"(?i)devin\") then \"Devin\" else empty end] | unique }}"
559559
}
560560
}
561561
},

0 commit comments

Comments
 (0)