https://github.com/jonathanschndr/github-issue-widget
:railway_track: GitHub Issue Widget bring your issue tracking to your website.
https://github.com/jonathanschndr/github-issue-widget
github issue tracker widget
Last synced: 2 months ago
JSON representation
:railway_track: GitHub Issue Widget bring your issue tracking to your website.
- Host: GitHub
- URL: https://github.com/jonathanschndr/github-issue-widget
- Owner: JonathanSchndr
- License: mit
- Created: 2022-09-02T20:11:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-13T16:28:13.000Z (over 2 years ago)
- Last Synced: 2025-02-05T06:23:38.515Z (4 months ago)
- Topics: github, issue, tracker, widget
- Language: HTML
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
> Currently work in progress! Please do not use productively.
* Receive Token (CORS PROBLEM)
* Check Cookie, if User already logedin
* Integrate Oktokit.js
* Integrate GitHub Form Schema HTML
* Submit Issue
* Define Readme# GitHub Issue Widget
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]> GitHub Issue Widget for your Website
- [✨ Release Notes](https://github.com/JonathanSchndr/github-issue-widget/releases)
- [🔴 Demo](#)## Features
GitHub Issue Widget bring your issue tracking to your website.
- [GitHub's form schema](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema)
- [Primer CSS](https://primer.style/) support
- TypeScript Support## Setup
```sh
yarn add github-issue-widget # yarn
npm i github-issue-widget # npm
```1. Create your own GitHub OAuth App (https://github.com/settings/developers)
1. Application name: name of the website (Issue Widget (Example))
2. Homepage URL: url of the page in which the widget was integrated (https://127.0.0.1:5173)
3. Authorization callback URL: url of the page in which the widget was integrated (https://127.0.0.1:5173/example/index.html)
2. Generate a new client secret
3. Copy client id and client secret## Basic usage
```html
``````javascript
import 'github-issue-widget/dist/style.css';
import { GitHubIssueWidget } from 'github-issue-widget';document.addEventListener('DOMContentLoaded', () => {
document.getElementById('widget').innerHTML = new GitHubIssueWidget({
owner: 'JonathanSchndr',
repository: 'github-issue-widget',
branch: 'main',
issueSchemaPath: '.github/ISSUE_TEMPLATE/bug_report.yml',
appClientId: '',
appClientSecret: '',
}).render();
})
```## Development
1. Clone this repository
2. Install dependencies using `yarn install` or `npm install`
3. Change vite.confg.js to `mode:'development'` / `minify:false` / `sourcemap:true`
4. Start development server using `yarn dev && yarn build:watch` or `npm run dev && npm run build:watch`## License
Copyright (c) 2022 Jonathan Schneider
[MIT License](./LICENSE)[npm-version-src]: https://img.shields.io/npm/v/github-issue-widget/latest.svg
[npm-version-href]: https://npmjs.com/package/github-issue-widget
[npm-downloads-src]: https://img.shields.io/npm/dt/github-issue-widget.svg
[npm-downloads-href]: https://npmjs.com/package/github-issue-widget
[license-src]: https://img.shields.io/npm/l/github-issue-widget.svg
[license-href]: https://npmjs.com/package/github-issue-widget