Skip to content

Commit 302d9fc

Browse files
committed
Polish
1 parent 92bbc63 commit 302d9fc

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

atlassian/bitbucket/cloud/repositories/refs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def create(
2222
):
2323
"""
2424
Creates a ref with the given target commit
25-
2625
:param name: string: name
2726
:param commit: string: commit hash
2827

atlassian/insight.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def __cloud_init(self, *args, **kwargs):
4747
return args, kwargs
4848

4949
def __get_workspace_id(self):
50-
return self.get("rest/servicedeskapi/insight/workspace", headers=self.default_headers,)["values"][
50+
return self.get(
51+
"rest/servicedeskapi/insight/workspace",
52+
headers=self.default_headers,)["values"][
5153
0
5254
]["workspaceId"]
5355

atlassian/jira.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,6 +2124,12 @@ def archive_project(self, key):
21242124
return self.put(url)
21252125

21262126
def project(self, key, expand=None):
2127+
"""
2128+
Get project with details
2129+
:param key:
2130+
:param expand:
2131+
:return:
2132+
"""
21272133
params = {}
21282134
if expand:
21292135
params["expand"] = expand

atlassian/xray.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@
88

99
class Xray(AtlassianRestAPI):
1010
def __init__(self, *args, **kwargs):
11-
1211
if "api_version" not in kwargs:
1312
kwargs["api_version"] = "1.0"
14-
1513
kwargs["api_root"] = "rest/raven"
16-
1714
super(Xray, self).__init__(*args, **kwargs)
1815

1916
def resource_url(self, resource, api_root=None, api_version=None):

docs/jira.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ Manage projects
9797
jira.archive_project(key)
9898
9999
# Get project
100-
jira.project(key)
100+
jira.project(key, expand=None)
101+
102+
# Get project info
103+
jira.get_project(key, expand=None)
101104
102105
# Get project components using project key
103106
jira.get_project_components(key)

examples/confluence/confluence_copy_labels.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def sync_labels_pages(pages, destination_space):
4545

4646

4747
if __name__ == "__main__":
48-
4948
# Setting the logging level. INFO|ERROR|DEBUG are the most common.
5049
logging.basicConfig(level=logging.INFO)
5150
# Initialize argparse module with some program name and additional information

examples/jira/jira_dc_create_support_zips.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,16 @@
1010
in_progress_zips = list()
1111

1212
while True:
13-
1413
for task in jira.check_support_zip_status(zips_creation_task_id)["tasks"]:
15-
1614
if task["status"] == "IN_PROGRESS":
1715
print("file {} {}".format(task["fileName"], task["progressMessage"]))
18-
1916
if task["fileName"] not in in_progress_zips:
2017
in_progress_zips.append(task["fileName"])
21-
2218
else:
2319
support_zip = jira.download_support_zip(task["fileName"])
24-
2520
with open(task["fileName"], "wb") as fp:
2621
fp.write(support_zip)
27-
2822
print("{} written.".format(task["fileName"]))
29-
3023
if task["fileName"] in in_progress_zips:
3124
in_progress_zips.remove(task["fileName"])
3225

0 commit comments

Comments
 (0)