Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
12d1f82d
Unverified
Commit
12d1f82d
authored
3 years ago
by
David Robertson
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Generate announcement links in release script (#12242)
parent
9e06e220
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/12242.misc
+1
-0
1 addition, 0 deletions
changelog.d/12242.misc
scripts-dev/release.py
+40
-1
40 additions, 1 deletion
scripts-dev/release.py
with
41 additions
and
1 deletion
changelog.d/12242.misc
0 → 100644
+
1
−
0
View file @
12d1f82d
Generate announcement links in the release script.
This diff is collapsed.
Click to expand it.
scripts-dev/release.py
+
40
−
1
View file @
12d1f82d
...
...
@@ -66,11 +66,15 @@ def cli():
./scripts-dev/release.py tag
# ... wait for ass
s
ets to build ...
# ... wait for assets to build ...
./scripts-dev/release.py publish
./scripts-dev/release.py upload
# Optional: generate some nice links for the announcement
./scripts-dev/release.py upload
If the env var GH_TOKEN (or GITHUB_TOKEN) is set, or passed into the
`tag`/`publish` command, then a new draft release will be created/published.
"""
...
...
@@ -415,6 +419,41 @@ def upload():
)
@cli.command
()
def
announce
():
"""
Generate markdown to announce the release.
"""
current_version
,
_
,
_
=
parse_version_from_module
()
tag_name
=
f
"
v
{
current_version
}
"
click
.
echo
(
f
"""
Hi everyone. Synapse
{
current_version
}
has just been released.
[notes](https://github.com/matrix-org/synapse/releases/tag/
{
tag_name
}
) |
\
[docker](https://hub.docker.com/r/matrixdotorg/synapse/tags?name=
{
tag_name
}
) |
\
[debs](https://packages.matrix.org/debian/) |
\
[pypi](https://pypi.org/project/matrix-synapse/
{
current_version
}
/)
"""
)
if
"
rc
"
in
tag_name
:
click
.
echo
(
"""
Announce the RC in
- #homeowners:matrix.org (Synapse Announcements)
- #synapse-dev:matrix.org
"""
)
else
:
click
.
echo
(
"""
Announce the release in
- #homeowners:matrix.org (Synapse Announcements), bumping the version in the topic
- #synapse:matrix.org (Synapse Admins), bumping the version in the topic
- #synapse-dev:matrix.org
- #synapse-package-maintainers:matrix.org
"""
)
def
parse_version_from_module
()
->
Tuple
[
version
.
Version
,
redbaron
.
RedBaron
,
redbaron
.
Node
]:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment