Skip to content
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

Hide private repository links from Discord presence #1937

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

Conversation

fahdfady
Copy link

Issue

Currently, the Discord presence shows "View Repo" button that links to a remote git origin that the extenstion sees through VSCode. this exposes private repositories' URLs through their discord activity.

Changes

  • Added discord.showPrivateRepositories configuration option (default: false)
  • Implemented GitHub API integration to check repository visibility
  • Now, repository links are only shown when they're :
  1. Public repositories
  2. Private repositories when explicitly enabled via config

resolves #1922

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.

private Repos links are visible
1 participant