(self, *, ref: str, sha: str)
https://docs.github.com/en/rest/reference/git#update-a-reference
https://docs.github.com/en/rest/reference/git#update-a-reference
https : // docs . github . com / en / rest / reference / git#update - a - reference
async def update_ref(self, *, ref: str, sha: str) -> http.Response:
        """
        https://docs.github.com/en/rest/reference/git#update-a-reference
        """
        headers = await get_headers(
            session=self.session, installation_id=self.installation_id
        )
        url = conf.v3_url(f"/repos/{self.owner}/{self.repo}/git/refs/heads/{ref}")
        async with self.throttler:
            return await self.session.patch(url, headers=headers, json=dict(sha=sha))
async def update_ref ( self , * , ref : str , sha : str ) -> http . Response : headers = await get_headers ( session = self . session , installation_id = self . installation_id ) url = conf . v3_url ( f"/repos/{self.owner}/{self.repo}/git/refs/heads/{ref}" ) async with self . throttler : return await self . session . patch ( url , headers = headers , json = dict ( sha = sha ) )