From cd60a82f6ab5f4e2842350df677b387d56bc3158 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Tue, 29 Jun 2021 15:03:49 +0200 Subject: [PATCH] examples: matching storyboard stories Change-Id: I5c3d42adb9f6654c1d0b1cacfa48eb8c5146e2c7 --- examples/opendev-gertty.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/opendev-gertty.yaml b/examples/opendev-gertty.yaml index 4edc91e..42ef4fd 100644 --- a/examples/opendev-gertty.yaml +++ b/examples/opendev-gertty.yaml @@ -73,6 +73,17 @@ commentlinks: - link: text: "blueprint {blueprint}" url: "https://blueprints.launchpad.net/openstack/?searchtext={blueprint}" + # Match external references to stories and tasks on StoryBoard + - match: "(?P(?:[Ss]tory) *: *#?(?P\\d+))" + replacements: + - link: + text: "{bug_str}" + url: "https://storyboard.openstack.org/#!/story/{bug_id}" + - match: "(?P(?:[Tt]ask) *: *#?(?P\\d+))" + replacements: + - link: + text: "{bug_str}" + url: "https://storyboard.openstack.org/#!/task/{bug_id}" # This is the query used for the list of changes when a project is # selected. The default is "status:open". If you don't want to see