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

Add Discussion label workflow #11300

Merged
merged 3 commits into from
Apr 2, 2025

Conversation

moonbox3
Copy link
Contributor

@moonbox3 moonbox3 commented Apr 1, 2025

Motivation and Context

Right now, we need to manually go through each new discussion item to figure out if it needs certain labels. We also can miss discussion items as we don't have the "triage" label applied automatically like we do for issues. We have some discussion categories where users can post for help -- specifically "General," "Q&A," and "Ideas." Other discussion categories don't warrant "triage," "python," or ".NET" labels.

Description

This PR adds a "Label Discussions" workflow that runs when new discussions are created as part of General, Ideas, or Q&A, that leverages GitHub's GraphQL API. This was tested in my SK fork for new issues, and it properly adds the appropriate label based on the content of the discussion item.

This should help make sure we don't miss any discussion item as we look through them during triage.

Contribution Checklist

@moonbox3 moonbox3 added this pull request to the merge queue Apr 2, 2025
Merged via the queue into microsoft:main with commit e936f93 Apr 2, 2025
16 checks passed
@moonbox3 moonbox3 deleted the add-discussion-label-workflow branch April 2, 2025 23:35
glorious-beard pushed a commit to glorious-beard/semantic-kernel that referenced this pull request Apr 6, 2025
### Motivation and Context

Right now, we need to manually go through each new discussion item to
figure out if it needs certain labels. We also can miss discussion items
as we don't have the "triage" label applied automatically like we do for
issues. We have some discussion categories where users can post for help
-- specifically "General," "Q&A," and "Ideas." Other discussion
categories don't warrant "triage," "python," or ".NET" labels.

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

This PR adds a "Label Discussions" workflow that runs when new
discussions are created as part of General, Ideas, or Q&A, that
leverages GitHub's GraphQL API. This was tested in my SK fork for new
issues, and it properly adds the appropriate label based on the content
of the discussion item.

This should help make sure we don't miss any discussion item as we look
through them during triage.

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
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

Successfully merging this pull request may close these issues.

3 participants