From 8f8ba0434881b0b70bb7b5f21e4e6cb7289d99f4 Mon Sep 17 00:00:00 2001 From: Avikalp Kumar Gupta Date: Fri, 4 Oct 2024 19:17:48 +0530 Subject: [PATCH] minor: changed 'Alokit-Innovations' to 'vibinex'. Deleted the repo-profiler.yml from workflows --- .github/workflows/repo-profiler.yml | 13 ------------- bitbucket-test-trigger.yaml | 4 ++-- manifest.json | 4 ++-- scripts/orchestrator.js | 14 +++++++------- 4 files changed, 11 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/repo-profiler.yml diff --git a/.github/workflows/repo-profiler.yml b/.github/workflows/repo-profiler.yml deleted file mode 100644 index 599fdda..0000000 --- a/.github/workflows/repo-profiler.yml +++ /dev/null @@ -1,13 +0,0 @@ -on: - repository_dispatch: - types: repo_profile_execution -jobs: - profile: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Repository Profiler - uses: Alokit-Innovations/repo-profiler@main diff --git a/bitbucket-test-trigger.yaml b/bitbucket-test-trigger.yaml index bea6f4b..43e5ce5 100644 --- a/bitbucket-test-trigger.yaml +++ b/bitbucket-test-trigger.yaml @@ -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' @@ -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}' diff --git a/manifest.json b/manifest.json index 1e1b2ec..41a0bc4 100644 --- a/manifest.json +++ b/manifest.json @@ -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", @@ -45,4 +45,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/scripts/orchestrator.js b/scripts/orchestrator.js index db7ef4a..a42df95 100644 --- a/scripts/orchestrator.js +++ b/scripts/orchestrator.js @@ -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')) { @@ -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'); @@ -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'); @@ -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, @@ -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 @@ -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); @@ -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) {