Skip to content

Interactive Repo Visualizer and private repos #52

Open
@lmakarov

Description

@lmakarov

This is a follow up to #20.

The Interactive Repo Visualizer tool is superior to the static SVG generation option.

It will be great to have it either open-sourced, released as part of the repo Insights (tab) on GitHub, or at least add official support for accessing private repos.


In the mean time, here are the instructions to get the current tool working with private repos:

  1. Go to https://github.com/settings/tokens

  2. Generate a new PAT with repo permissions

  3. Go to https://mango-dune-07a8b7110.1.azurestaticapps.net/

  4. Add the following code to the JS console replacing TOKEN with your GitHub PAT

    window.originalFetch = window.fetch;
    const modifiedFetch = (resource, init) => window.originalFetch(resource, { ...init, headers: { "Authorization": "Bearer 
    TOKEN" } });
    window.fetch = modifiedFetch;
  5. In the repository input, type any repository (public or private)

Kudos to @filipegiusti for posting the original instructions for private repo support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions