ubiquity / devpool-directory-tasks

Open bounties for the devpool-directory repository
1 stars 3 forks source link

Sync code between `ubiquity/devpool-directory` and `ubiquity/devpool-directory-private` #25

Open rndquu opened 5 months ago

rndquu commented 5 months ago

There are 2 repositories which collect issues available for contributors:

  1. https://github.com/ubiquity/devpool-directory: Public repo, any contributor can take issue there
  2. https://github.com/ubiquity/devpool-directory-private: Private repo, only core contributors can take issues there since that repo issues may contain sensitive/NDA data

The issue is that we somehow need to sync code changes between https://github.com/ubiquity/devpool-directory and https://github.com/ubiquity/devpool-directory-private. We can't simply fork https://github.com/ubiquity/devpool-directory-private from https://github.com/ubiquity/devpool-directory and use github UI since private repos can't be synced.

What should be done:

Possible solution described here

jordan-ae commented 4 months ago

@rndquu This up for grabs?

rndquu commented 4 months ago

@rndquu This up for grabs?

Yes, you may setup code sync between https://github.com/ubiquity/devpool-directory and your forked instance of https://github.com/rndquu/devpool-directory-private-test for testing purposes and open a PR, I will check how it works with https://github.com/ubiquity/devpool-directory-private then

jordan-ae commented 4 months ago

/start

ubiquibot[bot] commented 4 months ago

DeadlineWed, May 29, 10:06 PM UTC
Registered Wallet 0x2F05fD58023B0a95d1866aa0A3b672cEf05945c5
Tips:
ubiquibot[bot] commented 4 months ago
# These linked pull requests are closed:  <a href="https://github.com/ubiquity/devpool-directory/pull/1193">#1193</a> 
0x4007 commented 5 days ago

I think we should use a git submodule. Basically we set up the private Directory to import all the contents of the public Directory, and then we overwrite the behavior of what needs to be different.

rndquu commented 4 days ago

I think we should use a git submodule. Basically we set up the private Directory to import all the contents of the public Directory, and then we overwrite the behavior of what needs to be different.

Ideally all of the changes should be made in https://github.com/ubiquity/devpool-directory, in particular:

  1. Add a new env variable, like MODE=public|private
  2. If MODE=private then disable tweeting
  3. Move opt.json and projects.json to env variables
  4. Probably smth else

So that we could simply:

  1. Fork https://github.com/ubiquity/devpool-directory to https://github.com/ubiquity/devpool-directory-bounties
  2. Setup all env variables so that https://github.com/ubiquity/devpool-directory-bounties worked "out of the box" without any code changes
  3. Setup code sync as described here so that we could sync code via github UI