+
Skip to content

Repository.write() fails because updateTree uses a commit SHA #125

Closed
@dannyfallon

Description

@dannyfallon

Github recently changed a compensation in their Trees API and as a result have broken repository.write().

As you can see from the documentation the base_tree argument is supposed to be a tree object sha. This module is using a commit sha. The Github API used to compensate by detecting this invalid commit sha and fetching the tree sha for it in the background but stopped this behaviour in the last four days, throwing an API exception now.

The Commits API can be used to get a tree object sha from a commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载