]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/ceph-release-notes: adapt markdown output for new website
authorJosh Durgin <jdurgin@redhat.com>
Tue, 3 Aug 2021 17:25:48 +0000 (13:25 -0400)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 3 Aug 2021 19:05:37 +0000 (15:05 -0400)
* escape underscores
* avoid automatic links from PR titles containing .

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/script/ceph-release-notes

index f804fc136f206f9c73b0b866a203ea32601967f0..b4959d79ad3e43287a4b7d7f2fb16ef61b326471 100755 (executable)
@@ -285,8 +285,9 @@ def make_release_notes(gh, repo, ref, plaintext, html, markdown, verbose, strict
                 )
             )
         elif markdown:
+            markdown_title = title.replace('_', '\_').replace('.', '<!-- breaklink >.')
             print ("- {title} ({issues}[pr#{pr}](https://github.com/ceph/ceph/pull/{pr}), {author})\n".format(
-                    title=title,
+                    title=markdown_title,
                     issues=issues,
                     author=author, pr=pr
                 )