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

Add support for committing multiple files. #360

Closed
siordache opened this issue Jul 7, 2017 · 0 comments
Closed

Add support for committing multiple files. #360

siordache opened this issue Jul 7, 2017 · 0 comments

Comments

@siordache
Copy link
Contributor

siordache commented Jul 7, 2017

A single file can be committed by using one of the GHRepository.createContent() methods.

In order to commit multiple files, the following steps have to be taken:

  1. Get the SHA of the latest commit on the branch
  2. Get the tree information for that commit
  3. Create a new tree for your commit
  4. Create the commit
  5. Link commit to the reference

The operations in steps 3 and 4 are currently not suppported by github-api. They involve:

Do you find the addition of these operations useful? If yes, I will create a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants