Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding suspended_at attribute to github_user data source #1070

Merged
merged 1 commit into from
Mar 11, 2022
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
5 changes: 5 additions & 0 deletions github/data_source_github_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,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 @@ -149,6 +153,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 @@ -53,3 +53,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.