What is the format of the data posted to the GitHub API? #43501
Unanswered
meera1002
asked this question in
API and Webhooks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Oktokit create a commit
Bug,Oktokit,GitHub API
Body
I am working on an API that will get content from the GitHub repo and the author will make changes to that file content. When the author submits the changes the API will create a pull request.
The problem is whenever I make a pull request, the pull request shows me a big difference even if it is a small change. I think this is caused by the format or something on the API side. How do I resolve this? Authors don't want to see this big difference. They want to see only the updated changes in the pull request.
Please help
The plugin I am using => https://github.com/gr2m/octokit-plugin-create-pull-request
Following is my code to create the Pull request.
Following test added to the content => "New change"
Pull request image
Beta Was this translation helpful? Give feedback.
All reactions