packagecom.onresolve.stash.groovy.test.listeners.STASH_3850_block_personalimportcom.atlassian.stash.event.RepositoryCreationRequestedEventimportcom.atlassian.stash.project.ProjectTypedefevent=eventasRepositoryCreationRequestedEvent// block all personal repos being createdif(event.repository.project.type==ProjectType.PERSONAL){event.cancel("You cannot create personal repositories.")}
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.