Add copilot-requests permission, gated by feature flag (#335)
* Add copilot-requests permission gated by feature flag This add a new 'copilot-requests' permission to the workflow schema, gated behind the 'allowCopilotRequestsPermission' experimental feature flag. When the flag is disabled (default), `copilot-requests` is filtered out of autocomplete suggestions. When enabled, it appears alongside other permissions like actions, contents, pull-requests, etc. * Update workflow-parser/src/workflow-v1.0.json * Add additional unit test coverage * Fix formatting
This commit is contained in:
@@ -55,7 +55,8 @@ describe("FeatureFlags", () => {
|
||||
"missingInputsQuickfix",
|
||||
"blockScalarChompingWarning",
|
||||
"allowCaseFunction",
|
||||
"allowCronTimezone"
|
||||
"allowCronTimezone",
|
||||
"allowCopilotRequestsPermission"
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -40,6 +40,12 @@ export interface ExperimentalFeatures {
|
||||
* @default false
|
||||
*/
|
||||
allowCronTimezone?: boolean;
|
||||
|
||||
/**
|
||||
* Enable the copilot-requests permission in workflow permissions.
|
||||
* @default false
|
||||
*/
|
||||
allowCopilotRequestsPermission?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,7 +61,8 @@ const allFeatureKeys: ExperimentalFeatureKey[] = [
|
||||
"missingInputsQuickfix",
|
||||
"blockScalarChompingWarning",
|
||||
"allowCaseFunction",
|
||||
"allowCronTimezone"
|
||||
"allowCronTimezone",
|
||||
"allowCopilotRequestsPermission"
|
||||
];
|
||||
|
||||
export class FeatureFlags {
|
||||
|
||||
Reference in New Issue
Block a user