Skip to content

Commit

Permalink
fixed GH issue aliai being case senstive
Browse files Browse the repository at this point in the history
  • Loading branch information
htmlcsjs committed Jun 26, 2024
1 parent 01e1f55 commit 35a2e01
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public GithubIssueCommand() {
} else {
repo = split.get(0);
}
aliasMap.put(alias, repo);
aliasMap.put(alias.toLowerCase(), repo);
}
categoryAliasMap.clear();
for (String str : FloppaTomlConfig.channelAliases.split(";")) {
Expand All @@ -56,7 +56,7 @@ public GithubIssueCommand() {
} else {
repo = split.get(0);
}
categoryAliasMap.put(alias, repo);
categoryAliasMap.put(alias, repo.toLowerCase());
}
}

Expand Down Expand Up @@ -86,8 +86,8 @@ public String execute(Message message) {
issueList.add(new IssueListItem(aliasMap.get(categoryAliasMap.get(parentId.get().asString())), matchResult.group(2)));
}
}
} else if (aliasMap.containsKey(matchResult.group(1))){
issueList.add(new IssueListItem(aliasMap.get(matchResult.group(1)), matchResult.group(2)));
} else if (aliasMap.containsKey(matchResult.group(1).toLowerCase())){
issueList.add(new IssueListItem(aliasMap.get(matchResult.group(1).toLowerCase()), matchResult.group(2)));
}
});

Expand Down

0 comments on commit 35a2e01

Please sign in to comment.