Commit Graph

3 Commits

Author SHA1 Message Date
wauxing e431abf8ef chore(sweep): add workflow runtime deps + test repo scripts
- workflows/community-ops-sweep/scripts/gitlink_workflow.py: CLI wrapper
  imported by community_ops_sweep.py (was missing from tree → import error)
- community-ops-sweep.wf.js: fix ENGINE path (examples/ → workflows/) and
  pass --routing to the plan phase
- scripts/restore-test-repo.sh: reset baoerjun/gitlink-cli test repo; fix
  issue batch-delete flag (--yes → --confirm, the CLI uses --confirm and
  silently skipped deletion on unknown flag, causing duplicate imports)
- scripts/import-test-data.sh: companion importer called by restore
2026-07-07 19:24:23 +08:00
wauxing e0737c0c95 refactor(sweep): adapt wiki publishing to new gitlink-cli interface
Rewrite the wiki section of community_ops_sweep.py to match the current
gitlink-cli wiki commands (shortcuts/wiki/wiki.go), replacing the obsolete
--page-name/--title/--project-id/--gateway flags.

New flow in _publish_report_to_wiki:
  1. bootstrap _Sidebar on cold-start (empty wiki had no sidebar → mkdir/
     create -d 404'd)
  2. ensure the report directory exists (idempotent +mkdir)
  3. wiki +create -d, letting the CLI maintain the sidebar link

Drops the hand-rolled _Sidebar parser (now built into the CLI) and the
unreliable create→update fallback (create always returns 201). Handles the
.- sub_url suffix: page name uses an ASCII slug; the CLI (after the
cleanSidebar fix) auto-cleans the link on delete.

Verified end-to-end with --apply on baoerjun/gitlink-cli: report page
created, _Sidebar directory structure correct, dry-run path intact.
2026-07-07 18:44:01 +08:00
wauxing d9d3bbc30c chore: move community-ops-sweep workflow to project root workflows/
Move examples/workflows/community-ops-sweep to workflows/community-ops-sweep
to promote it from an example to a first-class project workflow.

Also includes pending org shortcuts modifications.
2026-07-07 10:43:08 +08:00