Skip to content

Commit 390f79b

Browse files
committed
chore: Deprecate duplicate org team role resources
Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
1 parent 78196d6 commit 390f79b

6 files changed

+20
-8
lines changed

github/data_source_github_organization_security_managers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import (
99

1010
func dataSourceGithubOrganizationSecurityManagers() *schema.Resource {
1111
return &schema.Resource{
12+
DeprecationMessage: "This data source is deprecated in favour of using the github_organization_role_team data source.",
13+
1214
Read: dataSourceGithubOrganizationSecurityManagersRead,
1315

1416
Schema: map[string]*schema.Schema{

github/resource_github_organization_role_team_assignment.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import (
1111

1212
func resourceGithubOrganizationRoleTeamAssignment() *schema.Resource {
1313
return &schema.Resource{
14+
DeprecationMessage: "This resource is deprecated in favor of the github_organization_role_team resource.",
15+
1416
Create: resourceGithubOrganizationRoleTeamAssignmentCreate,
1517
Read: resourceGithubOrganizationRoleTeamAssignmentRead,
1618
Delete: resourceGithubOrganizationRoleTeamAssignmentDelete,

github/resource_github_organization_security_manager.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212

1313
func resourceGithubOrganizationSecurityManager() *schema.Resource {
1414
return &schema.Resource{
15+
DeprecationMessage: "This resource is deprecated in favor of the github_organization_role_team resource.",
16+
1517
Create: resourceGithubOrganizationSecurityManagerCreate,
1618
Read: resourceGithubOrganizationSecurityManagerRead,
1719
Update: resourceGithubOrganizationSecurityManagerUpdate,

website/docs/d/organization_security_managers.html.markdown

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ description: |-
77

88
# github_organization_security_managers
99

10+
~> **Note:** This data source is deprecated, please use the `github_organization_role_team` resource instead.
11+
1012
Use this data source to retrieve the security managers for an organization.
1113

1214
## Example Usage
@@ -17,13 +19,13 @@ data "github_organization_security_managers" "test" {}
1719

1820
## Attributes Reference
1921

20-
* `teams` - An list of GitHub teams. Each `team` block consists of the fields documented below.
22+
* `teams` - An list of GitHub teams. Each `team` block consists of the fields documented below.
2123

22-
___
24+
---___
2325

2426
The `team` block consists of:
2527

26-
* `id` - Unique identifier of the team.
27-
* `slug` - Name based identifier of the team.
28-
* `name` - Name of the team.
29-
* `permission` - Permission that the team will have for its repositories.
28+
* `id` - Unique identifier of the team.
29+
* `slug` - Name based identifier of the team.
30+
* `name` - Name of the team.
31+
* `permission` - Permission that the team will have for its repositories.

website/docs/r/organization_role_team_assignment.html.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ description: |-
77

88
# github_organization_role_team_assignment
99

10+
~> **Note:** This resource is deprecated, please use the `github_organization_role_team` resource instead.
11+
1012
This resource manages relationships between teams and organization roles
1113
in your GitHub organization. This works on predefined roles, and custom roles, where the latter is an Enterprise feature.
1214

@@ -39,6 +41,6 @@ The following arguments are supported:
3941

4042
GitHub Team Organization Role Assignment can be imported using an ID made up of `team_slug:role_id`
4143

42-
```
44+
```text
4345
$ terraform import github_organization_role_team_assignment.role_assignment test-team:8132
4446
```

website/docs/r/organization_security_manager.html.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ description: |-
77

88
# github_organization_security_manager
99

10+
~> **Note:** This resource is deprecated, please use the `github_organization_role_team` resource instead.
11+
1012
## Example Usage
1113

1214
```hcl
@@ -30,6 +32,6 @@ The following arguments are supported:
3032

3133
GitHub Security Manager Teams can be imported using the GitHub team ID e.g.
3234

33-
```
35+
```text
3436
$ terraform import github_organization_security_manager.core 1234567
3537
```

0 commit comments

Comments
 (0)