Skip to content

Commit 34c0501

Browse files
Merge branch 'main' into will/feat/nomad-udr-migration
2 parents 89c69a7 + e5400eb commit 34c0501

File tree

4 files changed

+144
-0
lines changed

4 files changed

+144
-0
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) HashiCorp, Inc.
2+
# SPDX-License-Identifier: BUSL-1.1
3+
4+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/docs.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Copyright (c) HashiCorp, Inc.
2+
# SPDX-License-Identifier: BUSL-1.1
3+
4+
name: Documentation Issue
5+
description: |-
6+
HashiCorp Product Documentation Issue
7+
title: "Short summary of your issue"
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: |
12+
Use this form to request changes to HashiCorp product documentation.
13+
- type: dropdown
14+
id: product
15+
attributes:
16+
label: Product
17+
description: |-
18+
What product content is this for?
19+
options:
20+
- Boundary
21+
- Consul
22+
- HashiCorp Cloud Platform
23+
- Nomad
24+
- Packer
25+
- Sentinel
26+
- Terraform
27+
- Vagrant
28+
- Vault
29+
- Waypoint
30+
- Well-Architected Framework
31+
- Other product
32+
- No product
33+
default: 6
34+
validations:
35+
required: true
36+
- type: dropdown
37+
id: issueType
38+
attributes:
39+
label: Issue type
40+
description: |-
41+
Is this issue about a bug such as broken instructions or page 404s? Or are you requesting new content?
42+
options:
43+
- Bug
44+
- New content
45+
- Other issue
46+
default: 0
47+
validations:
48+
required: false
49+
- type: textarea
50+
id: what
51+
attributes:
52+
label: |-
53+
Describe your issue to request changes to the content on developer.hashicorp.com. Be specific and provide as much detail as possible. Include page URLs and screenshots if applicable.
54+
description:
55+
placeholder: In the documentation for...
56+
value: "In the documentation for..."
57+
validations:
58+
required: true

.github/advanced-issue-labeler.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright (c) HashiCorp, Inc.
2+
# SPDX-License-Identifier: BUSL-1.1
3+
4+
# Add a label to an issue based on the selected value of the Product drop down
5+
# in the issue form. "name" is the label, and "keys" is the value in the
6+
# bug-report and feature-request issue forms in the ISSUE_TEMPLATE directory.
7+
8+
9+
policy:
10+
- template: [ docs.yml]
11+
section:
12+
- id: [product]
13+
label:
14+
- name: 'Boundary'
15+
keys: ['Boundary']
16+
- name: 'Consul'
17+
keys: ['Consul']
18+
- name: 'HCP'
19+
keys: ['HashiCorp Cloud Platform']
20+
- name: 'Nomad'
21+
keys: ['Nomad']
22+
- name: 'Packer'
23+
keys: ['Packer']
24+
- name: 'Sentinel'
25+
keys: ['Sentinel']
26+
- name: 'Terraform CE'
27+
keys: ['Terraform']
28+
- name: 'Vagrant'
29+
keys: ['Vagrant']
30+
- name: 'Vault'
31+
keys: ['Vault']
32+
- name: 'WAF'
33+
keys: ['Well-Architected Framework']
34+
- name: 'Waypoint'
35+
keys: ['Waypoint']
36+
- name: 'Triage'
37+
keys: ['No product', 'Other product']
38+

.github/workflows/label-issues.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Copyright (c) HashiCorp, Inc.
2+
# SPDX-License-Identifier: BUSL-1.1
3+
4+
# Apply a product label based on the product selected in the issue template's
5+
# product list.
6+
#
7+
# https://github.com/marketplace/actions/advanced-issue-labeler
8+
# https://github.com/redhat-plumbers-in-action/advanced-issue-labeler
9+
# https://github.com/redhat-plumbers-in-action/issue-forms-automation/blob/main/.github/workflows/issue-labeler.yml
10+
11+
# Inspired by: https://github.com/stefanbuck/ristorante
12+
# See: https://stefanbuck.com/blog/codeless-contributions-with-github-issue-forms
13+
14+
name: Issue labeler
15+
on:
16+
issues:
17+
types: [ opened, edited ]
18+
19+
jobs:
20+
label-issues-policy:
21+
runs-on: ubuntu-latest
22+
permissions:
23+
issues: write
24+
25+
strategy:
26+
matrix:
27+
template: [ docs.yml ]
28+
29+
steps:
30+
- uses: actions/checkout@v3
31+
32+
- name: Parse issue form
33+
uses: stefanbuck/github-issue-parser@v3
34+
id: issue-parser
35+
with:
36+
template-path: .github/ISSUE_TEMPLATE/${{ matrix.template }}
37+
38+
- name: Set labels based on policy
39+
uses: redhat-plumbers-in-action/advanced-issue-labeler@main
40+
with:
41+
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
42+
template: ${{ matrix.template }}
43+
token: ${{ secrets.GITHUB_TOKEN }}
44+

0 commit comments

Comments
 (0)