Skip to content

Commit 4473602

Browse files
marouxkfcampbellnickfloyd
authored
Add resource for authoritative repo access management (#1121)
* Add resource for authoritative repo access management Fixes #395 * fixes after testing * Tests * Bump to v48 * docs * review comments * also add line to github_team_repository * env * support for custom role and move to using slug instead of team id * v50 * more v50 * inverse * Vague function rename --------- Co-authored-by: Keegan Campbell <[email protected]> Co-authored-by: Nick Floyd <[email protected]>
1 parent 5e9bbc4 commit 4473602

9 files changed

+1262
-8
lines changed

github/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ func Provider() terraform.ResourceProvider {
125125
"github_repository": resourceGithubRepository(),
126126
"github_repository_autolink_reference": resourceGithubRepositoryAutolinkReference(),
127127
"github_repository_collaborator": resourceGithubRepositoryCollaborator(),
128+
"github_repository_collaborators": resourceGithubRepositoryCollaborators(),
128129
"github_repository_deploy_key": resourceGithubRepositoryDeployKey(),
129130
"github_repository_environment": resourceGithubRepositoryEnvironment(),
130131
"github_repository_file": resourceGithubRepositoryFile(),

github/provider_utils.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import (
77
"testing"
88
)
99

10-
var testCollaborator string = os.Getenv("GITHUB_TEST_COLLABORATOR")
11-
var isEnterprise string = os.Getenv("ENTERPRISE_ACCOUNT")
12-
var testEnterprise string = os.Getenv("ENTERPRISE_SLUG")
13-
var testOrganization string = testOrganizationFunc()
14-
var testOwner string = os.Getenv("GITHUB_OWNER")
15-
var testToken string = os.Getenv("GITHUB_TOKEN")
16-
var testBaseURLGHES string = os.Getenv("GHES_BASE_URL")
10+
var testCollaborator = os.Getenv("GITHUB_TEST_COLLABORATOR")
11+
var isEnterprise = os.Getenv("ENTERPRISE_ACCOUNT")
12+
var testEnterprise = os.Getenv("ENTERPRISE_SLUG")
13+
var testOrganization = testOrganizationFunc()
14+
var testOwner = os.Getenv("GITHUB_OWNER")
15+
var testToken = os.Getenv("GITHUB_TOKEN")
16+
var testBaseURLGHES = os.Getenv("GHES_BASE_URL")
1717

1818
func testAccPreCheck(t *testing.T) {
1919
if v := os.Getenv("GITHUB_TOKEN"); v == "" {

0 commit comments

Comments
 (0)