code: def patch_ref(self, sha):
          
          uri = "{api}/repos/{origin}/git/refs/heads/{branch}".format(
              api=self.github_api_url,
              origin=self.origin,
              branch=self.master_fork
          )
          data = {
              "sha": sha,
              "force": True
          }
          reply = self.request(
              "PATCH",
              uri,
              data=data
          )
          if reply.status_code == 200:
              dic = json.loads(reply.content.decode("utf-8"))
              return dic["object"]["sha"]
          else:
              dic = json.loads(reply.content.decode("utf-8"))
              return self.ProxyError(
                  reply.status_code,
                  (dic, "message"),
                  step="patch",
                  context={
                      "uri": uri,
                      "data": data
                  }
              )
docs: Patch reference on the origin master branch
  
          :param sha: Sha to use for the branch
          :return: Status of success
          :rtype: str or self.ProxyError