Commit Graph

2 Commits

Author SHA1 Message Date
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