Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for hosted logs with patches #313

Merged
merged 7 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .restyled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ restylers:
include:
- "**/*"
- "!**/*.hamlet"
- "!seeds/output/**/*"
- "*"
4 changes: 3 additions & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ dependencies:
library:
source-dirs: src
dependencies:
- Blammo
- Blammo >= 2.0.0.0
- Blammo-wai >= 0.0.0.1
- QuickCheck
- aeson
- aeson-casing
Expand All @@ -69,6 +70,7 @@ library:
- esqueleto
- extra
- file-embed
- filepath
- formatting
- generic-arbitrary
- github
Expand Down
7 changes: 5 additions & 2 deletions restyled.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.35.2.
-- This file has been generated from package.yaml by hpack version 0.36.0.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -40,6 +40,7 @@ library
Restyled.CLI
Restyled.CpuShares
Restyled.DB
Restyled.Development.LogEvent
Restyled.Development.Seeds
Restyled.Env
Restyled.Foundation
Expand Down Expand Up @@ -142,7 +143,8 @@ library
ViewPatterns
ghc-options: -fignore-optim-changes -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-kind-signatures -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-unsafe
build-depends:
Blammo
Blammo >=2.0.0.0
, Blammo-wai >=0.0.0.1
, QuickCheck
, aeson
, aeson-casing
Expand All @@ -164,6 +166,7 @@ library
, esqueleto
, extra
, file-embed
, filepath
, formatting
, generic-arbitrary
, github
Expand Down
118 changes: 118 additions & 0 deletions seeds/output/config-error1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
[Info] Restyler starting
[Info] Restyling restyled-io/restyler#153
[Info] No existing Restyled PR
[Info] Cloning repository
Switched to a new branch 'fix'
Branch 'fix' set up to track remote branch 'fix' from 'origin'.
Switched to a new branch 'fix-restyled'
[Error] We had trouble with your configuration:

Yaml parse exception:
Aeson exception:
Error in $.restylers[2]: - Unexpected key "prettier", must be one of
["name","image","command","arguments","include","interpreters","supports_arg_sep","supports_multiple_paths","documentation"].


Did you intend to specify a full Restyler object, or do you have incorrect
indentation for a named override?

Original input:
# Restyler Configuration
#
# Overall notes:
#
# - All keys are optional and default as shown
# - The entire config can also be just a list of values, which will be
# interpreted as specifying the restylers key
#
####

# Do anything at all?
enabled: true

# Push the style fixes directly to the original PR
#
# This setting implies pull_requests: false for origin PRs, and has no effect on
# forked PRs (since we can't push to those).
#
auto: false

# Download remote files before restyling
#
# Example:
#
# remote_files:
# - url: https://raw.github.com/.../hlint.yaml
# path: .hlint.yaml
#
# Files must be publicly accessible.
#
remote_files: []

# 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
#
# One value will apply to origin and forked PRs, but you can also specify
# separate values.
#
request_review: none

# Add labels to any created Restyle PRs
#
# These can be used to tell other automation to avoid our PRs.
#
labels: []

# Which restylers to run
#
# See restyled-io/restylers repository for their defaults.
#
restylers:
- black:
arguments:
- "--line-length 100"
- shfmt:
arguments:
- "-i"
- "2"
- "-ci"
- "-bn"
- "-sr"
- prettier:
include:
- "**/*.js"
- "**/*.jsx"
- "**/*.yml"
- "**/*.yaml"
- "!chats/**/*"
- "!flow/**/*"

# Version of the set of Restylers to run
#
# This should correspond to a ref on the restyled-io/restylers repository,
# usually it's a tag that is a date of when that set was released. You could
# re-specific the default in your own config if you prefer to avoid update
# surprises.
#
restylers_version: "20190715"

Please see https://github.com/restyled-io/restyled.io/wiki/Common-Errors:-.restyled.yaml
Loading
Loading