Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
heptapod-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
heptapod
heptapod-docker
Commits
9b70fb4dd3ea
Commit
9b70fb4dd3ea
authored
1 month ago
by
Georges Racinet
Browse files
Options
Downloads
Patches
Plain Diff
release-full: different microblogging messages for final and rc
parent
7b5986eb9dd8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#98968
passed
1 month ago
Stage: test
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
release-full
+22
-2
22 additions, 2 deletions
release-full
with
22 additions
and
2 deletions
release-full
+
22
−
2
View file @
9b70fb4d
...
...
@@ -2,6 +2,7 @@
import
argparse
import
logging
from
pathlib
import
Path
import
re
import
subprocess
FILE_PATH
=
Path
(
__file__
)
...
...
@@ -9,7 +10,7 @@
logger
=
logging
.
getLogger
(
FILE_PATH
.
name
.
rsplit
(
'
.
'
,
1
)[
0
])
TWITT_TEMPLATE
=
(
TWITT_TEMPLATE
_RC
=
(
"
#heptapod {version}
"
"
released, COMMENT_HERE
"
"
Docker: https://hub.docker.com/r/heptapod/heptapod/
"
...
...
@@ -18,6 +19,21 @@
"
HEPTAPOD_CHANGELOG.md #git #mercurial
"
)
TWITT_TEMPLATE_FINAL
=
(
"
#heptapod {version}
"
"
released, COMMENT_HERE
"
"
Changelog:
"
"
https://foss.heptapod.net/heptapod/heptapod/-/blob/heptapod-{version}/
"
"
HEPTAPOD_CHANGELOG.md
"
"
Download instructions:
"
"
https://heptapod.net/pages/get-heptapod.html#get-heptapod
"
"
#git #mercurial
"
)
def
is_final_version
(
version
):
return
re
.
match
(
r
'
^\d+\.\d+\.\d+$
'
,
version
)
is
not
None
def
validate_sha256
(
s
):
assert
len
(
s
)
==
64
...
...
@@ -108,7 +124,11 @@
check_call
(
push_release
,
simulate
=
simulate
)
print
(
"
\n
Now brag about it on social media, inserting additional comments
"
"
into the following:
\n
"
)
print
(
TWITT_TEMPLATE
.
format
(
version
=
version
))
if
is_final_version
(
version
):
tmpl
=
TWITT_TEMPLATE_FINAL
else
:
tmpl
=
TWITT_TEMPLATE_RC
print
(
tmpl
.
format
(
version
=
version
))
if
__name__
==
'
__main__
'
:
...
...
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