 createAtomDraftRelease = (isPrerelease, branchName, callback) ->
   {version} = require('../../package.json')
   options =
-    uri: 'https://api.github.com/repos/atom/atom/releases'
+    uri: "https://api.github.com/repos/#{repo}/releases"
     method: 'POST'
     headers: defaultHeaders
     json:

  async.parallel(tasks, callback)

getAtomDraftRelease = (isPrerelease, branchName, callback) ->
  atomRepo = new GitHub({repo: 'atom/atom', token})
  atomRepo.getReleases {prerelease: isPrerelease}, (error, releases=[]) ->
    if error?
      logError('Fetching atom/atom releases failed', error, releases)
      callback(error)
    else
      [firstDraft] = releases.filter ({draft}) -> draft


  request options, (error, response, body='') ->
    if error? or response.statusCode isnt 201
      logError("Creating #{repo} draft release failed", error, body)
      callback(error ? new Error(response.statusCode))
    else
      callback(null, body)
