README.md in hackerone-client-0.10.0 vs README.md in hackerone-client-0.11.0

- old
+ new

@@ -45,9 +45,21 @@ # returns all common responses program.common_responses ``` +## State change hooks + +You can add hooks that will be called for every state change. This can be useful e.g. for ensuring that reports always get assigned or calling out to external services for specific state changes. + +```ruby +# Initialization + +HackerOne::Client::Report.add_state_change_hook ->(report, old_state, new_state) do + # ... +end +``` + ## Usage ### Credential management You'll need to generate an API token at `https://hackerone.com/<program>/api`.