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

main #44

Merged
merged 1 commit into from
Mar 7, 2024
Merged

main #44

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
9 changes: 5 additions & 4 deletions src/main/java/org/keycloak/gh/bot/BugActionsOnComment.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ public class BugActionsOnComment {
void onCommentCreated(@IssueComment.Created GHEventPayload.IssueComment payload) throws IOException {
if (Labels.hasLabel(payload.getIssue(), Kind.BUG.toLabel())) {
Action action = getAction(payload.getComment().getBody());

GHUser sender = payload.getSender();
if (sender.getType().equals("User") && sender.isMemberOf(payload.getOrganization())) {
bugActions.runAction(action, payload.getIssue());
if (action != null) {
GHUser sender = payload.getSender();
if (sender.getType().equals("User") && sender.isMemberOf(payload.getOrganization())) {
bugActions.runAction(action, payload.getIssue());
}
}
}
}
Expand Down
Loading