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

notify: support subscriber threshold to prevent broad spamming #18

Merged
merged 4 commits into from
Apr 29, 2022

Conversation

unknwon
Copy link
Member

@unknwon unknwon commented Apr 28, 2022

Adds a new input option subscriber-threshold to limit notifying a large number of subscribes in which cases causes more spamming than high signal. This does not change the default behavior (i.e. notify all).

A follow up PR will be made to update "sourcegraph/sourcegraph" to set a reasonable threshold.

@unknwon unknwon requested a review from nicksnyder April 28, 2022 05:35
@sourcegraph-bot
Copy link

sourcegraph-bot commented Apr 28, 2022

Codenotify: Notifying subscribers in CODENOTIFY files for diff bbd530a...0b58ecc.

Notify File(s)
@nicksnyder .gitignore
README.md
action.yml
main.go
main_test.go

Copy link
Contributor

@nicksnyder nicksnyder left a comment

Choose a reason for hiding this comment

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

You never need to block on my review here, but giving it anyway because it was easy!

Minor suggestion to make the message clear that notifications are not being sent.

main.go Outdated Show resolved Hide resolved
main_test.go Outdated Show resolved Hide resolved
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.

3 participants