You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2024/03/12 03:01:27 UTC
(incubator-devlake) branch main updated: Fixed Pull Request issue regex pattern in Github plugin (#7153)
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new a7d013189 Fixed Pull Request issue regex pattern in Github plugin (#7153)
a7d013189 is described below
commit a7d0131894f8fdbceccbf877cfdbfa395600a606
Author: tettaji <25...@users.noreply.github.com>
AuthorDate: Tue Mar 12 04:01:22 2024 +0100
Fixed Pull Request issue regex pattern in Github plugin (#7153)
* Fixed Pull Request issue regex pattern
* Remove debug shenanigans
---
config-ui/src/plugins/register/github/config.tsx | 2 +-
config-ui/src/plugins/register/github/transformation.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/config-ui/src/plugins/register/github/config.tsx b/config-ui/src/plugins/register/github/config.tsx
index 477cf7ba0..295d9d1ad 100644
--- a/config-ui/src/plugins/register/github/config.tsx
+++ b/config-ui/src/plugins/register/github/config.tsx
@@ -121,7 +121,7 @@ export const GitHubConfig: IPluginConfig = {
prType: 'type(.*)',
prComponent: 'component(.*)',
prBodyClosePattern:
- '(?mi)(fix|close|resolve|fixes|closes|resolves|fixed|closed|resolved)[s]*.*(((and )?(#|https://github.com/%s/%s/issues/)d+[ ]*)+)',
+ '(?mi)(fix|close|resolve|fixes|closes|resolves|fixed|closed|resolved)[\\s]*.*(((and )?(#|https:\\/\\/github.com\\/%s\\/issues\\/)\\d+[ ]*)+)',
refdiff: {
tagsLimit: 10,
tagsPattern: '/v\\d+\\.\\d+(\\.\\d+(-rc)*\\d*)*$/',
diff --git a/config-ui/src/plugins/register/github/transformation.tsx b/config-ui/src/plugins/register/github/transformation.tsx
index 1ddf8245a..0d6473c4d 100644
--- a/config-ui/src/plugins/register/github/transformation.tsx
+++ b/config-ui/src/plugins/register/github/transformation.tsx
@@ -385,7 +385,7 @@ const renderCollapseItems = ({
>
<Input.TextArea
value={transformation.prBodyClosePattern ?? ''}
- placeholder="(?mi)(fix|close|resolve|fixes|closes|resolves|fixed|closed|resolved)[s]*.*(((and )?(#|https://github.com/%s/%s/issues/)d+[ ]*)+)"
+ placeholder="(?mi)(fix|close|resolve|fixes|closes|resolves|fixed|closed|resolved)[\s]*.*(((and )?(#|https:\/\/github.com\/%s\/issues\/)\d+[ ]*)+)"
onChange={(e) =>
onChangeTransformation({
...transformation,