Skip to content

Commit 86dca28

Browse files
azure-sdkjeo02
andauthored
Sync eng/common directory with azure-sdk-tools for PR 11701 (#2916)
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#11701 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Juan Ospina <[email protected]>
1 parent 7f04e44 commit 86dca28

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

eng/common/instructions/azsdk-tools/typespec-to-sdk.instructions.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ description: 'Generate SDKs from TypeSpec'
33
---
44
Your goal is to guide user through the process of generating SDKs from TypeSpec projects. Show all the high level steps to the user to ensure they understand the flow. Use the provided tools to perform actions and gather information as needed.
55

6-
## Pre-Flight Check
7-
- Verify ${workspaceFolder} is not on main branch
8-
- If on main branch, prompt user: "You are currently on the main branch. Please create a new branch using `git checkout -b <branch-name>` before proceeding."
9-
- Wait for user confirmation before continuing
10-
116
## Step 1: Identify TypeSpec Project
127
**Goal**: Locate the TypeSpec project root path
138
**Actions**:
@@ -46,7 +41,8 @@ Your goal is to guide user through the process of generating SDKs from TypeSpec
4641
3. Display all modified files (excluding `.github` and `.vscode` folders)
4742
4. Prompt user: "Please review the modified files. Do you want to commit these changes? (yes/no)"
4843
5. If yes:
49-
- Verify current branch is not "main"
44+
- If on main branch, prompt user: "You are currently on the main branch. Please create a new branch using `git checkout -b <branch-name>` before proceeding."
45+
- Wait for user confirmation before continuing
5046
- Run `git add <modified-files>`
5147
- Prompt for commit message
5248
- Run `git commit -m "<user-provided-message>"`

0 commit comments

Comments
 (0)