Skip to content

Commit a290d03

Browse files
smw-msazure-sdk
authored andcommitted
Allow forced creation when release plans already exist
1 parent f5755a7 commit a290d03

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

eng/common/instructions/azsdk-tools/create-release-plan.instructions.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@ Follow these steps in order to create or manage a release plan for an API specif
1212
- If no pull request is available, prompt the user to provide the API spec pull request link
1313
- Validate that the provided pull request link is accessible and valid
1414

15-
## Step 2: Check Existing Release Plan
16-
- Use `azsdk_get_release_plan_for_spec_pr` to check if a release plan already exists for the API spec pull request
17-
- If a release plan exists:
18-
- Display the existing release plan details to the user
19-
- Skip to Step 5 (Link SDK Pull Requests)
20-
- If no release plan exists, proceed to Step 3
21-
22-
## Step 3: Gather Release Plan Information
15+
## Step 2: Gather Release Plan Information
2316
Collect the following required information from the user. Do not create a release plan with temporary values. Confirm the values with the user before proceeding to create the release plan.
2417
If any details are missing, prompt the user accordingly:
2518

@@ -31,25 +24,34 @@ If any details are missing, prompt the user accordingly:
3124
- "beta" for preview API versions
3225
- "stable" for GA API versions
3326

34-
## Step 4: Create Release Plan
27+
## Step 3: Create Release Plan
3528
- If the user doesn't know the required details, direct them to create a release plan using the release planner
3629
- Provide this resource: [Release Plan Creation Guide](https://eng.ms/docs/products/azure-developer-experience/plan/release-plan-create)
3730
- Once all information is gathered, use `azsdk_create_release_plan` to create the release plan
31+
- If existing release plans are found, follow the instructions under Step 3a - Handle Existing Release Plans
3832
- Display the newly created release plan details to the user for confirmation
3933
- Refer to #file:sdk-details-in-release-plan.instructions.md to identify languages configured in the TypeSpec project and add them to the release plan
4034

41-
## Step 5: Update SDK Details in Release Plan
35+
### Step 3a: Handle Existing Release Plans
36+
- When `azsdk_create_release_plan` returns existing release plans.
37+
- Extract and display key information: Release Plan ID, status, associated languages, SDK PRs
38+
- Present the three options:
39+
1. **Work with the existing release plan** - Use the current release plan and make any needed updates
40+
2. **Force create a new release plan** - Create a completely new release plan even though one already exists
41+
3. **Cancel** - Don't proceed with release plan creation
42+
43+
## Step 4: Update SDK Details in Release Plan
4244
- Refer to #file:sdk-details-in-release-plan.instructions.md to add languages and package names to the release plan
4345
- If the TypeSpec project is for a management plane, refer to #file:verify-namespace-approval.instructions.md if this is first release of SDK.
4446

45-
## Step 6: Link SDK Pull Requests (if applicable)
47+
## Step 5: Link SDK Pull Requests (if applicable)
4648
- Ask the user if they have already created SDK pull requests locally for any programming language
4749
- If SDK pull requests exist:
4850
- Collect the pull request links from the user
4951
- Use `azsdk_link_sdk_pull_request_to_release_plan` to link each SDK pull request to the release plan
5052
- Confirm successful linking for each SDK pull request
5153

52-
## Step 7: Summary
54+
## Step 6: Summary
5355
- Display a summary of the completed actions:
5456
- Release plan status (created or existing)
5557
- Linked SDK pull requests (if any)

0 commit comments

Comments
 (0)