Skip to content

Commit

Permalink
Added orgname in github_orgranization attributes (integrations#1052)
Browse files Browse the repository at this point in the history
Co-authored-by: Keegan Campbell <kfcampbell@github.com>
  • Loading branch information
2 people authored and kazaker committed Dec 28, 2022
1 parent 59feead commit 033f875
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions github/data_source_github_organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ func dataSourceGithubOrganization() *schema.Resource {
Type: schema.TypeString,
Required: true,
},
"orgname": {
Type: schema.TypeString,
Computed: true,
},
"node_id": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -118,6 +122,7 @@ func dataSourceGithubOrganizationRead(d *schema.ResourceData, meta interface{})
d.SetId(strconv.FormatInt(organization.GetID(), 10))
d.Set("login", organization.GetLogin())
d.Set("name", organization.GetName())
d.Set("orgname", name)
d.Set("description", organization.GetDescription())
d.Set("plan", planName)
d.Set("repositories", repoList)
Expand Down

0 comments on commit 033f875

Please sign in to comment.