- 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
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.
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.