Skip to content

Commit 3935cc9

Browse files
authored
Merge pull request #160 from contentstack/staging-1
Staging 1
2 parents 1605e8d + 407601e commit 3935cc9

3 files changed

Lines changed: 14 additions & 33 deletions

File tree

.github/CODEOWNERS

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
* @contentstack/security-admin
1+
* @contentstack/ghost-pr-reviewers
2+
3+
.github/workflows/sca-scan.yml @contentstack/security-admin
4+
5+
**/.snyk @contentstack/security-admin
6+
7+
.github/workflows/policy-scan.yml @contentstack/security-admin
8+
9+
.github/workflows/issues-jira.yml @contentstack/security-admin

.github/workflows/secrets-scan.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/utils/adapter.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ export const dispatchAdapter =
5858
*/
5959
export const dispatchApiRequest = async (
6060
url: string,
61-
options?: RequestInit
61+
options?: RequestInit,
62+
context?: {installationUID: string, extensionUID: string}
6263
): Promise<Response> => {
6364
try {
6465
const config = fetchToAxiosConfig(url, options);
6566
const axiosResponse = (await dispatchAdapter(PostRobot)(
66-
config
67+
config,
68+
context
6769
)) as AxiosResponse;
6870

6971
return axiosToFetchResponse(axiosResponse);
@@ -82,4 +84,4 @@ export const dispatchApiRequest = async (
8284
headers: err.config.headers,
8385
});
8486
}
85-
};
87+
};

0 commit comments

Comments
 (0)