3 ms·
> we use a pre-receive hook But in the context of this discussion, LLVM is moving to GitHub and there is no possibility of custom pre-receive hook there as far
by Joky 8y ago
> we use a pre-receive hook
But in the context of this discussion, LLVM is moving to GitHub and there is no possibility of custom pre-receive hook there as far as I know.
- avar 8y agoAs discussed in the linked E-Mail thread they're either talking about using GitHub as a publishing platform for something where they do have custom hooks, or making everything go through GitHub pull requests. Using either of those methods they can enforce this. E.g. if they go through PRs just write a script that e.g. grabs the refs for the PR, rebases (and --no-ff merges, depending) the commits there, pushes them to master, and closes the PR as merged. The user running that script would be the only one allowed to commit to "master", and would use its own scripted method of integrating them, instead of clicking "Merge" in the GitLab UI.
- Joky 8y agoLLVM allows direct push to master from its contributor. If we were to go through pull-requests, we wouldn't need anything as GitHub has this setting built-in: https://help.github.com/articles/configuring-commit-rebasing-for-pull-requests/ https://help.github.com/articles/configuring-commit-rebasing...