issues
search
pairwise-tech
/
pairwise
The Pairwise Codebase
https://app.pairwise.tech
6
stars
0
forks
source link
Git Diff Content Context
#268
Closed
bonham000
closed
3 years ago
bonham000
commented
3 years ago
This PR:
Create an admin API which, given a pull request number, returns JSON data about the challenge content changes in that pull request, if any.
This works by:
A new admin API is created which use a GitHub access token to fetch a pull request diff by PR id.
The diff is used to extract the changed line numbers.
The changed line numbers are used to extract the affected challenge ids from the course JSON in the branch for the PR.
These challenge ids are used to lookup the original challenges.
The content diff data is return and rendered by the admin client.
Todo:
Create an automatic deeplink from a pull request to the admin app diff page.
There appear to be some issue rendering markdown correctly in the admin app.
Demo:
This PR:
This works by:
Todo:
Demo: