Read about our upcoming Code of Conduct on this issue

Commit 130b3f74 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

fetch-watch-tags: fixed token problem if creating several issues

parent 2893e0aa97e7
Pipeline #20084 passed with stage
in 28 seconds
......@@ -90,9 +90,12 @@
def create_issues(versions, server, token, project, simulate=True):
with open(os.path.expanduser(token)) as tokenf:
token = tokenf.read().strip()
for version in versions:
version_str = '.'.join(str(i) for i in version)
print("Creating issue for GitLab " + repr(version))
url = '/'.join((server, 'api', 'v4', 'projects',
project.replace('/', '%2F'),
'issues'))
......@@ -93,11 +96,9 @@
for version in versions:
version_str = '.'.join(str(i) for i in version)
print("Creating issue for GitLab " + repr(version))
url = '/'.join((server, 'api', 'v4', 'projects',
project.replace('/', '%2F'),
'issues'))
with open(os.path.expanduser(token)) as tokenf:
token = tokenf.read().strip()
description = ISSUE_TEMPLATE.format(
git_branch='%d-%d-stable' % version[:2],
......
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