From 0f94cc25212a401f7377ef95539cc87ea8a01bf3 Mon Sep 17 00:00:00 2001 From: Kavinraja Ganesan <62742678+Kavinraja-G@users.noreply.github.com> Date: Sat, 26 Mar 2022 02:41:30 +0530 Subject: [PATCH] Added orgname in github_orgranization attributes (#1052) Co-authored-by: Keegan Campbell --- github/data_source_github_organization.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/github/data_source_github_organization.go b/github/data_source_github_organization.go index 75bed75a99..31a460ed1d 100644 --- a/github/data_source_github_organization.go +++ b/github/data_source_github_organization.go @@ -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, @@ -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)