]> git.openstreetmap.org Git - rails.git/blobdiff - .github/workflows/labeling.yml
Get danger working on pull requests
[rails.git] / .github / workflows / labeling.yml
index 4693ca570c47fac65f52a099230bca9f82f64fb6..a223b47a425841dc003fda2e9cb0b2db8721b41d 100644 (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 }}