Open
Description
Describe the bug
We have configured "Danger" as a required step in the CI. It works as expected in Pull Request and After the merge process, but we face a problem configuring it for the new GitHub Merge Queue action (Configure to group 3 PRs at time)
To Reproduce
Steps to reproduce the behavior:
- Configure 2 Danger workflow, one for Pull request and another one for Merge Group
name: Danger JS
# The Merge Queue doesn't populate the PR information, neither the labels
# We need a new DangerJS to pass the CI requirements
on:
merge_group:
types:
- checks_requested
jobs:
danger_merge_group:
runs-on: ubuntu-latest
name: Danger JS
steps:
...
- name: Danger after merge
run: yarn danger ci --dangerfile "./dangerfile_merge_group.ts" --id "danger-merge-group" --newComment --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Danger JS
on:
merge_group:
pull_request:
types: ["opened", "edited", "reopened", "synchronize"]
env:
# Github Access Token used to download Github distributed packages such as react-native-wrnch
# See https://github.com/hinge-health/phoenix#setup-github-access-token
GITHUB_ACCESS_TOKEN: ${{ secrets.SHARED_PACKAGES_READ }}
jobs:
build:
runs-on: ubuntu-latest
name: Danger JS
steps:
...
- name: Danger
run: yarn danger ci --id "Danger" --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
The danger file to run in Merge group is quite simple 😅
import { message } from "danger";
message('PR merged');
- Danger works as expected on Pull request but in the Merge group it get stuck (Even that the CI pass)
GHA pass | Danger server stuck |
---|---|
![]() |
![]() |
Expected behavior
Danger populates the result of the GHA in the Merge Group action.
Screenshots
If applicable, add screenshots to help explain your problem.
Your Environment
software | version |
---|---|
danger.js | 11.3.1 |
node | 20.9.0 |
npm | 0.39.1 |
Operating System | Ubuntu |
Additional context
Activity