You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document outlines the plan for implementing automated `@since` tag updates during the release process. The system will update placeholder version tags (such as `@since todo`, `@since next-version`, and `@since tbd`) with the actual version number during releases.
6
+
7
+
## Implementation Checklist
8
+
9
+
### 1. Package.json Updates
10
+
-[ ] Add `chalk` to devDependencies
11
+
-[ ] Add a new npm script for running the update-since-tags.js (e.g., `since-tags:update`)
12
+
13
+
### 2. Script Enhancements (update-since-tags.js)
14
+
-[ ] Add better console output formatting using chalk
15
+
-[ ] Enhance logging to provide detailed information about updated files
16
+
-[ ] Add functionality to generate a summary of updates for release notes
17
+
-[ ] Add documentation for supported placeholders (`todo`, `next-version`, `tbd`)
18
+
-[ ] Add error handling for file operations
19
+
-[ ] Add validation for version number input
20
+
21
+
### 3. Release Management Workflow Updates
22
+
-[ ] Add new step in release-management.yml after version bump
23
+
-[ ] Integrate since-tag updates into the workflow
24
+
-[ ] Add logging output to release notes
25
+
-[ ] Handle potential errors gracefully
26
+
-[ ] Ensure changes are committed with version bump
27
+
28
+
### 4. Changeset Integration
29
+
-[ ] Modify generate-changeset.yml to detect files with @since placeholders
30
+
-[ ] Add @since placeholder information to changeset content
31
+
-[ ] Update release PR template to include @since placeholder information
32
+
-[ ] Ensure this information flows through to final release notes
33
+
34
+
### 5. Documentation Updates
35
+
-[ ] Update SUMMARY.md with new functionality
36
+
-[ ] Update main README.md with @since tag information
37
+
-[ ] Update workflow documentation
38
+
-[ ] Add examples of using @since placeholders
39
+
-[ ] Document supported file types (PHP only for now)
40
+
41
+
### 6. Testing
42
+
-[ ] Test script locally with various scenarios
43
+
-[ ] Test workflow with actual PR and release
44
+
-[ ] Test error scenarios
45
+
-[ ] Test with multiple @since tags in single file
46
+
-[ ] Test with no @since tags present
47
+
48
+
## Supported Placeholders
49
+
50
+
The following placeholders will be automatically updated during release:
51
+
-`@since todo`
52
+
-`@since next-version`
53
+
-`@since tbd`
54
+
55
+
## File Types
56
+
57
+
Currently, the system only scans PHP files for @since placeholders. This may be expanded in future versions.
58
+
59
+
## Notes
60
+
61
+
- The script currently works as-is, so we won't refactor the module system (ES modules vs CommonJS) at this time
62
+
- We'll focus on PHP files only for the initial implementation
63
+
- Changes should be made incrementally to avoid disrupting existing workflows
64
+
- Each change should be tested thoroughly before moving to the next item
65
+
66
+
## Future Considerations
67
+
68
+
- Support for additional file types (js, jsx, tsx, etc.)
0 commit comments