opendp / smartnoise-core

Differential privacy validator and runtime
MIT License
290 stars 33 forks source link

Feed repository issues into a slack channel #320

Closed raprasad closed 3 years ago

raprasad commented 3 years ago

docs: https://github.com/integrations/slack#repository-activity

Feed issues from multiple repositories into a Slack channel:

raprasad commented 3 years ago

convenience script

# reference: https://github.com/integrations/slack#configuration

# Repos to include
repos = ['smartnoise-core', 'smartnoise-core-python', 
         'smartnoise-sdk', 'smartnoise-samples', 
         'smartnoise-service', 'dp-test-datasets',
         'opendp-schemas']

# Note: 
# (1) subscribe enables default notices:
#     - issues, pulls, statuses, commits, deployments, public, releases
# (2) unsubscribe limits it to: issues, pulls, public
#
for repo in repos:
    print(f'\n--- Subscribe for opendifferentialprivacy/{repo} ---\n#')
    print(f'/github subscribe opendifferentialprivacy/{repo}')
    print(f'/github unsubscribe opendifferentialprivacy/{repo} statuses commits deployments releases')

# Fully unsubscribe
for repo in repos:
    print(f'\n--- Unsubscribe for opendifferentialprivacy/{repo} ---\n#')
    print(f'/github unsubscribe opendifferentialprivacy/{repo}')