Skip to content

Commit

Permalink
with
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Sep 7, 2023
1 parent 91c0358 commit e8d474d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions bugme.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,23 +92,23 @@ def main():

# Gitlab
if len(gl_list) > 0:
mygl = Gitlab(**creds["gitlab.com"])
for issue in gl_list:
try:
info = mygl.projects.get(issue.repo).issues.get(issue.number)
print(f"gl#{info.iid}\t{info.state}\t\t{dateit(info.updated_at)}\t{info.title}")
except GitlabError as exc:
print(f"gl#{issue.repo}#{issue.number}: {exc}", file=sys.stderr)
with Gitlab(**creds["gitlab.com"]) as mygl:
for issue in gl_list:
try:
info = mygl.projects.get(issue.repo).issues.get(issue.number)
print(f"gl#{info.iid}\t{info.state}\t\t{dateit(info.updated_at)}\t{info.title}")
except GitlabError as exc:
print(f"gl#{issue.repo}#{issue.number}: {exc}", file=sys.stderr)

# SUSE's Gitlab
if len(gsd_list) > 0:
mygl = Gitlab(url="https://gitlab.suse.de", **creds["gitlab.suse.de"])
for issue in gsd_list:
try:
info = mygl.projects.get(issue.repo).issues.get(issue.number)
print(f"gl#{info.iid}\t{info.state}\t\t{dateit(info.updated_at)}\t{info.title}")
except GitlabError as exc:
print(f"gl#{issue.repo}#{issue.number}: {exc}", file=sys.stderr)
with Gitlab(url="https://gitlab.suse.de", **creds["gitlab.suse.de"]) as mygl:
for issue in gsd_list:
try:
info = mygl.projects.get(issue.repo).issues.get(issue.number)
print(f"gl#{info.iid}\t{info.state}\t\t{dateit(info.updated_at)}\t{info.title}")
except GitlabError as exc:
print(f"gl#{issue.repo}#{issue.number}: {exc}", file=sys.stderr)

# Redmine
if len(poo_list) > 0:
Expand Down

0 comments on commit e8d474d

Please sign in to comment.