Skip to content

Commit 2c1e176

Browse files
fix(GHA): Update github-mcp-server calls
2 parents 59db0ad + 96d9473 commit 2c1e176

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

commands/security/analyze-github-pr.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ You will now begin executing the plan. The following are your precise instructio
111111
- Retrieve the GitHub repository name from the environment variable "${REPOSITORY}".
112112
- Retrieve the GitHub pull request number from the environment variable "${PULL_REQUEST_NUMBER}".
113113
- 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.
117117
118118
* Once the command is executed and you have the list of changed files, you will mark this task as complete.
119119
@@ -129,9 +129,9 @@ After completing these two initial tasks, continue executing the dynamically gen
129129
130130
After your **Core Operational Loop** is completed, report the final report back to GitHub:
131131
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.
133133
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`.
135135
136136
2a. When there is a code suggestion (preferred), structure the comment payload using this exact template:
137137
@@ -149,7 +149,7 @@ After completing these two initial tasks, continue executing the dynamically gen
149149
{{SEVERITY}} {{COMMENT_TEXT}}
150150
</COMMENT>
151151
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:
153153
154154
<SUMMARY>
155155
## 📋 Security Analysis Summary

0 commit comments

Comments
 (0)