     tasks.push(zip.bind(this, buildDir, sourcePath, assetName))
   async.parallel(tasks, callback)
 
-getAtomDraftRelease = (isPrerelease, callback) ->
+getAtomDraftRelease = (isPrerelease, branchName, callback) ->
   atomRepo = new GitHub({repo: 'atom/atom', token})
   atomRepo.getReleases {prerelease: isPrerelease}, (error, releases=[]) ->
     if error?

            firstDraft.assets = assets
            callback(null, firstDraft)
      else
        createAtomDraftRelease(isPrerelease, callback)

createAtomDraftRelease = (isPrerelease, callback) ->
  {version} = require('../../package.json')
  options =
    uri: 'https://api.github.com/repos/atom/atom/releases'


    zipAssets buildDir, assets, (error) ->
      return done(error) if error?
      getAtomDraftRelease isPrerelease, branchName, (error, release) ->
        return done(error) if error?
        assetNames = (asset.assetName for asset in assets)
        deleteExistingAssets release, assetNames, (error) ->
