Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Github Frontend #149

Open
6 of 10 tasks
Aavild opened this issue May 11, 2022 · 0 comments
Open
6 of 10 tasks

Github Frontend #149

Aavild opened this issue May 11, 2022 · 0 comments
Assignees
Labels
Frontend HTML, CSS & other visual elements Priority medium Not immediately important, but very relevant Task normal Takes average knowledge and time to do

Comments

@Aavild
Copy link
Collaborator

Aavild commented May 11, 2022

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
@Aavild Aavild added Frontend HTML, CSS & other visual elements Priority medium Not immediately important, but very relevant Task normal Takes average knowledge and time to do labels May 11, 2022
@Aavild Aavild self-assigned this May 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Frontend HTML, CSS & other visual elements Priority medium Not immediately important, but very relevant Task normal Takes average knowledge and time to do
Projects
None yet
Development

No branches or pull requests

1 participant