Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent duplicate opportunities based on link #688

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Prevent duplicate opportunities by checking if the link from a new Slack message already exists in any other opportunity's Slack message.

Changes:

  • Add findOpportunityWithLink function to check for existing opportunities with a given link
  • Modify createOpportunity to check for duplicates before creating new opportunities
  • Exit gracefully (success) if duplicate found to maintain existing behavior pattern

Link to Devin run: https://app.devin.ai/sessions/70f0c979125e4468a1c03858f4d8b110

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Add "(aside)" to your comment to have me ignore it.

@ramiAbdou ramiAbdou closed this Dec 18, 2024
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.

1 participant