Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit ebb09c9

Browse files
authored
Remove Jira issue responder (#183)
1 parent fa99824 commit ebb09c9

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

src/main/java/org/jenkinsci/backend/ircbot/IrcListener.java

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ public void onMessage(MessageEvent e) {
108108
String payload = message.substring(directMessagePrefix.length()).trim();
109109
payload = payload.replaceAll("\\s+", " ");
110110
handleDirectCommand(channel, sender, payload);
111-
} else { // Just a commmon message in the chat
112-
replyBugStatuses(channel, message);
113111
}
114112
} catch (RuntimeException ex) { // Catch unhandled runtime issues
115113
ex.printStackTrace();
@@ -120,43 +118,6 @@ public void onMessage(MessageEvent e) {
120118
}
121119
}
122120

123-
private void replyBugStatuses(Channel channel, String message) {
124-
Matcher m = Pattern.compile("(?:hudson-|jenkins-|bug )([0-9]{2,})",CASE_INSENSITIVE).matcher(message);
125-
while (m.find()) {
126-
replyBugStatus(channel,"JENKINS-"+m.group(1));
127-
}
128-
129-
m = Pattern.compile("(?:infra-)([0-9]+)",CASE_INSENSITIVE).matcher(message);
130-
while (m.find()) {
131-
replyBugStatus(channel,"INFRA-"+m.group(1));
132-
}
133-
134-
m = Pattern.compile("(?:website-)([0-9]+)",CASE_INSENSITIVE).matcher(message);
135-
while (m.find()) {
136-
replyBugStatus(channel,"WEBSITE-"+m.group(1));
137-
}
138-
139-
m = Pattern.compile("(?:hosting-)([0-9]+)",CASE_INSENSITIVE).matcher(message);
140-
while (m.find()) {
141-
replyBugStatus(channel,"HOSTING-"+m.group(1));
142-
}
143-
144-
m = Pattern.compile("(?:events-)([0-9]+)",CASE_INSENSITIVE).matcher(message);
145-
while (m.find()) {
146-
replyBugStatus(channel,"EVENTS-"+m.group(1));
147-
}
148-
149-
m = Pattern.compile("(?:ux-)([0-9]+)",CASE_INSENSITIVE).matcher(message);
150-
while (m.find()) {
151-
replyBugStatus(channel,"UX-"+m.group(1));
152-
}
153-
154-
m = Pattern.compile("(?:test-)([0-9]+)",CASE_INSENSITIVE).matcher(message);
155-
while (m.find()) {
156-
replyBugStatus(channel,"TEST-"+m.group(1));
157-
}
158-
}
159-
160121
/**
161122
* Handles direct commands coming to the bot.
162123
* The handler presumes the external trimming of the payload.

0 commit comments

Comments
 (0)