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 #308

Open
HomerusJa opened this issue Nov 15, 2024 · 1 comment
Open

🚀 Feature: Add support for GitHub Discussions #308

HomerusJa opened this issue Nov 15, 2024 · 1 comment

Comments

@HomerusJa
Copy link

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:

  1. Add a new input parameter discussion-message to the action
  2. Add discussion event support in the action trigger
  3. Update the action to handle the discussion event type
  4. 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! 🙌

Copy link

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

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

No branches or pull requests

1 participant