Skip to content

feat(contact): Adds GitLab for sidebar. Only display contacts that are configured. #2368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JasonRaveling
Copy link

Type of change

  • New feature (non-breaking change which adds functionality)

Description

Adds GitLab as an option, similar to GitHub. It is an optional config. When set, it will show the GitLab icon in the sidebar with a link to the GitLab page of the configured username.

…fig.yml.

For GitHub, GitLab, and Twitter, they will be displayed, regardless of a username being set or not. Updates the conditional for capture/assign of `url` so that it is `nil` if no username was provided. Then when the check for `url` is done for building the link, it will be skipped if no username is configured.
@JasonRaveling
Copy link
Author

This started as just a simple add of GitLab. Then I realized certain contacts (e.g. Twitter) were being added even when none was configured. This pull request also includes an adjustment to the conditional so that if a username is not set for GitHub or Twitter (also GitLab), then it will not be displayed in the sidebar.

@JasonRaveling JasonRaveling changed the title feat(contact): Adds GitLab as a configurable contact for the sidebar. feat(contact): Adds GitLab for sidebar. Only display contacts that are configured. Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant