Commit graph

37 commits

Author SHA1 Message Date
Claude
23c78133c4
ci: remove advanced CodeQL workflow in favor of default setup
The repository has CodeQL "default setup" enabled, which rejects SARIF
uploads from an advanced workflow ("CodeQL analyses from advanced
configurations cannot be processed when the default setup is enabled"),
failing the Analyze check on every PR to main. Drop the advanced
.github/workflows/codeql.yml and let GitHub's default setup handle
CodeQL scanning.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SSikT9ZAfQF8K4SE3DatD3
2026-07-07 02:41:00 +00:00
Claude
90981261a5
Merge remote-tracking branch 'origin/claude/git-files-sync-issue-31-54izdm' into claude/trusting-volta-qlg8bk
# Conflicts:
#	.github/workflows/ci.yml
#	package-lock.json
2026-06-28 04:50:34 +00:00
Claude
f2037f955a
ci: drop removed skip-sonar input and SONAR_TOKEN secret
The shared workflow obsidian-plugin-ci.yml@v1 no longer defines the
skip-sonar input or the SONAR_TOKEN secret, which made the caller
workflow invalid ("Invalid input/secret ... is not defined in the
referenced workflow"). Remove both so the workflow validates again.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DwioG4CNKUBuKiZdowLFWe
2026-06-27 09:10:45 +00:00
Claude
e4d72e0f87
ci: upgrade actions to Node 24 compatible versions
- actions/checkout: v4 → v6
- actions/setup-node: v4 → v6
- actions/upload-artifact: v4 → v5
- actions/checkout (codeql.yml): v4 → v6

https://claude.ai/code/session_019Jbz6HpQvWU1wpm5M6MZpd
2026-06-16 04:26:39 +00:00
Claude
8eb5903336
ci: fix artifact name by sanitizing branch name slashes
Replace / with - in branch name and use short SHA (7 chars)
e.g. plugin-claude-trusting-volta-qlg8bk-c2c5dd5

https://claude.ai/code/session_019Jbz6HpQvWU1wpm5M6MZpd
2026-06-16 04:24:39 +00:00
Claude
21a6f984ee
ci: update GitHub Actions to latest versions
- actions/setup-node: node 20 → 22 (Node 20 EOL Apr 2026)
- github/codeql-action: v3 → v4 (v3 deprecated Dec 2026)

https://claude.ai/code/session_019Jbz6HpQvWU1wpm5M6MZpd
2026-06-16 04:23:56 +00:00
Claude
c2c5dd584c
ci: upload build artifact on non-main branches for testing
https://claude.ai/code/session_019Jbz6HpQvWU1wpm5M6MZpd
2026-06-16 04:22:32 +00:00
Claude
8024939a89
ci: remove SonarQube from CI/CD pipeline
https://claude.ai/code/session_019Jbz6HpQvWU1wpm5M6MZpd
2026-06-16 04:15:01 +00:00
ClaudiaFang
3a0f99e383 fix(ci): switch to shared workflow v1 and fix repository url 2026-06-16 03:53:29 +00:00
ClaudiaFang
8d7a25f30c ci: add CodeQL static analysis workflow 2026-05-25 02:47:07 +00:00
ClaudiaFang
c945b9dfb0 ci: add attestations and id-token permissions for artifact provenance
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 07:25:32 +00:00
Tianyao
c3f1d4fdc1 ci: migrate shared workflow reference to .github 2026-05-02 13:37:54 +08:00
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
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
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
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
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
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