Skip to content

Commit 6a08bb5

Browse files
committed
WIP: Append github to backend allowed repositories
* [ ] Allow creation of repository from github.com * [ ] Update tests
1 parent 60c9320 commit 6a08bb5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

backend/code_review_backend/app/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
PHABRICATOR_HOST = "https://phabricator.services.mozilla.com"
213213

214214
# Limit the automatic creation of reositories to allowed hosts
215-
ALLOWED_REPOSITORY_HOSTS = ["hg.mozilla.org"]
215+
ALLOWED_REPOSITORY_HOSTS = ["hg.mozilla.org", "github.com"]
216216

217217
DYNO = env("DYNO")
218218
# Heroku settings override to run the web app through dyno

backend/code_review_backend/issues/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class RepositoryGetOrCreateField(serializers.SlugRelatedField):
3535
)
3636
default_error_messages = {
3737
**serializers.SlugRelatedField.default_error_messages,
38-
"invalid_url": "Repository URL must match hg.mozilla.org.",
38+
"invalid_url": "Base repository URL is not allowed.",
3939
}
4040
queryset = Repository.objects.all()
4141

0 commit comments

Comments
 (0)