{"action":"created","issue":{"url":"https://api.github.com/repos/inspec/inspec/issues/3383","repository_url":"https://api.github.com/repos/inspec/inspec","labels_url":"https://api.github.com/repos/inspec/inspec/issues/3383/labels{/name}","comments_url":"https://api.github.com/repos/inspec/inspec/issues/3383/comments","events_url":"https://api.github.com/repos/inspec/inspec/issues/3383/events","html_url":"https://github.com/inspec/inspec/pull/3383","id":359264539,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0Nzk4Mzc5","number":3383,"title":"Added db_name flag","user":{"login":"kdoores","id":28989290,"node_id":"MDQ6VXNlcjI4OTg5Mjkw","avatar_url":"https://avatars2.githubusercontent.com/u/28989290?v=4","gravatar_id":"","url":"https://api.github.com/users/kdoores","html_url":"https://github.com/kdoores","followers_url":"https://api.github.com/users/kdoores/followers","following_url":"https://api.github.com/users/kdoores/following{/other_user}","gists_url":"https://api.github.com/users/kdoores/gists{/gist_id}","starred_url":"https://api.github.com/users/kdoores/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdoores/subscriptions","organizations_url":"https://api.github.com/users/kdoores/orgs","repos_url":"https://api.github.com/users/kdoores/repos","events_url":"https://api.github.com/users/kdoores/events{/privacy}","received_events_url":"https://api.github.com/users/kdoores/received_events","type":"User","site_admin":false},"labels":[{"id":598262295,"node_id":"MDU6TGFiZWw1OTgyNjIyOTU=","url":"https://api.github.com/repos/inspec/inspec/labels/Type:%20New%20Feature","name":"Type: New Feature","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-11T23:49:57Z","updated_at":"2018-09-13T17:56:51Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/inspec/inspec/pulls/3383","html_url":"https://github.com/inspec/inspec/pull/3383","diff_url":"https://github.com/inspec/inspec/pull/3383.diff","patch_url":"https://github.com/inspec/inspec/pull/3383.patch"},"body":"Signed-off-by: Kayleigh <kayleigh.doores@gmail.com>\r\n\r\nBy default SQLCMD queries against the default dabase that is assigned to that users login.  Adding the `-d` flag allows for specifying a database outside of the default scope, that a user has access to.  I added `db_name` as a flag for the resource, and an example so that users know that it's there."},"comment":{"url":"https://api.github.com/repos/inspec/inspec/issues/comments/421096373","html_url":"https://github.com/inspec/inspec/pull/3383#issuecomment-421096373","issue_url":"https://api.github.com/repos/inspec/inspec/issues/3383","id":421096373,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTA5NjM3Mw==","user":{"login":"kdoores","id":28989290,"node_id":"MDQ6VXNlcjI4OTg5Mjkw","avatar_url":"https://avatars2.githubusercontent.com/u/28989290?v=4","gravatar_id":"","url":"https://api.github.com/users/kdoores","html_url":"https://github.com/kdoores","followers_url":"https://api.github.com/users/kdoores/followers","following_url":"https://api.github.com/users/kdoores/following{/other_user}","gists_url":"https://api.github.com/users/kdoores/gists{/gist_id}","starred_url":"https://api.github.com/users/kdoores/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdoores/subscriptions","organizations_url":"https://api.github.com/users/kdoores/orgs","repos_url":"https://api.github.com/users/kdoores/repos","events_url":"https://api.github.com/users/kdoores/events{/privacy}","received_events_url":"https://api.github.com/users/kdoores/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T17:56:51Z","updated_at":"2018-09-13T17:56:51Z","author_association":"NONE","body":"I removed the trailing whitespace and made the `unless` statement more readable and in in better position to match other `unless` statements of similar nature.  However the complexity max needs to be bumped to resolve that issue.  I tried sending empty strings but if you specify the `-d` flag, it wants a database.  It will no longer default to the users default database.  Therefore any type of if statement is necessary in that position to determine whether the `-d` flag should be used or not.  Is that change to the rubocop.yml file something you want me to do?  Or one you you guys that maintain the repo?"}}
{"actor":{"display_login":"kdoores"}}