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
refactor: use existing sync script instead of inline code
Remove duplicate inline script from workflow and use the existing
scripts/sync-changelog.js which has better features:
- GitHub CLI and API token fallback support
- Test mode for local development
- Better error handling and user feedback
- Comprehensive logging
This eliminates code duplication and makes the workflow more maintainable.
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
header = '# Change Log\n\nAll notable changes to the "copilot-token-tracker" extension will be documented in this file.\n\nCheck [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.\n\n## [Unreleased]';
85
-
unreleasedSection = '\n';
86
-
}
87
-
88
-
// Build new changelog content
89
-
let newChangelog = header + unreleasedSection + '\n';
90
-
91
-
// Add releases
92
-
for (const release of releases) {
93
-
const version = release.tagName.startsWith('v') ? release.tagName.substring(1) : release.tagName;
0 commit comments