Skip to content

Commit

Permalink
Merge pull request #99 from Alokit-Innovations/akg/setup_api_bugfix
Browse files Browse the repository at this point in the history
bug fix: setup API expects user_id, we were sending userId
  • Loading branch information
tapishr authored Mar 25, 2024
2 parents c294879 + 3fe1e31 commit 7d6fd55
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Vibinex Code Review",
"version": "1.1.5",
"version": "1.1.6",
"manifest_version": 3,
"description": "Personalization and context for pull requests on GitHub & Bitbucket",
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsRm6EaBdHDBxVjt9o9WKeL9EDdz1X+knDAU5uoZaRsXTmWjslhJN9DhSd7/Ys4aJOSN+s+5/HnIHcKV63P4GYaUM5FhETHEWORHlwIgjcV/1h6wD6bNbvXi06gtiygE+yMrCzzD93/Z+41XrwMElYiW2U5owNpat2Yfq4p9FDX1uBJUKsRIMp6LbRQla4vAzH/HMUtHWmeuUsmPVzcq1b6uB1QmuJqIQ1GrntIHw3UBWUlqRZ5OtxI1DCP3knglvqz26WT5Pc4GBDNlcI9+3F0vhwqwHqrdyjZpIKZ7iaQzcrovOqUKuXs1J3hDtXq8WoJELIqfIisY7rhAvq6b8jQIDAQAB",
Expand Down
6 changes: 2 additions & 4 deletions scripts/orchestrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ const orchestrator = async (tabUrl, websiteUrl, userId) => {
"repo_name": repoName,
"user_id": userId,
"pr_number": prNumber,
"repo_provider": 'github',
"is_github": true
"repo_provider": 'github'
};
let query_params = { type: "file" };
const response = await apiCallOnprem(url, body, query_params);
Expand Down Expand Up @@ -119,8 +118,7 @@ const orchestrator = async (tabUrl, websiteUrl, userId) => {
"repo_name": repoName,
"user_id": userId,
"pr_number": prNumber,
"repo_provider": 'bitbucket',
"is_github": false
"repo_provider": 'bitbucket'
};
let query_params = { type: "file" };
const response = await apiCallOnprem(url, body, query_params);
Expand Down
4 changes: 2 additions & 2 deletions scripts/repoHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ async function getTrackedRepos(owner, userId, repoHost) {
let url = ''
switch (repoHost) {
case 'github':
body = { owner: owner, userId: userId, provider: 'github' }
body = { owner: owner, user_id: userId, provider: 'github' }
url = `${websiteUrl}/api/extension/setup`;
break;
case 'bitbucket':
body = { owner: owner, userId: userId, provider: 'bitbucket' }
body = { owner: owner, user_id: userId, provider: 'bitbucket' }
url = `${websiteUrl}/api/extension/setup`;
break;
default:
Expand Down

0 comments on commit 7d6fd55

Please sign in to comment.