Skip to content

Commit dfcb822

Browse files
clokeperikjohnston
authored andcommittedDec 13, 2023
Update repo for release scripts.
1 parent 188a51d commit dfcb822

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed
 

‎pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
package = "synapse"
33
filename = "CHANGES.md"
44
directory = "changelog.d"
5-
issue_format = "[\\#{issue}](https://github.com/matrix-org/synapse/issues/{issue})"
5+
issue_format = "[\\#{issue}](https://github.com/element-hq/synapse/issues/{issue})"
66

77
[[tool.towncrier.type]]
88
directory = "feature"
@@ -101,7 +101,7 @@ description = "Homeserver for the Matrix decentralised comms protocol"
101101
authors = ["Matrix.org Team and Contributors <packages@matrix.org>"]
102102
license = "AGPL-3.0-or-later"
103103
readme = "README.rst"
104-
repository = "https://github.com/matrix-org/synapse"
104+
repository = "https://github.com/element-hq/synapse"
105105
packages = [
106106
{ include = "synapse" },
107107
]

‎scripts-dev/release.py

+14-12
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def _prepare() -> None:
293293
print("Opening the changelog in your browser...")
294294
print("Please ask #synapse-dev to give it a check.")
295295
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"
297297
)
298298

299299

@@ -361,18 +361,18 @@ def _tag(gh_token: Optional[str]) -> None:
361361
print("As this is an RC, remember to mark it as a pre-release!")
362362
print("(by the way, this step can be automated by passing --gh-token,")
363363
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}")
365365

366366
print("Once done, you need to wait for the release assets to build.")
367367
if click.confirm("Launch the release assets actions page?", default=True):
368368
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}"
370370
)
371371
return
372372

373373
# Create a new draft release
374374
gh = Github(gh_token)
375-
gh_repo = gh.get_repo("matrix-org/synapse")
375+
gh_repo = gh.get_repo("element.-hq/synapse")
376376
release = gh_repo.create_git_release(
377377
tag=tag_name,
378378
name=tag_name,
@@ -385,7 +385,7 @@ def _tag(gh_token: Optional[str]) -> None:
385385
print("Launching the release page and the actions page.")
386386
click.launch(release.html_url)
387387
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}"
389389
)
390390

391391
click.echo("Wait for release assets to be built")
@@ -411,7 +411,7 @@ def _publish(gh_token: str) -> None:
411411

412412
# Publish the draft release
413413
gh = Github(gh_token)
414-
gh_repo = gh.get_repo("matrix-org/synapse")
414+
gh_repo = gh.get_repo("element.-hq/synapse")
415415
for release in gh_repo.get_releases():
416416
if release.title == tag_name:
417417
break
@@ -454,7 +454,7 @@ def _upload(gh_token: Optional[str]) -> None:
454454

455455
# Query all the assets corresponding to this release.
456456
gh = Github(gh_token)
457-
gh_repo = gh.get_repo("matrix-org/synapse")
457+
gh_repo = gh.get_repo("element.-hq/synapse")
458458
gh_release = gh_repo.get_release(tag_name)
459459

460460
all_assets = set(gh_release.get_assets())
@@ -543,7 +543,9 @@ def _wait_for_actions(gh_token: Optional[str]) -> None:
543543

544544
# Authentication is optional on this endpoint,
545545
# 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+
)
547549
headers = {"Accept": "application/vnd.github+json"}
548550
if gh_token is not None:
549551
headers["authorization"] = f"token {gh_token}"
@@ -658,8 +660,8 @@ def _announce() -> None:
658660
f"""
659661
Hi everyone. Synapse {current_version} has just been released.
660662
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}) | \
663665
[debs](https://packages.matrix.org/debian/) | \
664666
[pypi](https://pypi.org/project/matrix-synapse/{current_version}/)"""
665667
)
@@ -689,7 +691,7 @@ def _announce() -> None:
689691
def full(gh_token: str) -> None:
690692
click.echo("1. If this is a security release, read the security wiki page.")
691693
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")
693695
click.echo(
694696
"3. Check for any other special release notes, including announcements to add to the changelog or special deployment instructions."
695697
)
@@ -893,7 +895,7 @@ def build_dependabot_changelog(repo: Repo, current_version: version.Version) ->
893895
def replacer(match: Match[str]) -> str:
894896
desc = match.group(1)
895897
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}))"
897899

898900
for i, message in enumerate(messages):
899901
messages[i] = re.sub(r"(.*) \(#(\d+)\)$", replacer, message)

0 commit comments

Comments
 (0)
Please sign in to comment.