Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create blob, create tree, and create commit APIs give 404 error when dealing with forks #24747

Closed
1 task done
Pandapip1 opened this issue Mar 29, 2023 · 7 comments
Closed
1 task done
Labels
content This issue or pull request belongs to the Docs Content team rest Content related to rest - overview. waiting for review Issue/PR is waiting for a writer's review

Comments

@Pandapip1
Copy link

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/rest/git/blobs
https://docs.github.com/en/rest/git/trees

What part(s) of the article would you like to see updated?

The create blob & create tree sections.

Additional information

This is undocumented behavior.

@Pandapip1 Pandapip1 added the content This issue or pull request belongs to the Docs Content team label Mar 29, 2023
@welcome
Copy link

welcome bot commented Mar 29, 2023

Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Mar 29, 2023
@Pandapip1

This comment was marked as outdated.

@Pandapip1
Copy link
Author

Never mind. I can't figure out how to modify just one API endpoint's section.

@Pandapip1 Pandapip1 changed the title Create blob & create tree APIs fail when dealing with forks Create blob, create tree, and create commit APIs fail when dealing with forks Mar 29, 2023
@Pandapip1 Pandapip1 changed the title Create blob, create tree, and create commit APIs fail when dealing with forks Create blob, create tree, and create commit APIs give 404 error when dealing with forks Mar 29, 2023
@cmwilson21 cmwilson21 added waiting for review Issue/PR is waiting for a writer's review rest Content related to rest - overview. and removed triage Do not begin working on this issue until triaged by the team labels Mar 30, 2023
@cmwilson21
Copy link
Contributor

@Pandapip1 Thanks so much for opening an issue! I'll triage this for the team to take a look 👀

@Pandapip1
Copy link
Author

Pandapip1 commented Mar 31, 2023

By the way, in the meantime, the recommended way around this when dealing with PRs, according to GitHub support, is to:

  1. Create a new temporary branch in the original repository.
  2. Push the commit to that newly-created branch.
  3. Change the 'to' branch of the PR to that newly-created branch.
  4. Call the 'update branch' API to merge the changes from that branch (i.e. the single commit) into the PR.
  5. Change the 'to' branch back to its original value
  6. Delete the temporary branch.

@cmwilson21
Copy link
Contributor

@Pandapip1 Thanks so much for coming back and giving us this extra context. We appreciate the update! 💖

@docubot
Copy link
Contributor

docubot commented Mar 31, 2023

Thank you for opening this issue! Updates to the REST API, GraphQL API, and webhook reference documentation must be made internally. I have copied your issue to an internal issue, so I will close this issue.

@docubot docubot closed this as completed Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content This issue or pull request belongs to the Docs Content team rest Content related to rest - overview. waiting for review Issue/PR is waiting for a writer's review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants
@skedwards88 @Pandapip1 @docubot @cmwilson21 and others