This library allows users to implement a feedback button which will post issues on a Github repository.
This package requires react.
- Install through:
npm install github-report-button --save
-
Import
GithubReportButton
fromgithub-report-button
:import GithubReportButton from 'github-report-button'
-
Create Personal access token:
https://github.com/settings/tokens
Allow public_repo as a scope
-
Use
GithubReportButton
component:<ExampleComponent token="yourToken" owner="yourUsername" repo="yourPublicRepo"/>
You can pass the following parameters:
Parameter | Default value |
---|---|
token | Required |
owner | Required |
repo | Required |
buttonHeight | (Optional) 7.5vh |
buttonText | (Optional) 'report an issue' |