Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 10 additions & 2 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,11 @@ vcs_github = GitHubProviderFactory(
# These options can be customised with the `VCS_PROVIDER_CONFIG_DICT` option, e.g. by passing it
# as an env var on OpenShift.
webhook_receiver_url="https://CHANGEME.cern.ch/api/hooks/receivers/github/events/?access_token={token}",
config={"insecure_ssl": False, "shared_secret": "CHANGEME"},
config={"insecure_ssl": False, "shared_secret": "CHANGEME", "allowed_repository_type": "public"},
)
vcs_github.repo_list_message = _(
"If your organization's repositories do not show up in the list, please ensure you have enabled third-party access. "
"Only public repositories are shown."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make this bold?

Suggested change
"Only public repositories are shown."
"Only **public** repositories are shown."

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, unfortunately this does not support formatting at the moment. I could add support for it but it will be a little complicated

)

vcs_github_oauth_remote_config = vcs_github.oauth_remote_config
Expand All @@ -273,7 +277,11 @@ vcs_gitlab = GitLabProviderFactory(
name="GitLab",
base_url="https://gitlab.cern.ch",
webhook_receiver_url="https://CHANGEME.cern.ch/api/hooks/receivers/gitlab/events/?access_token={token}",
config={"shared_validation_token": "CHANGEME"},
config={"shared_validation_token": "CHANGEME", "allowed_project_visibilities": ["public"]},
)
vcs_gitlab.repo_list_message = _(
"If your project does not show up in the list, please ensure you have at least the 'Maintainer' role on the project or its group. "
"Only public projects are shown."
)

vcs_gitlab_oauth_remote_config = vcs_gitlab.oauth_remote_config
Expand Down
Loading
Loading