summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/features/wait-for-build.tsx4
-rw-r--r--source/github-helpers/pr-ci-status.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/source/features/wait-for-build.tsx b/source/features/wait-for-build.tsx
index 825e1f54..708e4882 100644
--- a/source/features/wait-for-build.tsx
+++ b/source/features/wait-for-build.tsx
@@ -100,8 +100,8 @@ function init(): void {
void features.add(__filebasename, {
asLongAs: [
- // The user cannot merge
- () => select.exists('[data-details-container=".js-merge-pr"]:not(:disabled)'),
+ // The user is a maintainer, so they can probably merge the PR
+ () => select.exists('.discussion-sidebar-item .octicon-lock'),
],
include: [
pageDetect.isPRConversation,
diff --git a/source/github-helpers/pr-ci-status.ts b/source/github-helpers/pr-ci-status.ts
index 2d905d85..01a867eb 100644
--- a/source/github-helpers/pr-ci-status.ts
+++ b/source/github-helpers/pr-ci-status.ts
@@ -6,7 +6,7 @@ type CommitStatus = false | typeof SUCCESS | typeof FAILURE | typeof PENDING | t
type StatusListener = (status: CommitStatus) => void;
// `.TimelineItem--condensed` excludes unrelated references. See `deemphasize-unrelated-commit-references` feature
-const commitSelector = '.js-commit.TimelineItem--condensed';
+const commitSelector = '.js-commit-group .TimelineItem--condensed';
function getLastCommitReference(): string | null {
return select.last(`${commitSelector} code`)!.textContent;