{"action":"opened","issue":{"url":"https://api.github.com/repos/php-censor/php-censor/issues/233","repository_url":"https://api.github.com/repos/php-censor/php-censor","labels_url":"https://api.github.com/repos/php-censor/php-censor/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/php-censor/php-censor/issues/233/comments","events_url":"https://api.github.com/repos/php-censor/php-censor/issues/233/events","html_url":"https://github.com/php-censor/php-censor/issues/233","id":385754338,"node_id":"MDU6SXNzdWUzODU3NTQzMzg=","number":233,"title":"SlackNotify plugin kills worker process with error","user":{"login":"benr77","id":2156742,"node_id":"MDQ6VXNlcjIxNTY3NDI=","avatar_url":"https://avatars0.githubusercontent.com/u/2156742?v=4","gravatar_id":"","url":"https://api.github.com/users/benr77","html_url":"https://github.com/benr77","followers_url":"https://api.github.com/users/benr77/followers","following_url":"https://api.github.com/users/benr77/following{/other_user}","gists_url":"https://api.github.com/users/benr77/gists{/gist_id}","starred_url":"https://api.github.com/users/benr77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benr77/subscriptions","organizations_url":"https://api.github.com/users/benr77/orgs","repos_url":"https://api.github.com/users/benr77/repos","events_url":"https://api.github.com/users/benr77/events{/privacy}","received_events_url":"https://api.github.com/users/benr77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-29T14:11:04Z","updated_at":"2018-11-29T14:11:04Z","closed_at":null,"author_association":"NONE","body":"## Expected behavior\r\n\r\nThe worker process does not die when the build with `slack_notify` completes\r\n\r\n## Actual behavior\r\n\r\nI see the following error when the build completes, as it tries to notify slack as per the slack notify plugin.\r\n\r\n`Error: Class 'Maknz\\Slack\\Client' not found (uncaught exception) at /var/www/app/src/Plugin/SlackNotify.php line 86`\r\n\r\nI'm using Docker, and this kills off the worker container completely, meaning it has to be restarted before any further builds can be processed. \r\n\r\nSlack notify config:\r\n```\r\n    slack_notify:\r\n        webhook_url: 'https://hooks.slack.com/services/xxxxxxxxxxxxxxxxxxx\r\n        room: '#phpcensor'\r\n        username: 'PHPCensor'\r\n        icon: ':ghost:'\r\n        message: '%PROJECT_TITLE% - build %BUILD% completed'\r\n        show_status: true\r\n```\r\n\r\n## Steps to reproduce\r\n\r\nJust add that config to a build and the error should appear.\r\n\r\nPresumably this is just a missing dependency in the composer.json\r\n\r\n## Environment\r\n\r\n* PHP Censor 0.24\r\n* Docker\r\n* 7.2\r\n* MySQL\r\n"}}
{"actor":{"display_login":"benr77"}}