Skip to content
main
Switch branches/tags
Code

Latest commit

This shouldn't be necessary.

Statsd is a UDP protocol and sending stats to a host without a server
running should be perfectly fine. However, I've found that when running
locally, the completion of the withStatsClient block raises an hFlush
"Connection refused" exception.

To mitigate this, we make the host/port optional (instead of just
defaulted). If neither are given, we use the Statsd.Dummy client. If any
are present, we use a real client with defaulting.
bc5c27a

Git stats

Files

Permalink
Failed to load latest commit information.

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

restyle-path

See bin/restyle-path.

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 | CONTRIBUTING

About

The restyling process, as a CLI

Resources

License

Packages

No packages published