Sha256: 25ad12a72255499383bfe6e7f5ca556e21a076f4b8fd0a840f5d06d02d60115d
Contents?: true
Size: 1.86 KB
Versions: 3
Compression:
Stored size: 1.86 KB
Contents
[![Build Status](https://travis-ci.org/hanneskaeufler/danger-todoist.svg?branch=master)](https://travis-ci.org/hanneskaeufler/danger-todoist) [![Gem Version](https://badge.fury.io/rb/danger-todoist.svg)](https://badge.fury.io/rb/danger-todoist) # danger-todoist danger-todoist is a [https://danger.systems](danger) plugin to automatically notify you of todos left in the code of a pull/merge request. ## Installation Add `gem 'danger-todoist'` to your `Gemfile` and start using todoist in your `Dangerfile`. ## Usage Methods and attributes from this plugin are available in your `Dangerfile` under the `todoist` namespace. <blockquote>Ensure, by warning, there are no TODOS left in the modified code <pre> todoist.warn_for_todos</pre> </blockquote> <blockquote>Ensure, by failing the build, no TODOS left in the modified code <pre> todoist.fail_for_todos</pre> </blockquote> <blockquote>Set custom warning message for warning <pre> todoist.message = "Please fix all TODOS" todoist.warn_for_todos</pre> </blockquote> <blockquote>List every todo item <pre> todoist.warn_for_todos todoist.print_todos_table</pre> </blockquote> <blockquote>Do anything with the todos. Todos have `text` and `file` properties <pre> todoist.todos.each { |todo| puts todo.text }</pre> </blockquote> #### Attributes `message` - Message to be shown #### Methods `warn_for_todos` - Adds a warning if there are todos found in the modified code `fail_for_todos` - Adds an error if there are todos found in the modified code `print_todos_table` - Adds a list of offending files to the danger comment `todos` - Returns the list of todos in the current diff set ## Development 1. Clone this repo 2. Run `bundle install` to setup dependencies. 3. Run `bundle exec rake spec` to run the tests. 4. Use `bundle exec guard` to automatically have tests run as you make changes. 5. Make your changes.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danger-todoist-1.1.0 | README.md |
danger-todoist-1.0.1 | README.md |
danger-todoist-1.0.0 | README.md |