Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

cottom/gh-talks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-talk

light discuss add-on based on github issue's comments.

start

npm i -S gh-talk

or

<link rel="stylesheet"  href="https://unpkg.com/gh-talk/dist/index.css" />
<div id="talk-container"></div>
<script src="https://unpkg.com/gh-talk/dist/index.js"></script>

init

new GhTalk({
  selector: '#talk-container'
  // custom maintain a github app
  clientId: string,
  clientSecret: string,

  // login with new dialog tab
  dialog: url,
  owner: string
  issueId: number
  repo: string
  renderFn?: Function
  renderEditor?: Function
  renderComments?: Function
  exchangeTokenURL?: string
})