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
Fix deploy_to_test bugs and define DEVELOPERS. #13681
Conversation
@@ -1,40 +1,42 @@ | |||
#!/usr/bin/env ruby | |||
|
|||
require_relative '../../deployment' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Necessary for the cdo
requires to be found.
raise unless current_topic.include? TOPIC_DTT_YES | ||
new_topic = current_topic.gsub(TOPIC_DTT_YES, TOPIC_DTT_IN_PROGRESS) | ||
Slack.update_topic(new_topic) | ||
Slack.update_topic(DEVELOPERS, new_topic) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, update topics require a room.
end | ||
|
||
def main | ||
unless dtt_yes? | ||
ChatClient.message( | ||
'infra-test', | ||
"robo-DTT skipped (\#developers topic is #{current_topic}).", | ||
'robo-DTT skipped (DTT was not yes)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, after some refactor change, current_topic
is not defined in this scope.
@@ -52,7 +54,7 @@ def main | |||
raise Exception.new('GitHub.create_and_merge_pull_request failed.') | |||
end | |||
|
|||
ChatClient.mesage( | |||
ChatClient.message( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, spelling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Really, the DEVELOPERS string should be in
ChatClient
orSlack
. This is planned in another PR, encompassing not just these usages but all usages of room names across our codebase.