Commit Graph

48 Commits

Author SHA1 Message Date
9f54668ece fix: minor documentation cleanups 2025-05-08 10:32:44 +02:00
John Jetmore
e53f331f48 Add only_changed_pr (#135)
* allow `only_changed` and `dry` to work together

Before this change, if you tried to use `dry` and `only_changed together, it acted as if `only_changed` was ignored.  There was no code specific to `only_changed` down the `dry` code path.

This commit’s solution is to run prettier on the entire code base (as was already being done) and then, before doing any comparisons, reset changes to files that were not modified in the last commit.

* add `only_changed_pr` option

This behaves similarly to only_changed, except instead of only considering files which were modified in the last commit, this option only considers files which were modified in any commit included in the current PR.
2025-05-08 10:18:46 +02:00
Derek Brown
0fc0cf4723 feat: Allow overriding actor (#126)
Co-authored-by: Conrad <grosserconrad@gmail.com>
2023-08-21 21:05:34 +02:00
5b5cb513f1 Update action.yml 2023-07-20 20:55:18 +02:00
Federico M. Facca
4bd40fc486 Support not exiting the process in case of changes in dry mode (#122)
Co-authored-by: Conrad <grosserconrad@gmail.com>
2023-07-20 16:39:13 +02:00
Federico M. Facca
a1c90f8992 export push_options as env variable (#121)
Co-authored-by: Conrad <grosserconrad@gmail.com>
2023-06-30 17:23:25 +02:00
473978add9 Added default for working_directory 2023-05-24 11:05:21 +02:00
d04162ee72 Added default for prettier_version 2023-05-24 11:01:47 +02:00
a21409da47 Merge pull request #112 from tropictim/fix_path 2023-02-19 16:23:29 +01:00
Tim Talbert
191599deb6 Don't use the npm bin command to resolve the bin path 2023-02-17 17:24:11 -05:00
2826053f0c Added option clean_node_folder for #108 2023-01-23 12:56:23 +01:00
8efb5a885e Added working_directory parameter 2021-11-30 17:18:31 +01:00
insyri
6296a68dfd added commit-description as option to action.yml 2021-10-22 08:52:00 -04:00
Pedro Rodrigues
aeab4259d8 Adding missing environment variable INPUT_GITHUB_TOKEN 2021-06-21 23:00:56 -03:00
654f901ff9 Merge branch 'dev' into override-token 2021-06-17 00:21:33 +02:00
Pedro Rodrigues
4f318753d5 Add support to override the default github token 2021-06-16 19:08:28 -03:00
bb9aa745eb Merge pull request #53 from stevelacy/master
Add input git push options
2021-05-21 09:46:51 +02:00
Steve Lacy
707db76837 Add input git push options 2021-05-20 09:39:31 -10:00
bc1e95cc30 Adjusted the prettier_plugins variable to documentation 2021-03-01 15:20:54 +01:00
6438b32926 Merge pull request #45 from infotexture/fix/plugin-syntax
Fix plugin name syntax in README & description
2021-03-01 14:58:03 +01:00
Roger Sheen
6c3c102255 Fix plugin name syntax in README & description
The entrypoint script checks for correctly named Prettier plugins on [lines 44–45](https://github.com/creyD/prettier_action/blob/master/entrypoint.sh#L44-L45), but the description in the config file and README are not consistent.

This updates those references to clarify how plugins should be specified.
2021-03-01 00:25:35 +01:00
4d25f0bd7c Moving the path to the run part of the yml 2021-02-19 18:13:22 +01:00
5c365ab3fa Another bugfix attempt trying to generate the global flag only if needed 2021-02-19 18:10:42 +01:00
5f9fa33c3d Fixed variable problem 2021-02-19 17:58:30 +01:00
8a68c5b4d3 Experimenting with a simpler form of composite actions 2021-02-19 17:45:52 +01:00
Josh Soref
7326fa4da4 Switch to composite 2021-02-19 00:49:40 -05:00
Sebastian K. Sorensen
a35b5cc1cb Change default to empty string instead 2021-01-10 15:50:05 +01:00
Sebastian K. Sorensen
b7cf1dc4c2 Change action name to regular one 2021-01-10 15:32:37 +01:00
Sebastian K. Sorensen
7ea4328121 Adds a unique name to action 2021-01-10 14:35:53 +01:00
Sebastian K. Sorensen
193559158f Attempt to add prettier_plugins 2021-01-10 14:22:14 +01:00
3c71a9826d Improved documentation of the new same_commit feature 2020-10-17 14:25:22 +02:00
c343fb81ed Merge branch 'dev' into feat/same-commit 2020-10-17 14:10:18 +02:00
jorenbroekema
6ad77586cd feat: allow action to use current commit instead of creating a new one 2020-10-16 12:33:51 +02:00
5cea39febe Added only_changed feature 2020-10-16 09:15:41 +02:00
8d0861a178 Removed branching parameter for testing 2020-04-27 17:25:13 +02:00
b5eb80d2a9 Added default for prettier_version 2020-04-16 18:20:54 +02:00
65e822b2f3 New Parameter Defaults To Null 2020-03-24 09:56:43 +01:00
e0fb4eb439 Added prettier_version parameter 2020-03-24 00:15:08 +01:00
03018818a5 Added dry mode 2020-03-16 15:30:17 +01:00
7224bd5fbf Reworked YML config 2020-02-18 07:34:38 +01:00
554e56f267 Code Quality Improvements 2020-01-24 20:00:58 +01:00
cbf12d08d5 Removed unneccessary dependency install 2020-01-24 12:44:10 +01:00
7524f50124 Fixed a bug where the prettier default option didn't work 2020-01-24 12:29:00 +01:00
43b949365d Update action.yml 2020-01-24 12:11:22 +01:00
d2b9447220 Fixed a bug where the default for prettier didn't work 2020-01-24 12:01:06 +01:00
a7de566991 Added default option for prettier 2020-01-16 16:59:41 +01:00
b818ff48fe Fixed a bug with the GitHub variable standing in action 2020-01-10 10:30:03 +01:00
69edac17e8 Added Prettier Action 2020-01-10 10:21:42 +01:00