Skip to content

Feature: provider-agnostic API to fetch file contents of a different ref #1108

Open
@edno

Description

Describe the bug
danger.github is undefined.

Cannot read property 'pr' of undefined
TypeError: Cannot read property 'pr' of undefined
    at dangerfile.js:5:62

To Reproduce

  • git clone https://github.com/edno/danger-github-undefined.git
  • cd danger-github-undefined
  • yarn install (Yarn 2)
  • git checkout new-branch
  • yarn danger local -b main

Expected behavior
This should display

message(`:tada: The PR added ${additions} and removed ${deletions} lines.`)

Environment

software version
danger.js ^10.6.2
node v12.18.3
yarn 2.4.0
Operating System MacOS 11.2.1

Activity

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

Metadata

Assignees

No one assigned

    Labels

    You Can Do ThisThis idea is well spec'd and ready for a PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions