Skip to content

Commit

Permalink
ci: add prettier lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDark committed Oct 9, 2024
1 parent 1193399 commit 6407447
Show file tree
Hide file tree
Showing 20 changed files with 29,663 additions and 30,745 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches-ignore:
- prod

jobs:
test:
name: Lint & Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: latest

- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- run: pnpm install

- name: Lint
run: pnpm lint
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Supporting only Sonarr v4 and radarr v4.
This will be a project similar to [Recyclarr](https://github.com/recyclarr/recyclarr) or [Notifiarr](https://notifiarr.wiki/) but support for additional specification and not only what [TrashGuides](https://trash-guides.info/) offer.

Other projects:

- https://github.com/recyclarr/recyclarr
- https://notifiarr.wiki/
- https://github.com/Dictionarry-Hub/profilarr
Expand Down Expand Up @@ -45,6 +46,7 @@ See [here](./custom/cfs/)
### How to add own CustomFormats

- You have two ways to provide own custom formats:

- `As file`
- Export from Sonarr/Radarr instance UI (in the CustomFormats list you have two icons for each custom format: clone and export)
- Or use existing custom formats from recyclarr or trash guide
Expand All @@ -68,6 +70,7 @@ See [here](./custom/cfs/)
fields:
value: 4
```
- What you have to add at least is to the field `trash_id` or `configarr_id` to the JSON/YAML.
The ID can be anything you like but should not conflict with other CustomFormats.
Otherwise those will be overwritten during merge process.
Expand All @@ -78,6 +81,7 @@ See [here](./custom/cfs/)
...other content from export
}
```

- Add it as custom format location in your `config.yml`
- After adding the ID you can simply reference it in the `config.yml` to add it to the QualityProfiles. `localCustomFormatsPath: /your/path/cfs`

Expand Down Expand Up @@ -105,10 +109,12 @@ Some examples for configuration are provided [Examples](./examples/)
## How to run

Required files:

- `config.yml`
- `secrets.yml`

Optional:

- Custom Formats in folders

### Docker
Expand All @@ -118,7 +124,6 @@ Optional:
### Docker-compose

```yml
services:
configarr:
image: ghcr.io/raydak-labs/configarr:latest
Expand Down
174 changes: 87 additions & 87 deletions custom/cfs/de-tier-01.json
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
{
"trash_id": "de-tier-01-version1",
"trash_scores": {},
"name": "GER HD Rel. Group Tier 01",
"includeCustomFormatWhenRenaming": false,
"specifications": [
{
"name": "ZeroTwo",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "ZeroTwo"
}
},
{
"name": "WAYNE",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "WAYNE"
}
},
{
"name": "TSCC",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "TSCC"
}
},
{
"name": "DETAiLS",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "DETAiLS"
}
},
{
"name": "FoST",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "FoST"
}
},
{
"name": "SAUERKRAUT",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "SAUERKRAUT"
}
},
{
"name": "Baka (Anime)",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "Baka"
}
},
{
"name": "D02KU",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "D02KU"
}
},
{
"name": "WvF",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "WvF"
}
}
]
"trash_id": "de-tier-01-version1",
"trash_scores": {},
"name": "GER HD Rel. Group Tier 01",
"includeCustomFormatWhenRenaming": false,
"specifications": [
{
"name": "ZeroTwo",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "ZeroTwo"
}
},
{
"name": "WAYNE",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "WAYNE"
}
},
{
"name": "TSCC",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "TSCC"
}
},
{
"name": "DETAiLS",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "DETAiLS"
}
},
{
"name": "FoST",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "FoST"
}
},
{
"name": "SAUERKRAUT",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "SAUERKRAUT"
}
},
{
"name": "Baka (Anime)",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "Baka"
}
},
{
"name": "D02KU",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "D02KU"
}
},
{
"name": "WvF",
"implementation": "ReleaseGroupSpecification",
"negate": false,
"required": false,
"fields": {
"value": "WvF"
}
}
]
}
Loading

0 comments on commit 6407447

Please sign in to comment.