Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions codecov_cli/services/report/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import time
import typing

import click

from codecov_cli import __version__ as codecov_cli_version
from codecov_cli.helpers import request
from codecov_cli.helpers.config import CODECOV_API_URL, CODECOV_INGEST_URL
Expand Down Expand Up @@ -30,6 +32,11 @@ def create_report_logic(
fail_on_error: bool = False,
args: typing.Union[dict, None] = None,
):
if slug is None:
raise click.ClickException(
"Slug is required but was not provided. "
"Please pass it via the --slug option or ensure your CI environment exposes the repository slug."
)
encoded_slug = encode_slug(slug)
sending_result = send_create_report_request(
commit_sha,
Expand Down
Loading