From 5756ffb2317093f2ed7276a5b8ddeb214f6b145a Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Fri, 26 Apr 2024 19:43:14 +0200 Subject: [PATCH] feat: add apprisk catalog-info.yaml accept --- defaultFilters/apprisk/bitbucket-server.json | 11 +++++++++++ .../runtime-rules-hotloading.test.ts.snap | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/defaultFilters/apprisk/bitbucket-server.json b/defaultFilters/apprisk/bitbucket-server.json index 17a6bf29f..b5fb2517c 100644 --- a/defaultFilters/apprisk/bitbucket-server.json +++ b/defaultFilters/apprisk/bitbucket-server.json @@ -21,6 +21,17 @@ "password": "${BITBUCKET_PASSWORD}" } }, + { + "//": "used to retrieve organization context from catalog-info.yaml", + "method": "GET", + "path": "/projects/:projectKey/repos/:repo/raw/catalog-info.yaml", + "origin": "https://${BITBUCKET_API}", + "auth": { + "scheme": "basic", + "username": "${BITBUCKET_USERNAME}", + "password": "${BITBUCKET_PASSWORD}" + } + }, { "//": "list commit for a given repo", "method": "GET", diff --git a/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap b/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap index 9a8220e9b..ad40387bc 100644 --- a/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap +++ b/test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap @@ -1703,6 +1703,17 @@ Object { "origin": "https://\${BITBUCKET_API}", "path": "/projects/:projectKey/repos/:repo/commits/:commit/diff", }, + Object { + "//": "used to retrieve organization context from catalog-info.yaml", + "auth": Object { + "password": "\${BITBUCKET_PASSWORD}", + "scheme": "basic", + "username": "\${BITBUCKET_USERNAME}", + }, + "method": "GET", + "origin": "https://\${BITBUCKET_API}", + "path": "/projects/:projectKey/repos/:repo/raw/catalog-info.yaml", + }, Object { "//": "list commit for a given repo", "auth": Object {