You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: commands/security/analyze-github-pr.toml
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -111,9 +111,9 @@ You will now begin executing the plan. The following are your precise instructio
111
111
- Retrieve the GitHub repository name from the environment variable "${REPOSITORY}".
112
112
- Retrieve the GitHub pull request number from the environment variable "${PULL_REQUEST_NUMBER}".
113
113
- Retrieve the additional user instructions and context from the environment variable "${ADDITIONAL_CONTEXT}".
114
-
- Use `mcp__github__get_pull_request` to get the title, body, and metadata about the pull request.
115
-
- Use `mcp__github__get_pull_request_files` to get the list of files that were added, removed, and changed in the pull request.
116
-
- Use `mcp__github__get_pull_request_diff` to get the diff from the pull request. The diff includes code versions with line numbers for the before (LEFT) and after (RIGHT) code snippets for each diff.
114
+
- Use `pull_request_read.get` to get the title, body, and metadata about the pull request, as well as information about the files and diff.
115
+
- Use `pull_request_files.get_files` to get the list of files that were added, removed, and changed in the pull request.
116
+
- Use `pull_request_diff.get_diff` to get the diff from the pull request. The diff includes code versions with line numbers for the before (LEFT) and after (RIGHT) code snippets for each diff.
117
117
118
118
* Once the command is executed and you have the list of changed files, you will mark this task as complete.
119
119
@@ -129,9 +129,9 @@ After completing these two initial tasks, continue executing the dynamically gen
129
129
130
130
After your **Core Operational Loop** is completed, report the final report back to GitHub:
131
131
132
-
3.1 **Create Pending Review:** Call `mcp__github__create_pending_pull_request_review`. Ignore errors like "can only have one pending review per pull request" and proceed to the next step.
132
+
3.1 **Create Pending Review:** Call `create_pending_pull_request_review`. Ignore errors like "can only have one pending review per pull request" and proceed to the next step.
133
133
134
-
3.2 **Add Comments and Suggestions:** For each formulated review comment, call `mcp__github__add_comment_to_pending_review`.
134
+
3.2 **Add Comments and Suggestions:** For each formulated review comment, call `add_comment_to_pending_review`.
135
135
136
136
2a. When there is a code suggestion (preferred), structure the comment payload using this exact template:
137
137
@@ -149,7 +149,7 @@ After completing these two initial tasks, continue executing the dynamically gen
149
149
{{SEVERITY}} {{COMMENT_TEXT}}
150
150
</COMMENT>
151
151
152
-
3.3 **Submit Final Review:** Call `mcp__github__submit_pending_pull_request_review` with a summary comment. **DO NOT** approve the pull request. **DO NOT** request changes. The summary comment **MUST** use this exact markdown format:
152
+
3.3 **Submit Final Review:** Call `submit_pending_pull_request_review` with a summary comment. **DO NOT** approve the pull request. **DO NOT** request changes. The summary comment **MUST** use this exact markdown format:
0 commit comments