An open API service indexing awesome lists of open source software.

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.

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