We are writing a plugin for Bitbucket using the Java API. Our plugin needs to retrieve audit log entries that resulted from specific events, such as RepositoryAccessedEvent or ProjectCreatedEvent.
Currently I am using the new AuditSearchService (from the Audit API) to get "AuditEntities".
These audit entities have a field auditType which has a field "action".
In some cases the action matches the event but in some cases like RepositoryCreatedEvent the action is just "Repository created".
Why is that? And is there a way I can be sure to always get the event name?
King regards,
Tuana