Skip to content

Commit dcba45e

Browse files
committed
add more scenarios
1 parent 4a3b7d6 commit dcba45e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkg/github/instructions.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ func getGeneralInstructions(enabledToolsets []string) string {
7171
instruction: "Use get_pull_request to fetch PR details and get_pull_request_files to see changes. Use create_pending_pull_request_review to start a review, add_comment_to_pending_review for line-specific feedback, then submit_pending_pull_request_review to publish. Check get_pull_request_status to verify CI/CD checks before approving.",
7272
requiredToolsets: []string{"pull_requests"},
7373
},
74+
"Triaging Security Alerts": {
75+
instruction: "Use list_dependabot_alerts, list_code_scanning_alerts, or list_secret_scanning_alerts with state='open' to find active security issues. Use get_*_alert for detailed information about specific alerts. For broader context, search list_global_security_advisories or get_global_security_advisory for known CVEs affecting your dependencies.",
76+
requiredToolsets: []string{},
77+
},
78+
"Manage Workflow": {
79+
instruction: "Call list_notifications regularly to see what needs attention. Use get_notification_details for full context on important items. Mark items as done with dismiss_notification or mark_all_notifications_read to keep your inbox organized. Use manage_notification_subscription to adjust notification preferences for threads or manage_repository_notification_subscription for entire repositories.",
80+
requiredToolsets: []string{"notifications"},
81+
},
82+
"Investigating Bugs": {
83+
instruction: "Use search_code to find relevant code patterns or function definitions across repositories. Use search_issues to check if similar bugs were reported before. Once you find relevant files, use get_file_contents to read them. Review get_commit and list_commits to understand recent changes that might have introduced the issue.",
84+
requiredToolsets: []string{"repos"},
85+
},
7486
}
7587

7688
var parts []string

0 commit comments

Comments
 (0)