Skip to content

Commit 9ca8973

Browse files
fix syntax and remove testid selector
class-based selector covers issues too
1 parent 275cb0b commit 9ca8973

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@ const getStateLabel = (): string | undefined => $([
299299
'.State', // Old view
300300
// React versions
301301
'[class^="StateLabel"]', // TODO: Remove after July 2026
302-
'[class^="prc-StateLabel-StateLabel'], // PRs
303-
'[data-testid="header-state"]', // Issues
302+
'[class^="prc-StateLabel-StateLabel"]',
304303
].join(','))?.textContent?.trim();
305304

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

0 commit comments

Comments
 (0)