Skip to content

Commit

Permalink
chore: Switch to main branch before executing CopilotAction
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Jun 21, 2024
1 parent 2a8c45c commit e7659bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Copilot/Service/CopilotActions/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export default class CopilotActionService {
copilotActionType: CopilotActionType;
vars: CopilotActionVars;
}): Promise<CopilotExecutionResult> {

await CodeRepositoryUtil.switchToMainBranch();

if (!actionDictionary[data.copilotActionType]) {
throw new BadDataException("Invalid CopilotActionType");
}
Expand Down

0 comments on commit e7659bd

Please sign in to comment.