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

CI/CD: Add label automation to Discussions #27629

Open
crobert-1 opened this issue Oct 11, 2023 · 4 comments
Open

CI/CD: Add label automation to Discussions #27629

crobert-1 opened this issue Oct 11, 2023 · 4 comments
Labels
ci-cd CI, CD, testing, build issues enhancement New feature or request help wanted Extra attention is needed never stale Issues marked with this label will be never staled and automatically removed

Comments

@crobert-1
Copy link
Member

Component(s)

No response

Describe the issue you're reporting

This is being created from discussions around #27456. A lot of issues are being created that would be better suited for discussions, as they're often usability questions. In order to better support discussions we need to be able to add labels to discussions that can ping code owners. Once this is in place we can add a new issue template that will automatically convert questions to discussions.

@crobert-1 crobert-1 added enhancement New feature or request ci-cd CI, CD, testing, build issues labels Oct 11, 2023
@crobert-1 crobert-1 changed the title CI/CD: Add label automation to contrib repo's discussions CI/CD: Add label automation to Discussions in this repository Oct 11, 2023
@crobert-1
Copy link
Member Author

I've been able to take a bit of a look at this and see the status/blockers. We can currently make use of some of the same scripting that we use for issues, such as the add_labels.yml workflow, since there are the same actions in discussions that can trigger workflows.

However, it looks like the current problem is that the gh CLI (and API) does not interface with discussions, which is how we add labels to issues.

The current solution provided by GitHub is to use GraphQL for discussion API. Sources: here, and here.

Documentation reference.

Example queries for adding labels to a discussion: Here, and here.

@crobert-1 crobert-1 added the help wanted Extra attention is needed label Oct 13, 2023
@crobert-1 crobert-1 changed the title CI/CD: Add label automation to Discussions in this repository CI/CD: Add label automation to Discussions Oct 13, 2023
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Dec 13, 2023
@crobert-1 crobert-1 removed the Stale label Dec 13, 2023
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Feb 12, 2024
@crobert-1 crobert-1 added never stale Issues marked with this label will be never staled and automatically removed and removed Stale labels Feb 26, 2024
@mowies
Copy link
Member

mowies commented Jul 1, 2024

A nice solution for this could be the addLabelsToLabelable and removeLabelsFromLabelable GraphQL mutations.
Since both issues and discussions are labelable, we could abstract away the difference that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-cd CI, CD, testing, build issues enhancement New feature or request help wanted Extra attention is needed never stale Issues marked with this label will be never staled and automatically removed
Projects
None yet
Development

No branches or pull requests

2 participants