     "#{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}"

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

                  if packageName and url = self.createIssueUrl(packageName, deprecation, stack)
                    @div class: 'btn-toolbar', =>
                      @button class: 'btn issue-url', 'data-issue-url': url, 'Report Issue'

                  @div class: 'stack-trace', =>
                    for {functionName, location, fileName} in stack

    # afterAttach is called 2x when dep cop is the active pane item on reload.
    return if @subscribedToEvents

    self = this

    @openBlogPost.on 'click', =>
      require('shell').openExternal('http://blog.atom.io/2015/05/01/removing-deprecated-apis.html')
      false
