Depot CI now supports discussion and delete triggers
18 NOV, 2026
Depot CI now supports on.discussion and on.delete triggers. Run workflows when someone creates or changes a discussion, or when someone deletes a branch or tag. For example, clean up a preview environment when its branch is deleted:
on:
delete:
jobs:
cleanup:
if: github.event.ref_type == 'branch'
runs-on: depot-ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./scripts/delete-preview.sh "$BRANCH"
env:
BRANCH: ${{ github.event.ref }}Use types to choose which discussion activities start a workflow, for example types: [created, answered]. Add the workflow to .depot/workflows/ on your repository's default branch to activate it. As in GitHub Actions, both events run the workflow from the default branch, and deleting more than three tags at once starts no delete workflow.
Workflows can also request the discussions permission for GITHUB_TOKEN. Your Depot Code Access GitHub App installation must approve the new Discussions permission before Depot CI receives discussion events.
See Discussion and delete events for details.