-
Notifications
You must be signed in to change notification settings - Fork 414
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
Implement bot-user support #258
Conversation
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.
Nice addition, I was wondering how to achieve bot messaging not coming from slackbot, so +1 for me!
public String getBuildServerUrl() { | ||
if(buildServerUrl == null || buildServerUrl == "") { | ||
if(buildServerUrl == null || "".equals(buildServerUrl)) { |
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.
You may even be tempted to use StringUtils.isBlank(buildServerUrl)
(https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/org/apache/commons/lang/StringUtils.html#isBlank(java.lang.String)) :-)
Any updates to my comments? Also there are a number of conflicts. |
@kmadel merge conflicts are now resolved. I'm confused about the comments, am I the target of these comments? Because I did not get any notification about it. |
@mtyurt Not sure why you didn't get notified. But yes, those comments were directed at you. Need 'Is Bot' specific help file. Also, please update the README.md to document this feature. My plan it move all documentation into README and direct users from the Jenkins Wiki to the README. And Thanks! |
@kmadel from your comment I understand all documentation should be in README file, however there aren't any documentation regarding configurations in README so far. I'll change the screenshot including bot user option, if we want to add bot-user explanation to README, I can add it after Security section as Also, the screenshots in current README file is not up-to-date. Adding new credentials screen has a different order of fields. I'm uploading the screenshot I took while testing with hpi. The credentials has |
@mtyurt Yes, please add Also, would be nice to get a few more thumbs up from a code review perspective. |
@kmadel it's done, can you guys have a look please? |
Feel free to subscribe to #296 for updates related to Slack Plugin 2.2 release. |
I have added a checkbox which indicates given token belongs to a bot user or not.
But why?
Recently, I have figured out that if I put @username to channel parameter, the plugin sends a direct message via @slackbot. But I didn't want @slackbot to send me a dm, a bot (preferably named jenkins-bot) should send me a dm. So here it is.