zlacker

[parent] [thread] 8 comments
1. eddyth+(OP)[view] [source] 2023-06-20 17:46:56
It’s not that hard to setup. It’s a built-in feature in something like gitea. Or you can write a `git push` cron task or a server hook in git to keep the 2 in sync. GitHub is full of mirror repos. You can also disable issues, discussions, wiki, and pull requests if you don’t want to deal with that.
replies(2): >>retroc+m2 >>oefrha+V9
2. retroc+m2[view] [source] 2023-06-20 17:53:57
>>eddyth+(OP)
That's what I'm doing now. It's what I don't want to do. I want the public repo to autopush PRs to my private repo so I don't have to poll it.

[LOL. A previous edit autocorrected "autopush" to "autopsy." Or maybe it was a Freudian slip on my part.]

replies(1): >>eddyth+Q2
◧◩
3. eddyth+Q2[view] [source] [discussion] 2023-06-20 17:56:04
>>retroc+m2
You can trigger a GitHub action on any PR and run any arbitrary code you want.
replies(1): >>retroc+3e
4. oefrha+V9[view] [source] 2023-06-20 18:23:56
>>eddyth+(OP)
> You can also disable … pull requests

That is the one thing you can’t disable on GitHub unless something changed recently. Very annoying for mirrors where development happens elsewhere.

replies(1): >>TillE+1e
◧◩
5. TillE+1e[view] [source] [discussion] 2023-06-20 18:40:23
>>oefrha+V9
Make a README.md which clearly states this at the top, and a CONTRIBUTING.md. After that, it's just not your problem if someone opens a PR.
replies(1): >>duskwu+Yo
◧◩◪
6. retroc+3e[view] [source] [discussion] 2023-06-20 18:40:34
>>eddyth+Q2
Again. I DON'T want to run a script in a container on github's infrastructure.
replies(2): >>eddyth+PM >>uvatbc+r31
◧◩◪
7. duskwu+Yo[view] [source] [discussion] 2023-06-20 19:29:45
>>TillE+1e
There are a couple of other options, although I'll agree that none of them are ideal:

1) You can set up Github Actions to automatically close pull requests: https://github.com/marketplace/actions/close-pull-request

2) You can use "interaction limits" (in repository settings, under "moderation options") to limit repository interactions to collaborators. This can only be set for 6 months at a time, though, so you'll need to reactivate it periodically.

3) You can archive the project and unarchive it temporarily when making changes, disabling all activity on the fork.

◧◩◪◨
8. eddyth+PM[view] [source] [discussion] 2023-06-20 21:14:52
>>retroc+3e
If you’re polling, you can use GitHub APIs. They are pretty well documented. If you want a turn-key solution, use gitea. Depending on how flexible you need it, gitea might cover your scenarios. But you can have actions in gitea as well that automate polling GitHub APIs for issues or comments or pull requests etc.
◧◩◪◨
9. uvatbc+r31[view] [source] [discussion] 2023-06-20 22:44:58
>>retroc+3e
GitHub self hosted runners might address this concern.
[go to top]