← Back to team overview

cloud-init team mailing list archive

Cloud-Init upstream is moving to GitHub!

 

Cloud-Init upstream is moving to GitHub!

  https://github.com/canonical/cloud-init

For new contributors, please see the HACKING documentation[1].

For existing contributors who've already signed the Canonical
Contributors License Agreement[2], we can verify the link between
your Launchpad account and your GitHub account by creating a branch
with both your Launchpad and GitHub usernames into both Launchpad and
GitHub cloud-init repositories.  We've added a tool[3] to the
cloud-init repository to handle this migration as automatically as
possible.

The cloud-init team will review the two merge proposals and verify
that the CLA has been signed for the Launchpad user and record the
associated GitHub account.  We will reply to the email address
associated with your Launchpad account that you've been clear to
contribute to cloud-init on GitHub.

If your company has signed the CLA for you, please contact us to help
in verifying which launchpad/GitHub accounts are associated with the
company.  For any questions or help with the process, please email:

Josh Powers <josh.powers@xxxxxxxxxxxxx> with the subject:
  Cloud-Init CLA


Thank you for your contributions,
  Cloud-Init Team

1. https://cloudinit.readthedocs.io/en/latest/topics/hacking.html
2. https://ubuntu.com/legal/contributors
3. Here's a sample output from the script:

  % ./tools/migrate-lp-user-to-github --help
  usage: migrate-lp-user-to-github [-h] [--dryrun] [--local-repo-dir
REPO_DIR]
                                   [--upstream-branch UPSTREAM] [-v]
                                   [--push-remote PUSHREMOTE]
                                   launchpad_user github_user

  Link your Launchpad user to github, proposing branches to LP and Github

  positional arguments:
    launchpad_user        Your launchpad username.
    github_user           Your github username.

  optional arguments:
    -h, --help            show this help message and exit
    --dryrun              Run commands and review operation in dryrun mode,
                          making not changes.
    --local-repo-dir REPO_DIR
                          The name of the local directory into which we
clone.
                          Default: /tmp/cloud-init-lp-to-github-migration
    --upstream-branch UPSTREAM
                          The name of remote branch target into which we
will
                          merge. Default: origin/master
    -v, --verbose         Print all actions.
    --push-remote PUSHREMOTE
                          QA-only provide remote name into which you want to
                          push
  % ./tools/migrate-lp-user-to-github raharper raharper
  Sycing master branch with upstream
  $ git checkout master
  $ git pull
  $ git remote -v
  $ git fetch launchpad-raharper
  $ git fetch github-raharper
  Creating a migration branch: migrate-lp-to-github adding your users
  $ git branch
  $ git checkout master
  $ git pull
  $ git branch -D migrate-lp-to-github
  $ git checkout origin/master -b migrate-lp-to-github
  $ git add /tmp/cloud-init-lp-to-github-migration/.lp-to-git-user
  $ git commit --all -F /tmp/commit.msg
  $ git push launchpad-raharper migrate-lp-to-github --force
  $ git push github-raharper migrate-lp-to-github --force
  [launchpad] Automatically creating merge proposal using launchpadlib
  The authorization page:
   (
https://launchpad.net/+authorize-token?oauth_token=XXXXX&allow_permission=DESKTOP_INTEGRATION
)
  should be opening in your browser. Use your browser to authorize
  this program to access Launchpad on your behalf.
  Waiting to hear from Launchpad about your decision...
  [launchpad] active merge proposal already exists at:

https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+ref/migrate-lp-to-github

  To link your account to github open your browser and click 'Create pull
request' at the following URL:

https://github.com/canonical/cloud-init/compare/master...raharper:migrate-lp-to-github

Follow ups