From 3ee9ba309ee693bd429d7b3000a99d2a7fdd4b2d Mon Sep 17 00:00:00 2001
From: mintsweet <0x1304570@gmail.com>
Date: Wed, 29 May 2024 17:52:16 +1200
Subject: [PATCH] fix: update the linker tooltip about pr with issues
---
config-ui/src/routes/project/detail/settings-panel.tsx | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/config-ui/src/routes/project/detail/settings-panel.tsx b/config-ui/src/routes/project/detail/settings-panel.tsx
index 0a25d971f87..d85543e04cc 100644
--- a/config-ui/src/routes/project/detail/settings-panel.tsx
+++ b/config-ui/src/routes/project/detail/settings-panel.tsx
@@ -153,15 +153,12 @@ export const SettingsPanel = ({ project, onRefresh }: Props) => {
Example 1 - If your PR title or description contains a Jira issue key in the format 'Closes
[DI-123](www.yourdomain.atlassian.net/browse/di-123)', please use the following regex template:{' '}
- {'{'}
- (?mi)(fix|close|resolve|fixes|closes|resolves|fixed|closed|resolved)[\s]*.*(((and)?https://\S+.atlassian.net/browse/\S+[
- ]*)+){'}'}
+ (?mi)Closes[\s]*.*(((and)?https://\S+.atlassian.net/browse/\S+[ ]*)+)
Example 2 - If your PR title or description contains a GitHub issue key in the format 'Resolves
- www.github.com/namespace/repo_name/issues/123)', please use the following regex template: {'{'}
- (?mi)(fix|close|resolve|fixes|closes|resolves|fixed|closed|resolved)[\s]*.*(((and)?https://github.com/%s/issues/\d+[
- ]*)+){'}'}
+ www.github.com/namespace/repo_name/issues/123)', please use the following regex template:{' '}
+ (?mi)Resolves[\s]*.*(((and)?https://github.com/%s/issues/\d+[ ]*)+)
>
}