From 2903644d80158dc9befccee2a8e0b6240245d32e Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Tue, 6 Jul 2021 13:11:30 +0200 Subject: [PATCH] examples: match 'commit ' Change-Id: I833e37a60b93b23124f127b5639ab210fd12fa63 --- examples/opendev-gertty.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/opendev-gertty.yaml b/examples/opendev-gertty.yaml index 42ef4fd..40cd680 100644 --- a/examples/opendev-gertty.yaml +++ b/examples/opendev-gertty.yaml @@ -84,6 +84,12 @@ commentlinks: - link: text: "{bug_str}" url: "https://storyboard.openstack.org/#!/task/{bug_id}" + # Match phrases containing "commit ", e.g. in cherry picks + - match: "(?Pcommit +(?P[0-9a-f]{40}))" + replacements: + - search: + text: "{full_str}" + query: "commit:{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