Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
Upstream Conversion
Commits
c68cbd92f8ea
Commit
c68cbd92
authored
Mar 18, 2021
by
Georges Racinet
🦑
Browse files
fetch-watch-tags: instructions and task list in issue template
For now a big string in the module is good enough
parent
ff7ee45df482
Pipeline
#19926
passed with stage
in 21 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
fetch-watch-tags.py
View file @
c68cbd92
...
...
@@ -12,6 +12,49 @@
# and similar on purpose
NEW_TAG_RX
=
re
.
compile
(
r
'\[new tag\]\s+v(\d+)[.](\d+)[.](\d+)\s+'
)
ISSUE_TEMPLATE
=
r
"""
A new release tag {tag} appeared in upstream GitLab.
It should be considered for a new Heptapod release.
## Conversion task list
Each code block starts at the top of the clone of the
[upstream-conversion](https://foss.heptapod.net/heptapod/upstream-conversion)
project used for the conversion.
- [ ] Main repository:
```
cd gitlab-ce
../fetch-stable-branches.sh
cd ..
./convert-pull-local --branch-prefix {git_branch}
cd heptapod-rails
hg push -fB {git_branch} [URL]
../convert-git-tags-push
```
- [ ] Omnibus:
```
cd omnibus-gitlab
../fetch-stable-branches.sh
cd ..
./convert-pull-local --gitlab-repo omnibus-gitlab \
--heptapod-repo omnibus-heptapod \
--branch-prefix {git_branch}
cd omnibus-heptapod
hg push -fB {git_branch} [URL]
../convert-git-tags-push
```
- [ ] Heptapod Shell, if `GITLAB_SHELL_VERSION` changed in main repository
(see the
[README](https:/foss.heptapod.net/heptapod/upstream-conversion/README)
of the upstream-conversion project for instructions)
"""
def
level2_version
(
s
):
split
=
s
.
strip
().
split
(
'.'
)
...
...
@@ -60,4 +103,8 @@
with
open
(
os
.
path
.
expanduser
(
token
))
as
tokenf
:
token
=
tokenf
.
read
().
strip
()
description
=
ISSUE_TEMPLATE
.
format
(
git_branch
=
'%d-%d-stable'
%
version
[:
2
],
tag
=
'v'
+
version_str
,
)
post_data
=
dict
(
...
...
@@ -63,9 +110,5 @@
post_data
=
dict
(
description
=
"A new release tag v%s appeared in "
"upstream GitLab."
"
\n\n
"
"It should be considered for a stable Heptapod "
"release.
\n
"
%
version_str
,
description
=
description
,
title
=
"GitLab "
+
version_str
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment