README.md in danger-auto_label-1.0.0 vs README.md in danger-auto_label-1.1.0
- old
+ new
@@ -1,17 +1,30 @@
### auto_label
No more set label to issue or pull request manually.
Example, you can set labels simply by changing the PR title.
-> Very simple usage. Set wip label automatically when the PR title contains '[WIP]'.
- ```sample.rb
+![sample](gif/sample.gif)
+
+### Usage
+
+Very simple usage.
+
+First, install gem.
+
+```
+$ gem install danger-auto_label
+```
+
+Set wip label automatically when the PR title contains '[WIP]'.
+
+```sample.rb
if github.pr_title.include? "[WIP]"
- auto_label.set_wip(github.pr_json["number"])
+ auto_label.wip=(github.pr_json["number"])
end
- ```
+```
#### Methods
-`set_wip` - Set WIP label to PR.
+`wip=` - Set WIP label to PR.
`set` - Set any labels to PR by this.