Exemple #1
0
    async def _ensure_complete(self):
        if not (self._is_data_complete()
                and self._is_background_github_processing_completed()):
            self.pull = await self.client.item(
                f"{self.base_url}/pulls/{self.pull['number']}")

        if self._is_background_github_processing_completed():
            return

        raise exceptions.MergeableStateUnknown(self)
Exemple #2
0
    def _ensure_complete(self):
        if not (self._is_data_complete()
                and self._is_background_github_processing_completed()):
            self.pull = self.client.item(f"pulls/{self.pull['number']}")

        if not self._is_data_complete():
            self.log.error(
                "/pulls/%s has returned an incomplete payload...",
                self.pull["number"],
                data=self.pull,
            )

        if self._is_background_github_processing_completed():
            return

        raise exceptions.MergeableStateUnknown(self)