Skip to content

Commit a56ba1a

Browse files
fix PR state getting on files page
1 parent 6458f81 commit a56ba1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,9 @@ 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 August 2026
302+
'[class^="prc-StateLabel-StateLabel'], // PRs
303+
'[data-testid="header-state"]', // Issues
303304
].join(','))?.textContent?.trim();
304305

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

0 commit comments

Comments
 (0)