Tickat [still in alpha, do NOT use in production]
A ticket system base on GitHub issue
Why
Github is greate platform and data source for open source project.
But, if you want it be a ticket management system, if your customors or users are not Github user, how to deal with this case?
Here Tickat, is a soluation.
Tickat makes a few tricks to the issue body to identify users instead of the Github auth.
Every ticket(issue) has a common head in body:
- uid:[the user uniq id in your own system]
- other metas in the future
----
And then you will filter the user with Github's powerful API.
That's all!
Prepare
- Create an Github PRIVATE private repo for the incoming tickets
- Add a new user to the repo or use your own
- Get the user token here: https://github.com/settings/tokens/new
Usage
-
install
npm i tickat
-
API
const Tickat = ;const tk = 'YOUR GITHUB TOKEN' 'ORG_NAME/REPO_NAME';/* Get All Tickets with- uid(optional, the user uniq id in your own system)- state(optional, null means all)*/const allTks = await tk;console;const newtk = await tk;console;const cst = await tk;console;
TODO
[ ] Web Management UI
[ ] SDK for Web
[ ] SDK for App