Skip to content

Commit 6cb0929

Browse files
Fix issue state getting (#223)
1 parent 857f4e6 commit 6cb0929

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ TEST: addTests('isQuickPR', [
297297

298298
const getStateLabel = (): string | undefined => $([
299299
'.State', // Old view
300-
'[class^="StateLabel"]', // React version
300+
// React versions
301+
'[class^="StateLabel"]',
302+
'[data-testid="header-state"]',
301303
].join(','))?.textContent?.trim();
302304

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

0 commit comments

Comments
 (0)