Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/github/markdownUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ export function getStatusDecoration(status: UnsatisfiedChecks): vscode.FileDecor
badge: new vscode.ThemeIcon('circle-filled', new vscode.ThemeColor('list.warningForeground')),
tooltip: 'Review required'
};
} else if (status & UnsatisfiedChecks.Unknown) {
return;
Comment thread
alexr00 marked this conversation as resolved.
Comment thread
alexr00 marked this conversation as resolved.
} else if (status === UnsatisfiedChecks.None) {
return {
propagate: false,
Expand Down
3 changes: 2 additions & 1 deletion src/github/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1984,7 +1984,8 @@ export enum UnsatisfiedChecks {
ReviewRequired = 1 << 0,
ChangesRequested = 1 << 1,
CIFailed = 1 << 2,
CIPending = 1 << 3
CIPending = 1 << 3,
Unknown = 1 << 4
}

export async function extractRepoFromQuery(folderManager: FolderRepositoryManager, query: string | undefined): Promise<RemoteInfo | undefined> {
Expand Down
7 changes: 4 additions & 3 deletions src/view/prsTreeModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,10 @@ export class PrsTreeModel extends Disposable {
}

if (!check || check.state === CheckState.Unknown) {
continue;
}
if (check.state !== CheckState.Success) {
if (newStatus === UnsatisfiedChecks.None) {
newStatus |= UnsatisfiedChecks.Unknown;
}
} else if (check.state !== CheckState.Success) {
for (const status of check.statuses) {
if (status.state === CheckState.Failure) {
newStatus |= UnsatisfiedChecks.CIFailed;
Expand Down