Skip to content

Commit b83658f

Browse files
Fix state detections on updated PR conversation page
1 parent 93d0102 commit b83658f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,10 @@ TEST: addTests('isQuickPR', [
296296
]);
297297

298298
const getStateLabel = (): string | undefined => $([
299-
'.State', // Old view
300-
// React versions
301-
'[class^="StateLabel"]', // TODO: Remove after July 2026
302299
'[class^="prc-StateLabel-StateLabel"]',
300+
// TODO: Remove after July 2026
301+
'[class^="StateLabel"]',
302+
'.State',
303303
].join(','))?.textContent?.trim();
304304

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

0 commit comments

Comments
 (0)