Commit graph

80 commits

Author SHA1 Message Date
ClaudiaFang
70171fd5d7
refactor: fix quality gate issues, improve type safety and pagination (#21)
* refactor: fix quality gate issues, improve type safety and pagination

* refactor: integrate eslint-plugin-sonarjs and fix cognitive complexity issues

* fix(ci): remove invalid secrets reference in workflow with block

* fix(build): resolve strict null check errors in diff logic

---------

Co-authored-by: ClaudiaFang <tianyao.firstsun@gmail.coim>
2026-04-27 02:16:26 +08:00
ClaudiaFang
4574abc294
refactor: address SonarCloud issues and reduce code duplication (#20)
* ci: use shared obsidian plugin workflow and update obsidian version

* Add quality gate status badge to README

Added a quality gate status badge to the README.

* refactor: address SonarCloud issues and reduce code duplication

---------

Co-authored-by: ClaudiaFang <tianyao.firstsun@gmail.coim>
2026-04-27 01:20:40 +08:00
ClaudiaFang
67bf95ae89
Add quality gate status badge to README
Added a quality gate status badge to the README.
2026-04-27 00:41:26 +08:00
ClaudiaFang
f79f36d5aa
ci: use shared obsidian plugin workflow and update obsidian version (#19)
Co-authored-by: ClaudiaFang <tianyao.firstsun@gmail.coim>
2026-04-27 00:33:35 +08:00
ClaudiaFang
7f21cad9db
chore(ci): update minAppVersion to 1.12.7 and add git plugin to release (#18) 2026-04-26 11:35:55 +08:00
ClaudiaFang
591dd6e82a
refactor: consolidate duplicated methods into BaseGitService (#17) 2026-04-26 10:46:44 +08:00
ClaudiaFang
655cd69252
Fix lint (#15)
* ci: optimize workflow to reduce redundancy and refine permissions

* ci: fix syntax errors in workflow file

* docs: resolve SonarCloud issues and refactor for complexity

* refactor: extract BaseGitService to reduce duplication and fix lint/tests

* fix: resolve TS build errors due to unchecked indexed access

* refactor: address gemini-code-assist bot reviews

- Add last_commit_id to GitLabFileResponse
- Use last_commit_id as sha in GitLabService.getFile
- Add rename detection to SyncManager.processSingleBatchPush

---------

Co-authored-by: ClaudiaFang <tianyao.firstsun@gmail.coim>
2026-04-26 05:23:13 +08:00
ClaudiaFang
f33ef3e3fd
fix: remove commend (#14)
Co-authored-by: ClaudiaFang <tianyao.firstsun@gmail.coim>
2026-04-25 20:25:53 +00:00
ClaudiaFang
d26043c4a3
Merge pull request #13 from firstsun-dev/docs/fix-readme-videos
docs: use local video assets for READMEs
2026-04-26 02:20:10 +08:00
ClaudiaFang
3f91ff5601 docs: use local video assets for READMEs 2026-04-25 18:19:39 +00:00
ClaudiaFang
4d757d15a9 ci: implement job-level filtering and final status check 2026-04-25 17:41:46 +00:00
ClaudiaFang
fa7e2a9361 ci: skip release for configuration updates and update docs 2026-04-25 17:28:44 +00:00
ClaudiaFang
5c62533d93
fix: final test coverage and logic improvements (#11)
* chore: update GitHub Actions to latest versions and increase test coverage for batch operations

* fix: resolve linting errors in batch tests

* chore: consolidate GitHub workflows into unified ci.yml and allow sonar failure

* fix: include missing test coverage and logic improvements

---------

Co-authored-by: ClaudiaFang <tianyao.firstsun@gmail.coim>
2026-04-25 15:40:36 +00:00
ClaudiaFang
5e954f1c2b
ci: remove permissions from CI workflow
Removed permissions section from CI workflow.
2026-04-25 23:36:35 +08:00
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
63f80530a1
Merge pull request #9 from firstsun-dev/fix/sonarcloud-failure
fix: SonarCloud analysis failure and quality gate issues
2026-04-25 14:13:03 +08:00
ClaudiaFang
fa9502c7ab fix: SonarCloud analysis failure and quality gate issues 2026-04-25 06:10:55 +00:00
ClaudiaFang
f7a7e95459 feat: initial release 2026-04-25 04:50:15 +00:00
ClaudiaFang
5214e39fb4 chore: initial release reset to 1.0.0 2026-04-25 04:50:03 +00:00
ClaudiaFang
004acab1d5 fix: synchronize manifest version with git tag and assets 2026-04-25 04:45:52 +00:00
ClaudiaFang
4c98d19667 chore: manual version sync to 1.1.2 2026-04-25 04:45:24 +00:00
ClaudiaFang
ec758bc424 chore: support custom RELEASE_TOKEN in release workflow 2026-04-25 04:41:43 +00:00
ClaudiaFang
2e8a81ac10 chore: remove git plugin from release to bypass branch protection 2026-04-25 04:34:49 +00:00
ClaudiaFang
c6f6786149 Merge remote-tracking branch 'origin/master' into fix/obsidian-compliance 2026-04-25 04:31:27 +00:00
ClaudiaFang
2e544c09e9 chore: ensure release assets comply with obsidian requirements and persist version changes 2026-04-25 04:28:27 +00:00
ClaudiaFang
7bef2ca0d7
fix: resolve obsidian community guidelines and lint errors (#7)
* fix: resolve obsidian community guidelines and lint errors

* chore: optimize github workflows by merging redundant test steps and removing duplicate lint workflow

* chore: implement reusable workflows for lint, test, and build to reduce duplication

* test: add github service tests and fix existing gitlab/sync-manager tests

* test: fix lint errors in tests by using type-safe mocks and assertions

* test: fix tsc compilation error (TS2532) in tests

* chore: fix status check names and finalize sonar configuration

* fix: ensure type-safe mocks in sync-manager.test.ts and resolve lint errors

* chore: fix build status check and consolidate sonar/test configuration

* chore: use direct Lint and Test jobs to satisfy branch protection rules

* chore: separate build and sonar jobs and update actions to latest versions

---------

Co-authored-by: ClaudiaFang <tianyao.firstsun@gmail.coim>
2026-04-25 04:22:40 +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
a6104d991c fix: ensure type-safe mocks in sync-manager.test.ts and resolve lint errors 2026-04-25 03:34:57 +00:00
ClaudiaFang
bad9dad097 chore: fix status check names and finalize sonar configuration 2026-04-25 03:33:40 +00:00
ClaudiaFang
662cb83cf9 test: fix tsc compilation error (TS2532) in tests 2026-04-25 03:29:46 +00:00
ClaudiaFang
60e3790c73 test: fix lint errors in tests by using type-safe mocks and assertions 2026-04-25 03:27:10 +00:00
ClaudiaFang
f354749d4c test: add github service tests and fix existing gitlab/sync-manager tests 2026-04-25 03:24:22 +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
ClaudiaFang
36a3767a37 chore: simplify release workflow to avoid branch protection issues 2026-04-24 18:37:09 +00:00
ClaudiaFang
b0f94ca480 fix: remove 'v' prefix from tags for Obsidian compatibility 2026-04-24 18:32:54 +00:00
ClaudiaFang
a27d3fdba5 fix: enable automatic versioning and sync manifest to 1.1.0 2026-04-24 18:32:29 +00:00
ClaudiaFang
8ec25252d9 chore: prepare for version resync 2026-04-24 18:32:05 +00:00
ClaudiaFang
17c4824340
Merge pull request #6 from firstsun-dev/worktree-ui-name
fix: Trigger release to publish updated manifest
2026-04-25 02:10:03 +08:00
ClaudiaFang
fc94914bfe fix: trigger release to publish updated manifest 2026-04-24 18:08:53 +00:00
ClaudiaFang
60211627b2
Merge pull request #4 from firstsun-dev/worktree-ui-name
chore: Sync package.json description with manifest.json
2026-04-25 02:05:13 +08:00
ClaudiaFang
7767dd655a chore: sync package.json description with manifest.json 2026-04-24 18:01:56 +00:00
ClaudiaFang
4cd5b26937
Merge pull request #3 from firstsun-dev/worktree-ui-name
docs & ui: Add UI screenshots and fix diff view background color
2026-04-25 01:55:22 +08:00
ClaudiaFang
8c571e6a8c docs: add UI screenshots and correct diff view background color 2026-04-24 17:54:03 +00:00
ClaudiaFang
cab60ad9fa docs: overhaul README and add Traditional Chinese usage guide 2026-04-24 17:33:19 +00:00
ClaudiaFang
282e4bfc7b style: improve RWD and fix button layouts 2026-04-24 17:23:52 +00:00