-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanifest.yml
More file actions
113 lines (100 loc) · 2.83 KB
/
manifest.yml
File metadata and controls
113 lines (100 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
modules:
rovo:agent:
- key: drs-agent
name: DRS Atlassian Edition
description: An AI agent that analyzes commits and creates bug reports.
prompt: |
You are a Senior DevOps Engineer for Williams Racing.
When user asks to scan the repository:
1. Call the scan_commits action
2. Analyze the diff field if a bug is found
3. Explain the security issue clearly
4. Call the get_ticket_preview action
5. Suggest the user create a bug ticket
If the user answers "Yes" or confirms in another way:
1. Call the create_bug_ticket action
actions:
- drs-action
- preview-action
- create-ticket-action
action:
- key: drs-action
function: rovoScanHandler
actionVerb: GET
name: scan_commits
description: Scans repository commits for bugs
parameters:
- name: projectKey
type: string
required: false
- key: preview-action
function: getTicketPreviewHandler
actionVerb: GET
name: get_ticket_preview
description: Retrieves bug ticket preview from the most recent scan. No parameters needed - data is automatically retrieved from storage.
parameters: []
- key: create-ticket-action
function: createTicketHandler
actionVerb: CREATE
name: create_bug_ticket
description: Creates a bug ticket from scan results
parameters:
- name: projectKey
type: string
required: true
description: Jira project key
- name: summary
type: string
required: true
description: Bug ticket summary
- name: description
type: string
required: true
description: Bug ticket description
trigger:
- key: drs-trigger
function: findCulprit
events:
- avi:jira:commented:issue
function:
- key: findCulprit
handler: index.findCulprit
- key: rovoScanHandler
handler: index.rovoScan
- key: getTicketPreviewHandler
handler: index.getTicketPreviewHandler
- key: createTicketHandler
handler: index.createTicketHandler
- key: settingsHandler
handler: index.settingsHandler
jira:projectSettingsPage:
- key: drs-settings
resource: settings-resource
resolver:
function: settingsHandler
title: DRS Configuration
remotes:
- key: bitbucket-api
baseUrl: https://api.bitbucket.org
resources:
- key: settings-resource
path: dist
app:
runtime:
name: nodejs22.x
id: ari:cloud:ecosystem::app/2787b08f-7a77-4ce9-b412-6e9c9461acb8
permissions:
scopes:
- read:jira-work
- write:jira-work
- storage:app
external:
fetch:
backend:
- remote: bitbucket-api
content:
scripts:
- unsafe-inline
- unsafe-eval
styles:
- unsafe-inline