Skip to content

[FEAT]: more than one file #295

@Pomax

Description

@Pomax

Describe the need

Right now if you want to use octokit to upload a bunch of text files, you either have to run one commit for each file using this plugin, or you need to play the insane "create blobs and paralllel paths, then a tree, then a commit, then update refs" REST API game. It would be so nice if this plugin had something normal for multiple text files as well as single text files, like

octokit.createOrUpdateTextFiles({ // note the plural
  owner,
  repo,
  branch,
  files: [ 
    { path: ... , content: ... },
    { path: ... , content: ... },
    { path: ... , content: ... },
  ]
);

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Up for grabsIssues that are ready to be worked on by anyoneType: FeatureNew feature or request

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions