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

Change "event names" for automation events #71

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ public Collection<Runnable> handlers(ReportingConfig reportingConfig, JiraAction
return List.of(new JiraTransitionActionEventHandler(reportingConfig, context, event));
}
},
FIX_VERSION_CHANGED("jira:issue_update_fixversions") {
FIX_VERSION_CHANGED("jira:issue_update_fixversion") {
@Override
public Collection<Runnable> handlers(ReportingConfig reportingConfig, JiraActionEvent event,
HandlerProjectContext context) {
return List.of(new JiraFixVersionActionEventHandler(reportingConfig, context, event));
}
},
AFFECTS_VERSION_CHANGED("jira:issue_update_versions") {
AFFECTS_VERSION_CHANGED("jira:issue_update_version") {
@Override
public Collection<Runnable> handlers(ReportingConfig reportingConfig, JiraActionEvent event,
HandlerProjectContext context) {
Expand All @@ -62,7 +62,7 @@ public static Optional<JiraActionEventType> of(String webhookEvent) {
return Optional.empty();
}
for (JiraActionEventType value : values()) {
if (value.name.equals(webhookEvent.toLowerCase(Locale.ROOT))) {
if (value.name.equals(webhookEvent.toLowerCase(Locale.ROOT).replace(" ", ""))) {
return Optional.of(value);
}
}
Expand Down
Loading