metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

chore: Update Cursor issue analysis as a GitHub workflow (v0.2.0)

Open dan437 opened this issue 2 weeks ago • 3 comments

Description

It updates the previous GitHub workflow file with these things:

  • Cursor CLI
  • Creating a GitHub comment with a Cursor response

When there is a new issue that's either (sev1 or sev2), it's assigned to the team-confirmations and it's not from an external contributor, it will trigger a Cursor issue analysis.

Changelog

CHANGELOG entry: null

Related issues

Fixes:

Manual testing steps

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

[!NOTE] Enhances the issue-analysis workflow to run Cursor CLI on eligible issues (excluding external contributors), securely fetch/analyze content, and post a formatted analysis comment.

  • CI Workflow (.github/workflows/cursor-issue-analysis.yml):
    • Trigger/Filter: Runs on issues (opened/labeled) only when labeled team-confirmations and (Sev1-high or Sev2-normal) and not external-contributor.
    • Analysis Flow:
      • Skips if an existing comment contains ## Cursor Analysis.
      • Installs Cursor CLI; sets read-only Cursor permissions (.cursor/permissions.json denies Shell(*) and Write(*)).
      • Fetches issue details via gh, base64-encodes for safe passing, builds a secured prompt with a warning, runs cursor-agent, and base64-encodes the result.
      • Posts a formatted comment headed ## Cursor Analysis with a caution note and footer.
  • Prompt (.github/cursorPrompts/issue-analysis.md):
    • Removes the @cursor directive; retains concise analysis instructions.

Written by Cursor Bugbot for commit 8413745c8863fff757be4eaf7b873866818a4c7b. This will update automatically on new commits. Configure here.

dan437 avatar Dec 08 '25 13:12 dan437

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

github-actions[bot] avatar Dec 08 '25 13:12 github-actions[bot]

🔍 Smart E2E Test Selection

  • Selected E2E tags: None (no tests recommended)
  • Risk Level: low
  • AI Confidence: 98%
click to see 🤖 AI reasoning details

The changes are limited to GitHub Actions workflow files and a markdown prompt template:

  1. .github/cursorPrompts/issue-analysis.md - Minor text change removing @cursor prefix from a prompt template
  2. .github/workflows/cursor-issue-analysis.yml - Updates to a GitHub Actions workflow for automated issue analysis using Cursor CLI

These changes:

  • Do not modify any application source code
  • Do not affect any E2E test infrastructure (Detox, wdio, appwright)
  • Do not touch any core modules, controllers, or Engine
  • Are purely CI/CD automation for issue triage/analysis
  • Have no impact on wallet functionality, UI, or user flows

The workflow runs on issue events (labeled) and is completely independent of the mobile app build/test process. No E2E tests are needed to validate these changes as they don't affect the application being tested.

View GitHub Actions results

github-actions[bot] avatar Dec 12 '25 17:12 github-actions[bot]