An storybook addon to directly create and read github issues from within storybook
npm install @nfq/storybook-github-issues



---
1. Description
2. Getting started
1. Installation
2. PeerDependencies
3. Usage
5. Support
---
This is an Storybook plugin to manage issues in Github from Storybook directly so Designers can give Feedback without leaving Storybook.
---
To setup the project locally follow the next steps:
To install the package run
``sh`
npm install @nfq/storybook-github-issues`
if you are on yarnsh`
yarn add @nfq/storybook-github-issues`
or on pnpmsh`
pnpm install @nfq/storybook-github-issues
$3
The following PeerDependencies are needed so the addon does work (Most get installed with storybook itself):
- @storybook/blocks >= 7
- @storybook/components >= 7
- @storybook/core-events >= 7
- @storybook/manager-api >= 7
- @storybook/preview-api >= 7
- @storybook/theming >= 7
- @storybook/types >= 7
- react >= 18
- react-dom >= 18
- storybook >= 7
---
To use the addon go to your storybook config file in "
`diff`
const config: StorybookConfig = {
stories: ["../src//.mdx", "../src//.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
+ "@nfq/storybook-github-issues"
],
framework: {
name: "@storybook/nextjs",
options: {},
},
docs: {
autodocs: "tag",
}
};
Add an .env file to your project and add the following variables:
`env``
STORYBOOK_GITHUB_OWNER:
STORYBOOK_GITHUB_REPOSITORY:
STORYBOOK_GITHUB_PUBLIC_TOKEN:
For the token to work you need to create a Github Token with the following permissions:
- access to the repository (Please use fine grained tokens and only give access to the repository you need)
- read:metadata
- read:discussions
- write:discussions
- read:issues
- write:issues
- read:pull_requests
- write:pull_requests
---
Christoph Kruppe - [https://github.com/ckruppe] - c.kruppe@nfq.de