work/pull_request: be smarter about the branch we are on