Page MenuHomePhabricator

Update git-llvm script to push to GitHub
Needs ReviewPublic

Authored by tstellar on Thu, Sep 19, 12:21 PM.



Note: This patch should not be pushed until SVN has become read-only.
It should be the first patch committed directly to GitHub.

This patch updates git-llvm to check for merge commits and then push
changes to GitHub if none are found. All logic related to SVN has been

I need help testing this to make sure it is robust and that the merge
commit checks can cover every case. To test only the merge checks,
just run git-llvm push --dry-run.

If you want to also test pushing chagnes, change the GIT_ORG and
GIT_REPO variables to one of your personal github repositories.
You will also need to enable the branch protections and the 'rebased'
status check for the branches you are trying to push to.

You need to run the script at least once with an unpushed commits
in order for the 'rebased' status check to appear as an option
to enable in your github projects configuration.

Event Timeline

tstellar created this revision.Thu, Sep 19, 12:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptThu, Sep 19, 12:21 PM
lenary added a subscriber: lenary.Mon, Oct 14, 12:05 PM

One request:


Please may you ensure that this works for the non-monorepo LLVM repositories when it initially goes live?