-
Notifications
You must be signed in to change notification settings - Fork 777
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
New Data Source: github_repository #109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few minor nits but this otherwise LGTM 👍
d.Set("archived", repo.Archived) | ||
d.Set("topics", flattenStringList(repo.Topics)) | ||
|
||
d.SetId(repoName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor shouldn't this be above the d.Set()'s incase there's a crash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, I'll move it.
d.Set("git_clone_url", repo.GitURL) | ||
d.Set("http_clone_url", repo.CloneURL) | ||
d.Set("archived", repo.Archived) | ||
d.Set("topics", flattenStringList(repo.Topics)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this is a complex object, can we check for errors here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, good idea, I'll add the check.
d734621
to
afdfd08
Compare
Addressed both comments & Travis green & acceptance tests still passing. |
…-repository New Data Source: github_repository
Acceptance Tests