Fix URL to Change-Id in commit headers

We've upgraded gerrit recently. The URL format changed slightly and
that broke the Change-Id links from cgit. Use the new URL instead.

Change-Id: I2a16dd10d74ede15951d7447adfc3a88fa730af2
This commit is contained in:
David Moreau-Simard 2017-11-06 13:36:27 -05:00 committed by David Moreau Simard
parent 518cef44be
commit 20296a7802
No known key found for this signature in database
GPG Key ID: 33A07694CBB71ECC

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
sed -re ' sed -re '
s`(I[0-9a-f]{8,40})`<a href="https://review.openstack.org/\#q,\1,n,z">\0</a>`g s`(I[0-9a-f]{8,40})`<a href="https://review.openstack.org/\#/q/\1">\0</a>`g
s`\b([0-9a-fA-F]{8,40})\b`<a href="./?id=\1">\0</a>`g s`\b([0-9a-fA-F]{8,40})\b`<a href="./?id=\1">\0</a>`g
s`(\b[Bb]ug\b|\b[Ll][Pp]\b)[ \t#:]*([0-9]+)`<a href="https://code.launchpad.net/bugs/\2">\0</a>`g s`(\b[Bb]ug\b|\b[Ll][Pp]\b)[ \t#:]*([0-9]+)`<a href="https://code.launchpad.net/bugs/\2">\0</a>`g
s`(\b[Ss]tory\b)[ \t#:]*([0-9]+)`<a href="https://storyboard.openstack.org/#!/story/\2">\0</a>`g s`(\b[Ss]tory\b)[ \t#:]*([0-9]+)`<a href="https://storyboard.openstack.org/#!/story/\2">\0</a>`g