Service Map
When SWEny finds an error in a service that lives in a different repository, it can automatically dispatch the fix workflow to the correct repo.
Create .github/service-map.yml in your repository:
services: api-gateway: repo: "your-org/api-gateway" owns: - api-gateway - api-gateway-staging billing-service: repo: "your-org/billing" owns: - billing-svc - billing-svc-staging auth-service: repo: "your-org/auth" owns: - auth-svcHow it works
Section titled “How it works”- SWEny investigates errors across all services (or filtered by
service-filter) - When the best candidate error belongs to a service like
billing-svc, SWEny looks up the owner in the service map - If the owner repo (
your-org/billing) differs from the current repo, SWEny dispatches aworkflow_dispatchevent to the target repo - The target repo runs its own SWEny workflow with the specific issue context
Requirements
Section titled “Requirements”For cross-repo dispatch, you need a bot-token with repo and actions scopes for all target repositories:
- uses: swenyai/sweny@v0.2 with: bot-token: ${{ secrets.BOT_TOKEN }} # ... other inputsCustom path
Section titled “Custom path”By default, SWEny looks for the service map at .github/service-map.yml. Override with:
- uses: swenyai/sweny@v0.2 with: service-map-path: 'config/services.yml' # ... other inputs