Files
pyJira/BitBucket_connector.py
T

17 lines
456 B
Python

from atlassian import Bitbucket
from jira import JIRA
host = "https://bitbucket.wien.gv.at/"
pat = "OTAyMTM3MjY0MjE0Ovz6bu0ti1TlEdSegmmiWiJ2wGeD"
# Initialize Bitbucket instance
#TODO Use token for authentication
bitbucket = Bitbucket(
url=host,
username='zim9003', # Assuming you need authentication
password='3S1punk08_114$', # Use token for authentication
)
repos = bitbucket.repo_list('WRGWR')
for repo in repos:
print(repo)