Commit Graph

262 Commits

Author SHA1 Message Date
b73c2bf29c fix: updated link 2025-05-08 11:14:35 +02:00
f24ab29247 fix: version bump for examples 2025-05-08 11:04:01 +02:00
9f54668ece fix: minor documentation cleanups 2025-05-08 10:32:44 +02:00
eeb940db6d fix: fixed codacy error 2025-05-08 10:24:50 +02:00
12efc36860 fix: codacy warning 2025-05-08 10:23:14 +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
d5e6c388c3 added codacy badge 2024-11-24 17:19:57 +01:00
99914860a6 Merge pull request #133 from greenfiling/fix-empty-working_directory 2024-11-24 16:35:15 +01:00
John Jetmore
a3561a8976 set INPUT_WORKING_DIRECTORY if not already set 2024-01-29 12:32:01 -05:00
f32e6a975a Fixing bug #128 2024-01-10 12:43:00 +01:00
117a7a5b37 Updated Readme according to #132 2024-01-10 12:26:30 +01:00
5d0450c2bc Addede step summary in GitHub 2023-10-03 20:37:27 +02:00
57dc57f236 Added star history 2023-10-03 17:12:40 +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
Blake Dunson
9aba96f268 Allow amended commits to be empty (#119)
Co-authored-by: Conrad <grosserconrad@gmail.com>
2023-06-30 17:40:51 +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
4ccf35e06f Bumped version number in templates 2023-02-19 16:43:21 +01:00
6fe86ce41d Added note for new npm 9 issue 2023-02-19 16:33:58 +01: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
9436c53771 Added debug for prettier test result in the log 2023-01-23 14:16:43 +01:00
2826053f0c Added option clean_node_folder for #108 2023-01-23 12:56:23 +01:00
dc62bca389 Merge pull request #105 from creyD/dev
Minor Readme Updates
2023-01-10 22:47:52 +01:00
2e9c875edd Merge pull request #104 from AnimeAllstar/patch-1
Bumped actions/checkout to v3 in examples
2023-01-10 22:46:42 +01:00
Asad Dhorajiwala
2bf66dcd9f Bumped actions/checkout to v3 in examples
actions/checkout@v2 uses node12. GitHub gives a deprecation warning for this since node12 is out of support. actions/checkout@v3 uses node16 by default.

https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12
2023-01-10 13:45:18 -08:00
0eebd17ea5 Merge pull request #102 from JuanDa237/patch-1
Not Github Workflow Warnings
2022-12-22 09:17:34 +01:00
Juan David Gaviria Correa
360ac97374 #101 Update README.md
Use v3 as suggested here https://github.com/marketplace/actions/checkout
2022-12-21 20:09:05 -05:00
a18ea90a1c Merge pull request #99 from WesleyYue/patch-1
Add note that Prettier plugins must be wrapped in quotes
2022-12-01 13:51:13 +01:00
Wesley
30fe71e314 Update README.md 2022-11-30 15:34:05 -08:00
6602189cf8 Merge pull request #88 from creyD/dev
Minor Feature & Bugfix Update
v4.2
2022-01-15 22:20:08 +01:00
0bf5ce065a Updated bug and feature templates 2022-01-15 22:15:20 +01:00
ac20e98371 Using latest version in the examples 2022-01-15 22:13:48 +01:00
607ddfdc57 Merge pull request #87 from bercos/master
Fix #78
2022-01-15 22:08:45 +01:00
Bernie Cosgriff
9dff813935 Fix #78
Fix https://github.com/creyD/prettier_action/issues/78 by updating the regex.

I tested the regex but was not sure how to test the action. The regex should cover all three valid cases outlined here https://prettier.io/docs/en/plugins.html.
2022-01-14 16:27:39 -07:00
058125065f Merge pull request #86 from seven1m/master
fix(Plugin): don't install plugins globally
2022-01-13 10:25:14 +01:00
Tim Morgan
8a16fc9688 Don't install plugins globally
This fixes a problem where @prettier/plugin-ruby was not being used.
2022-01-08 12:37:59 -06:00
661230a857 Merge pull request #85 from creyD/dev
Updated Readme
2021-12-28 18:39:49 +01:00
49aca57540 Merge pull request #84 from creyD/master
Update from master
2021-12-28 18:38:47 +01:00
eafd91e372 Merge pull request #82 from Anselmoo/master
Fixed #81
2021-12-28 18:37:50 +01:00
Anselm Hahn
13fd7a03b4 Fixed #81 2021-12-28 18:32:29 +01:00
b8440d072c Merge pull request #77 from AdamMartinCote/master
Update examples to use 4.1.1 instead of 4.1
2021-12-06 20:55:36 +01:00
Adam
89919dc836 Update example to use 4.1.1 instead of 4.1
Update the examples so first time users don't experience the bug that was fixed by 26c4892179
2021-12-06 06:52:46 -05:00
b305fc89f5 Merge pull request #76 from creyD/dev
Bugfix for #74
v4.1.1
2021-12-06 12:26:52 +01:00
26c4892179 Fixed a bug with missing " 2021-12-06 12:22:36 +01:00
86625cc217 Merged the input commit description if statement 2021-12-06 12:18:46 +01:00
fdbbee3567 Bugfix for the commit description 2021-12-06 12:15:24 +01:00