Skip to content

Commit 6acfb8b

Browse files
committed
feat: enhance date validation and formatting guidelines in release notes workflow
1 parent 33829c5 commit 6acfb8b

File tree

3 files changed

+80
-4
lines changed

3 files changed

+80
-4
lines changed

.roo/rules-release-notes-writer/1_workflow.xml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<steps>
5656
<step number="1">
5757
<action>Check for user-provided PR list</action>
58-
<details>If user gives a list of PR numbers, skip to 'process_each_pr' phase.</details>
58+
<details>If user gives a list of PR numbers, skip to 'process_each_pr' phase. When skipping, use the current date or explicitly ask the user for the release date.</details>
5959
</step>
6060
<step number="2">
6161
<action>Fetch release dates</action>
@@ -74,6 +74,27 @@
7474
</step>
7575
</steps>
7676
</phase>
77+
<phase name="determine_release_date" optional="true">
78+
<description>Determine the release date when user provides PR list directly.</description>
79+
<when_to_use>Only when user provides a PR list instead of using GitHub date range search.</when_to_use>
80+
<steps>
81+
<step number="1">
82+
<action>Check if user provided a date</action>
83+
<details>
84+
Look for date in user's message (e.g., "3.23.15" followed by a date like "2025-07-18").
85+
If no date provided, use current date.
86+
</details>
87+
</step>
88+
<step number="2">
89+
<action>Validate date format</action>
90+
<details>
91+
Ensure date is in YYYY-MM-DD format (ISO 8601).
92+
Common mistake: Confusing MM-DD with DD-MM.
93+
Example: 2025-07-18 is July 18, not January 18.
94+
</details>
95+
</step>
96+
</steps>
97+
</phase>
7798
<phase name="process_each_pr">
7899
<description>Process PRs with subtasks. Each subtask investigates one PR, storing findings in a temp file.</description>
79100
<initialization>

.roo/rules-release-notes-writer/2_formatting_standards.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,16 @@ image: /img/social-share.jpg
3838
<format># Roo Code X.Y.Z Release Notes (YYYY-MM-DD)</format>
3939
<requirements>
4040
<requirement>Include version number.</requirement>
41-
<requirement>Include release date (ISO format).</requirement>
42-
<requirement>Date must be the actual release date.</requirement>
41+
<requirement>Include release date in ISO 8601 format: YYYY-MM-DD.</requirement>
42+
<requirement>Date must be the actual release date from GitHub tag OR current date if PR list provided.</requirement>
43+
<requirement>CRITICAL: Month comes before day (MM-DD not DD-MM). Example: 2025-07-18 is July 18th.</requirement>
4344
</requirements>
45+
<date_format_examples>
46+
<correct>2025-07-18 (July 18, 2025)</correct>
47+
<correct>2025-01-13 (January 13, 2025)</correct>
48+
<incorrect>2025-18-07 (Invalid - would mean 18th month)</incorrect>
49+
<incorrect>2025-13-01 (Invalid - would mean 13th month)</incorrect>
50+
</date_format_examples>
4451
</element>
4552

4653
<element name="summary_sentence">
@@ -135,7 +142,8 @@ Concluding sentence about the benefit.
135142
<rule>List chronologically, newest first.</rule>
136143
<rule>Use absolute paths from /docs/.</rule>
137144
<rule>Omit .md extension.</rule>
138-
<rule>Include release date.</rule>
145+
<rule>Include release date in ISO 8601 format (YYYY-MM-DD).</rule>
146+
<rule>CRITICAL: Verify date format - month before day.</rule>
139147
</rules>
140148
</index_file_updates>
141149

.roo/rules-release-notes-writer/5_complete_example.xml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,51 @@
11
<complete_example>
2+
<date_validation_example>
3+
<scenario>
4+
Validating and formatting dates correctly when creating release notes
5+
</scenario>
6+
7+
<common_mistakes>
8+
<mistake>
9+
<wrong>2025-18-07</wrong>
10+
<issue>This would mean the 18th month, which doesn't exist</issue>
11+
<correct>2025-07-18</correct>
12+
<explanation>ISO 8601 format is YYYY-MM-DD where MM is month (01-12)</explanation>
13+
</mistake>
14+
<mistake>
15+
<wrong>Using January (01) when it should be July (07)</wrong>
16+
<issue>Confusing month and day positions in ISO 8601 format</issue>
17+
<correct>Always use YYYY-MM-DD format where MM is month (01-12)</correct>
18+
</mistake>
19+
</common_mistakes>
20+
21+
<validation_steps>
22+
<step>When given PR list directly, use current date</step>
23+
<step>Format: new Date().toISOString().split('T')[0]</step>
24+
<step>Always verify month is 01-12</step>
25+
<step>Always verify day is appropriate for the month</step>
26+
<step>Remember: ISO 8601 format is YYYY-MM-DD (year-month-day)</step>
27+
</validation_steps>
28+
29+
<example_dates>
30+
<correct>
31+
<date>2025-07-18</date>
32+
<meaning>July 18, 2025</meaning>
33+
</correct>
34+
<correct>
35+
<date>2025-01-13</date>
36+
<meaning>January 13, 2025</meaning>
37+
</correct>
38+
<incorrect>
39+
<date>2025-18-07</date>
40+
<reason>Month cannot be 18</reason>
41+
</incorrect>
42+
<incorrect>
43+
<date>2025-13-01</date>
44+
<reason>Month cannot be 13</reason>
45+
</incorrect>
46+
</example_dates>
47+
</date_validation_example>
48+
249
<scenario>
350
Creating release notes for Roo Code v3.20.3.
451
</scenario>

0 commit comments

Comments
 (0)