Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions github/resource_github_emu_group_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func resourceGithubEMUGroupMapping() *schema.Resource {
Description: "Manages the mapping of an external group to a GitHub team.",
Schema: map[string]*schema.Schema{
"team_id": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
Description: "ID of the GitHub team.",
},
Expand Down Expand Up @@ -99,7 +99,7 @@ func resourceGithubEMUGroupMappingCreate(ctx context.Context, d *schema.Resource
return diag.FromErr(err)
}

if err := d.Set("team_id", teamID); err != nil {
if err := d.Set("team_id", int(teamID)); err != nil {
return diag.FromErr(err)
}

Expand Down Expand Up @@ -334,7 +334,7 @@ func resourceGithubEMUGroupMappingImport(ctx context.Context, d *schema.Resource
return nil, err
}

if err := d.Set("team_id", teamID); err != nil {
if err := d.Set("team_id", int(teamID)); err != nil {
return nil, err
}

Expand Down
2 changes: 1 addition & 1 deletion github/resource_github_emu_group_mapping_migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func resourceGithubEMUGroupMappingStateUpgradeV0(ctx context.Context, rawState m
if err != nil {
return nil, err
}
rawState["team_id"] = teamID
rawState["team_id"] = int(teamID)
resourceID, err := buildID(strconv.FormatInt(teamID, 10), teamSlug, strconv.FormatInt(group.GetGroupID(), 10))
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ go 1.24.4

require (
github.com/go-jose/go-jose/v3 v3.0.4
github.com/google/go-cmp v0.7.0
github.com/google/go-github/v82 v82.0.0
github.com/google/uuid v1.6.0
github.com/hashicorp/go-cty v1.5.0
Expand All @@ -22,6 +21,7 @@ require (
github.com/cloudflare/circl v1.6.1 // indirect
github.com/fatih/color v1.18.0 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/go-querystring v1.2.0 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
Expand Down