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

Github Frontend #149

@Aavild

Description

@Aavild

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

Metadata

Metadata

Assignees

Labels

FrontendHTML, CSS & other visual elementsPriority mediumNot immediately important, but very relevantTask normalTakes average knowledge and time to do

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions