Skip to content

Commit

Permalink
Version 0.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Mar 19, 2020
1 parent cf28964 commit 30084b8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,48 @@
[![wemake.services](https://img.shields.io/badge/%20-wemake.services-green.svg?label=%20&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC%2FxhBQAAAAFzUkdCAK7OHOkAAAAbUExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP%2F%2F%2F5TvxDIAAAAIdFJOUwAjRA8xXANAL%2Bv0SAAAADNJREFUGNNjYCAIOJjRBdBFWMkVQeGzcHAwksJnAPPZGOGAASzPzAEHEGVsLExQwE7YswCb7AFZSF3bbAAAAABJRU5ErkJggg%3D%3D)](https://wemake.services)

📝Automatically fixes typos in your source code and docs!

Based on awesome [misspell-fixer](https://github.com/vlajos/misspell-fixer) tool.


## Usage

We had a typo in our `entrypoint.sh` file to show how this Github Action works.
By using a pipeline of three actions we are able to receive [PRs like this one](https://github.com/sobolevn/misspell-fixer-action/pull/2).

Here's how our configuration looks like:

```yml
- uses: actions/checkout@v2
- uses: sobolevn/misspell-fixer-action@master
- uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
```
Here's how it works:
1. The first [`actions/checkout@v2`](https://github.com/actions/checkout) action checkouts our code from the repo
2. Our own `sobolevn/misspell-fixer-action` finds misspells and fixes them
3. Then [`peter-evans/create-pull-request`](https://github.com/peter-evans/create-pull-request) creates a PR with the fixes created earlier
4. Done!


## Options and outputs

You can pass any options that are supported by `misspell-fixer` tool,
to do so you can use `options` key:

```yml
- uses: sobolevn/misspell-fixer-action@master
with:
options: '-rsvn src/'
```

You can also use the output produced by this action by default.
Read more about [outputs](https://help.github.com/en/actions/building-actions/metadata-syntax-for-github-actions#outputs).


## License

MIT.
2 changes: 0 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ if [ "$status" -ge 100 ]; then
echo "Process failed with the status code: $status"
exit "$status"
fi

# test: lower then

0 comments on commit 30084b8

Please sign in to comment.