storybook-addon-github-issues
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

Github issues for Storybook

Track issues logged against specific components in your repository

Getting Started

yarn add -D storybook-addon-github-issues

Add the following into your .env file:

GITHUB_REPOSITORY=username/repo
GITHUB_TOKEN=your_auth_token

...where your_auth_token is a Github personal access token with at least the repo scope. This will be used to access Github's GraphQL API to retrieve matching stories.

Add storybook-addon-github-issues to the addons list in .storybook/main.js.

In your .storybook/preview.js:

addParameters({
  issues: {
    repository: process.env.GITHUB_REPO,
    token: process.env.GITHUB_TOKEN,
  },
});

Tagging stories

By default, issues must have labels matching the name of the story, in kebab case. For example, if your component story is Atoms/Button, then you should tag your issues with button.

Package Sidebar

Install

npm i storybook-addon-github-issues

Weekly Downloads

1

Version

0.0.10

License

MIT

Unpacked Size

68.7 kB

Total Files

52

Last publish

Collaborators

  • fauxparse