-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Further tweaks for #168 #169
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Final tweaks for #168. This should be merged into the
issue-124/exit_on_failures
branch before #168 is merged in. That PR is looking pretty good, but there were a lot of places we can/should refactor, and some places we absolutely needed to refactor so we can test the new changes.This PR:
slack_monkey_patch.js
for future developers to help determine if the monkey patching is still necessary.Object.assign()
polyfill fromlib/slack-messages.js
- this requires node.js version > 8.3.0Logger
out fromtests/dummy-robot.js
into its own modulerobot_name
argument to dummyRobot
mock, to better mirror actualRobot
constructorapi
andclient
variables (bothst2client.js
instances) toapi_client
andauth_client
inscripts/stackstorm.js
var
declarations into onehubotErrorCallback
andexitProcessWithLog
intoLogErrorAndExit
, which is now used to handle uncaught exceptions within Hubot, and is explicitly called when we cannot recover from re/connection attemptsloadCommands
to not accept an options object parameter, since we should always simply die if we can't connect or load commandspromise = authenticate();
into anelse
block to prevent it from running while the robot is stoppingvar [var1, var2, var3] = [1, 2, 3];
) since we can now that we're using Node.js > 8onerror
handleruncaughtException
handler for hubotsource
parameter tostream
, since that makes slightly more sense