I can create (push) a new file on the GitHub repository with Curl via GitHub REST API and convert my file to Base64 format. Here is my working curl for push:
curl -X PUT -H "Authorization: token xxx" https://api.github.com/repos/{owner}/{repo}/contents/{path}/{fileName} -d "{\"message\":\"your commit message\",\"content\":\"file in BASE64\"}"
Now I want to create a pull request via curl to the GitHub repository. I read GitHub Docs, but I can't find any working sample for this topic. Can anyone provide a sample?
POST /repos/:owner/:repo/pullsFull example from documentation: