Skip to content

Commit 5d6b6ed

Browse files
authored
Merge pull request #4 from form3tech-oss/bmcstdio-rename
Rename to 'form3tech-oss/terraform-provider-githubfile'.
2 parents 5ad0904 + caeb086 commit 5d6b6ed

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

githubfile/resource_file.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func resourceFileCreateOrUpdate(s string, d *schema.ResourceData, m interface{})
105105
Email: c.githubEmail,
106106
Changes: entries,
107107
RetryCount: 1,
108-
PullRequestSourceBranchName: fmt.Sprintf("terraform-provider-github-file-%d", time.Now().UnixNano()),
108+
PullRequestSourceBranchName: fmt.Sprintf("terraform-provider-githubfile-%d", time.Now().UnixNano()),
109109
PullRequestBody: "",
110110
}); err != nil {
111111
return fmt.Errorf("failed to create commit: %v", err)
@@ -156,7 +156,7 @@ func resourceFileDelete(d *schema.ResourceData, m interface{}) error {
156156
Email: c.githubEmail,
157157
Changes: newTree,
158158
BaseTreeOverride: github.String(""),
159-
PullRequestSourceBranchName: fmt.Sprintf("terraform-provider-github-file-%d", time.Now().UnixNano()),
159+
PullRequestSourceBranchName: fmt.Sprintf("terraform-provider-githubfile-%d", time.Now().UnixNano()),
160160
PullRequestBody: "",
161161
}); err != nil {
162162
return fmt.Errorf("failed to create commit: %v", err)

githubfile/resource_file_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const (
2828
testAccFileCreate = `
2929
resource "githubfile_file" "foo" {
3030
repository_owner = "form3tech-oss"
31-
repository_name = "terraform-provider-github-file-test"
31+
repository_name = "terraform-provider-githubfile-test"
3232
branch = "master"
3333
path = "foo/bar/baz/README.md"
3434
contents = "foo\nbar\nbaz"
@@ -37,7 +37,7 @@ resource "githubfile_file" "foo" {
3737
testAccFileUpdate = `
3838
resource "githubfile_file" "foo" {
3939
repository_owner = "form3tech-oss"
40-
repository_name = "terraform-provider-github-file-test"
40+
repository_name = "terraform-provider-githubfile-test"
4141
branch = "master"
4242
path = "foo/bar/baz/README.md"
4343
contents = "foo\nbar\nqux"
@@ -64,7 +64,7 @@ func TestAccResourceFile_basic(t *testing.T) {
6464
Config: testAccFileCreate,
6565
Check: resource.ComposeAggregateTestCheckFunc(
6666
testAccCheckFileExists(resourceName, &before),
67-
resource.TestCheckResourceAttr(resourceName, repositoryNameAttributeName, "terraform-provider-github-file-test"),
67+
resource.TestCheckResourceAttr(resourceName, repositoryNameAttributeName, "terraform-provider-githubfile-test"),
6868
resource.TestCheckResourceAttr(resourceName, repositoryOwnerAttributeName, "form3tech-oss"),
6969
resource.TestCheckResourceAttr(resourceName, branchAttributeName, "master"),
7070
resource.TestCheckResourceAttr(resourceName, pathAttributeName, "foo/bar/baz/README.md"),
@@ -80,7 +80,7 @@ func TestAccResourceFile_basic(t *testing.T) {
8080
Config: testAccFileUpdate,
8181
Check: resource.ComposeAggregateTestCheckFunc(
8282
testAccCheckFileExists(resourceName, &before),
83-
resource.TestCheckResourceAttr(resourceName, repositoryNameAttributeName, "terraform-provider-github-file-test"),
83+
resource.TestCheckResourceAttr(resourceName, repositoryNameAttributeName, "terraform-provider-githubfile-test"),
8484
resource.TestCheckResourceAttr(resourceName, repositoryOwnerAttributeName, "form3tech-oss"),
8585
resource.TestCheckResourceAttr(resourceName, branchAttributeName, "master"),
8686
resource.TestCheckResourceAttr(resourceName, pathAttributeName, "foo/bar/baz/README.md"),

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/form3tech-oss/terraform-provider-github-file
1+
module github.com/form3tech-oss/terraform-provider-githubfile
22

33
go 1.12
44

goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
archives:
22
- format: zip
33
builds:
4-
- binary: terraform-provider-github-file_v{{.Version}}
4+
- binary: terraform-provider-githubfile_v{{.Version}}
55
env:
66
- CGO_ENABLED=0
77
goarch:

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
package main
1616

1717
import (
18-
"github.com/form3tech-oss/terraform-provider-github-file/githubfile"
18+
"github.com/form3tech-oss/terraform-provider-githubfile/githubfile"
1919
"github.com/hashicorp/terraform/plugin"
2020
"github.com/hashicorp/terraform/terraform"
2121
)

0 commit comments

Comments
 (0)