Releases: danger/danger
3.4.0
- Simplify initialization of Octokit client in request_sources/github.rb - Juanito Fatas
- Ensure commits exist inside the local git repo before using them for diffs - orta
- Big improvements to the warning around no API tokens being found - orta
- Support for failing on errors - orta/Juanito Fatas (the PR was pretty shared)
- Improves
danger local
merged Pull Request finding logic - Juanito Fatas - Adds some tests for Danger::Runner - Juanito Fatas
- Remove unused CLI options from
danger local
- Juanito Fatas - Raises error if plugin file doesn't contain any class inherits from Plugin - Juanito Fatas
3.3.2
- Use danger_id as context for GitHub status - Thiago Felix
- Increase the number of commits
danger local
to search for merged PR - Juanito Fatas - Fix rubocop offenses in plugin_linter.rb - Juanito Fatas
- Add missing require statements in bitbucket cloud and server - Juanito Fatas
3.3.1
- "danger local" can find squash-and-merge-type Pull Request - Juanito Fatas
- Fix request_sources files and specs location - Juanito Fatas
- Fix request_sources references in CI subclasses - Juanito Fatas
- trying to fix danger bugs - Juanito Fatas
- Fix Danger breaks when files are moved - Juanito Fatas
3.3.0
-
Add support for Bitbucket Cloud - Wolfgang Damm
This adds a new object to the DSL,
bitbucket_cloud
which offers the same API as Bitbucket Server!
To use it, ensureDANGER_BITBUCKETCLOUD_USERNAME
andDANGER_BITBUCKETCLOUD_PASSWORD
are in your
Jenkins environment, and you should be good to go. -
Add
git.info_for_file("some/file.txt")
: line counts and before/after file contents - tikitu -
Remove
String#danger_class
- Juanito Fatas -
Set defaults for file and line args of Violation#new & Markdown#new - Juanito Fatas
-
Add docs to
String#danger_pluralize
&String#danger_underscore
- Juanito Fatas -
Refactor Comment class out of CommentsHelper - Juanito Fatas
3.2.2
- Link to https://danger.systems/ in Bitbucket Server comments - HeEAaD
- Add
markdown_link
for the Bitbucket Server plugin - HeEAaD - Updated Bitrise documentation about env vars - kylejm
- Fix
html_link
for gitlab - hanneskaeufler
3.2.1
- Fix for markdown accidentally crashing Danger when sending a message #520 - orta
- Improved the width handling for the output of the
danger local
table - orta - Added a check for the merge inflection point inside the diff, and will fetch it if needed - orta
- Improved the width handling for the output of the
danger local
table - orta - Update comment & remove unused regexp name in request_source.rb - JuanitoFatas
- Mask password on BitbucketServerAPI object - JuanitoFatas
- Add
scm_provider
to the DSL allowing users and plugins ot check which scm provider is being used when running danger - K0nserv - Deprecated
branch_for_merge
for GitLab. Usebranch_for_base
instead. - K0nserv - Added
branch_for_base
andbranch_for_head
for GitLab. - K0nserv
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
3.1.1
- Fixes for
danger.import_dangerfile "org/repo"
- orta re:#487
3.1.0
- Show appropriate error message when GitHub repo was moved - KrauseFx
danger plugins json [gem]
will now give gem metadata too - orta- Crash fix for
bundle exec danger
- hanneskaeufler - Fix Buildkite repo slug URL generation - phillfarrugia
- Added support for Bitrise - kylejm
- Set LANG variable to en_US.UTF-8 before running git commands - bogren
3.0.3
- Add
mr_diff
/pr_diff
forDanger::DangerfileGitLabPlugin
- K0nserv - Fixes a bug where
danger
wouldn't work on Jenkins when setup with the GitHub Pull Request Builder plugin - vittoriom