Skip to content

Instantly share code, notes, and snippets.

Avatar
🏊‍♂️
pools are perfect for holding water

Ed Laur edbighead

🏊‍♂️
pools are perfect for holding water
View GitHub Profile
View branch_permissions_config.ini
[bitbucket]
repo=repo1,repo2
users=user1,user2
url=https://your.bitbucket.com
owner=REPOOWNER
[branch]
name=master
[pattern]
View branch_permissions.py
import requests
import os
import argparse
import configparser
config = configparser.ConfigParser()
config.read('config.ini')
repoList = config['bitbucket']['repo'].split(",")
usersList = config['bitbucket']['users'].split(",")
branch = config['branch']['name']
You can’t perform that action at this time.