klothoplatform / slack-notifier

Slack notification bot
MIT License
3 stars 0 forks source link

don't re-post message if `pr_opened` events gets redelivered #14

Open ghost opened 2 years ago

ghost commented 2 years ago

All calls should be idempotent.

If the PR already has a thread_ts stored, we should just return success.

We should similarly check to see if the description message has been posted, and only post it if it hasn't been (or maybe if there hasn't been any reply in the thread?)