Skip to content
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

Use new IM-plugin support for "Bot.commandPrefixRequired" toggle [JENKINS-17380, JENKINS-58927] #214

Merged
merged 4 commits into from
Jan 22, 2024

Conversation

jimklimov
Copy link
Contributor

As posted in https://issues.jenkins.io/browse/JENKINS-17380 and https://issues.jenkins.io/browse/JENKINS-58927 currently the IRC Bot allows interaction via private chats (admin to bot) as opposed to group channels; however this still requires using the command prefix or nickname prefix - which is cumbersome in an already individualized private chat.

The culprit was in the common instant-messaging-plugin, where it recognizes if the message is of interest to the bot, by requiring those prefixes. A viable solution (also backwards-compatible for users who would continue to use the prefixes) is to have an option to not-require the prefix and just try using any received message, if the consumer plugin told this bot instance to do so (not default!) See jenkinsci/instant-messaging-plugin#210 for the upstream change.

After merging and releasing an IM plugin iteration with this change, there need to be fixes applied to this plugin to use the new constructor API for private chats.

CC @Flowdalic : You may want to update jabber-plugin similarly?

Testing done

TBD

Submitter checklist

Signed-off-by: Jim Klimov <jimklimov+jenkinsci@gmail.com>
…l; fix small typo

Signed-off-by: Jim Klimov <jimklimov+jenkinsci@gmail.com>
…to not require a commandPrefix (on IRCPrivateChat) [JENKINS-17380, JENKINS-58927]

Signed-off-by: Jim Klimov <jimklimov+jenkinsci@gmail.com>
@jimklimov jimklimov requested a review from a team as a code owner January 22, 2024 11:46
@jimklimov jimklimov added java Pull requests that update Java code enhancement labels Jan 22, 2024
Signed-off-by: Jim Klimov <jimklimov+jenkinsci@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant