hide_issues.py 340 Bytes
Newer Older
Matthieu Boileau's avatar
Matthieu Boileau committed
1
2
3
4
5
6
7
8
9
10
11
12
"""Use python-gitlab API to make all project issues confidential"""

from follow_transfer import connect_to_gitlab, GITLAB_PROJECT_ID

gl = connect_to_gitlab()

project = gl.projects.get(GITLAB_PROJECT_ID)
project_issues = project.issues.list(all=True, lazy=True)

for issue in project_issues:
    issue.confidential = True
    issue.save()