You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: implement GitHub GraphQL client and refactor GitHub data fetching
- Added a new GitHubGraphQLClient to handle GraphQL requests to the GitHub API with rate limit handling and retry logic.
- Refactored GitHub data fetching logic to utilize the new GraphQL client, improving error handling and caching mechanisms.
- Removed reaction handling from score calculations, simplifying the scoring logic for issues and discussions.
- Updated scoring functions to focus on repository visibility and discussion activity without relying on reactions.
- Enhanced caching strategies for GitHub user data to improve performance and reduce API calls.
? "المشاركة بشكل أكبر في المشاكل والنقاشات الخارجية عالية الأثر لتحسين الحضور المجتمعي."
212
+
: "Participate more in high-signal external issues/discussions to improve community impact.",
213
+
);
214
+
}
215
+
if(recommendations.length===0){
216
+
recommendations.push(
217
+
locale==="ar"
218
+
? "الحفاظ على الاستمرارية بين المستودعات وطلبات السحب والمشاركة المجتمعية الخارجية."
219
+
: "Maintain consistency across repositories, pull requests, and external community engagement.",
220
+
);
221
+
}
222
+
223
+
returnrecommendations;
224
+
};
225
+
226
+
return{
227
+
summary:
228
+
locale==="ar"
229
+
? `${finalLeader.name||finalLeader.username} يتصدر حاليًا درجة الأثر المفتوح المصدر بفارق ${finalDiff} نقطة عن ${finalFollower.name||finalFollower.username}.`
230
+
: `${finalLeader.name||finalLeader.username} currently has the higher public open-source impact score by ${finalDiff} points over ${finalFollower.name||finalFollower.username}.`,
231
+
keyDifferences: [
232
+
locale==="ar"
233
+
? `${repoLeader.name||repoLeader.username} يتصدر أثر المستودعات (${repoLeader.repoScore} مقابل ${repoLeader.username===user1.username ? user2.repoScore : user1.repoScore}).`
? `${contributionLeader.name||contributionLeader.username} يتصدر أثر مساهمات المجتمع (${contributionLeader.contributionScore} مقابل ${contributionLeader.username===user1.username ? user2.contributionScore : user1.contributionScore}).`
240
+
: `${contributionLeader.name||contributionLeader.username} leads community contribution impact (${contributionLeader.contributionScore} vs ${contributionLeader.username===user1.username ? user2.contributionScore : user1.contributionScore}).`,
241
+
],
242
+
user1Strengths:
243
+
user1Strengths.length>0
244
+
? user1Strengths
245
+
: [
246
+
locale==="ar"
247
+
? "أثر عام متوازن عبر أهم أبعاد التقييم."
248
+
: "Balanced overall impact across major scoring dimensions.",
249
+
],
250
+
user2Strengths:
251
+
user2Strengths.length>0
252
+
? user2Strengths
253
+
: [
254
+
locale==="ar"
255
+
? "أثر عام متوازن عبر أهم أبعاد التقييم."
256
+
: "Balanced overall impact across major scoring dimensions.",
257
+
],
258
+
recommendations: {
259
+
user1: recommendationsForUser(user1),
260
+
user2: recommendationsForUser(user2),
261
+
},
262
+
confidenceNote:
263
+
locale==="ar"
264
+
? `هذه المقارنة حتمية ومبنية على إشارات GitHub العامة الملتقطة لكل من ${user1Name} و${user2Name}.`
265
+
: `This comparison is deterministic and based on public GitHub signals captured for ${user1Name} and ${user2Name}.`,
0 commit comments