Fix deprecated token field in release script (#19039)

This commit is contained in:
Andrew Morgan
2025-10-13 14:31:09 +01:00
committed by GitHub
parent 690b3a4fcc
commit a7303c5311
4 changed files with 28 additions and 47 deletions
+2 -1
View File
@@ -37,6 +37,7 @@ from typing import Any, List, Match, Optional, Union
import attr
import click
import git
import github
from click.exceptions import ClickException
from git import GitCommandError, Repo
from github import BadCredentialsException, Github
@@ -397,7 +398,7 @@ def _tag(gh_token: Optional[str]) -> None:
return
# Create a new draft release
gh = Github(gh_token)
gh = Github(auth=github.Auth.Token(token=gh_token))
gh_repo = gh.get_repo("element-hq/synapse")
release = gh_repo.create_git_release(
tag=tag_name,