Skip to content

[Config Issue] GitHub Merge Queue - Danger server stuck in "waiting for status be reported" #1427

Open
@eppisapiafsl

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:

  1. 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');
  1. 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
Screenshot 2024-02-26 at 10 03 45 AM Screenshot 2024-02-26 at 10 03 31 AM

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions