Skip to content

Conversation

@aimeeu
Copy link

@aimeeu aimeeu commented Oct 1, 2025

Description

This requires that repo Settings > General > Features > Issues is enabled. I do not have permissions to view Settings.

Jira: CE-1027

Community users are already creating docs issues in this repo.

This PR adds an issue template with a product pick list and an issue labeler workflow that runs when an issue is created or updated.

The issue labeler workflow applies a product label based on the product checked in the issue form. The product select list contains "Other product" and "No product" as choices. Those trigger a "Triage" label. I set "Terraform" as the default selected product since TF seems to have the most issues created by community users. I cannot have "Select..." or a blank value as list entry b/c it counts as a selected value (GH feature request). Validation is limited to required or not required.

Benefit: Automatic triage. users must choose a product when creating an issue. HashiCorp employees still use existing internal processes to create tickets.

Note: Individual product repos should modify their new issue chooser to point to web-unified-docs for opening docs issues. Refer to the Terraform new issue chooser for an example.

Architecture

New .github/ISSUE_TEMPLATE directory to house the YAML for the issue forms.

  • docs.yml: Docs issue form. Selecting a product from the Product drop-down is required.
  • config.yml: 1) prevents a blank issue form. Since there are no links to external repos, the issue form opens when the user clicks the New Issue button in the GH web UI.

.github/workflows

Add label-issues.yml, which uses GHA Advanced Issue Labeler from Red Hat Plumbers. The label config file for the workflow is .github/advanced-issue-labeler.yml. The issue label does not need to exist in the repo prior to running the workflow. The workflow creates the label if it does not exist, but does not add a color to the label. I created entries for all the products in case we decide to use this repo for all product docs issues in the future.

User flow:

  1. Click New Issue. New issue form opens.
  2. Fill out required fields, including selecting a product.
  3. Submit issue.
  4. Issue labeler workflow runs and labels the issue based on selected product.

Example screens

Screenshots from the implementation in my personal fork of web-unified-docs.

Docs issue form

image

@aimeeu aimeeu requested a review from a team as a code owner October 1, 2025 15:43
@aimeeu aimeeu requested a review from Younique98 October 1, 2025 15:43
@aimeeu aimeeu marked this pull request as draft October 1, 2025 15:43
@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2025

Vercel Previews Deployed

Name Status Preview Updated (UTC)
Dev Portal ✅ Ready (Inspect) Visit Preview Fri Oct 31 11:52:12 UTC 2025
Unified Docs API ✅ Ready (Inspect) Visit Preview Fri Oct 31 11:45:42 UTC 2025

@aimeeu aimeeu requested a review from boruszak October 29, 2025 18:27
@aimeeu aimeeu marked this pull request as ready for review October 29, 2025 18:29
@aimeeu aimeeu requested a review from judithpatudith October 31, 2025 11:41
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.

1 participant