smart_todo 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +27 -0
- data/.github/workflows/rubocop.yml +22 -0
- data/.rubocop.yml +3 -3
- data/Gemfile +2 -2
- data/Gemfile.lock +33 -26
- data/README.md +1 -1
- data/dev.yml +1 -1
- data/exe/smart_todo +3 -3
- data/lib/smart_todo/cli.rb +6 -6
- data/lib/smart_todo/dispatchers/base.rb +12 -10
- data/lib/smart_todo/dispatchers/slack.rb +25 -19
- data/lib/smart_todo/events/date.rb +1 -1
- data/lib/smart_todo/events/gem_bump.rb +2 -2
- data/lib/smart_todo/events/gem_release.rb +5 -5
- data/lib/smart_todo/events/issue_close.rb +7 -7
- data/lib/smart_todo/events.rb +2 -2
- data/lib/smart_todo/parser/comment_parser.rb +1 -1
- data/lib/smart_todo/parser/metadata_parser.rb +8 -7
- data/lib/smart_todo/parser/todo_node.rb +3 -3
- data/lib/smart_todo/slack_client.rb +10 -10
- data/lib/smart_todo/version.rb +1 -1
- data/lib/smart_todo.rb +12 -12
- data/lib/smart_todo_cop.rb +4 -4
- data/service.yml +1 -0
- data/smart_todo.gemspec +7 -6
- metadata +23 -22
- data/.rubocop-http---shopify-github-io-ruby-style-guide-rubocop-yml +0 -1027
- data/.travis.yml +0 -15
- data/CHANGELOG.md +0 -63
data/.travis.yml
DELETED
data/CHANGELOG.md
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
# Changelog
|
2
|
-
All notable changes to this project will be documented in this file.
|
3
|
-
|
4
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
-
|
7
|
-
## [Unreleased]
|
8
|
-
|
9
|
-
## [1.2.0] - 2019-11-25
|
10
|
-
### Fixed
|
11
|
-
- Fixed crash with badly formated TODO(on:) (i.e. `TODO(on: 'blabla'))
|
12
|
-
|
13
|
-
### Added
|
14
|
-
- Added the `on: gem_bump` event which will remind you when a gem inside your
|
15
|
-
Gemfile.lock snapshot gets updated to a specific version.
|
16
|
-
|
17
|
-
```ruby
|
18
|
-
# TODO(on: gem_bump('rails', '6.1'), to: '...')
|
19
|
-
```
|
20
|
-
|
21
|
-
## [1.1.0] - 2019-09-06
|
22
|
-
### Fixed
|
23
|
-
- Fixed the SmartTodo cop to add an offense in case a SmartTodo has a wrong event.
|
24
|
-
```ruby
|
25
|
-
# Bad
|
26
|
-
#
|
27
|
-
# TODO(on '2019-08-08')
|
28
|
-
```
|
29
|
-
|
30
|
-
### Added
|
31
|
-
- SmartTodo will now use the fallback channel in case a todo has a channel
|
32
|
-
assignee that doesn't exist.
|
33
|
-
- Added a new `Output` dispatcher which will just output the expired event.
|
34
|
-
By default SmartTodo will now output expired todo in the terminal instead
|
35
|
-
of not running at all.
|
36
|
-
|
37
|
-
Users should now pass a `--dispatcher` to the CLI to let SmartTodo through
|
38
|
-
which dispatcher the message should be send.
|
39
|
-
|
40
|
-
```sh
|
41
|
-
bin/smart_todo --dispatcher 'slack'
|
42
|
-
```
|
43
|
-
|
44
|
-
For backward compatibility reasons, the dispacher used will be Slack, in
|
45
|
-
case you have the `ENABLE_SMART_TODO` environment set. This will be removed
|
46
|
-
in the next major version.
|
47
|
-
|
48
|
-
## [1.0.2] - 2019-08-09
|
49
|
-
### Fixed
|
50
|
-
- Fixed the SmartTodo cop to add an offense in case a SmartTodo has no assignee.
|
51
|
-
```ruby
|
52
|
-
# Bad
|
53
|
-
#
|
54
|
-
# TODO(on: date('2019-08-08'))
|
55
|
-
```
|
56
|
-
|
57
|
-
## [1.0.1] - 2019-08-06
|
58
|
-
### Fixed
|
59
|
-
- Fixed `issue_close` event making a call to the `pulls/` GH endpoint instead of the `issues/` one
|
60
|
-
|
61
|
-
## [1.0.0] - 2019-07-19
|
62
|
-
### Added
|
63
|
-
- Initial Release
|