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

Push directory to Git #233

Open
SamStenner opened this issue Aug 25, 2022 · 1 comment
Open

Push directory to Git #233

SamStenner opened this issue Aug 25, 2022 · 1 comment
Labels
kind/enhancement Improvements or new features

Comments

@SamStenner
Copy link

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Hi, we would like to be able to push a directory to Git using this SDK. Currently we can push a single file at a time with:

const fileTask = new github.RepositoryFile(name, {
    ...,
    file: '.github/workflows/my-worflow.yml'
})

This is fine for pushing individual files, such as when configuring the repo (e.g. Dockerfiles, Readmes, workflows) but our product requires us to dynamically create github repos, and deploy a local codebase to the repo (potentially thousands of files).

Perhaps something like:

const folderTask = new github.RepositoryFolder(name, {
    ...,
    folder: './my-folder'
})

I'd be happy to implement this myself if I could be pointed in the right direction, or warned that this isn't possible.

Many thanks!

Affected area/feature

  • Automation API
@SamStenner SamStenner added kind/enhancement Improvements or new features needs-triage Needs attention from the triage team labels Aug 25, 2022
@stack72
Copy link
Contributor

stack72 commented Aug 29, 2022

Hi @SamStenner

I need to look at the upstream provider and see if this is something they can support - if I hear back, I will post

Paul

@stack72 stack72 added awaiting-feedback Blocked on input from the author and removed needs-triage Needs attention from the triage team labels Aug 29, 2022
@mikhailshilkov mikhailshilkov removed the awaiting-feedback Blocked on input from the author label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

3 participants