Skip to content

Commit

Permalink
Get danger working on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Oct 22, 2024
1 parent 67f7767 commit 8e54d0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/labeling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
types: [opened, synchronize]

permissions:
issues: write
pull-requests: write
statuses: write

jobs:
danger:
Expand All @@ -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 }}

0 comments on commit 8e54d0f

Please sign in to comment.