#948 Fix commit url in fixes_relation
Merged 7 years ago by pingou. Opened 7 years ago by mikem.
mikem/pagure comment-link  into  master

@@ -89,14 +89,14 @@ 

      ''' Add a comment to an issue or PR that this commit fixes it and update

      the status if the commit is in the master branch. '''

  

-     url = '../%s' % commitid[:8]

+     url = '../c/%s' % commitid[:8]

      if app_url:

          if app_url.endswith('/'):

              app_url = app_url[:-1]

          project = relation.project.fullname

          if relation.project.is_fork:

              project = 'fork/%s' % project

-         url = '%s/%s/%s' % (app_url, project, commitid[:8])

+         url = '%s/%s/c/%s' % (app_url, project, commitid[:8])

  

      comment = ''' Commit [%s](%s) fixes this %s''' % (

          commitid[:8], url, relation.isa)

Pull-Request has been merged by pingou

7 years ago
Metadata