This PR is an attempt to transition away from the FileContents service toward a tried and true language processor and set of plugins, retext
Specifically, this adds a new service, RemarkProcessor, that runs a node script that processes a file's text.
Fortunately, because retext is an expansive processing tool and gives response data that works well with Github's create_pull_request_comment method, we should be able to fully replace all the content linting architecture that was in place.
The new app structure will look as follows:
@payload
find changed files (PullRequestFiles and GithubFileContents)
Related to #2
This PR is an attempt to transition away from the
FileContents
service toward a tried and true language processor and set of plugins,retext
Specifically, this adds a new service,
RemarkProcessor
, that runs a node script that processes a file's text.Fortunately, because
retext
is an expansive processing tool and gives response data that works well with Github'screate_pull_request_comment
method, we should be able to fully replace all the content linting architecture that was in place.The new app structure will look as follows:
@payload
PullRequestFiles
andGithubFileContents
)RemarkProcessor
Octokit.create_pull_request_comment
@monfresh