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

[Feature request] Able to ignore bots for posting comments/tagging issues #529

Closed
Belphemur opened this issue Jul 23, 2022 · 4 comments · Fixed by #874
Closed

[Feature request] Able to ignore bots for posting comments/tagging issues #529

Belphemur opened this issue Jul 23, 2022 · 4 comments · Fixed by #874
Labels

Comments

@Belphemur
Copy link

Hello,

In most of my repository, I have dependabot enabled (with auto-merge after test passes), a lot of the lib get updated quite a lot and I end up with a lot PR relating to dependencies update.

When it's time to do a release, semantic-release/github will go and post a comments on all those PR... This spam me aquite a lot.
I love the feature of posting comments (especially for human made PR or Issue), but can we disable it for bots ?

Having a blacklist of users would be great !

@xeger
Copy link

xeger commented May 30, 2024

Yes, please!

Formerly, I could rely on GitHub Notifications to inform me when another human needed action from me: they wanted a review; they had feedback; they opened a bug; etc.

Currently I work in an organization that posts comments to PRs during GitHub Actions workflows, and also has bots that post comments (and they even @ me).

I need a way to ignore the "bot spam" so that I can once again be responsive to humans who need me.

And/or, GitHub needs to provide a place other than in comments for bots to record high-volume information. (Annotations and checks are not sufficient for the voluminous output that our SSAE-16 compliance requires.)

@babblebey
Copy link
Member

When #874 merges, you will have the ability to configure this using the property successCommentCondition as stated in this comment #874

successCommentCondition: "<% return !issue.user || issue.user.type !== 'Bot'; %>"
// This adds comment/label to all issues (regardless of user) and pull request created by users (ignoring bots)

😉

@babblebey
Copy link
Member

When #874 merges, you will have the ability to configure this using the property successCommentCondition as stated in this comment #874

successCommentCondition: "<% return !issue.user || issue.user.type !== 'Bot'; %>"
// This adds comment/label to all issues (regardless of user) and pull request created by users (ignoring bots)

😉

A quick update on this: Now you can target and ignore both issues and PRs created by bot by simply setting your successCommentCondition

successCommentCondition: "<% return issue.user.type !== 'Bot'; %>"

Copy link

github-actions bot commented Sep 2, 2024

🎉 This issue has been resolved in version 10.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@babblebey babblebey unpinned this issue Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants