Skip to content

Commit 598e0c5

Browse files
Merge branch 'main' into harshitchaudhary94/TF-30688-1-0-2-patch-release-notes
2 parents 4b35a56 + 1cac8db commit 598e0c5

File tree

15,411 files changed

+309513
-23898
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

15,411 files changed

+309513
-23898
lines changed

.github/labeler.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) HashiCorp, Inc.
2+
# SPDX-License-Identifier: BUSL-1.1
3+
14
# Add a Terraform label to changes under the related folders:
25
#
36
# Folder | Labels
@@ -42,6 +45,13 @@ Terraform Enterprise:
4245
'content/terraform-enterprise/**'
4346
]
4447

48+
Terraform MCP Server:
49+
- any:
50+
- changed-files:
51+
- any-glob-to-any-file: [
52+
'content/terraform-mcp-server/**'
53+
]
54+
4555
Terraform migrate:
4656
- any:
4757
- changed-files:
@@ -92,4 +102,17 @@ WAF:
92102
- changed-files:
93103
- any-glob-to-any-file: [
94104
'content/well-architected-framework/**'
105+
]
106+
107+
# Add 'Sentinel' label to changes under 'content/sentinel'
108+
#
109+
# Label | Rule
110+
# --------------- | ------------------------------------------------------------
111+
# Sentinel | Default; applies to all doc updates
112+
113+
Sentinel:
114+
- any:
115+
- changed-files:
116+
- any-glob-to-any-file: [
117+
'content/sentinel/**'
95118
]

.github/workflows/check-prebuild-binaries.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- 'scripts/prebuild/**'
77
- 'scripts/utils/**'
88
- 'scripts/algolia/**'
9+
- 'productConfig.mjs'
910

1011
permissions:
1112
contents: read
@@ -27,6 +28,7 @@ jobs:
2728
scripts/prebuild/**
2829
scripts/utils/**
2930
scripts/algolia/**
31+
productConfig.mjs
3032
files_ignore: |
3133
scripts/prebuild/prebuild-arm-mac-binary.gz
3234
scripts/prebuild/prebuild-x64-linux-binary.gz
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: 🥌 Create publication PR
2+
run-name: Create publication PR [${{ github.actor }}]
3+
4+
permissions:
5+
pull-requests: write
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
releaseBranch:
11+
required: true
12+
description: Release branch name
13+
mergeTarget:
14+
required: true
15+
default: 'main'
16+
description: Merge target for PR
17+
18+
jobs:
19+
create-pr:
20+
runs-on: ubuntu-latest
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
prTitle: "[PUBLISH] ${{ github.event.inputs.releaseBranch }}"
24+
prBody: |
25+
🚧 \`${{ github.repository }}\` publication PR
26+
27+
**Triggered by**: @${{ github.actor }} with a Github action
28+
**Release branch**: \`${{ github.event.inputs.releaseBranch }}\`
29+
**Merge target**: \`${{ github.event.inputs.mergeTarget }}\`
30+
31+
steps:
32+
- name: Check out repository code
33+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
34+
with:
35+
fetch-depth: 0
36+
- name: Create pull request
37+
run: |
38+
gh pr create \
39+
--base ${{ github.event.inputs.mergeTarget }} \
40+
--head ${{ github.event.inputs.releaseBranch }} \
41+
--title "${{ env.prTitle }}" \
42+
--body "${{ env.prBody }}"
43+
- name: Wrap-up
44+
run: |
45+
echo "🍏 Final job status: ${{ job.status }}"

.github/workflows/label-content-prs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
contents: read
1616
pull-requests: write
1717
steps:
18-
- uses: actions/labeler@v5
18+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9
1919
with:
2020
repo-token: "${{ secrets.GITHUB_TOKEN }}"
21-
sync-labels: true
21+
sync-labels: true

CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
/content/terraform-plugin-sdk @hashicorp/terraform-devex @hashicorp/terraform-education
1212
/content/terraform-plugin-testing @hashicorp/terraform-devex @hashicorp/terraform-education
1313
/content/terraform-docs-agents @hashicorp/team-hcpt-agent-engineering
14+
/content/terraform-mcp-server @hashicorp/team-docs-packer-and-terraform
1415
/content/terraform-migrate @hashicorp/team-docs-packer-and-terraform
1516
/content/terraform-cdk @hashicorp/cdktf
1617

@@ -31,3 +32,9 @@
3132

3233
/content/vault/ @hashicorp/vault-education-approvers
3334

35+
# Sentinel documentation ownership
36+
/content/sentinel/ @hashicorp/team-docs-packer-and-terraform @hashicorp/tf-compliance
37+
38+
# Well-architected framework
39+
40+
/content/well-architected-framework/ @hashicorp/well-architected-education-approvers

__fixtures__/productConfig.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,16 @@ export const PRODUCT_CONFIG = {
241241
versionedDocs: true,
242242
websiteDir: 'website',
243243
},
244+
'terraform-mcp-server': {
245+
assetDir: 'img',
246+
basePaths: ['mcp-server'],
247+
contentDir: 'docs',
248+
dataDir: 'data',
249+
productSlug: 'terraform',
250+
semverCoerce: semver.coerce,
251+
versionedDocs: true,
252+
websiteDir: 'website',
253+
},
244254
'terraform-migrate': {
245255
assetDir: 'img',
246256
basePaths: ['migrate'],
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: BUSL-1.1
4+
*/
5+
6+
import { PRODUCT_CONFIG } from '#productConfig.mjs'
7+
8+
export async function GET() {
9+
return Response.json({
10+
result: Object.keys(PRODUCT_CONFIG),
11+
})
12+
}

0 commit comments

Comments
 (0)