Skip to content

Commit c2c2e07

Browse files
committed
Merge branch 'main' into ethan/user-data
2 parents 8e8e8c4 + dbc668d commit c2c2e07

File tree

2 files changed

+34
-25
lines changed

2 files changed

+34
-25
lines changed

.github/workflows/cla.yaml

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
name: "CLA Assistant"
2-
on:
3-
issue_comment:
4-
types: [created]
5-
pull_request_target:
6-
types: [opened,closed,synchronize]
1+
# uncomment when configured correctly
2+
# name: "CLA Assistant"
3+
# on:
4+
# issue_comment:
5+
# types: [created]
6+
# pull_request_target:
7+
# types: [opened,closed,synchronize]
78

8-
jobs:
9-
CLAssistant:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: "CLA Assistant"
13-
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
14-
uses: contributor-assistant/[email protected]
15-
env:
16-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17-
# the below token should have repo scope and must be manually added by you in the repository's secret
18-
PERSONAL_ACCESS_TOKEN : ${{ secrets.CDRCOMMUNITY_GITHUB_TOKEN }}
19-
with:
20-
remote-organization-name: 'coder'
21-
remote-repository-name: 'cla'
22-
path-to-signatures: 'v2022-09-04/signatures.json'
23-
path-to-document: 'https://github.com/coder/cla/blob/main/README.md'
24-
# branch should not be protected
25-
branch: 'main'
26-
allowlist: dependabot*
9+
# jobs:
10+
# CLAssistant:
11+
# runs-on: ubuntu-latest
12+
# steps:
13+
# - name: "CLA Assistant"
14+
# if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
15+
# uses: contributor-assistant/[email protected]
16+
# env:
17+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
# # the below token should have repo scope and must be manually added by you in the repository's secret
19+
# PERSONAL_ACCESS_TOKEN : ${{ secrets.CDRCOMMUNITY_GITHUB_TOKEN }}
20+
# with:
21+
# remote-organization-name: 'coder'
22+
# remote-repository-name: 'cla'
23+
# path-to-signatures: 'v2022-09-04/signatures.json'
24+
# path-to-document: 'https://github.com/coder/cla/blob/main/README.md'
25+
# # branch should not be protected
26+
# branch: 'main'
27+
# allowlist: dependabot*

internal/provider/user_data_source_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,20 @@ func TestAccUserDataSource(t *testing.T) {
5959
}
6060
6161
type testAccUserDataSourceConfig struct {
62+
URL string
63+
Token string
64+
6265
ID string
6366
Username string
6467
}
6568
6669
func (c testAccUserDataSourceConfig) String(t *testing.T) string {
6770
tpl := `
71+
provider coderd {
72+
url = "{{.URL}}"
73+
token = "{{.Token}}"
74+
}
75+
6876
data "coderd_user" "test" {
6977
{{- if .ID }}
7078
id = "{{ .ID }}"

0 commit comments

Comments
 (0)