github_ext

This is Danger Plugin for GitHub extension. When installing this plugin, you can additional methods on github instance

Determine if pull request is mergeable and mergeable status is clean

github.mergeable?
List labels for the pull request

github.labels
Add labels to the pull request

github.add_labels 'build ok'
Remove labels from the pull request

github.remove_labels 'build failed'
List current statuses for the head commit

github.statuses
Update the title of the pull request

github.update_pr_tile 'Updated title'
Update the body of the pull request

github.update_pr_body 'Updated body'
Close the pull request

github.close
Open the pull request

github.open

Methods

mergeable? - Determine if pull request is mergeable and mergeable status is clean

labels - List labels for the pull request

add_labels - Add labels to the pull request

add_label - Add label with color to the pull request

remove_labels - Remove labels from the pull request

statuses - List current statuses for the head commit

update_pr_title - Update the title of the pull request

update_pr_body - Update the body of pull request

close - Close the pull request

open - Open the pull request