Directory-Based Affected Targets
Get setup instructions for automated and manually specified targets. Learn how to manually define targets based on your directory structure in our guide.
Automated (preferred)
name: Aviator Queue PR
on:
pull_request:
types: [ labeled ]
jobs:
path_board:
if: ${{ github.event.label.name == 'av-ready' }}
runs-on: ubuntu-latest
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
workflows:
- '.github/workflows/*'
billing:
- billing/.*
tests:
- tests/*
other:
- *.txt
- run: |
TARGETS=${{ toJSON(steps.filter.outputs.changes) }}
PR_NUMBER=${{ github.event.number }}
curl -X POST -H "Authorization: Bearer ${{ secrets.AVIATOR_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{
"action": "queue",
"pull_request": {
"number": '"$PR_NUMBER"',
"repository": {"name": "testrepo", "org": "ankitjaindce"},
"affected_targets": '"$TARGETS"'
}
}' https://api.aviator.co/api/v1/pull_request/Manually specify targets
Last updated
Was this helpful?
