You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by zh...@apache.org on 2022/08/19 10:28:42 UTC
[incubator-devlake] branch main updated: fix: issue_number does not exist (#2777)
This is an automated email from the ASF dual-hosted git repository.
zhangliang2022 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 2b51a9d0 fix: issue_number does not exist (#2777)
2b51a9d0 is described below
commit 2b51a9d08f5e1e12ff49626e6a2ac4bbb8df0414
Author: abeizn <10...@users.noreply.github.com>
AuthorDate: Fri Aug 19 18:28:38 2022 +0800
fix: issue_number does not exist (#2777)
---
plugins/refdiff/tasks/ref_issue_diff_calculator.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/refdiff/tasks/ref_issue_diff_calculator.go b/plugins/refdiff/tasks/ref_issue_diff_calculator.go
index ea2b479a..347f34ba 100644
--- a/plugins/refdiff/tasks/ref_issue_diff_calculator.go
+++ b/plugins/refdiff/tasks/ref_issue_diff_calculator.go
@@ -64,10 +64,10 @@ func CalculateIssuesDiff(taskCtx core.SubTaskContext) error {
dal.Join("left join pull_request_issues on pull_request_issues.pull_request_id = _combine_pr.id"),
dal.Join("left join refs on refs.commit_sha = refs_commits_diffs.new_ref_commit_sha"),
dal.Orderby("refs_commits_diffs.new_ref_id ASC"),
- dal.Where("refs.repo_id = ? and pull_request_issues.issue_number > 0 and (refs_commits_diffs.new_ref_id, refs_commits_diffs.old_ref_id) in ?",
+ dal.Where("refs.repo_id = ? and pull_request_issues.issue_key > 0 and (refs_commits_diffs.new_ref_id, refs_commits_diffs.old_ref_id) in ?",
repoId, pairList),
dal.Select(`refs_commits_diffs.new_ref_commit_sha as new_ref_commit_sha, refs_commits_diffs.old_ref_commit_sha as old_ref_commit_sha,
- pull_request_issues.issue_id as issue_id, pull_request_issues.issue_number as issue_number,
+ pull_request_issues.issue_id as issue_id, pull_request_issues.issue_key as issue_key,
refs_commits_diffs.new_ref_id as new_ref_id, refs_commits_diffs.old_ref_id as old_ref_id`),
)
if err != nil {