@@ -293,7 +293,7 @@ def _prepare() -> None:
293
293
print ("Opening the changelog in your browser..." )
294
294
print ("Please ask #synapse-dev to give it a check." )
295
295
click .launch (
296
- f"https://github.com/matrix-org /synapse/blob/{ synapse_repo .active_branch .name } /CHANGES.md"
296
+ f"https://github.com/element.-hq /synapse/blob/{ synapse_repo .active_branch .name } /CHANGES.md"
297
297
)
298
298
299
299
@@ -361,18 +361,18 @@ def _tag(gh_token: Optional[str]) -> None:
361
361
print ("As this is an RC, remember to mark it as a pre-release!" )
362
362
print ("(by the way, this step can be automated by passing --gh-token," )
363
363
print ("or one of the GH_TOKEN or GITHUB_TOKEN env vars.)" )
364
- click .launch (f"https://github.com/matrix-org /synapse/releases/edit/{ tag_name } " )
364
+ click .launch (f"https://github.com/element.-hq /synapse/releases/edit/{ tag_name } " )
365
365
366
366
print ("Once done, you need to wait for the release assets to build." )
367
367
if click .confirm ("Launch the release assets actions page?" , default = True ):
368
368
click .launch (
369
- f"https://github.com/matrix-org /synapse/actions?query=branch%3A{ tag_name } "
369
+ f"https://github.com/element.-hq /synapse/actions?query=branch%3A{ tag_name } "
370
370
)
371
371
return
372
372
373
373
# Create a new draft release
374
374
gh = Github (gh_token )
375
- gh_repo = gh .get_repo ("matrix-org /synapse" )
375
+ gh_repo = gh .get_repo ("element.-hq /synapse" )
376
376
release = gh_repo .create_git_release (
377
377
tag = tag_name ,
378
378
name = tag_name ,
@@ -385,7 +385,7 @@ def _tag(gh_token: Optional[str]) -> None:
385
385
print ("Launching the release page and the actions page." )
386
386
click .launch (release .html_url )
387
387
click .launch (
388
- f"https://github.com/matrix-org /synapse/actions?query=branch%3A{ tag_name } "
388
+ f"https://github.com/element.-hq /synapse/actions?query=branch%3A{ tag_name } "
389
389
)
390
390
391
391
click .echo ("Wait for release assets to be built" )
@@ -411,7 +411,7 @@ def _publish(gh_token: str) -> None:
411
411
412
412
# Publish the draft release
413
413
gh = Github (gh_token )
414
- gh_repo = gh .get_repo ("matrix-org /synapse" )
414
+ gh_repo = gh .get_repo ("element.-hq /synapse" )
415
415
for release in gh_repo .get_releases ():
416
416
if release .title == tag_name :
417
417
break
@@ -454,7 +454,7 @@ def _upload(gh_token: Optional[str]) -> None:
454
454
455
455
# Query all the assets corresponding to this release.
456
456
gh = Github (gh_token )
457
- gh_repo = gh .get_repo ("matrix-org /synapse" )
457
+ gh_repo = gh .get_repo ("element.-hq /synapse" )
458
458
gh_release = gh_repo .get_release (tag_name )
459
459
460
460
all_assets = set (gh_release .get_assets ())
@@ -543,7 +543,9 @@ def _wait_for_actions(gh_token: Optional[str]) -> None:
543
543
544
544
# Authentication is optional on this endpoint,
545
545
# but use a token if we have one to reduce the chance of being rate-limited.
546
- url = f"https://api.github.com/repos/matrix-org/synapse/actions/runs?branch={ tag_name } "
546
+ url = (
547
+ f"https://api.github.com/repos/element.-hq/synapse/actions/runs?branch={ tag_name } "
548
+ )
547
549
headers = {"Accept" : "application/vnd.github+json" }
548
550
if gh_token is not None :
549
551
headers ["authorization" ] = f"token { gh_token } "
@@ -658,8 +660,8 @@ def _announce() -> None:
658
660
f"""
659
661
Hi everyone. Synapse { current_version } has just been released.
660
662
661
- [notes](https://github.com/matrix-org /synapse/releases/tag/{ tag_name } ) | \
662
- [docker](https://hub.docker.com/r/matrixdotorg /synapse/tags?name={ tag_name } ) | \
663
+ [notes](https://github.com/element.-hq /synapse/releases/tag/{ tag_name } ) | \
664
+ [docker](https://hub.docker.com/r/vectorim /synapse/tags?name={ tag_name } ) | \
663
665
[debs](https://packages.matrix.org/debian/) | \
664
666
[pypi](https://pypi.org/project/matrix-synapse/{ current_version } /)"""
665
667
)
@@ -689,7 +691,7 @@ def _announce() -> None:
689
691
def full (gh_token : str ) -> None :
690
692
click .echo ("1. If this is a security release, read the security wiki page." )
691
693
click .echo ("2. Check for any release blockers before proceeding." )
692
- click .echo (" https://github.com/matrix-org /synapse/labels/X-Release-Blocker" )
694
+ click .echo (" https://github.com/element.-hq /synapse/labels/X-Release-Blocker" )
693
695
click .echo (
694
696
"3. Check for any other special release notes, including announcements to add to the changelog or special deployment instructions."
695
697
)
@@ -893,7 +895,7 @@ def build_dependabot_changelog(repo: Repo, current_version: version.Version) ->
893
895
def replacer (match : Match [str ]) -> str :
894
896
desc = match .group (1 )
895
897
number = match .group (2 )
896
- return f"* { desc } . ([\\ #{ number } ](https://github.com/matrix-org /synapse/issues/{ number } ))"
898
+ return f"* { desc } . ([\\ #{ number } ](https://github.com/element.-hq /synapse/issues/{ number } ))"
897
899
898
900
for i , message in enumerate (messages ):
899
901
messages [i ] = re .sub (r"(.*) \(#(\d+)\)$" , replacer , message )
0 commit comments