You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2022/08/23 14:03:46 UTC

[incubator-devlake] branch main updated: fix: some issues can not bind pull_request in pr_issue_enricher

This is an automated email from the ASF dual-hosted git repository.

warren 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 2464c5ed fix: some issues can not bind pull_request in pr_issue_enricher
2464c5ed is described below

commit 2464c5ed2015f4399f207b7e7c602a3afee40c86
Author: abeizn <zi...@merico.dev>
AuthorDate: Tue Aug 23 18:20:49 2022 +0800

    fix: some issues can not bind pull_request in pr_issue_enricher
---
 plugins/github/tasks/pr_issue_enricher.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/github/tasks/pr_issue_enricher.go b/plugins/github/tasks/pr_issue_enricher.go
index e7c4b37e..fc9c5ab2 100644
--- a/plugins/github/tasks/pr_issue_enricher.go
+++ b/plugins/github/tasks/pr_issue_enricher.go
@@ -55,7 +55,7 @@ func EnrichPullRequestIssues(taskCtx core.SubTaskContext) (err error) {
 			return fmt.Errorf("regexp Compile prBodyClosePattern failed:[%s] stack:[%s]", err.Error(), debug.Stack())
 		}
 	}
-	charPattern := regexp.MustCompile(`[a-zA-Z\s,]+`)
+	charPattern := regexp.MustCompile(`[\/a-zA-Z\s,]+`)
 	cursor, err := db.Cursor(dal.From(&githubModels.GithubPullRequest{}), dal.Where("repo_id = ?", repoId))
 	if err != nil {
 		return err