Skip to content

Commit eadd208

Browse files
authored
fix: skip transferred issue for Github source (#8637)
1 parent 1410838 commit eadd208

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

backend/helpers/pluginhelper/api/graphql_collector.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"encoding/json"
2323
"net/http"
2424
"reflect"
25+
"strings"
2526
"time"
2627

2728
"github.com/apache/incubator-devlake/core/dal"
@@ -276,7 +277,11 @@ func (collector *GraphqlCollector) fetchAsync(reqData *GraphqlRequestData, handl
276277
if len(dataErrors) > 0 {
277278
if !collector.args.IgnoreQueryErrors {
278279
for _, dataError := range dataErrors {
279-
collector.checkError(errors.Default.Wrap(dataError, `graphql query got error`))
280+
if strings.Contains(dataError.Error(), "Could not resolve to an Issue") {
281+
logger.Warn(nil, "Issue may have been transferred.")
282+
} else {
283+
collector.checkError(errors.Default.Wrap(dataError, `graphql query got error`))
284+
}
280285
}
281286
return
282287
}

0 commit comments

Comments
 (0)