ParameterizedBuilds / parameterized-builds

Other
31 stars 27 forks source link

Is there any way to find where the app is used in Bitbucket server? #549

Open christosmoysiadis opened 11 months ago

christosmoysiadis commented 11 months ago

Is there any way to find in which projects / repositories the app is used in Bitbucket server?

Delem-Maikel-Bloemendal commented 11 months ago

Actually we did this using the rest API:

rest/api/1.0/projects/{project_key}/repos/{repo_key}/settings/hooks/{hook_key}/settings

christosmoysiadis commented 11 months ago

Hey @Delem-Maikel-Bloemendal , so i need 3 parameters to find if the app is used or not. Well, its not that convenient i can say. And i am telling this because i have more than 80 projects, with a lot of repos and i do not really know how many hooks.

Is there maybe any script which i could run with Scriptrunner or even an SQL query?