Skip to content

Commit 0c752bc

Browse files
author
Gonchik Tsymzhitov
committed
DVCS: checkers and resync methods
1 parent 0c918e3 commit 0c752bc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

atlassian/jira.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3642,6 +3642,24 @@ def update_rank(self, issues_to_rank, rank_before, customfield_number):
36423642
},
36433643
)
36443644

3645+
def dvcs_get_linked_repos(self):
3646+
"""
3647+
Get DVCS linked repos
3648+
:return:
3649+
"""
3650+
url = "rest/bitbucket/1.0/repositories"
3651+
return self.get(url)
3652+
3653+
def dvcs_update_linked_repo_with_remote(self, repository_id):
3654+
"""
3655+
Resync delayed sync repo
3656+
https://confluence.atlassian.com/jirakb/delays-for-commits-to-display-in-development-panel-in-jira-server-779160823.html
3657+
:param repository_id:
3658+
:return:
3659+
"""
3660+
url = "rest/bitbucket/1.0/repositories/{}/sync".format(repository_id)
3661+
return self.post(url)
3662+
36453663
def health_check(self):
36463664
"""
36473665
Get health status

0 commit comments

Comments
 (0)