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] add support for GitHub discussions #442

Open
brylie opened this issue Oct 11, 2022 · 9 comments
Open

[Feature] add support for GitHub discussions #442

brylie opened this issue Oct 11, 2022 · 9 comments
Labels
enhancement New feature or request

Comments

@brylie
Copy link

brylie commented Oct 11, 2022

Now that GitHub discussions are widely available, many projects are using GitHub discussions for community engagement. There will often be discussion threads for things like ideas and support.

To quickly credit active contributors in various community discussions, It would be helpful if the All Contributors bot would also listen for @mentions in GitHub Discussions.

An alternative would be to move discussions to issues when we want to mention the All Contributors bot. However, this may cause unnecessary noise and clutter since GitHub currently only allows us to create a new issue from an existing discussion.

@brylie brylie added the enhancement New feature or request label Oct 11, 2022
@tenshiAMD
Copy link
Member

@brylie thanks for bringing this up. I think we can enable GH discussion in the future however I think we like to simply things out. @all-contributors/core what do you think?

@darshitac11
Copy link

darshitac11 commented Oct 11, 2022

@brylie - thanks for raising this. I have similar requirement for my project.

Currently as a workaround, we have created one issue where we link to a relevant contribution in discussions and evoke the All Contributors bot. It is less messy than converting each relevant discussion to an issue but still not ideal.

Reference: Atri-Labs/atrilabs-engine#332

@brylie
Copy link
Author

brylie commented Oct 11, 2022

Thanks, @darshitac11! That's a great idea 😎

Relatedly, I understand that All Contributors may not immediately, or ever, get this feature. However, I hope the issue will remain open as a placeholder for the possibility of being added.

@darshitac11
Copy link

Thanks @brylie!

Yes, I appreciate that you requested this feature. I'm sure many projects would love to use it whenever it is available. 💙

@gr2m
Copy link
Contributor

gr2m commented Oct 13, 2022

@all-contributors/core what do you think?

I think it's within the scope of the app. I think we should transfer this issue to https://github.com/all-contributors/app. We will probably need to add a permission to the app in order to enable interacting with discussions

@tenshiAMD tenshiAMD transferred this issue from all-contributors/all-contributors Oct 13, 2022
@tenshiAMD
Copy link
Member

We will probably need to add a permission to the app in order to enable interacting with discussions

@gr2m great! shall we add now?

@gr2m
Copy link
Contributor

gr2m commented Oct 14, 2022

okay, I requested the read/write permission to discussions. Note current installations are not updated until the request is accepted by account owners. That means we have to account for the case that an installation might have the permission to read/write discussions or comments. I think this shouldn't be a problem in our case, because we would only interact with discussions when handling a discussion_comment event, which we will only receive if the owner accepted the permission.

Let me know if you have any questions.

I did not yet subscribe the app to the discussion_comment event. We can do that once we implement the functionality

@n13
Copy link

n13 commented Oct 15, 2022

I just got a request to enable this

What I don't understand about any of these permissions is why AllContributors needs write access to anything?

Read access should be sufficient.

What you wanna write to our discussions?

I think this opens the door to security holes and bugs, and I am not going to approve that permission.

I am actually thinking to disable AllContributors. It's cool, but I don't like it having write access to everything. If this gets hacked it can really mess up all our repos. So... why???

@gr2m
Copy link
Contributor

gr2m commented Oct 15, 2022

write access

in this context write access means it needs to be able to comment. There is not a more granular permission in order to write comments, you need full write access to all discussions.

and I am not going to approve that permission

You already approved it for repository contents, issues, and pull requests, but you do you 🤷🏼

I am actually thinking to disable AllContributors. It's cool, but I don't like it having write access to everything. If this gets hacked it can really mess up all our repos. So... why???

you don't need the app, you can probably set up your own automation using the CLI, the app is just for convenience and to lower the technical barrier to less technical users.

Reducing permissions is off topic for this issue, please open a separate discussion if you want to continue on that topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants