Skip to content

Commit 1a23417

Browse files
Gonchik TsymzhitovGonchik Tsymzhitov
authored andcommitted
Bump version and review contribution page
1 parent 2735362 commit 1a23417

6 files changed

Lines changed: 25 additions & 14 deletions

File tree

CONTRIBUTING.rst

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ Getting Started
1111
* Fork_ repository
1212
* Keep it sync_'ed while you are developing
1313
* Install pyenv_
14-
* Install related atlassian product for testing through SDK_
15-
* pip install -r requirements.txt
16-
* Start up related product
17-
- atlas-run-standalone_
14+
* Install related atlassian product for testing through SDK_ or use the cloud instance
15+
* ``pip install -r requirements-dev.txt``
16+
* Start up related product:
17+
- Standalone product atlas-run-standalone_
18+
- For cloud product, just do registration
1819
* Send pull request
1920

2021
.. _Fork: https://help.github.com/articles/fork-a-repo/
@@ -57,7 +58,8 @@ All methods based on docs from: https://developer.atlassian.com/docs/
5758

5859
* `Jira Server`_
5960
* `Jira Cloud`_
60-
* Confluence_
61+
* `Confluence Server`_
62+
* `Confluence Cloud`_
6163
* `Jira Service Desk Server`_
6264
* `Jira Service Desk Cloud`_
6365
* `Portfolio for Jira`_
@@ -80,8 +82,9 @@ All methods based on docs from: https://developer.atlassian.com/docs/
8082
- https://confluence.atlassian.com/cloud/api-tokens-938839638.html
8183

8284
.. _`Jira Server`: https://docs.atlassian.com/software/jira/docs/api/REST/latest
83-
.. _Jira Cloud: https://developer.atlassian.com/cloud/jira/platform/rest/v3/
84-
.. _Confluence: https://developer.atlassian.com/server/confluence/confluence-server-rest-api/
85+
.. _`Jira Cloud`: https://developer.atlassian.com/cloud/jira/platform/rest/v3/
86+
.. _`Confluence Server`: https://developer.atlassian.com/server/confluence/confluence-server-rest-api/
87+
.. _`Confluence Cloud`: https://developer.atlassian.com/cloud/confluence/rest/
8588
.. _`Jira Service Desk Cloud`: https://developer.atlassian.com/cloud/jira/service-desk/rest/
8689
.. _`Jira Service Desk Server`: https://docs.atlassian.com/jira-servicedesk/REST/server
8790
.. _`Portfolio for Jira Teams`: https://docs.atlassian.com/portfolio-for-jira-server/REST/2.13.0/teams/
@@ -95,8 +98,9 @@ In addition to all the contributors we would like to thank to these companies:
9598
* Atlassian_ for developing such a powerful ecosystem.
9699
* JetBrains_ for providing us with free licenses of PyCharm_
97100
* Travis_ for hosting our continuous integration
98-
101+
* Insomnia_ for providing the human rest client easy to test the methods
99102
.. _Atlassian: https://www.atlassian.com/
100103
.. _JetBrains: http://www.jetbrains.com
101104
.. _PyCharm: http://www.jetbrains.com/pycharm/
102105
.. _Travis: https://travis-ci.org/
106+
.. _Insomnia: https://insomnia.rest/

atlassian/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.15.5
1+
1.15.6

atlassian/bamboo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def _get_generator(self, path, elements_key='results', element_key='result', dat
3333
:return: generator with the contents of response[elements_key][element_key]
3434
"""
3535
start_index = 0
36-
params['start-index'] = start_index
36+
params["start-index"] = start_index
3737
response = self.get(path, data, flags, params, headers)
3838
if self.advanced_mode:
3939
try:
@@ -46,20 +46,20 @@ def _get_generator(self, path, elements_key='results', element_key='result', dat
4646
results = response[elements_key]
4747
size = 0
4848
# Check if we still can get results
49-
if size > max_results or results['size'] == 0:
49+
if size > max_results or results["size"] == 0:
5050
return
5151
for r in results[element_key]:
5252
size += 1
5353
yield r
54-
start_index += results['max-result']
54+
start_index += results["max-result"]
5555
except TypeError:
5656
logging.error("Broken response: {}".format(response))
5757
yield response
5858

5959
def base_list_call(self, resource, expand, favourite, clover_enabled, max_results, label=None, start_index=0,
6060
**kwargs):
6161
flags = []
62-
params = {'max-results': max_results}
62+
params = {"max-results": max_results}
6363
if expand:
6464
params['expand'] = expand
6565
if favourite:

examples/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ There are simple rules each example should follow:
88
* **Do not store** any credentials in VCS
99
* Do not use any additional dependencies except the python build-in's
1010
* Follow the PEP-8 and format your code.
11-
JetBrains built-in formatter is perfectly fine and used a lot at this library
11+
12+
JetBrains PyCharm built-in formatter is perfectly fine and used a lot at this library

examples/bamboo/bamboo-activity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
from atlassian import Bamboo
33
import os
44

5+
"""
6+
Example for check exist activity and agent status
7+
"""
58
BAMBOO_URL = os.environ.get('BAMBOO_URL', 'http://localhost:8085')
69
ATLASSIAN_USER = os.environ.get('ATLASSIAN_USER', 'admin')
710
ATLASSIAN_PASSWORD = os.environ.get('ATLASSIAN_PASSWORD', 'admin')

examples/bamboo/bamboo-add-plan-branch.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
from atlassian import Bamboo
33
import argparse
44

5+
"""
6+
How to create the plan branch
7+
"""
58
bamboo = Bamboo(url="https://", username="", password="")
69

710

0 commit comments

Comments
 (0)