From 8e54d0f2aeaad8648a60e4685fa64380c45c5631 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 22 Oct 2024 19:06:19 +0100 Subject: [PATCH] Get danger working on pull requests --- .github/workflows/labeling.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/labeling.yml b/.github/workflows/labeling.yml index 4693ca570..a223b47a4 100644 --- a/.github/workflows/labeling.yml +++ b/.github/workflows/labeling.yml @@ -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 }} -- 2.39.5