🚀 Feature: Add support for GitHub Discussions
Feature Description
Add support for welcoming first-time contributors who create discussions, similar to how the action currently handles issues and pull requests. This would allow maintainers to provide a welcoming message to users who start their first discussion in a repository.
Use Case
Many repositories use GitHub Discussions as a community platform for questions, ideas, and announcements. Being able to welcome new community members when they start their first discussion would help create a more welcoming environment and guide them towards productive participation.
Currently, the action supports:
- First issue (
issue-message) - First pull request (
pr-message)
The proposal is to add:
- First discussion (
discussion-message)
Implementation Details
The implementation could follow the same pattern as issues and PRs:
- Add a new input parameter
discussion-messageto the action - Add discussion event support in the action trigger
- Update the action to handle the discussion event type
- Document the new feature in the README
Example usage would look like:
- name: First interaction
uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
discussion-message: |
Welcome to our community discussions! ...
Motivation
GitHub Discussions has become an integral part of many open source communities. The ability to welcome new discussion participants would:
- Create a more inclusive community
- Help guide new users towards productive discussions
- Maintain consistency in how we welcome all types of first-time contributors
Alternatives Considered
Currently, maintainers need to create custom workflows using the GitHub API to achieve this functionality, which is more complex and requires additional maintenance compared to using this established action.
I'd be happy to contribute to implementing this feature if desired! 🙌
Hello! Thank you for filing an issue.
If this is a bug report, please include relevant logs to help us debug the problem.
@HomerusJa hello! Apologies for the delay, I have been working on bringing some of these repos up to date. I think this would be a great contribution if you would like to open a PR! Please note that the repo has been overhauled so the action is now TypeScript/JavaScript instead of container-based (to reduce startup time and ease troubleshooting/development).
I will go ahead and close this issue, but feel free to mention it in the PR if you decide to move forward!