Skip to content
This repository was archived by the owner on Sep 13, 2020. It is now read-only.
This repository was archived by the owner on Sep 13, 2020. It is now read-only.

Make it work on forks instead of the main repos #3

@f-f

Description

@f-f

Right now, the code will create branches locally when doing updates, and then push them as branches to their origin repo.
This is fine for @pacchettibotti because it has write access to all of them, but it's not fine if someone else wants to run the project.

I think the main issue is this line

, "git push --set-upstream origin " <> branchName

..where we set origin as the upstream. I suspect that's not the only place where this idea is hardcoded though.

So we should extend the code so that:

  • we can specify a username in the config.json or with an envvar
  • ..and then when pushing to upstream, we'd check if that username has a fork of the repo, and if not we'd create it and push to it.

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