Read about our upcoming Code of Conduct on this issue

Commit c68cbd92 authored by Georges Racinet's avatar 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
......@@ -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
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment