This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import argparse | |
def yesno(question): | |
prompt = f'{question} (y/n): ' | |
answer = input(prompt).strip().lower() | |
if answer not in ['y', 'n']: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Use: `python get_sentry_issue_events.py <sentry_token> <issue_id>` | |
Gets all events of an issue and saves them to a CSV. | |
The token can be generated at https://sentry.io/api/ | |
Only the event:read permission is needed. | |
''' | |
import csv | |
import io |