From 0f986b2b7f5d9c9ed0e970a63a4433858bf87edf Mon Sep 17 00:00:00 2001 From: SeongTae Jeong Date: Thu, 27 Jun 2024 19:38:41 +0900 Subject: [PATCH 1/3] Reconfigure Restyled --- .restyled.yaml | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .restyled.yaml diff --git a/.restyled.yaml b/.restyled.yaml new file mode 100644 index 000000000..00c9fe195 --- /dev/null +++ b/.restyled.yaml @@ -0,0 +1,69 @@ +enabled: true + +auto: false + +# Open Restyle PRs? +pull_requests: true + +# Leave comments on the original PR linking to the Restyle PR? +comments: true + +# Set commit statuses on the original PR? +statuses: + # Red status in the case of differences found + differences: true + # Green status in the case of no differences found + no_differences: true + # Red status if we encounter errors restyling + error: true + +# Request review on the Restyle PR? +# +# Possible values: +# +# author: From the author of the original PR +# owner: From the owner of the repository +# none: Don't +# +# One value will apply to both origin and forked PRs, but you can also specify +# separate values. +# +# request_review: +# origin: author +# forked: owner +# +request_review: author + +# Add labels to any created Restyle PRs +# +# These can be used to tell other automation to avoid our PRs. +# +labels: + - restyled + - 'Skip CI' + +# Labels to ignore +# +# PRs with any of these labels will be ignored by Restyled. +# +# ignore_labels: +# - restyled-ignore + +# Restylers to run, and how +restylers: + - name: prettier + image: 'restyled/restyler-prettier:v3.3.2-2' + command: + - prettier-with-tailwindcss + - '--write' + include: + - src/**/*.js + - src/**/*.jsx + - pages/**/*.jsx + - name: prettier-markdown + image: 'restyled/restyler-prettier:v3.3.2-2' + command: + - prettier-with-tailwindcss + - '--write' + inlcude: + - pages/**/*.md \ No newline at end of file From db2906ea5c3e1cf813a0bfcddb7f4c4e05a32230 Mon Sep 17 00:00:00 2001 From: SeongTae Jeong Date: Thu, 27 Jun 2024 19:45:14 +0900 Subject: [PATCH 2/3] Fix typo --- .restyled.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.restyled.yaml b/.restyled.yaml index 00c9fe195..d4b192567 100644 --- a/.restyled.yaml +++ b/.restyled.yaml @@ -65,5 +65,5 @@ restylers: command: - prettier-with-tailwindcss - '--write' - inlcude: + include: - pages/**/*.md \ No newline at end of file From 31db977a84c0d924f36f4bb3d586f745edc2c197 Mon Sep 17 00:00:00 2001 From: SeongTae Jeong Date: Fri, 28 Jun 2024 05:40:22 +0900 Subject: [PATCH 3/3] Use 'prettier' instead of 'prettier-with-tailwindcss' --- .restyled.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.restyled.yaml b/.restyled.yaml index d4b192567..c84f65650 100644 --- a/.restyled.yaml +++ b/.restyled.yaml @@ -54,7 +54,7 @@ restylers: - name: prettier image: 'restyled/restyler-prettier:v3.3.2-2' command: - - prettier-with-tailwindcss + - prettier - '--write' include: - src/**/*.js @@ -63,7 +63,7 @@ restylers: - name: prettier-markdown image: 'restyled/restyler-prettier:v3.3.2-2' command: - - prettier-with-tailwindcss + - prettier - '--write' include: - - pages/**/*.md \ No newline at end of file + - pages/**/*.md