Using it is as simple as typing a comment in a PR that is ready to merge.
You can also ask it to bump the version number of addons modified by the pull request, with one of:
/ocabot merge patch
/ocabot merge minor
/ocabot merge major
The bot will then proceed with the following actions:
Rebase the pull request on the main branch (rebasing is done with --autosquash so if there are proper fixup! commits they will be squashed automatically).
Wait for test results, to be sure the branch remains green after rebase.
Wait for Travis to update the .pot files.
When everything is ok, generate or update the addons README, add an icon, and generate setup.py.
Optionally bump the patch/minor/major version number as requested.
Merge to the target branch.
Close the PR and label it as merged.
Give some love to contributors.
This method is now the preferred way of merging pull requests for OCA, and PSC members and maintainers are highly encouraged to use it.
The main benefits are:
CI checks are re-done after rebasing and before merging, to make sure the PR remains green after integration with the latest changes, so this will eliminate occurences where the main branch accidentally becomes red.
It's very easy for maintainers to bump addons version number, without bothering contributors.
You don't have to wait for CI results for being sure everything is OK. The bot will do it for you!
The bulk of the work to make this possible was done during the #OCADays code sprint in Spain from May 27th to May 29th.
Expect more features to be added in the future.