Hi,
I hope this email finds you well. I am currently working on developing a Gerrit plugin that aims to automate code review by listening to patch submissions. However, I'm facing some challenges with the implementation and would greatly appreciate your assistance in resolving them.
Here is a snippet of my code:
@Listen
@Slf4j
public class GerritEventListener implements EventListener {
@Override
public void onEvent(Event event) {
log.info("GerritEventListener works, event:{}", event);
}
}
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/9e6e0713-dbfe-4e85-a1b3-99ef36cdad9bn%40googlegroups.com.
I have found the problem. The event registration should be done as follows:
DynamicSet.bind(binder(), EventListener.class).to(GerritEventListener.class);
Previously, I mistakenly wrote it like this:
bind(EventListener.class).to(GerritEventListener.class).谢龙 <xielo...@gmail.com> 于2023年6月13日周二 10:21写道:Thank you for your response. Here's the specific situation: When engineers submit a patch, my automated code review program is able to retrieve the patch information and send it to GPT for assistance with the review process. The review results are then written in the comments.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CA%2BdyW3YpVPwBLnHewsV_MndJ%3DcV%3DBYWcnTibRu0pBH5vkLSEZw%40mail.gmail.com.