Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
gonchik committed Jan 23, 2025
1 parent f3f5e58 commit 8151e3a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion atlassian/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.41.18
3.41.19
5 changes: 3 additions & 2 deletions atlassian/bitbucket/cloud/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ def raise_for_status(self, response):
e = j["error"]
error_msg = e["message"]
if e.get("detail"):
# It uses interpolation instead of concatenation because of https://github.com/atlassian-api/atlassian-python-api/issues/1481
error_msg = f"{error_msg}\n{e['detail']}"
# It uses interpolation instead of concatenation because of
# https://github.com/atlassian-api/atlassian-python-api/issues/1481
error_msg = "{}\n{}".format(error_msg, e["detail"])
except Exception as e:
log.error(e)
response.raise_for_status()
Expand Down
3 changes: 1 addition & 2 deletions atlassian/confluence.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,6 @@ def get_all_pages_by_space_ids_confluence_cloud(
"""
Get all pages from a set of space ids:
https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-get
:param space_ids: A Set of space IDs passed as a filter to Confluence
:param batch_size: OPTIONAL: The batch size of pages to retrieve from confluence per request MAX is 250.
Default: 250
Expand All @@ -742,7 +741,7 @@ def get_all_pages_by_space_ids_confluence_cloud(
Valid values: current, archived, deleted, trashed
Default: current,archived
:param title: OPTIONAL: Filter pages based on their title.
:param body-format: OPTIONAL: The format of the body in the response. Valid values: storage, atlas_doc_format
:param body_format: OPTIONAL: The format of the body in the response. Valid values: storage, atlas_doc_format
:return:
"""
path = "/api/v2/pages"
Expand Down
8 changes: 4 additions & 4 deletions atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def get_application_role(self, role_key):
def get_attachments_ids_from_issue(self, issue):
"""
Get attachments IDs from jira issue
:param jira issue key: str
:param issue: str : jira issue key
:return: list of integers attachment IDs
"""
issue_id = self.get_issue(issue)["fields"]["attachment"]
Expand Down Expand Up @@ -1382,7 +1382,7 @@ def get_issue_labels(self, issue_key):

def update_issue(self, issue_key, update):
"""
:param issue: the issue to update
:param issue_key: the issue to update
:param update: the update to make
:return: True if successful, False if not
"""
Expand All @@ -1391,7 +1391,7 @@ def update_issue(self, issue_key, update):

def label_issue(self, issue_key, labels):
"""
:param issue: the issue to update
:param issue_key: the issue to update
:param labels: the labels to add
:return: True if successful, False if not
"""
Expand All @@ -1400,7 +1400,7 @@ def label_issue(self, issue_key, labels):

def unlabel_issue(self, issue_key, labels):
"""
:param issue: the issue to update
:param issue_key: the issue to update
:param labels: the labels to remove
:return: True if successful, False if not
"""
Expand Down
2 changes: 2 additions & 0 deletions atlassian/service_desk.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def add_request_participants(self, issue_id_or_key, users_list=None, account_lis
:param issue_id_or_key: str
:param users_list: list
:param account_list: list
:return:
"""
url = "rest/servicedeskapi/request/{}/participant".format(issue_id_or_key)
Expand All @@ -214,6 +215,7 @@ def remove_request_participants(self, issue_id_or_key, users_list=None, account_
:param issue_id_or_key: str
:param users_list: list
:param account_list: list
:return:
"""
url = "rest/servicedeskapi/request/{}/participant".format(issue_id_or_key)
Expand Down

0 comments on commit 8151e3a

Please sign in to comment.