Given - A branch from a source repository is created to work on a feature/bug.
When - a developer has finished with the feature/bug.
And - is ready to commit the branch.
Then - the branch would also be committed to a gitBook repository for documentation purposes.
This would automate/list any bug fixes and features that will need to be documented for public visibility.