How siyuan-note/bazaar works
SiYuan Bazaar maintains community package listings, validates pull-request changes, stages package releases into client-facing indexes, and publishes index artifacts. The principal workflow runs from a package-list PR through package/release validation and review, then—after merge—scheduled staging and index publication. Separate branches support incremental staging, deprecation metadata, and archived-repository audits. The excerpts show selected calls; other links below are documented by the README, while unsampled implementation details are not inferred.
Main entry points: check/main.go PR check · stage/main.go Stage runner · manifest.go Package rules · index/main.go Index publisher
Components 18
PR review
- PR check
actions/check/main.go - PR scheduling
actions/check/select.go - Check metadata
actions/check/meta.go - PR labels
actions/check/label.go
Package validation
- Release lookup
actions/util/release.go - Package rules
rules/manifest.go - Package file checks
rules/files.go - Deprecation registry
actions/util/deprecated.go
Index staging
- Stage runner
actions/stage/main.go - Incremental planning
actions/stage/incremental.go - Package indexing
actions/stage/index.go - Stage reporting
actions/stage/report.go - Index publisher
actions/index/main.go
Bazaar operations
- Archived repo audit
actions/audit-archived/main.go
Other components
- Package contributor
- GitHub
- Object storage
- Rhy service
Connections 19
- Package contributor → PR check: opens PR
README.md - PR scheduling → PR check: schedules checks
README.md - PR check → GitHub: checks PR
actions/check/main.go - PR check → Release lookup: fetches release
actions/check/main.go - PR check → Package rules: validates package
actions/check/main.go - Package rules → Package file checks: checks files
- PR check → PR labels: syncs labels
actions/check/main.go - PR check → Check metadata: records check state
- Stage runner → Incremental planning: plans updates
- Stage runner → Package indexing: stages packages
README.md - Package indexing → Package rules: validates package
actions/stage/index.go - Stage runner → Release lookup: fetches releases
actions/stage/main.go - Stage runner → Deprecation registry: applies deprecations
README.md - Stage runner → Stage reporting: reports failures
- Stage runner → Object storage: writes staged data
- Index publisher → Object storage: uploads indexes
actions/index/main.go - Index publisher → Rhy service: reports index hash
actions/index/main.go - Archived repo audit → GitHub: queries repository state
actions/audit-archived/main.go - Archived repo audit → Deprecation registry: reads registry
actions/audit-archived/main.go