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

Reading current git branch name

November 22, 2019 at 10:39am

Reading current git branch name

November 22, 2019 at 10:39am
Hello! Is there any way to retrieve the name of the current branch in a dangerfile script? It seems the API lacks anything relating to branch or ref

November 22, 2019 at 12:13pm
You could do it by asking git (it is just either a script running in a terminal after all) or you can consult the github/gitlab/bitbucket PR metadata which should include that sort of data
  • reply
  • like