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:
Tim Rogers
2026-03-10 09:48:54 -05:00
committed by GitHub
parent a7f581bde5
commit 3de9820cd8
5 changed files with 98 additions and 2 deletions
+2 -1
View File
@@ -55,7 +55,8 @@ describe("FeatureFlags", () => {
"missingInputsQuickfix",
"blockScalarChompingWarning",
"allowCaseFunction",
"allowCronTimezone"
"allowCronTimezone",
"allowCopilotRequestsPermission"
]);
});
});
+8 -1
View File
@@ -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 {