-
Notifications
You must be signed in to change notification settings - Fork 0
Github Frontend #149
Description
Generally
Currently the path localhost/api/github points at ressources/views/project/githubtemp.ejs as the frontend
This should be changed to be a widget like the others although the controller is still WIP
Webhook Frontend
The messages requires github-api-2 branch to be merged in first, but after that there will be webhook messages(max 10) which will be reachable using fetch() in public/gitHubWebhook.js
fetch('/api/github/webhook?projectID=627516c7476e393f541af189', { method: 'GET', cache: 'no-cache' }) .then(response => response.json()).then(data => console.log(data));
example output (json): exampleoutput.json.txt
As long as the "Sexytime" project isn't deleted this fetch() will work, but if the fetch() stops working just use the example.json instead
- Generally
- From the webhook message -> Username: action/pullrequest
- add pullrequest title or how the action is performed(ex "branch -> dev"/"Github Frontend")
- Add anchorlink to username with the user
- Add anchorlink for push/pullrequest
- Add Message
- Add timestamp
- Maybe a toggle menu for viewing "body" of a pull request. A body of a pull request is the message below the title in a pull request. So this Pull requests body would be this beautiful desciption of what needs to be done you're reading right now
- etc.
- If needed the webhook can provide addtional details in the server. Uncomment src/app/Http/Githubcontroller.webHookReceiver() // console.log(req.body) for a raw Webhook and add more details to message