Skip to content

Commit 3e7f4c3

Browse files
committed
Added sleep
1 parent 65f7dfa commit 3e7f4c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Subscriber/AutoUpdateTitleWithLabelSubscriber.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public function onPullRequest(GitHubEvent $event)
4747
$repository = $event->getRepository();
4848
$number = $data['number'];
4949

50+
sleep(1); // Wait for github API to be updated
5051
$lock = $this->lockFactory->createLock($repository->getFullName().'#'.$number);
5152
$lock->acquire(true); // blocking. Lock will be released at __destruct
5253

0 commit comments

Comments
 (0)