Skip to content

Add support for committing multiple files. #360

@siordache

Description

@siordache

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions