-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from rfsbraz/feature/support-disk-size-filter
feat: Add support for disk size filter (#67)
- Loading branch information
Showing
18 changed files
with
449 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Update PR with docker image | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Create and publish a Docker image to GitHub Packages"] | ||
types: | ||
- completed | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
comment-pr: | ||
runs-on: ubuntu-latest | ||
name: Upsert comment on the PR | ||
steps: | ||
- uses: thollander/actions-comment-pull-request@v2 | ||
with: | ||
message: | | ||
:robot: A Docker image for this PR is available to test with: | ||
```bash | ||
docker run -e LOG_LEVEL=DEBUG --rm -v ./config:/config -v ./logs:/config/logs ghcr.io/rfsbraz/deleterr:pr-${{ github.event.pull_request.number }} | ||
``` | ||
This assumes you have a `config` and `logs` directory where you're running the command. You can adjust the volume mounts as needed. | ||
comment_tag: docker_image_instructions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
# Valid sort fields | ||
VALID_SORT_FIELDS = ['title', 'size', 'release_year', 'runtime', 'added_date', 'rating', "seasons", "episodes"] | ||
VALID_SORT_FIELDS = [ | ||
"title", | ||
"size", | ||
"release_year", | ||
"runtime", | ||
"added_date", | ||
"rating", | ||
"seasons", | ||
"episodes", | ||
] | ||
|
||
# Valid sort orders | ||
VALID_SORT_ORDERS = ['asc', 'desc'] | ||
VALID_SORT_ORDERS = ["asc", "desc"] | ||
|
||
# Valid action modes | ||
VALID_ACTION_MODES = ['delete'] | ||
VALID_ACTION_MODES = ["delete"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.