     "#{repoUrl}/issues/new?title=#{encodeURI(title)}&body=#{encodeURI(body)}"
 
   createSelectorIssueUrl: (packageName, deprecation, sourcePath) ->
-    return unless repo = atom.packages.getLoadedPackage(packageName)?.metadata?.repository
-    repoUrl = repo.url ? repo
-    repoUrl = repoUrl.replace(/\.git$/, '')
+    repoUrl = @getRepoUrl(packageName)
+    return unless repoUrl
 
     title = deprecation.message
     body = "In #{sourcePath}: #{deprecation.message}"


    return

  createIssueUrl: (packageName, deprecation, stack) ->
    return unless repo = atom.packages.getLoadedPackage(packageName)?.metadata?.repository
    repoUrl = repo.url ? repo
    repoUrl = repoUrl.replace(/\.git$/, '')

    title = "#{deprecation.getOriginName()} is deprecated."
    stacktrace = stack.map(({functionName, location}) -> "#{functionName} (#{location})").join("\n")

                      @div class: 'list-item deprecation-message', =>
                        @raw marked(deprecation.message)

                      if issueUrl = self.createSelectorIssueUrl(packageName, deprecation, sourcePath)
                        repoUrl = self.getRepoUrl(packageName)
                        issueTitle = deprecation.message

                        @div class: 'btn-toolbar', =>
                          @button class: 'btn issue-url', 'data-issue-title': issueTitle, 'data-repo-url': repoUrl, 'data-issue-url': issueUrl, 'Report Issue'
