(self, branch: str)
delete a branch by name
delete a branch by name
delete a branch by name
async def delete_branch(self, branch: str) -> http.Response:
        """
        delete a branch by name
        """
        headers = await get_headers(
            session=self.session, installation_id=self.installation_id
        )
        ref = urllib.parse.quote(f"heads/{branch}")
        async with self.throttler:
            return await self.session.delete(
                conf.v3_url(f"/repos/{self.owner}/{self.repo}/git/refs/{ref}"),
                headers=headers,
            )
async def delete_branch ( self , branch : str ) -> http . Response : headers = await get_headers ( session = self . session , installation_id = self . installation_id ) ref = urllib . parse . quote ( f"heads/{branch}" ) async with self . throttler : return await self . session . delete ( conf . v3_url ( f"/repos/{self.owner}/{self.repo}/git/refs/{ref}" ) , headers = headers , )