-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,48 @@ | |
[](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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters