]> git.openstreetmap.org Git - rails.git/blobdiff - .github/workflows/labeling.yml
Merge remote-tracking branch 'upstream/pull/5276'
[rails.git] / .github / workflows / labeling.yml
index d7752c519c30b9c1a7cbecca95f0ee54907250b6..4693ca570c47fac65f52a099230bca9f82f64fb6 100644 (file)
@@ -6,12 +6,17 @@ on:
   pull_request_target:
     types: [opened, synchronize]
 
+permissions:
+  issues: write
+
 jobs:
   danger:
     runs-on: ubuntu-22.04
     steps:
       - name: Check out code
         uses: actions/checkout@v4
+        with:
+          fetch-depth: 0
       - name: Setup ruby
         uses: ruby/setup-ruby@v1
         with:
@@ -20,6 +25,6 @@ jobs:
           bundler-cache: true
       - name: Danger
         env:
-          DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
-          bundle exec danger --verbose
+          bundle exec danger --verbose --base=${{ github.base_ref }} --head=${{ github.head_ref }}