-
Notifications
You must be signed in to change notification settings - Fork 117
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
Use the bot to ban/unban users #106
Comments
This requires Owner permissions IIRC. |
I can't find a reference to user blocking in the GitHub API docs. Are you sure it's possible? |
... which the bot is supposed to have at this point. Does it not? |
@targos oooohhh... good point. Maybe this ISN'T possible :( |
No, the discussion was to approve that for a separate, restricted bot, no? |
@Fishrock123 It was completed here: #72 (comment) |
Oh right, it turns out there are specific permissions for that. We'd have to find out if the block list is accessible by the API. |
Handing admin rights, even if scoped, to a script that runs unsupervised for most of the day gives me the willies. What are the failure modes for hostile attacks, software bugs and bad input? |
FYI I sent a question to GitHub Support whether or not it's possible to block users via their API. |
In other words, not much the bot can do ATM. |
@phillipj GAH! What a major snag to this plan! Thanks a million for asking them. |
Closing this for now as it seems we're out of luck until GitHub exposes ban/unban via their API. |
Re-opening this as I just got a follow up email from GitHub staff. They have added support for block/unblocking users: And a webhook which might come in handy: |
🎉
|
@williamkapke is this something your newly created https://github.com/williamkapke/orgbot could handle? |
indeed it does! |
Oooh nice, lets close this (again) in favor of the new rockstar in town: https://github.com/williamkapke/orgbot |
heh, well that "rockstar" isn't getting a very positive reception (yet?): We'll just need to wait and see if anyone changes their mind I guess. |
Thanks for the reference, an interesting discussion I wasn't aware of. |
A
ban.json
file to be added to the moderation repo (migrate existing list) in this format:* the goal of this file is to have an extremely simple format even though it causes extra parsing for the bot
* username is there just for human convenience
To automate lifting bans; the bot will sync the file with the Org's bans once a day.
Workflow to ban a user:
bans.json
file. This can just be a proposal for a ban and a thread to discuss.The text was updated successfully, but these errors were encountered: