menu
Channels
# All channels
view-forward
# General
view-forward
# Announcements
view-forward
# Docs
view-forward
# JavaScript
view-forward
# Peril
view-forward
# Ruby
view-forward
# Swift
view-forward
Team

Trying to read diff for one single commit

July 29, 2020 at 12:58am

Trying to read diff for one single commit

July 29, 2020 at 12:58am
Is there a way to get a TextDiff for the latest commit using danger.git? I've tried using getDiffForFile but it's returning diffs for all the commits on the branch. Thanks in advance for the help!

July 29, 2020 at 11:17am
No, I think you'll need to use the GitHub API for that, all those commands assume base:head - though I guess if it's not too unergonomic, I'd accept a PR which allows choosing the head/base which could then be what you want
  • reply
  • like