Skip to content

Commit ece5138

Browse files
author
Gonchik Tsymzhitov
committed
Polish
1 parent 5f67ef8 commit ece5138

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

atlassian/bamboo.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ def base_list_call(self, resource, expand, favourite, clover_enabled, max_result
8080
""" Projects & Plans """
8181

8282
def projects(self, expand=None, favourite=False, clover_enabled=False, max_results=25):
83-
return self.base_list_call('project', expand, favourite, clover_enabled, max_results,
84-
elements_key='projects', element_key='project')
83+
return self.base_list_call('project', expand=expand, favourite=favourite, clover_enabled=clover_enabled,
84+
max_results=max_results, elements_key='projects', element_key='project')
8585

8686
def project(self, project_key, expand=None, favourite=False, clover_enabled=False):
8787
resource = 'project/{}'.format(project_key)
88-
return self.base_list_call(resource, expand, favourite, clover_enabled, start_index=0, max_results=25)
88+
return self.base_list_call(resource=resource, expand=expand, favourite=favourite,
89+
clover_enabled=clover_enabled, start_index=0, max_results=25)
8990

9091
def project_plans(self, project_key, start_index=0, max_results=25):
9192
"""

atlassian/bitbucket.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2641,8 +2641,10 @@ def add_branch_restriction(self, workspace, repository, kind, branch_match_kind=
26412641
apply to (supports * as wildcard).
26422642
:param branch_type: The branch type specifies the branches this restriction
26432643
should apply to. One of: feature, bugfix, release, hotfix, development, production.
2644-
:param users: List of user objects that are excluded from the restriction. Minimal: {"username": "<username>"}
2645-
:param groups: List of group objects that are excluded from the restriction. Minimal: {"owner": {"username": "<teamname>"}, "slug": "<groupslug>"}
2644+
:param users: List of user objects that are excluded from the restriction.
2645+
Minimal: {"username": "<username>"}
2646+
:param groups: List of group objects that are excluded from the restriction.
2647+
Minimal: {"owner": {"username": "<teamname>"}, "slug": "<groupslug>"}
26462648
"""
26472649
resource = "repositories/{workspace}/{repository}/branch-restrictions".format(
26482650
workspace=workspace, repository=repository)

examples/confluence/confluence-get-space-permissions.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# coding=utf-8
22
from atlassian import Confluence
3-
#from var import config
43
import logging
54
from pprint import pprint
65

7-
CONFLUENCE_URL = config.CONFLUENCE_URL
8-
CONFLUENCE_LOGIN = config.CONFLUENCE_LOGIN
9-
CONFLUENCE_PASSWORD = config.CONFLUENCE_PASSWORD
6+
CONFLUENCE_URL = "http://conlfuence.example.com"
7+
CONFLUENCE_LOGIN = "gonchik.tsymzhitov"
8+
CONFLUENCE_PASSWORD = "************"
109

1110
logging.basicConfig(level=logging.DEBUG)
1211

examples/jira/jira-notification_schemes_duplicates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from atlassian import Jira
2-
import requests
32

43
jira = Jira(
54
url='http://localhost:8090',
@@ -26,6 +25,7 @@ def compare_dicts(dict1, dict2):
2625

2726
return True
2827

28+
2929
notificationscheme_dict = {}
3030
all_notificationschemes_dict = {}
3131

0 commit comments

Comments
 (0)