Skip to content
+

Overview

The Github components lets users view various aspects of github information.

Available components

The Stoked UI Github package exposes four components:

Github Calendar

import { GithubCalendar } from '@stoked-ui/github/GithubCalendar';

The Github Calendar component is built on top of the react-github-calendar component.

 
Press Enter to start editing

Github Events

import { GithubEvents } from '@stoked-ui/github/GithubEvents';

The Github Events component displays and provides access to a given user's recent github events:

brian-stoker's Events
Date
Repository
Type
Press Enter to start editing

Github Commit

import { GithubCommit } from '@stoked-ui/github/GithubCommit';

The Github Commit component renders a single commit view with the contributor, commit message, changed files, and a minimal diff:

Simple static example:

stoked-ui/sui
5c90b54
6 files changed

add other tracks to demo video

Committed 9/18/2024, 6:33:59 PM

Contributor
brian-stoker

brian-stoker

Brian Stoker
1 commit
Brian Stoker

add other tracks to demo video

Brian Stoker committed 2024-09-18T18:33:59Z

Press Enter to start editing

Github Branch

import { GithubBranch } from '@stoked-ui/github/GithubBranch';

The Github Branch component compares a branch to its base branch and highlights contributors, commits, changed files, and a minimal diff:

Simple static example:

stoked-ui/sui
bug/fixAutoDeploySite
base: main
diverged

bug/fixAutoDeploySite

Comparing against main. 1 ahead, 380 behind, 1 commit in the comparison.

Contributors
brian-stoker

brian-stoker

Brian Stoker
1 commit
Brian Stoker

add other tracks to demo video

Brian Stoker committed 2024-09-18T18:33:59Z

Press Enter to start editing