Our branching approach is to have a master and production branch. Changes committed to our production branch are pushed to our repository nightly, via a 'git push' on our production server. Upon completion of the push, we would like an automated process that would:
1. Create a pull request to merge changes from production branch to the master branch
2. Auto approve the pull request
3. Auto-merge the pull request from production branch to master branch
4. Send email to predefined BitBucket Admin user, if any of the previous steps failed.
I reviewed the tutorials and examples from ScriptRunner, but it does not appear to offer this type of 'post-hook' process. Is this type of automation possible? How would we accomplish this?
Thank you!