Skip to content
The restyling process, as a CLI
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
app
bin
restyle-path
src
test
.dockerignore
.gitignore
.hlint.yaml
.restyled.yaml
.stylish-haskell.yaml
.weeder.yaml
CHANGELOG.md
Dockerfile
LICENSE
Makefile
README.md
brittany.yaml
package.yaml
stack.yaml

README.md

Restyler

The restyling process, as a CLI.

Usage

docker run --rm \
  --env "GITHUB_ACCESS_TOKEN=<access-token>" \
  --volume /tmp:tmp \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  restyled/restyler "<owner>/<name>#<number>"

NOTE: The Access Token you use will determine some of the resulting behavior. In production, we use a token provisioned for an installed instance of our GitHub App, which ensures the restyled PRs and comments appear as authored by our App. If you use a Personal Access Token, the restyled PRs and comments will be authored by your user.

Development

make

Requires stack.

Tests

make test

Integration

End-to-end test that restyles an example Pull Request:

make test.integration

NOTE: This only works if you have local keys for our development GitHub App (i.e. bin/get-access-token works).

LICENSE

Restyled is source-available, Commons Claused licensed. For a detailed description of another project's rationale for this licensing model, one with which I agree, see here.


CHANGELOG | LICENSE

You can’t perform that action at this time.