Skip to content

feat: add auto comment workflow for clarity on issues and discussions#9

Merged
Aias00 merged 1 commit into
mainfrom
feat/ci
Sep 5, 2025
Merged

feat: add auto comment workflow for clarity on issues and discussions#9
Aias00 merged 1 commit into
mainfrom
feat/ci

Conversation

@Aias00
Copy link
Copy Markdown
Contributor

@Aias00 Aias00 commented Sep 5, 2025

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

@Aias00 Aias00 merged commit 7e03894 into main Sep 5, 2025
8 checks passed
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, please upgrade to Bugbot Pro by visiting the Cursor dashboard. Your first 14 days will be free!

anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
claude_args: |
--allowedTools mcp__github__get_issue,mcp__github__create_comment
--system-prompt "你是一个经验丰富的开源项目维护者,擅长识别高质量的 issue 报告"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: Shell Command Substitution Fails in GitHub Actions

The prompt input for anthropics/claude-code-action uses shell command substitution $(cat ...), which GitHub Actions treats as a literal string in a with: block, so the action receives the command instead of the prompt content. Additionally, the workflow doesn't pass event-specific context (like the issue or discussion number) to the Claude action, preventing it from analyzing the triggered event.

Fix in Cursor Fix in Web

issues:
types: [opened]
discussion:
types: [created]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: Event Mismatch Causes Workflow Failure

The on: event for discussions is set to discussion: (singular) instead of discussions: (plural). This prevents the workflow from triggering when new discussions are created.

Fix in Cursor Fix in Web

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant