Skip to content

Conversation

@R44VC0RP
Copy link
Collaborator

Summary

Enhances the duplicate issue detection workflow with:

  • Agent Review format - Structured comments with confidence scores (0-100%) for duplicate detection
  • Spam detection - Auto-closes empty issues and service offer spam
  • Codebase exploration - AI can explore repo to answer OpenCode tooling questions
  • Reaction-based auto-close - Issues closed after 6 hours if no 👎 reaction (50%+ confidence threshold)

Changes

New Features

  1. Confidence scoring for duplicates:

    • 90-100%: Nearly identical
    • 70-89%: Very similar
    • 50-69%: Related (threshold for auto-close)
    • <50%: Not included
  2. Spam detection (runs before AI review):

    • Empty body + title with <3 alphanumeric chars
    • Service offers ("i can fix", "hire me", "freelanc")
  3. Quick answers - AI explores codebase to answer OpenCode questions directly

Security Fixes

  • Fixed shell injection vulnerability by using env vars for issue title/body
  • Labels auto-created in issues-opened job (not just scheduled job)

Labels

  • spam (red) - spam/low-quality issues
  • potential-duplicate (yellow) - pending confirmation
  • duplicate (gray) - confirmed duplicates

Testing

  • YAML syntax validated
  • Reviewed by sophos agent for security issues

Closes issues like #9513, #9498 (spam/empty issues)

…tection

- Add structured 'Agent Review' comment format with confidence scores (0-100%)
- Add spam/low-quality issue detection (empty issues, service offers)
- Enable codebase exploration for answering OpenCode tooling questions
- Add reaction-based auto-close (6 hours, 50%+ confidence threshold)
- Fix shell injection vulnerability by using env vars for issue content
- Auto-create labels (potential-duplicate, duplicate, spam)
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

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