Skip to content

Commit 059e66c

Browse files
committed
GHE/Azure/Gitlab multi VCS (#477)
1 parent 4961bcb commit 059e66c

37 files changed

+1114
-482
lines changed

.github/workflows/analysis-lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
- name: Install Go
1717
uses: actions/setup-go@v4
1818
with:
19-
go-version: "1.19"
19+
go-version: "1.21"
2020

2121
- name: Check formatting using gofmt
2222
run: gofmt -s -l -d .
2323

2424
- name: Run golangci-lint
25-
uses: golangci/golangci-lint-action@v3
26-
with:
27-
version: v1.54
28-
args: -v
25+
uses: reviewdog/action-golangci-lint@v2
26+
env:
27+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with: { reporter: github-pr-review }

.github/workflows/check-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install Go
2121
uses: actions/setup-go@v4
2222
with:
23-
go-version: "1.19"
23+
go-version: "1.21"
2424

2525
- name: Generate documentation
2626
run: cd tools && go generate ./...

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
- name: Set up Go
2222
uses: actions/setup-go@v4
23-
with: { go-version: 1.19 }
23+
with: { go-version: 1.21 }
2424

2525
- name: Import GPG key
2626
uses: crazy-max/ghaction-import-gpg@v5

.github/workflows/test-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install Go
1717
uses: actions/setup-go@v4
1818
with:
19-
go-version: "1.19"
19+
go-version: "1.21"
2020

2121
- name: Install Terraform
2222
uses: hashicorp/setup-terraform@v2

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Test
22

33
on: [push]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7+
cancel-in-progress: true
8+
59
jobs:
610
deployment:
711
name: Test the code
@@ -14,7 +18,7 @@ jobs:
1418
- name: Install Go
1519
uses: actions/setup-go@v4
1620
with:
17-
go-version: "1.19"
21+
go-version: "1.21"
1822

1923
- name: Install Terraform
2024
uses: hashicorp/setup-terraform@v2

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ linters:
104104
- ineffassign
105105
- nolintlint
106106
- staticcheck
107-
- structcheck
107+
- unused
108108
- typecheck
109109

110110
severity:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If you want to build from source, you can simply use `go build` in the root of t
2424

2525
To develop the provider locally you need the following tools:
2626

27-
- [Go 1.19](https://go.dev/doc/install).
27+
- [Go 1.21](https://go.dev/doc/install).
2828
- [GoReleaser](https://goreleaser.com/).
2929
- A Spacelift account to use for testing.
3030

docs/data-sources/azure_devops_integration.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,17 @@ data "spacelift_azure_devops_integration" "azure_devops_integration" {}
1919
<!-- schema generated by tfplugindocs -->
2020
## Schema
2121

22+
### Optional
23+
24+
- `id` (String) Azure DevOps integration id. If not provided, the default integration will be returned
25+
2226
### Read-Only
2327

24-
- `id` (String) The ID of this resource.
28+
- `description` (String) Azure DevOps integration description
29+
- `is_default` (Boolean) Azure DevOps integration is default
30+
- `labels` (List of String) Azure DevOps integration labels
31+
- `name` (String) Azure DevOps integration name
2532
- `organization_url` (String) Azure DevOps integration organization url
33+
- `space_id` (String) Azure DevOps integration space id
2634
- `webhook_password` (String) Azure DevOps integration webhook password
35+
- `webhook_url` (String) Azure DevOps integration webhook url

docs/data-sources/github_enterprise_integration.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,17 @@ data "spacelift_github_enterprise_integration" "github_enterprise_integration" {
1919
<!-- schema generated by tfplugindocs -->
2020
## Schema
2121

22+
### Optional
23+
24+
- `id` (String) Github integration id. If not provided, the default integration will be returned
25+
2226
### Read-Only
2327

2428
- `api_host` (String) Github integration api host
2529
- `app_id` (String) Github integration app id
26-
- `id` (String) The ID of this resource.
30+
- `description` (String) Github integration description
31+
- `is_default` (Boolean) Github integration is default
32+
- `labels` (List of String) Github integration labels
33+
- `name` (String) Github integration name
34+
- `space_id` (String) Github integration space id
2735
- `webhook_secret` (String) Github integration webhook secret

docs/data-sources/gitlab_integration.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,17 @@ data "spacelift_gitlab_integration" "gitlab_integration" {}
1919
<!-- schema generated by tfplugindocs -->
2020
## Schema
2121

22+
### Optional
23+
24+
- `id` (String) Gitlab integration id. If not provided, the default integration will be returned
25+
2226
### Read-Only
2327

2428
- `api_host` (String) Gitlab integration api host
25-
- `id` (String) The ID of this resource.
29+
- `description` (String) Gitlab integration description
30+
- `is_default` (Boolean) Gitlab integration is default
31+
- `labels` (List of String) Gitlab integration labels
32+
- `name` (String) Gitlab integration name
33+
- `space_id` (String) Gitlab integration space id
2634
- `webhook_secret` (String) Gitlab integration webhook secret
35+
- `webhook_url` (String) Gitlab integration webhook url

docs/data-sources/module.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ data "spacelift_module" "k8s-module" {
5454

5555
Read-Only:
5656

57+
- `description` (String)
58+
- `id` (String)
59+
- `is_default` (Boolean)
60+
- `labels` (Set of String)
61+
- `name` (String)
5762
- `project` (String)
63+
- `space_id` (String)
5864

5965

6066
<a id="nestedatt--bitbucket_cloud"></a>
@@ -78,12 +84,24 @@ Read-Only:
7884

7985
Read-Only:
8086

87+
- `description` (String)
88+
- `id` (String)
89+
- `is_default` (Boolean)
90+
- `labels` (Set of String)
91+
- `name` (String)
8192
- `namespace` (String)
93+
- `space_id` (String)
8294

8395

8496
<a id="nestedatt--gitlab"></a>
8597
### Nested Schema for `gitlab`
8698

8799
Read-Only:
88100

101+
- `description` (String)
102+
- `id` (String)
103+
- `is_default` (Boolean)
104+
- `labels` (Set of String)
105+
- `name` (String)
89106
- `namespace` (String)
107+
- `space_id` (String)

docs/data-sources/stack.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,13 @@ Read-Only:
8888

8989
Read-Only:
9090

91+
- `description` (String)
92+
- `id` (String)
93+
- `is_default` (Boolean)
94+
- `labels` (Set of String)
95+
- `name` (String)
9196
- `project` (String)
97+
- `space_id` (String)
9298

9399

94100
<a id="nestedatt--bitbucket_cloud"></a>
@@ -123,15 +129,27 @@ Read-Only:
123129

124130
Read-Only:
125131

132+
- `description` (String)
133+
- `id` (String)
134+
- `is_default` (Boolean)
135+
- `labels` (Set of String)
136+
- `name` (String)
126137
- `namespace` (String)
138+
- `space_id` (String)
127139

128140

129141
<a id="nestedatt--gitlab"></a>
130142
### Nested Schema for `gitlab`
131143

132144
Read-Only:
133145

146+
- `description` (String)
147+
- `id` (String)
148+
- `is_default` (Boolean)
149+
- `labels` (Set of String)
150+
- `name` (String)
134151
- `namespace` (String)
152+
- `space_id` (String)
135153

136154

137155
<a id="nestedatt--kubernetes"></a>

docs/data-sources/stacks.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,13 @@ Read-Only:
185185

186186
Read-Only:
187187

188+
- `description` (String)
189+
- `id` (String)
190+
- `is_default` (Boolean)
191+
- `labels` (Set of String)
192+
- `name` (String)
188193
- `project` (String)
194+
- `space_id` (String)
189195

190196

191197
<a id="nestedobjatt--stacks--bitbucket_cloud"></a>
@@ -220,15 +226,27 @@ Read-Only:
220226

221227
Read-Only:
222228

229+
- `description` (String)
230+
- `id` (String)
231+
- `is_default` (Boolean)
232+
- `labels` (Set of String)
233+
- `name` (String)
223234
- `namespace` (String)
235+
- `space_id` (String)
224236

225237

226238
<a id="nestedobjatt--stacks--gitlab"></a>
227239
### Nested Schema for `stacks.gitlab`
228240

229241
Read-Only:
230242

243+
- `description` (String)
244+
- `id` (String)
245+
- `is_default` (Boolean)
246+
- `labels` (Set of String)
247+
- `name` (String)
231248
- `namespace` (String)
249+
- `space_id` (String)
232250

233251

234252
<a id="nestedobjatt--stacks--kubernetes"></a>

docs/resources/module.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ Required:
7373

7474
- `project` (String) The name of the Azure DevOps project
7575

76+
Optional:
77+
78+
- `id` (String) ID of the Azure Devops integration. If not specified, the default integration will be used.
79+
80+
Read-Only:
81+
82+
- `description` (String) Description of the Azure Devops integration
83+
- `is_default` (Boolean) Indicates whether this is the default Azure Devops integration
84+
- `labels` (Set of String) Labels of the Azure Devops integration
85+
- `name` (String) Name of the Azure Devops integration
86+
- `space_id` (String) ID (slug) of the space the Azure Devops integration is in
87+
7688

7789
<a id="nestedblock--bitbucket_cloud"></a>
7890
### Nested Schema for `bitbucket_cloud`
@@ -97,6 +109,10 @@ Required:
97109

98110
- `namespace` (String) The GitHub organization / user the repository belongs to
99111

112+
Optional:
113+
114+
- `id` (String) The ID of the GitHub Enterprise integration. If not specified, the default integration will be used.
115+
100116

101117
<a id="nestedblock--gitlab"></a>
102118
### Nested Schema for `gitlab`
@@ -105,6 +121,18 @@ Required:
105121

106122
- `namespace` (String) The GitLab namespace containing the repository
107123

124+
Optional:
125+
126+
- `id` (String) ID of the Gitlab integration. If not specified, the default integration will be used.
127+
128+
Read-Only:
129+
130+
- `description` (String) Description of the Gitlab integration
131+
- `is_default` (Boolean) Indicates whether this is the default Gitlab integration
132+
- `labels` (Set of String) Labels of the Gitlab integration
133+
- `name` (String) Name of the Gitlab integration
134+
- `space_id` (String) ID (slug) of the space the Gitlab integration is in
135+
108136
## Import
109137

110138
Import is supported using the following syntax:

docs/resources/stack.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ Required:
257257

258258
- `project` (String) The name of the Azure DevOps project
259259

260+
Optional:
261+
262+
- `id` (String) The ID of the Azure Devops integration. If not specified, the default integration will be used.
263+
260264

261265
<a id="nestedblock--bitbucket_cloud"></a>
262266
### Nested Schema for `bitbucket_cloud`
@@ -292,6 +296,10 @@ Required:
292296

293297
- `namespace` (String) The GitHub organization / user the repository belongs to
294298

299+
Optional:
300+
301+
- `id` (String) The ID of the GitHub Enterprise integration. If not specified, the default integration will be used.
302+
295303

296304
<a id="nestedblock--gitlab"></a>
297305
### Nested Schema for `gitlab`
@@ -300,6 +308,10 @@ Required:
300308

301309
- `namespace` (String) The GitLab namespace containing the repository
302310

311+
Optional:
312+
313+
- `id` (String) The ID of the Gitlab integration. If not specified, the default integration will be used.
314+
303315

304316
<a id="nestedblock--kubernetes"></a>
305317
### Nested Schema for `kubernetes`

0 commit comments

Comments
 (0)