-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12885 from OfficeDev/yuqzho/stable-gce
build: GitHub Copilot feature only in prerelease version
- Loading branch information
Showing
5 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
filePath=packages/vscode-extension/src/releaseBasedFeatureSettings.ts | ||
echo "Update feature settings in $filePath if alpha or beta release" | ||
sed -i -e "s@const shouldEnableTeamsCopilotChatUI = false@const shouldEnableTeamsCopilotChatUI = true@g" $filePath | ||
echo "Prerelease feature setting update done." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/vscode-extension/src/releaseBasedFeatureSettings.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
// This file list feature flag settings that should be handled during release. For example, if we want to have a feature being enabled only on alpha and beta version. | ||
// Please do not edit this file except introducing new feature flag settings. | ||
// During cd, we will modify the value of the feature flag settings in this file. | ||
// Please list each setting line by line. The default value should be the expected value in stable release, which is false usually. | ||
const shouldEnableTeamsCopilotChatUI = false; | ||
|
||
export const releaseControlledFeatureSettings = { | ||
shouldEnableTeamsCopilotChatUI, | ||
}; |
9 changes: 9 additions & 0 deletions
9
packages/vscode-extension/test/releaseBasedFeatureSettings.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import * as chai from "chai"; | ||
import { releaseControlledFeatureSettings } from "../src/releaseBasedFeatureSettings"; | ||
|
||
describe("releaseControlledFeatureSettings", () => { | ||
it("verify default values", async () => { | ||
const settings = releaseControlledFeatureSettings; | ||
chai.assert.isFalse(settings.shouldEnableTeamsCopilotChatUI); | ||
}); | ||
}); |