(
        self, msg: str, *, markdown_content: Optional[str] = None
    )
Display a message to a user through a github check

        `markdown_content` is the message displayed on the detail view for a
        status check. This detail view is accessible via the "Details" link
        alongside the summary/detail content.
Display a message to a user through a github check
Display a message to a user through a github check
async def set_status(
        self, msg: str, *, markdown_content: Optional[str] = None
    ) -> None:
        """
        Display a message to a user through a github check

        `markdown_content` is the message displayed on the detail view for a
        status check. This detail view is accessible via the "Details" link
        alongside the summary/detail content.
        """
        self.log.info("set_status", message=msg, markdown_content=markdown_content)
        async with self.client(
            installation_id=self.install, owner=self.owner, repo=self.repo
        ) as api_client:
            res = await api_client.create_notification(
                head_sha=self.event.pull_request.latest_sha,
                message=msg,
                summary=markdown_content,
            )
            try:
                res.raise_for_status()
            except HTTPError:
                self.log.warning(
                    "failed to create notification", res=res, exc_info=True
                )
async def set_status ( self , msg : str , * , markdown_content : Optional [ str ] = None ) -> None : self . log . info ( "set_status" , message = msg , markdown_content = markdown_content ) async with self . client ( installation_id = self . install , owner = self . owner , repo = self . repo ) as api_client : res = await api_client . create_notification ( head_sha = self . event . pull_request . latest_sha , message = msg , summary = markdown_content , ) try : res . raise_for_status ( ) except HTTPError : self . log . warning ( "failed to create notification" , res = res , exc_info = True )