Commit graph

18 commits

Author SHA1 Message Date
ClaudiaFang
684551b8f8
fix: resolve SonarCloud Quality Gate failures and improve marketplace readiness (#10)
This commit consolidates several improvements to satisfy SonarCloud Quality Gate and enhance the overall plugin stability:

- Code Quality & Refactoring:
  - Reduced duplication to 0% by refactoring SyncManager and SyncStatusView.
  - Implemented centralized 'processBatch' logic for multi-file sync operations.
  - Fixed security hotspots by replacing legacy atob/btoa with Buffer.
  - Added memory safety limits to the diff algorithm to prevent DoS.

- Test Coverage & Reliability:
  - Improved SyncManager coverage to 81.8% and GitignoreManager to 92.8%.
  - Added comprehensive unit tests for batch operations and complex .gitignore patterns.
  - Resolved all ESLint 'unsafe-member-access' and 'unbound-method' warnings in tests.

- Infrastructure & Metadata:
  - Consolidated GitHub Actions into a single optimized 'ci.yml' using latest versions (v6-v8).
  - Synchronized manifest.json and versions.json to v1.1.0.
  - Fixed workflow permission issues identified by CodeQL.
2026-04-25 23:35:32 +08:00
ClaudiaFang
fa9502c7ab fix: SonarCloud analysis failure and quality gate issues 2026-04-25 06:10:55 +00:00
ClaudiaFang
ec758bc424 chore: support custom RELEASE_TOKEN in release workflow 2026-04-25 04:41:43 +00:00
ClaudiaFang
4e5c95c019 chore: separate build and sonar jobs and update actions to latest versions 2026-04-25 04:22:06 +00:00
ClaudiaFang
dc3c56dd9e chore: use direct Lint and Test jobs to satisfy branch protection rules 2026-04-25 04:19:52 +00:00
ClaudiaFang
3dca169a07 chore: fix build status check and consolidate sonar/test configuration 2026-04-25 04:18:11 +00:00
ClaudiaFang
bad9dad097 chore: fix status check names and finalize sonar configuration 2026-04-25 03:33:40 +00:00
ClaudiaFang
d3b4ce9f2e chore: implement reusable workflows for lint, test, and build to reduce duplication 2026-04-25 03:23:48 +00:00
ClaudiaFang
a2249288fd chore: optimize github workflows by merging redundant test steps and removing duplicate lint workflow 2026-04-25 03:23:14 +00:00
ClaudiaFang
ecd2aabfca fix: resolve obsidian community guidelines and lint errors 2026-04-25 03:13:04 +00:00
ClaudiaFang
4c8c280138 chore: update author to ClaudiaFang and repo name to git-files-sync 2026-04-24 18:46:31 +00:00
tianyao
32df4fd82b ci: only include zip file in release assets and artifacts
Remove individual files (main.js, manifest.json, styles.css) from
release assets and build artifacts. Only keep the zip package.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 04:42:45 +00:00
tianyao
bc84e98e19 ci(check): add zip package to feature branch artifacts
Create zip file with format: git-files-push-{version}-{branch}.zip
for feature branch builds.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 04:41:52 +00:00
tianyao
e298ec130a refactor(ci): simplify workflows - feature vs production branches
- Feature branches: check.yml runs lint+test+build with artifact upload
- Production branches (master): semantic-release.yml runs lint+test+build+release
- Remove unused auto-release.yml and release.yml workflows

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 04:35:03 +00:00
tianyao
bbdda32d00 fix(ci): update all workflows to use Node.js 22
Update Node.js version from 20 to 22 to meet semantic-release
dependency requirements (requires Node.js 22.14.0+ or 24.10.0+).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 04:27:18 +00:00
tianyao
28913a6297 fix(ci): update all workflows to use Node.js 20
Update Node.js version from 18 to 20 in all GitHub Actions workflows
to meet dependency requirements. This fixes CI failures caused by
packages requiring Node.js 20+.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 04:25:42 +00:00
ClaudiaFang
d5539434dc
feat(core,ui,ci,docs): add GitHub support, sync status view, batch operations, and CI/CD workflows (#1)
Major feature release including:
- GitHub service support alongside GitLab
- Sync status view with visual diff
- Batch push/pull operations
- Conflict resolution modal
- Vault folder filtering
- File rename detection
- Complete CI/CD workflows (check, auto-release, semantic-release)
- Comprehensive documentation (CHANGELOG, COMPLIANCE, RELEASE guides)

Co-authored-by: tianyao <tianyao@heavendev01.royal-powan.ts.net>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 11:03:05 +08:00
ClaudiaFang
b620e9eb40
Initial commit 2026-04-01 00:23:18 +08:00