When you open a pull request you can choose which you want your changes to be merged into.
Where you see Foobar:master ... YourRepo:master
there is a Edit
button on the far right which will then allow you to choose a different base branch - see below.