docs/contrib/bugsnag.md
require 'contrib/bugsnag.php';
Since you should only notify Bugsnag of a successful deployment, the bugsnag:notify task should be executed right at the end.
after('deploy', 'bugsnag:notify');
Notifies Bugsnag of deployment.