Get danger working on pull requests

This commit is contained in:
Tom Hughes 2024-10-22 19:06:19 +01:00
parent 67f7767f40
commit 8e54d0f2ae

View file

@ -7,7 +7,8 @@ on:
types: [opened, synchronize]
permissions:
issues: write
pull-requests: write
statuses: write
jobs:
danger:
@ -27,4 +28,4 @@ jobs:
env:
DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bundle exec danger --verbose --base=${{ github.base_ref }} --head=${{ github.head_ref }}
bundle exec danger --verbose --base=${{ github.event.pull_request.base.sha }} --head=${{ github.event.pull_request.head.sha }}