diff --git a/src/git_flow/remote/gitea.py b/src/git_flow/remote/gitea.py index 7626c39..f9afef7 100644 --- a/src/git_flow/remote/gitea.py +++ b/src/git_flow/remote/gitea.py @@ -46,3 +46,10 @@ class GiteaRemoteAPI(RemoteAPI): def get_endpoint(self, resource: str) -> str: return f"{self.base_url}/api/v1/repos/{self.repository}{resource}" + + def get_headers(self): + return { + "Accept": "application/json", + "Content-Type": "application/json", + "Authorization": "token " + self.token, + }