[Request] Add option to choose the github branch to use #701

Closed
theshadowx opened this Issue Apr 30, 2017 · 1 comment

Comments

Projects
None yet
2 participants

From the code :
https://github.com/canonical-ols/build.snapcraft.io/blob/master/src/server/handlers/launchpad.js#L273

  logger.info(`Creating new snap for ${repositoryUrl}`);
  return lpClient.named_post('/+snaps', 'new', {
    parameters: {
      owner: `/~${username}`,
      distro_series: `/${DISTRIBUTION}/${DISTRO_SERIES}`,
      name: `${makeSnapName(repositoryUrl)}-${DISTRO_SERIES}`,
      git_repository_url: repositoryUrl,
      git_path: 'refs/heads/master',
      // auto_build will be enabled later, once snapcraft.yaml exists and
      // the snap name has been registered.
      auto_build: false,
      auto_build_archive: `/${DISTRIBUTION}/+archive/primary`,
      auto_build_pocket: 'Updates',
      processors: ARCHITECTURES.map((arch) => `/+processors/${arch}`)
    }
  });

It fetches automatically the master branch, is it possible to use the default branch set in github or to add option to choose from which branch to build the snap.

Thanks

Collaborator

cjwatson commented Apr 30, 2017

Duplicate of #440 / #497.

@cjwatson cjwatson closed this Apr 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment