Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit ffcc446

Browse files
adjust deactivated repo url (#961)
1 parent e8a5caf commit ffcc446

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

upload/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,9 +754,9 @@ def dispatch_upload_task(
754754

755755
def validate_activated_repo(repository):
756756
if repository.active and not repository.activated:
757-
settings_url = f"{settings.CODECOV_DASHBOARD_URL}/{repository.author.service}/{repository.author.username}/{repository.name}/settings"
757+
config_url = f"{settings.CODECOV_DASHBOARD_URL}/{repository.author.service}/{repository.author.username}/{repository.name}/config/general"
758758
raise ValidationError(
759-
f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings_url}"
759+
f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {config_url}"
760760
)
761761

762762

upload/tests/test_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,12 @@ def test_validate_upload_too_many_uploads_for_commit(
259259

260260
def test_deactivated_repo(db, mocker):
261261
repository = RepositoryFactory.create(active=True, activated=False)
262-
settings_url = f"{settings.CODECOV_DASHBOARD_URL}/{repository.author.service}/{repository.author.username}/{repository.name}/settings"
262+
config_url = f"{settings.CODECOV_DASHBOARD_URL}/{repository.author.service}/{repository.author.username}/{repository.name}/config/general"
263263

264264
with pytest.raises(ValidationError) as exp:
265265
validate_activated_repo(repository)
266266
assert exp.match(
267-
f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings_url}"
267+
f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {config_url}"
268268
)
269269

270270

upload/tests/views/test_commits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_deactivated_repo(db):
6868
response_json = response.json()
6969
assert response.status_code == 400
7070
assert response_json == [
71-
f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings.CODECOV_DASHBOARD_URL}/github/codecov/the_repo/settings"
71+
f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings.CODECOV_DASHBOARD_URL}/github/codecov/the_repo/config/general"
7272
]
7373

7474

upload/tests/views/test_reports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_deactivated_repo(db):
6565
response_json = response.json()
6666
assert response.status_code == 400
6767
assert response_json == [
68-
f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings.CODECOV_DASHBOARD_URL}/github/codecov/the_repo/settings"
68+
f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings.CODECOV_DASHBOARD_URL}/github/codecov/the_repo/config/general"
6969
]
7070

7171

upload/tests/views/test_uploads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ def test_deactivated_repo(db, mocker, mock_redis):
793793
response_json = response.json()
794794
assert response.status_code == 400
795795
assert response_json == [
796-
f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings.CODECOV_DASHBOARD_URL}/github/codecov/the_repo/settings"
796+
f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings.CODECOV_DASHBOARD_URL}/github/codecov/the_repo/config/general"
797797
]
798798

799799

0 commit comments

Comments
 (0)