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

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

Open
f-f opened this issue May 8, 2020 · 0 comments
Open

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

f-f opened this issue May 8, 2020 · 0 comments

Comments

@f-f
Copy link
Member

f-f commented May 8, 2020

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant