From 66a4b9076d25e8998bdecd532a328ebcd063830a Mon Sep 17 00:00:00 2001 From: mrobinson-anaplan <78958462+mrobinson-anaplan@users.noreply.github.com> Date: Fri, 11 Mar 2022 18:42:59 +0000 Subject: [PATCH] Adding suspended_at attribute to github_user data source (#1070) --- github/data_source_github_user.go | 5 +++++ website/docs/d/user.html.markdown | 1 + 2 files changed, 6 insertions(+) diff --git a/github/data_source_github_user.go b/github/data_source_github_user.go index 0c623dedd0..e34d8600db 100644 --- a/github/data_source_github_user.go +++ b/github/data_source_github_user.go @@ -90,6 +90,10 @@ func dataSourceGithubUser() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "suspended_at": { + Type: schema.TypeString, + Computed: true, + }, "node_id": { Type: schema.TypeString, Computed: true, @@ -147,6 +151,7 @@ func dataSourceGithubUserRead(d *schema.ResourceData, meta interface{}) error { d.Set("following", user.GetFollowing()) d.Set("created_at", user.GetCreatedAt()) d.Set("updated_at", user.GetUpdatedAt()) + d.Set("suspended_at", user.GetSuspendedAt()) d.Set("node_id", user.GetNodeID()) return nil diff --git a/website/docs/d/user.html.markdown b/website/docs/d/user.html.markdown index 56ee6777f8..9b031a89e8 100644 --- a/website/docs/d/user.html.markdown +++ b/website/docs/d/user.html.markdown @@ -54,3 +54,4 @@ output "current_github_login" { * `following` - the number of following users. * `created_at` - the creation date. * `updated_at` - the update date. + * `suspended_at` - the suspended date if the user is suspended.