Skip to content

Commit ef40fa9

Browse files
Fix PR state detections on files/commits page (#229)
1 parent 6458f81 commit ef40fa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ TEST: addTests('isQuickPR', [
298298
const getStateLabel = (): string | undefined => $([
299299
'.State', // Old view
300300
// React versions
301-
'[class^="StateLabel"]',
302-
'[data-testid="header-state"]',
301+
'[class^="StateLabel"]', // TODO: Remove after July 2026
302+
'[class^="prc-StateLabel-StateLabel"]',
303303
].join(','))?.textContent?.trim();
304304

305305
export const isMergedPR = (): boolean => getStateLabel() === 'Merged';

0 commit comments

Comments
 (0)