Repository navigation
Releases: NoSugarCoffee/advanced-git-sync
Releases · NoSugarCoffee/advanced-git-sync
Release list
v1.0.1
Bug-fix release. Cut manually — the Semantic Release step on main failed with EINVALIDGHTOKEN / EGITNOPERMISSION (the GH_TOKEN secret is invalid or expired), so no tag was published automatically.
Bug Fixes
- Post-job step failed on every run.
scripts/postjob.jsrequired@actions/core, but it runs from the action checkout, which has nonode_modulesof its own —buncould not resolve it and the step exited 1. It now depends on Node built-ins only. - Branch patterns were compiled as regexes, not globs.
{main,master}matched nothing (as a regex it matches only that literal text), so the sync plan came out empty while still reporting success; the default*was worse, sincenew RegExp('*')throwsNothing to repeat. Patterns now go throughminimatchwith GitHub Actions'on.push.branchessemantics —*stops at/,**crosses it,{a,b}alternates. - Branch sync used the wrong platform's config.
syncBranches()always readsource.config.github.sync.branches, so the GitLab → GitHub direction applied the GitHub branch config. The filter is now taken from the source platform's own config.
Breaking-ish
The default branch pattern changes from * to **, so nested branches such as feature/login are included by default. The old default could only ever throw, so no working configuration depended on it. If you want top-level branches only, set pattern: '*' explicitly.
Full changelog: v1.0.0...v1.0.1
v1.0.0
v1.0.0 (2025-06-02)
1.0.0 (2025-06-02)
Features
- add deepmerge dependency and implement config merging functionality (2e7a49a)
- Add initial better implementation for GitHub and GitLab synchronization, including configuration and utility functions (edc2810)
- Add initial project structure with configuration and service files (9633449)
- Update type exports and remove unused common types; enhance sync functionality for branches, pull requests, issues, and releases (b53d628)
Bug Fixes
- Add configuration loading and validation functions; implement permission checks and token management, and lots, lots more fixes (a07bf4c)
- Add getRepoInfo method to GitLabClient and GitHubClient; update logging messages for consistency (2838bb7)
- add GitLab URL utility functions and refactor error handling (675246b)
- add permsHelper for GitHub and GitLab clients; update client initialization and permissions validation (36b8abf)
- Enhance configuration loading and error handling; improve logging for GitLab and GitHub tokens [skip ci] (76ee96c)
- Enhance Dependabot configuration and update README for clarity; backup and restore original dependencies in action (b9db11d)
- enhance GitLab configuration with optional projectId and improve client initialization (311f331)
- enhance GitLabClient initialization and improve error handling (45afba1)
- fix a circular dependency between modules. The client classes and base client were trying to import each other. fixed this by restructuring the imports and class hierarchy. (45b457a)
- Implement default configuration and enhance sync functionality for GitHub and GitLab, fix authentication errors (957b79b)
- implement LabelHelper for label normalization and integration; refactor issue and pull request handling (05f9f26)
- introduce GitHub and GitLab permissions and tags helpers; refactor release and sync functionalities (9bc811e)
- Refactor configuration handling; introduce validation for GitHub and GitLab tokens, and update type exports (53d0a41)
- remove BaseClient class and update GitHub/GitLab clients to implement IClient directly (25e6789)
- remove GitLab URL utility functions and enhance GitLabClient initialization (8178b6f)
- Remove lodash dependency and update permission validation methods for GitHub and GitLab clients (1de581a)
- Remove permission helper classes and update README for configuration clarity (c1d14fa)
- rename branchHelper and issueHelper to gitHubBranches and gitHubIssues; update imports and initialization in clientManager (1bf4458)
- rename config module and restructure repository utility functions (f3e1477)
- simplify GitLabClient host URL handling and improve project ID retrieval logic (0437006)
- Update action input names to uppercase; remove unused files and improve configuration handling (bc77a9d)
- update CHANGELOG and README for clarity; remove redundant validation in BaseClient constructor (5e84a63)
- Update configuration loading to prioritize environment variables; enhance error handling and logging for GitHub and GitLab tokens (f4d5cd9)
- Update configuration options in README and improve error logging in config loading (75c63d2)