mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 18:27:19 +00:00
circleci project name issue fixed
This commit is contained in:
@@ -350,7 +350,7 @@ const getAppsCircleci = async ({ accessToken }: { accessToken: string }) => {
|
|||||||
|
|
||||||
const res = (
|
const res = (
|
||||||
await axios.get(
|
await axios.get(
|
||||||
`${INTEGRATION_CIRCLECI_API_URL}/v2/pipeline/?org-slug=${slug}`,
|
`${INTEGRATION_CIRCLECI_API_URL}/v2/insights/${slug}/summary`,
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
"Circle-Token": accessToken,
|
"Circle-Token": accessToken,
|
||||||
@@ -358,11 +358,13 @@ const getAppsCircleci = async ({ accessToken }: { accessToken: string }) => {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
).data?.items;
|
).data
|
||||||
|
|
||||||
apps = res.map((a: any) => ({
|
apps = res?.all_projects?.map((a: any) => {
|
||||||
name: a?.project_slug?.split("/")[2],
|
return {
|
||||||
}));
|
name: a
|
||||||
|
}
|
||||||
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
Sentry.setUser(null);
|
Sentry.setUser(null);
|
||||||
Sentry.captureException(err);
|
Sentry.captureException(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user