Skip to content

feat: 支持 cursor cli#5

Open
Daydreamer114 wants to merge 5 commits into
MistEO:mainfrom
Daydreamer114:feat/cursor
Open

feat: 支持 cursor cli#5
Daydreamer114 wants to merge 5 commits into
MistEO:mainfrom
Daydreamer114:feat/cursor

Conversation

@Daydreamer114

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings May 21, 2026 12:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 为现有的 GitHub composite action 增加了对 Cursor CLI 的支持,使其除了 Copilot CLI 之外,也可以选择 Cursor 作为分析后端,并继续以“流式更新同一条 Issue 评论”的方式输出分析过程与最终结论。

Changes:

  • 在 action 输入中新增 ai-provider / cursor-api-key / cursor-model,并在运行时按 provider 分支安装与调用对应 CLI
  • 新增 Cursor 模式下的 API key 解析与校验逻辑,并复用原有的流式评论更新机制
  • 更新 README 接入文档并新增一个 Cursor 专用示例 workflow

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
README.md 补充 Cursor CLI 的接入说明与新增输入参数解释
action.yml 增加 provider 选择、Cursor CLI 安装/鉴权/执行分支逻辑
.github/workflows/ai-issue-analysis-cursor.yml 新增一个 workflow_dispatch 的 Cursor 示例工作流

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread action.yml
Comment thread action.yml
Comment thread README.md Outdated
Comment thread action.yml

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread action.yml Outdated
Comment thread action.yml Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread action.yml
if: ${{ steps.provider.outputs.provider == 'cursor' }}
shell: bash
run: |
curl https://cursor.com/install -fsS | bash

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cursor不提供校验和,故不做校验,仅使用官方链接下载

Comment thread action.yml
Comment on lines +401 to +406

cursor-agent -p "$(cat "$ANALYSIS_PROMPT_FILE")" \
--force \
--model "$CURSOR_MODEL" \
--output-format text > "$OUTPUT_FILE" 2>&1 &
AGENT_PID=$!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

与copilot写法一致

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants