Trigger an event upon Repo creation in a project


#1

Good Morning,
I am new to the entire platform and I was wondering if there were any webhooks for projects and not just the repo itself. For example, when a developer creates a repo within the project it needs to follow a flow for automation purposes, would the best way to go about this be to create a plugin? Or are there any event triggers that I’m skipping over.

Thanks for all your help.


#2

There are no webhooks at the project level, however you can create a java plugin that listens to the RepositoryCreatedEvent and do whatever configuration you need to do in order to set up your repository.

Here is an example of a plugin that does some repository configuration on creation.

Hope that helps,
Kristy