{"action":"created","issue":{"url":"https://api.github.com/repos/redhat-cop/infra-ansible/issues/174","repository_url":"https://api.github.com/repos/redhat-cop/infra-ansible","labels_url":"https://api.github.com/repos/redhat-cop/infra-ansible/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/redhat-cop/infra-ansible/issues/174/comments","events_url":"https://api.github.com/repos/redhat-cop/infra-ansible/issues/174/events","html_url":"https://github.com/redhat-cop/infra-ansible/pull/174","id":333812938,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1OTM3Njg3","number":174,"title":"WIP: Slack user/channel creation role","user":{"login":"logandonley","id":25904700,"node_id":"MDQ6VXNlcjI1OTA0NzAw","avatar_url":"https://avatars3.githubusercontent.com/u/25904700?v=4","gravatar_id":"","url":"https://api.github.com/users/logandonley","html_url":"https://github.com/logandonley","followers_url":"https://api.github.com/users/logandonley/followers","following_url":"https://api.github.com/users/logandonley/following{/other_user}","gists_url":"https://api.github.com/users/logandonley/gists{/gist_id}","starred_url":"https://api.github.com/users/logandonley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logandonley/subscriptions","organizations_url":"https://api.github.com/users/logandonley/orgs","repos_url":"https://api.github.com/users/logandonley/repos","events_url":"https://api.github.com/users/logandonley/events{/privacy}","received_events_url":"https://api.github.com/users/logandonley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-19T19:46:38Z","updated_at":"2018-07-05T13:11:18Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/redhat-cop/infra-ansible/pulls/174","html_url":"https://github.com/redhat-cop/infra-ansible/pull/174","diff_url":"https://github.com/redhat-cop/infra-ansible/pull/174.diff","patch_url":"https://github.com/redhat-cop/infra-ansible/pull/174.patch"},"body":"### What does this PR do?\r\nAdds a role to create slack users and channels. This is copied from [https://github.com/rht-labs/ansible-stacks/pull/113](https://github.com/rht-labs/ansible-stacks/pull/113), created by @tadityar , which was posted in a now deprecated repo, so moving it here since it is useful.\r\n\r\n### How should this be tested?\r\nRun the tests.yml file in the roles/setup-slack/tests directory but add some variables:\r\n```\r\nslack_token: XXXXXXXXXXX  <--- Instructions on generating slack token are available in the role README\r\nslack_users:\r\n  - first_name: Brock\r\n    last_name: Lee\r\n    email: brock.lee@example.com\r\n    channels:\r\n      - \"test\"\r\nslack_channels:\r\n  - name: \"test\"\r\n    private: no\r\n```\r\nRun `ansible-playbook -i inventory test.yml` \r\n\r\n### Is there a relevant Issue open for this?\r\nProvide a link to any open issues that describe the problem you are solving.\r\nresolves #<number>\r\n\r\n### Other Relevant info, PRs, etc.\r\n\r\n### People to notify\r\ncc: @redhat-cop/infra-ansible\r\n"},"comment":{"url":"https://api.github.com/repos/redhat-cop/infra-ansible/issues/comments/402716746","html_url":"https://github.com/redhat-cop/infra-ansible/pull/174#issuecomment-402716746","issue_url":"https://api.github.com/repos/redhat-cop/infra-ansible/issues/174","id":402716746,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjcxNjc0Ng==","user":{"login":"logandonley","id":25904700,"node_id":"MDQ6VXNlcjI1OTA0NzAw","avatar_url":"https://avatars3.githubusercontent.com/u/25904700?v=4","gravatar_id":"","url":"https://api.github.com/users/logandonley","html_url":"https://github.com/logandonley","followers_url":"https://api.github.com/users/logandonley/followers","following_url":"https://api.github.com/users/logandonley/following{/other_user}","gists_url":"https://api.github.com/users/logandonley/gists{/gist_id}","starred_url":"https://api.github.com/users/logandonley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logandonley/subscriptions","organizations_url":"https://api.github.com/users/logandonley/orgs","repos_url":"https://api.github.com/users/logandonley/repos","events_url":"https://api.github.com/users/logandonley/events{/privacy}","received_events_url":"https://api.github.com/users/logandonley/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T13:11:18Z","updated_at":"2018-07-05T13:11:18Z","author_association":"COLLABORATOR","body":"@syvanen Thanks for taking a look at this. I created a fresh Slack workspace for testing this and it didn't work, but I'll give it another go."}}
{"actor":{"display_login":"logandonley"}}