cli: Add 'sentry extract-origin-urls' command
Usage: swh sentry extract-origin-urls [OPTIONS] Extract origin URLs from events. This command allows to extract origin URLs from Sentry events related to a Software Heritage loader and dumps them to stdout. Options: -u, --sentry-url TEXT Sentry URL [default: https://sentry.softwareheritage.org] -t, --sentry-token TEXT Bearer token required to communicate with Sentry API (can also be provided in SENTRY_TOKEN environment variable) [required] -i, --sentry-issue-number TEXT Sentry issue number to extract origin URLs from its events [required] -e, --environment TEXT Filter on environment: production or staging, both are selected by default -h, --help Show this message and exit.
parent
a41f2cf0
No related branches found
No related tags found
Showing
- pyproject.toml 1 addition, 0 deletionspyproject.toml
- swh/core/cli/sentry.py 110 additions, 0 deletionsswh/core/cli/sentry.py
- swh/core/pytest_plugin.py 23 additions, 8 deletionsswh/core/pytest_plugin.py
- swh/core/tests/data/https_sentry.softwareheritage.org/api_0_issues_112726_events 56 additions, 0 deletions...ps_sentry.softwareheritage.org/api_0_issues_112726_events
- swh/core/tests/data/https_sentry.softwareheritage.org/api_0_issues_112726_events,cursor=0:100:0 56 additions, 0 deletions...areheritage.org/api_0_issues_112726_events,cursor=0:100:0
- swh/core/tests/data/https_sentry.softwareheritage.org/api_0_issues_112726_events,cursor=0:200:0 1 addition, 0 deletions...areheritage.org/api_0_issues_112726_events,cursor=0:200:0
- swh/core/tests/test_cli_sentry.py 48 additions, 0 deletionsswh/core/tests/test_cli_sentry.py
Loading
Please register or sign in to comment