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 with out guidance. This PR creates bug and feature request issue forms/templates. Additionally, I added an issue labeler workflow that run when an issue is created or edited so that a product label is applied 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. I cannot have "Select..." or blank value as list entry b/c it counts as a selected value (GH feature request). Validation is limited to required or not required.

The tech writers have ongoing discussions about where community users should open docs issues and the "where" may vary by product.

Benefit: Automatic triage. Community users must choose a product when creating an issue. HashiCorp employees are expected to still use either Jira or Asana to create tickets.

Architecture

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

  • bug-report.yml: Example of a docs bug issue form. Selecting a product from the Product drop-down is required.
  • feature-request.yml: Example of a docs feature request issue form. Selecting a product from the Product drop-down is required.
  • config.yml: 1) prevents a blank issue form; 2) example of how to code a link to open a Nomad issue in the Nomad repo. This option appears on the Issue chooser modal window.

.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.

User flow:

  1. Click New Issue. Issue type chooser window appears.
  2. Select issue type. Issue form opens.
  3. Fill out required fields, including selecting a product.
  4. Submit issue.
  5. 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.

Issue chooser

image

Bug issue

image

Feature issue

image

Issue list with labels

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
Copy link
Contributor

github-actions bot commented Oct 1, 2025

Vercel Previews Deployed

Name Status Preview Updated (UTC)
Dev Portal ✅ Ready (Inspect) Visit Preview Wed Oct 1 21:05:43 UTC 2025
Unified Docs API ✅ Ready (Inspect) Visit Preview Wed Oct 1 21:00:10 UTC 2025

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