mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-01-07 21:44:02 -05:00
chore: update cache metadata before staging release changes
- Add cache metadata update step before staging release changes - Set last_processed_tag to current version being processed - Update last_pr_sync timestamp to current time - Include warning messages for failed metadata updates - Ensure metadata commits alongside other release changes
This commit is contained in:
@@ -284,6 +284,19 @@ func (g *Generator) CreateNewChangelogEntry(version string) error {
|
||||
}
|
||||
}
|
||||
|
||||
// Update metadata before staging changes so they get committed together
|
||||
if g.cache != nil {
|
||||
// Update last_processed_tag to the version we just processed
|
||||
if err := g.cache.SetLastProcessedTag(version); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Warning: Failed to update last_processed_tag: %v\n", err)
|
||||
}
|
||||
|
||||
// Update last_pr_sync to current time
|
||||
if err := g.cache.SetLastPRSync(time.Now()); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Warning: Failed to update last_pr_sync: %v\n", err)
|
||||
}
|
||||
}
|
||||
|
||||
if err := g.stageChangesForRelease(); err != nil {
|
||||
return fmt.Errorf("critical: failed to stage changes for release: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user