Lets say I have a scenario:
I have 2 branches: master(default) and patch and both are live branches I created a topic branch from patch branch and wants to create a PR. When I create a PR, it tries to merge into master, as it is default.
Manually, I can change this, which has been answered in many post.
Merge pull request to a different branch than default, in Github
https://github.blog/2016-08-15-change-the-base-branch-of-a-pull-request/
But I wanted to know is there any way I can automate this; can using hooks will be useful in this case. so whenever I create a PR, it will automatically will try to merge PR into its specific base branch instead of manually trying to overwrite it by edit the base branch.