You apparently canāt fork a repo in GitHub into the same organization that already owns it (presumably because they donāt give you a chance to change the name?)
Should I create a new repo fr.redwoodjs.com and then locally copy the entire existing redwoodjs.com directory and point to that new remote and push up? That way would preserve the entire history of the project.
Or should I rm -rf .git and then re-initialize and push up, to start with a fresh slate?
Yeah that seems like the kind of the thing GH Actions was made for. Wonder if thereās any recipes out there with people sharing some formulas. Have you seen anything like that @thedavid?
Thread from a couple of years ago where someone wants to run actions against for forked repo and they reply thatās not allowedāa bad actor could spam the account and cause of ton of actions which (when they start charging for Actions) would run up your bill. I wonder if this kind of thing falls under the same scenario: https://github.community/t/run-a-github-action-on-pull-request-for-pr-opened-from-a-forked-repo/16054
Maybe weāll need an actual process running on a server somewhere that checks for changes to main and uses the GH API to open a PR on the translated reposā¦
Now that thatās up and running Iām looking into a solution for staleness against main repo. Like you mentioned, github actions donāt look like they will work for us cross-repo. So, checking out some webhook + node server stuff
Iām trying to get even a node server up and running on heroku but failing lol.
My attempt so far. The build isnāt installing node modules and I hadnāt been able to figure out how to fix that. Will continue tomorrow
This attempt is a node server successfully listening to push changes from a dummy repo via webhook config. Getting the server to do something with that payload like make a PR to another repo is another storyā¦
In the back of my mind I wonder if itās not easier to manage all the markdown docs in a single repo (change-managed with gitlocalize) and have each locale repo fetch its respective docs during the build process.
Do you think we could do this with a function deployed to Netlify? Iām not up on my GitHub webhooks, but I feel like at some point you could make a webhook call to an arbitrary URL on commits/merges? If that call could go to the Netlify function endpoint we should be good to go. Maybe?
Are you getting cold feet on the entire-site-repo idea?? If we did it this way how would you manage when changes are made to the English MD files and somehow getting those updates into the translated versions? Or does gitlocallize have something to support that?