Skip to content

Commit

Permalink
Adding suspended_at attribute to github_user data source (integration…
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobinsonsre authored Mar 11, 2022
1 parent 0f7431d commit d8fe098
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions github/data_source_github_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions website/docs/d/user.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit d8fe098

Please sign in to comment.