Skip to content

Commit 68c17ed

Browse files
authored
Merge pull request #2938 from port-labs/task_t3ex8g/configure_the_automation_to_watch_a_service_scorecard_degradation_rather_than_the_githubrepository
Update self-heal scorecard guide to use service instead of GitHub Repository
2 parents dcedc09 + fdc7ae0 commit 68c17ed

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/guides/all/self-heal-scorecards-with-ai.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: Learn how to use Port's AI capabilities to detect scorecard degrada
88
Scorecards in Port help you evaluate the maturity, production readiness, and engineering quality of entities in your software catalog.
99
However, when scorecard statistics degrade, manual intervention is often required to identify and fix the issues.
1010

11-
This guide demonstrates how to create an AI-powered system that automatically detects scorecard degradation and trigger Github Copilot for automated code fixes.
11+
This guide demonstrates how to create an AI-powered system that automatically detects service scorecard degradation and trigger Github Copilot for automated code fixes.
1212

1313
<img src="/img/guides/self-healing-scorecard-architecture.png" border="1px" width="100%" />
1414

@@ -102,8 +102,8 @@ This blueprint will track tasks created by the AI agent for scorecard remediatio
102102
"required": false,
103103
"many": false
104104
},
105-
"repository": {
106-
"target": "githubRepository",
105+
"service": {
106+
"target": "service",
107107
"required": true,
108108
"many": false
109109
}
@@ -227,7 +227,7 @@ We will create self-service actions that the AI agent can use for scorecard reme
227227
"labels"
228228
]
229229
},
230-
"blueprintIdentifier": "githubRepository"
230+
"blueprintIdentifier": "service"
231231
},
232232
"invocationMethod": {
233233
"type": "WEBHOOK",
@@ -248,7 +248,7 @@ We will create self-service actions that the AI agent can use for scorecard reme
248248
"source": "ai_agent"
249249
},
250250
"relations": {
251-
"repository": "{{ .entity.identifier }}"
251+
"service": "{{ .entity.identifier }}"
252252
}
253253
}
254254
},
@@ -322,15 +322,15 @@ This automation continuously monitors scorecard statistics and triggers the AI a
322322

323323
```json showLineNumbers
324324
{
325-
"identifier": "repository_scorecard_update",
326-
"title": "Repository Scorecard Update",
327-
"description": "Trigger this automation when the scorecard associated with a repository is degraded",
328-
"icon": "Github",
325+
"identifier": "service_scorecard_update",
326+
"title": "Service Scorecard Update",
327+
"description": "Trigger this automation when the scorecard associated with a service is degraded",
328+
"icon": "Service",
329329
"trigger": {
330330
"type": "automation",
331331
"event": {
332332
"type": "ENTITY_UPDATED",
333-
"blueprintIdentifier": "githubRepository"
333+
"blueprintIdentifier": "service"
334334
},
335335
"condition": {
336336
"type": "JQ",
@@ -414,7 +414,7 @@ This automation bridges the gap between Port's AI agent analysis and GitHub's de
414414
"body": "{{.event.diff.after.response.entity.properties.description}} *IMPORTANT NOTE FOR COPILOT*: When creating a pull request to fix this issue, you MUST ALWAYS include the Port Task Identifier in the PR description or body for tracking purposes. Here is the Port Task Identifier for this issue: {{ .event.diff.after.response.entity.identifier }}",
415415
"labels": "{{.event.diff.after.response.entity.properties.labels}}"
416416
},
417-
"entity": "{{ .event.diff.after.response.entity.relations.repository }}"
417+
"entity": "{{ .event.diff.after.response.entity.relations.service.repository }}"
418418
}
419419
},
420420
"publish": true

0 commit comments

Comments
 (0)