From 3c71a9826d14351d69b9a0410dca08ff8e13e19a Mon Sep 17 00:00:00 2001 From: Conrad Date: Sat, 17 Oct 2020 14:25:22 +0200 Subject: [PATCH] Improved documentation of the new same_commit feature --- README.md | 4 ++-- action.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b17dcb0..a343fd3 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ A GitHub action for styling files with [prettier](https://prettier.io). | prettier_version | :x: | false | Specific prettier version (by default use latest) | | prettier_options | :x: | `--write **/*.js` | Prettier options (by default it applies to the whole repository) | | commit_options | :x: | - | Custom git commit options | -| same_commit | :x: | False | Whether to merge into the current commit instead of creating a new one | -| commit_message | :x: | Prettified Code! | Custom git commit message | +| same_commit | :x: | False | Update the current commit instead of creating a new one, created by [Joren Broekema](https://github.com/jorenbroekema) | +| commit_message | :x: | Prettified Code! | Custom git commit message, will be ignored if used with `same_commit` | | file_pattern | :x: | * | Custom git add file pattern, can't be used with only_changed! | | branch (depreciated with 3.0)| :white_check_mark: | - | Always set this to `${{ github.head_ref }}` in order to work both with pull requests and push events | | only_changed | :x: | false | Only prettify changed files, can't be used with file_pattern! This command works only with the checkout action set to fetch depth '0' (Example 2)| diff --git a/action.yml b/action.yml index 920f90c..1314f93 100644 --- a/action.yml +++ b/action.yml @@ -5,11 +5,11 @@ author: Conrad Großer inputs: commit_message: - description: Commit message + description: Commit message, will be ignored if used with same_commit required: false default: 'Prettified Code!' same_commit: - description: Whether to use the current commit instead of creating a new one + description: Update the current commit instead of creating a new one required: false default: false commit_options: