From c632935f6696ecd0858ee977c4f8315b41d56ab9 Mon Sep 17 00:00:00 2001 From: Daphne Yang Date: Tue, 28 May 2024 16:13:24 -0400 Subject: [PATCH] chore: sync changes from main repo to fork --- .../actions/check-feature-request/action.yml | 8 +-- .../check-feature-request/lib/src/index.js | 6 +- .../lib/src/index.js.map | 2 +- .../check-feature-request/src/index.ts | 6 +- .github/actions/new-issue/action.yml | 8 +-- .github/actions/new-issue/lib/src/index.js | 10 +-- .../actions/new-issue/lib/src/index.js.map | 2 +- .github/actions/new-issue/src/index.ts | 10 +-- .github/actions/validate-issue/action.yml | 8 +-- .../actions/validate-issue/lib/src/index.js | 14 +--- .../validate-issue/lib/src/index.js.map | 2 +- .../validate-issue/mock/sample-context.json | 70 ------------------- .github/actions/validate-issue/src/index.ts | 18 +---- .github/workflows/validateNewIssues.yml | 4 +- .github/workflows/validateUpdatedIssues.yml | 2 +- 15 files changed, 25 insertions(+), 145 deletions(-) delete mode 100644 .github/actions/validate-issue/mock/sample-context.json diff --git a/.github/actions/check-feature-request/action.yml b/.github/actions/check-feature-request/action.yml index db357599..9b67d9ff 100644 --- a/.github/actions/check-feature-request/action.yml +++ b/.github/actions/check-feature-request/action.yml @@ -1,13 +1,13 @@ # -# Copyright (c) 2023, salesforce.com, inc. +# Copyright (c) 2024, salesforce.com, inc. # All rights reserved. # Licensed under the BSD 3-Clause license. # For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause # -name: 'Salesforce CLI Validate Issues' -description: 'Validate information provided in an new Github issue.' -author: 'Eric Willhoit' +name: 'Salesforce Extensions Check Feature Request Bot' +description: 'Check if a newly created Github issue is a feature request.' +author: 'Daphne Yang' inputs: repo-token: required: true diff --git a/.github/actions/check-feature-request/lib/src/index.js b/.github/actions/check-feature-request/lib/src/index.js index a218e44b..7d1d5db2 100644 --- a/.github/actions/check-feature-request/lib/src/index.js +++ b/.github/actions/check-feature-request/lib/src/index.js @@ -1,6 +1,6 @@ "use strict"; /* - * Copyright (c) 2023, salesforce.com, inc. + * Copyright (c) 2024, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -10,8 +10,6 @@ const core_1 = require("@actions/core"); const github_1 = require("@actions/github"); async function run() { try { - // Uncomment for local testing - // const issue = JSON.parse(getFile("../mock/sample-context.json")); const issue = github_1.context.payload.issue; if (!issue) { (0, core_1.setFailed)("github.context.payload.issue does not exist"); @@ -90,4 +88,4 @@ async function run() { } } run(); -//# sourceMappingURL=index.js.map +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/.github/actions/check-feature-request/lib/src/index.js.map b/.github/actions/check-feature-request/lib/src/index.js.map index 41bf6e8f..e7738fa4 100644 --- a/.github/actions/check-feature-request/lib/src/index.js.map +++ b/.github/actions/check-feature-request/lib/src/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,wCAAoD;AACpD,4CAAsD;AAEtD,KAAK,UAAU,GAAG;IAChB,IAAI,CAAC;QACH,8BAA8B;QAC9B,oEAAoE;QACpE,MAAM,KAAK,GAAG,gBAAO,CAAC,OAAO,CAAC,KAAK,CAAC;QAEpC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,IAAA,gBAAS,EAAC,6CAA6C,CAAC,CAAC;YACzD,OAAO;QACT,CAAC;QAED,oEAAoE;QACpE,gEAAgE;QAChE,mEAAmE;QACnE,MAAM,YAAY,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAChD,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,sBAAsB,CAAC,CAAC;QACpD,IAAI,YAAY,GAAG,UAAU,EAAE,CAAC;YAC9B,OAAO,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;YAC5D,OAAO;QACT,CAAC;QAED,yBAAyB;QACzB,MAAM,KAAK,GA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AC;gBAC9B,IAAI,CAAC,SAAS,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;YAC/C,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,SAAS,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;YAChD,CAAC;QACH,CAAC;QAED,YAAY;QACZ,YAAY;QACZ,YAAY;QAEZ,KAAK,UAAU,cAAc;YAC3B,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;gBAC5C,KAAK;gBACL,IAAI;gBACJ,YAAY;aACb,CAAC,CAAC;QACL,CAAC;QAED,KAAK,UAAU,QAAQ,CAAC,KAAa;YACnC,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;gBAClC,KAAK;gBACL,IAAI;gBACJ,YAAY;gBACZ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB,CAAC,CAAC;QACL,CAAC;IAEH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,KAAK,GAAG,GAAY,CAAC;QAC3B,IAAA,gBAAS,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC;AAED,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/.github/actions/check-feature-request/src/index.ts b/.github/actions/check-feature-request/src/index.ts index 389e83f5..4953e7d7 100644 --- a/.github/actions/check-feature-request/src/index.ts +++ b/.github/actions/check-feature-request/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, salesforce.com, inc. + * Copyright (c) 2024, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -10,8 +10,6 @@ import { context, getOctokit } from "@actions/github"; async function run() { try { - // Uncomment for local testing - // const issue = JSON.parse(getFile("../mock/sample-context.json")); const issue = context.payload.issue; if (!issue) { @@ -34,8 +32,6 @@ async function run() { const octokit = getOctokit(token); // Get owner and repo from context - // uncomment env var for local testing - // process.env.GITHUB_REPOSITORY = "iowillhoit/gha-sandbox"; const owner = context.repo.owner; const repo = context.repo.repo; const issue_number = issue.number; diff --git a/.github/actions/new-issue/action.yml b/.github/actions/new-issue/action.yml index 16ee14b1..c1a2d4cf 100644 --- a/.github/actions/new-issue/action.yml +++ b/.github/actions/new-issue/action.yml @@ -1,13 +1,13 @@ # -# Copyright (c) 2020, salesforce.com, inc. +# Copyright (c) 2024, salesforce.com, inc. # All rights reserved. # Licensed under the BSD 3-Clause license. # For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause # -name: 'Salesforce CLI Issues Bot' -description: 'Preform automatic responses to github issues.' -author: 'Lisa Morgan' +name: 'Salesforce Extensions New Issues Bot' +description: 'Send an automatic response to newly created Github issues.' +author: 'Daphne Yang' inputs: repo-token: required: true diff --git a/.github/actions/new-issue/lib/src/index.js b/.github/actions/new-issue/lib/src/index.js index 0a0cee85..6e2c55bf 100644 --- a/.github/actions/new-issue/lib/src/index.js +++ b/.github/actions/new-issue/lib/src/index.js @@ -1,6 +1,6 @@ "use strict"; /* - * Copyright (c) 2023, salesforce.com, inc. + * Copyright (c) 2024, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -35,14 +35,6 @@ async function run() { console.log("issue number: " + issue.number); const issueLabels = issue.labels; console.log("issue labels: ", issueLabels); - // If label is passed in as an input, make sure it is on the issue before posting the message. - // Otherwise, we want to post message on all issues regardless. - // if (label) { - // if (!issueLabels.find((issueLabel) => issueLabel.name === label)) { - // // We didn't find the label, so don't post on this issue. - // return; - // } - // } const { data: comments } = await octokit.rest.issues.listComments({ owner, repo, diff --git a/.github/actions/new-issue/lib/src/index.js.map b/.github/actions/new-issue/lib/src/index.js.map index c97e2e6a..aa6d85c7 100644 --- a/.github/actions/new-issue/lib/src/index.js.map +++ b/.github/actions/new-issue/lib/src/index.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YACJ,YAAY,EAAE,KAAK,CAAC,MAAM;SAC3B,CAAC,CAAC;QAEH,oFAAoF;QACpF,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;YACpB,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,EAAE,CAAC;gBACzD,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;gBACjC,OAAO;YACT,CAAC;QACH,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC;YACvD,KAAK;YACL,IAAI;YACJ,wDAAwD;YACxD,YAAY,EAAE,KAAK,CAAC,MAAM;YAC1B,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,uBAAuB,GAAG,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAE9D,IAAA,gBAAS,EAAC,aAAa,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,KAAK,GAAG,GAAY,CAAC;QAC3B,IAAA,gBAAS,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC;AAED,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/.github/actions/new-issue/src/index.ts b/.github/actions/new-issue/src/index.ts index 777970f9..1aeef492 100644 --- a/.github/actions/new-issue/src/index.ts +++ b/.github/actions/new-issue/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, salesforce.com, inc. + * Copyright (c) 2024, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -42,14 +42,6 @@ async function run() { const issueLabels = issue.labels as Label[]; console.log("issue labels: ", issueLabels); - // If label is passed in as an input, make sure it is on the issue before posting the message. - // Otherwise, we want to post message on all issues regardless. - // if (label) { - // if (!issueLabels.find((issueLabel) => issueLabel.name === label)) { - // // We didn't find the label, so don't post on this issue. - // return; - // } - // } const { data: comments } = await octokit.rest.issues.listComments({ owner, diff --git a/.github/actions/validate-issue/action.yml b/.github/actions/validate-issue/action.yml index db357599..629d945e 100644 --- a/.github/actions/validate-issue/action.yml +++ b/.github/actions/validate-issue/action.yml @@ -1,13 +1,13 @@ # -# Copyright (c) 2023, salesforce.com, inc. +# Copyright (c) 2024, salesforce.com, inc. # All rights reserved. # Licensed under the BSD 3-Clause license. # For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause # -name: 'Salesforce CLI Validate Issues' -description: 'Validate information provided in an new Github issue.' -author: 'Eric Willhoit' +name: 'Salesforce Extensions Validate Issues Bot' +description: 'Validate information provided in a new or updated Github issue that is not yet validated.' +author: 'Daphne Yang' inputs: repo-token: required: true diff --git a/.github/actions/validate-issue/lib/src/index.js b/.github/actions/validate-issue/lib/src/index.js index 3c229831..86934987 100644 --- a/.github/actions/validate-issue/lib/src/index.js +++ b/.github/actions/validate-issue/lib/src/index.js @@ -1,6 +1,6 @@ "use strict"; /* - * Copyright (c) 2023, salesforce.com, inc. + * Copyright (c) 2024, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -15,8 +15,6 @@ const path = require("path"); const nodeVersions_1 = require("./nodeVersions"); async function run() { try { - // Uncomment for local testing - // const issue = JSON.parse(getFile("../mock/sample-context.json")); const issue = github_1.context.payload.issue; if (!issue) { (0, core_1.setFailed)("github.context.payload.issue does not exist"); @@ -35,8 +33,6 @@ async function run() { const token = (0, core_1.getInput)("repo-token"); const octokit = (0, github_1.getOctokit)(token); // Get owner and repo from context - // uncomment env var for local testing - // process.env.GITHUB_REPOSITORY = "iowillhoit/gha-sandbox"; const owner = github_1.context.repo.owner; const repo = github_1.context.repo.repo; const issue_number = issue.number; @@ -194,7 +190,6 @@ async function run() { // *** The below is the check for CLI version, code reused from CLI Team's repo *** const sfVersionRegex = /@salesforce\/cli\/([0-9]+.[0-9]+.[0-9]+(-[a-zA-Z0-9]+.[0-9]+)?)/g; const sfdxVersionRegex = /sfdx-cli\/([0-9]+.[0-9]+.[0-9]+(-[a-zA-Z0-9]+.[0-9]+)?)/g; - // const pluginVersionsRegex = /pluginVersions|Plugin Version:/; const nodeVersionRegex = /node-v(\d{2})\.\d+\.\d+/g; // Search all bodies and get an array of all versions found (first capture group) const sfVersions = bodies @@ -210,9 +205,6 @@ async function run() { console.log("sfdxVersions", sfdxVersions); console.log("nodeVersions", nodeVersions); if ((sfVersions.length > 0 || sfdxVersions.length > 0)) { - // FUTURE TODO: - // - Check for bundled plugins that are user installed (user) or linked (link) - // - Could do a check to see if the users has a prerelease version installed if (sfVersions.length > 0) { const oneSatisfies = sfVersions.some((version) => semver.gte(version, '2.0.0')); if (!oneSatisfies) { @@ -333,10 +325,6 @@ async function run() { throw error; } } - function getLatestCliVersion(plugin) { - const distTags = (0, child_process_1.execSync)(`npm view ${plugin} dist-tags --json`).toString(); - return JSON.parse(distTags).latest; - } function getLatestExtensionsVersion() { const result = (0, child_process_1.execSync)(`npx vsce show salesforce.salesforcedx-vscode --json`).toString(); return JSON.parse(result).versions[0].version; diff --git a/.github/actions/validate-issue/lib/src/index.js.map b/.github/actions/validate-issue/lib/src/index.js.map index 963429a0..c871ac51 100644 --- a/.github/actions/validate-issue/lib/src/index.js.map +++ b/.github/actions/validate-issue/lib/src/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,wCAAoD;AACpD,4CAAsD;AACtD,iDAAyC;AACzC,iCAAiC;AACjC,2BAAkC;AAClC,6BAA6B;AAC7B,iDAAmD;AAEnD,KAAK,UAAU,GAAG;IAChB,IAAI,C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C,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,KAAK,GAAG,GAAY,CAAC;QAC3B,IAAA,gBAAS,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC;AAED,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/.github/actions/validate-issue/mock/sample-context.json b/.github/actions/validate-issue/mock/sample-context.json deleted file mode 100644 index 211fbed0..00000000 --- a/.github/actions/validate-issue/mock/sample-context.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "active_lock_reason": null, - "assignee": null, - "assignees": [], - "author_association": "OWNER", - "body": "@salesforce/cli/1.60.5 sfdx-cli/7.204.6 darwin-arm64 node-v18.15.0 pluginVersions", - "closed_at": null, - "comments": 0, - "comments_url": "https://api.github.com/repos/iowillhoit/gha-sandbox/issues/16/comments", - "created_at": "2023-06-06T21:03:32Z", - "events_url": "https://api.github.com/repos/iowillhoit/gha-sandbox/issues/16/events", - "html_url": "https://github.com/iowillhoit/gha-sandbox/issues/16", - "id": 1744609461, - "labels": [ - { - "color": "FBCA04", - "default": false, - "description": "", - "id": 5589614072, - "name": "investigating", - "node_id": "LA_kwDOI7bi188AAAABTSq9-A", - "url": "https://api.github.com/repos/iowillhoit/gha-sandbox/labels/investigating" - } - ], - "labels_url": "https://api.github.com/repos/iowillhoit/gha-sandbox/issues/16/labels{/name}", - "locked": false, - "milestone": null, - "node_id": "I_kwDOI7bi185n_KC1", - "number": 16, - "performed_via_github_app": null, - "reactions": { - "+1": 0, - "-1": 0, - "confused": 0, - "eyes": 0, - "heart": 0, - "hooray": 0, - "laugh": 0, - "rocket": 0, - "total_count": 0, - "url": "https://api.github.com/repos/iowillhoit/gha-sandbox/issues/16/reactions" - }, - "repository_url": "https://api.github.com/repos/iowillhoit/gha-sandbox", - "state": "open", - "state_reason": null, - "timeline_url": "https://api.github.com/repos/iowillhoit/gha-sandbox/issues/16/timeline", - "title": "Test", - "updated_at": "2023-06-06T21:49:50Z", - "url": "https://api.github.com/repos/iowillhoit/gha-sandbox/issues/16", - "user": { - "avatar_url": "https://avatars.githubusercontent.com/u/1715111?v=4", - "events_url": "https://api.github.com/users/iowillhoit/events{/privacy}", - "followers_url": "https://api.github.com/users/iowillhoit/followers", - "following_url": "https://api.github.com/users/iowillhoit/following{/other_user}", - "gists_url": "https://api.github.com/users/iowillhoit/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/iowillhoit", - "id": 1715111, - "login": "iowillhoit", - "node_id": "MDQ6VXNlcjE3MTUxMTE=", - "organizations_url": "https://api.github.com/users/iowillhoit/orgs", - "received_events_url": "https://api.github.com/users/iowillhoit/received_events", - "repos_url": "https://api.github.com/users/iowillhoit/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/iowillhoit/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/iowillhoit/subscriptions", - "type": "User", - "url": "https://api.github.com/users/iowillhoit" - } -} diff --git a/.github/actions/validate-issue/src/index.ts b/.github/actions/validate-issue/src/index.ts index 8615719b..e5b015d3 100644 --- a/.github/actions/validate-issue/src/index.ts +++ b/.github/actions/validate-issue/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, salesforce.com, inc. + * Copyright (c) 2024, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause @@ -15,8 +15,6 @@ import { isAnyVersionValid } from "./nodeVersions"; async function run() { try { - // Uncomment for local testing - // const issue = JSON.parse(getFile("../mock/sample-context.json")); const issue = context.payload.issue; if (!issue) { @@ -39,8 +37,6 @@ async function run() { const octokit = getOctokit(token); // Get owner and repo from context - // uncomment env var for local testing - // process.env.GITHUB_REPOSITORY = "iowillhoit/gha-sandbox"; const owner = context.repo.owner; const repo = context.repo.repo; const issue_number = issue.number; @@ -231,7 +227,6 @@ async function run() { const sfVersionRegex = /@salesforce\/cli\/([0-9]+.[0-9]+.[0-9]+(-[a-zA-Z0-9]+.[0-9]+)?)/g; const sfdxVersionRegex = /sfdx-cli\/([0-9]+.[0-9]+.[0-9]+(-[a-zA-Z0-9]+.[0-9]+)?)/g; - // const pluginVersionsRegex = /pluginVersions|Plugin Version:/; const nodeVersionRegex = /node-v(\d{2})\.\d+\.\d+/g; // Search all bodies and get an array of all versions found (first capture group) @@ -258,10 +253,6 @@ async function run() { if ( (sfVersions.length > 0 || sfdxVersions.length > 0) ) { - // FUTURE TODO: - // - Check for bundled plugins that are user installed (user) or linked (link) - // - Could do a check to see if the users has a prerelease version installed - if (sfVersions.length > 0) { const oneSatisfies = sfVersions.some((version) => semver.gte(version, '2.0.0') @@ -397,13 +388,6 @@ async function run() { } } - function getLatestCliVersion(plugin: string) { - const distTags = execSync( - `npm view ${plugin} dist-tags --json` - ).toString(); - return JSON.parse(distTags).latest; - } - function getLatestExtensionsVersion() { const result = execSync(`npx vsce show salesforce.salesforcedx-vscode --json`).toString(); return JSON.parse(result).versions[0].version; diff --git a/.github/workflows/validateNewIssues.yml b/.github/workflows/validateNewIssues.yml index 8fbb1cdb..dfedebb7 100644 --- a/.github/workflows/validateNewIssues.yml +++ b/.github/workflows/validateNewIssues.yml @@ -1,12 +1,12 @@ # -# Copyright (c) 2021, salesforce.com, inc. +# Copyright (c) 2024, salesforce.com, inc. # All rights reserved. # Licensed under the BSD 3-Clause license. # For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause # name: "Validate New Issues" -on: # issue opened +on: issues: types: [opened] diff --git a/.github/workflows/validateUpdatedIssues.yml b/.github/workflows/validateUpdatedIssues.yml index 61747611..a4cfc8db 100644 --- a/.github/workflows/validateUpdatedIssues.yml +++ b/.github/workflows/validateUpdatedIssues.yml @@ -1,5 +1,5 @@ # -# Copyright (c) 2021, salesforce.com, inc. +# Copyright (c) 2024, salesforce.com, inc. # All rights reserved. # Licensed under the BSD 3-Clause license. # For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause