We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 508c1b3 commit 670ad96Copy full SHA for 670ad96
src/github/pullRequestGitHelper.ts
@@ -329,8 +329,9 @@ export class PullRequestGitHelper {
329
): Promise<PullRequestMetadata | undefined> {
330
try {
331
const configKey = this.getMetadataKeyForBranch(branchName);
332
- const configValue = await repository.getConfig(configKey);
333
- return PullRequestGitHelper.parsePullRequestMetadata(configValue);
+ const allConfigs = await repository.getConfigs();
+ const matchingConfigs = allConfigs.filter(config => config.key === configKey).sort((a, b) => b.value < a.value ? 1 : -1);
334
+ return PullRequestGitHelper.parsePullRequestMetadata(matchingConfigs[0].value);
335
} catch (_) {
336
return;
337
}
0 commit comments