Skip to content

Commit

Permalink
Merge pull request #116 from vibinex/akg/change-alokit-to-vibinex
Browse files Browse the repository at this point in the history
minor: changed 'Alokit-Innovations' to 'vibinex'.
  • Loading branch information
tapishr authored Oct 4, 2024
2 parents d389673 + 8f8ba04 commit b17605f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 24 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/repo-profiler.yml

This file was deleted.

4 changes: 2 additions & 2 deletions bitbucket-test-trigger.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
# Clone the main repository
- name: 'gcr.io/cloud-builders/git'
args: ['clone', '--recursive', 'https://github.com/Alokit-Innovations/test-scripts.git']
args: ['clone', '--recursive', 'https://github.com/vibinex/test-scripts.git']

# Install Python dependencies
- name: 'gcr.io/cloud-builders/python'
Expand All @@ -12,7 +12,7 @@ steps:
- name: 'gcr.io/cloud-builders/python'
args: ['on-prem-bitbucket-tests.py']
dir: 'test-scripts'
env:
env:
- 'test_oauth_consumer_key=${_TEST_OAUTH_CONSUMER_KEY}'
- 'test_oauth_consumer_secret=${_TEST_OAUTH_CONSUMER_SECRET}'
- 'test_db_host=${_TEST_DB_HOST}'
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Vibinex Code Review",
"version": "1.2.8",
"version": "1.2.9",
"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 Expand Up @@ -45,4 +45,4 @@
]
}
]
}
}
14 changes: 7 additions & 7 deletions scripts/orchestrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const orchestrator = async (tabUrl, websiteUrl, userId) => {
const urlEnd = tabUrl.split('?')[1];
// for a possible case like https://github.com/AJAYK-01?tab=repositories&success=true
const searchParams = urlEnd !== undefined ? urlEnd.split('&') : [];

const relevanceApiUrl = `${websiteUrl}/api/extension/relevant`;

if (!userId && (urlObj[2] === 'github.com' || urlObj[2] === 'bitbucket.org')) {
Expand Down Expand Up @@ -54,7 +54,7 @@ const orchestrateGitHubUrls = async (userId, urlObj, searchParams, websiteUrl, r
else if (
(urlObj[3] && urlObj[4] == undefined && !searchParams.includes('tab=repositories')) ||
(urlObj[3] == 'orgs' && urlObj[4] && urlObj[5] === 'repositories')) {
// for woking on this url https://github.com/Alokit-Innovations or https://github.com/orgs/Alokit-Innovations/repositories?type=all type
// for working on this url https://github.com/vibinex or https://github.com/orgs/vibinex/repositories?type=all type
const orgName = (urlObj[3] === "orgs") ? urlObj[4] : urlObj[3];
const trackedRepos = await getTrackedRepos(orgName, userId, 'github');
updateTrackedReposInGitHub(trackedRepos, websiteUrl, 'org');
Expand Down Expand Up @@ -129,7 +129,7 @@ const handleGitHubRepoUrls = async (userId, urlObj, searchParams, websiteUrl, re

const orchestrateBitbucketUrls = async (userId, urlObj, searchParams, websiteUrl, relevanceApiUrl) => {
addSignedOutIndicator(websiteUrl, 'bitbucket');
// for showing tracked repo of a organization
// for showing tracked repo of a organization
if (urlObj[4] === 'workspace' && urlObj[5] === 'repositories') {
const workspaceSlug = urlObj[3];
const trackedRepos = await getTrackedRepos(workspaceSlug, userId, 'bitbucket');
Expand All @@ -140,7 +140,7 @@ const orchestrateBitbucketUrls = async (userId, urlObj, searchParams, websiteUrl
if (urlObj[5] === "pull-requests") {
const ownerName = urlObj[3];
const repoName = urlObj[4];
// for showing tracked pr of a repo
// for showing tracked pr of a repo
if (!urlObj[6]) {
const body = {
"repo_owner": ownerName,
Expand All @@ -157,7 +157,7 @@ const orchestrateBitbucketUrls = async (userId, urlObj, searchParams, websiteUrl
triggerBtnMutationObserver = null;
}
}
// for showing highlighted file in single pr and also for hunkLevel highlight
// for showing highlighted file in single pr and also for hunkLevel highlight
else if (urlObj[6]) {
const prNumber = parseInt(urlObj[6]);
// show trigger button on pull request page
Expand All @@ -181,7 +181,7 @@ const orchestrateBitbucketUrls = async (userId, urlObj, searchParams, websiteUrl
let query_params = { type: "file" };
const response = await apiCallOnprem(relevanceApiUrl, body, query_params);
FilesInPrBitbucket(response);
// for hunk level high light of each file
// for hunk level high light of each file
query_params = { type: "hunk" };
const hunkResponse = await apiCallOnprem(relevanceApiUrl, body, query_params);
bitBucketHunkHighlight(hunkResponse);
Expand All @@ -192,7 +192,7 @@ const orchestrateBitbucketUrls = async (userId, urlObj, searchParams, websiteUrl
const getThemeColor = () => {
const bgColor = window.getComputedStyle(document.body).getPropertyValue('background-color');

// Extract R, G, B values
// Extract R, G, B values
const match = /rgb\((\d+), (\d+), (\d+)\)/.exec(bgColor);

if (!match) {
Expand Down

0 comments on commit b17605f

Please sign in to comment.