mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-13 11:50:31 +02:00
Added default option for prettier
This commit is contained in:
@@ -8,7 +8,7 @@ A GitHub action for styling files with [prettier](prettier.io).
|
||||
|
||||
| Parameter | Required | Default | Description |
|
||||
| - | - | - | - |
|
||||
| prettier_options | :white_check_mark: | - | Prettier options |
|
||||
| prettier_options | :x: | '--write "{,!(node_modules)/**/}*.js"' | Prettier options (by default it applies to the whole repository) |
|
||||
| commit_options | :x: | - | Custom git commit options |
|
||||
| commit_message | :x: | 'Prettified Code!' | Custom git commit message |
|
||||
| file_pattern | :x: | '*' | Custom git add file pattern |
|
||||
|
||||
@@ -17,7 +17,8 @@ inputs:
|
||||
default: '*'
|
||||
prettier_options:
|
||||
description: Options for the 'prettier' command
|
||||
required: true
|
||||
required: false
|
||||
default: '--write "{,!(node_modules)/**/}*.js"'
|
||||
branch:
|
||||
description: Branch which the changes are merged to
|
||||
required: true
|
||||
|
||||
Reference in New Issue
Block a user