3.2.0
- Added
file
andline
optional parameters to methods on the messaging plugin - champo
This means that if you'd like to comment specifically on a line in a file inside the diff, you
can use an API like:
message("Please add your name to the CHANGELOG", file: "CHANGELOG.md", line: 4)
If you are using GitHub (who are the only ones with an API that supports line comments) you
will have the comments added inline. This makes changes to a lot of the logic inside the github
API, so we'd love bug reports (or PRs! :D) on things like "I expected this comment to be deleted."
On other platforms, it will ignore the file
and line
parameters.
-
Add Bitbucket Server aka. Stash integration - heeaad
This adds a new object to the DSL,
bitbucket_server
which offers the following API:bitbucket_server.pr_title # The title of the Pull Request bitbucket_server.mr_body # The body text of the Pull Request bitbucket_server.mr_author # The username of the author of the Pull Request bitbucket_server.mr_labels # The labels assigned to the Pull Request bitbucket_server.branch_for_merge # The branch to which the PR is going to be merged into bitbucket_server.base_commit # The base commit to which the PR is going to be merged as a parent bitbucket_server.head_commit # The head commit to which the PR is requesting to be merged from bitbucket_server.mr_json # The hash that represents the PR's JSON bitbucket_server.html_link (paths: String or Array, full_path=true: Bool) # Returns a list of HTML anchors for a file, or files in the head repository.
-
Deprecated
import_dangerfile(String)
in favor ofimport_dangerfile(Hash)
- dblockThe new
import_dangerfile
method supports loading Dangerfile from Github.danger.import_dangerfile github: 'ruby-grape/danger'
You can package a Dangerfile in a gem, add it to Gemfile and import it.
danger.import_dangerfile gem: 'ruby-grape-danger'
Use a local path for testing Dangerfile changes.
danger.import_dangerfile path: '/Users/me/source/ruby-grape/danger'
See #504 for details.
-
Prints updated danger message when installed danger is outdated - JuanitoFatas
-
Remove a variable assignment in comments_helper.rb - JuanitoFatas
-
Minor improvement to Danger.gem_path - JuanitoFatas