GithubにAPI経由でPull Requestを作るときに、トークンに必要なscopeを調べたところ、public_repo scopeが必要でした。

トークンを指定していない、またはトークンに必要なscopeがないと、404エラーが返されます。
% curl -X POST https://api.github.com/repos/:owner/:repo/pulls
{
"message": "Not Found",
"documentation_url": "https://developer.github.com/v3/pulls/#create-a-pull-request"
}
調べるのに30分かかった。