]> git.openstreetmap.org Git - rails.git/commitdiff
Attempt to get danger working as a CI workflow
authorTom Hughes <tom@compton.nu>
Thu, 17 Oct 2024 17:41:05 +0000 (18:41 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 17 Oct 2024 17:41:05 +0000 (18:41 +0100)
References #5267

.github/workflows/labeling.yml

index d7752c519c30b9c1a7cbecca95f0ee54907250b6..25f65873b82065b4b1bb3aa58f0d6a993f42c704 100644 (file)
@@ -6,12 +6,17 @@ on:
   pull_request_target:
     types: [opened, synchronize]
 
   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
 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:
       - name: Setup ruby
         uses: ruby/setup-ruby@v1
         with:
@@ -20,6 +25,6 @@ jobs:
           bundler-cache: true
       - name: Danger
         env:
           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
         run: |
           bundle exec danger --verbose