Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into editorconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Nemchik <[email protected]>
  • Loading branch information
nemchik committed Apr 30, 2024
2 parents 00db5f2 + 18bcdcb commit 45f93ba
Show file tree
Hide file tree
Showing 56 changed files with 2,213 additions and 141 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
cancel-in-progress: true
steps:
- name: Checkout repository
uses: actions/[email protected].2
uses: actions/[email protected].3
with:
fetch-depth: 0
sparse-checkout: |
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
cancel-in-progress: true
steps:
- name: Checkout repository
uses: actions/[email protected].2
uses: actions/[email protected].3
with:
fetch-depth: 0
sparse-checkout: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
editorconfig-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].2
- uses: actions/[email protected].3
- name: editorconfig-checker
run: |
docker run --rm \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].2
- uses: actions/[email protected].3
- name: markdownlint
run: |
docker run --rm \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected].2
- uses: actions/[email protected].3

- name: Run yamllint
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/metadata-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
name: Validate metadata.json
steps:
- uses: actions/[email protected].2
- uses: actions/[email protected].3
- uses: actions/[email protected]
with:
python-version: 3.x
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/pr-naming-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Pull Request Title Validation

on:
pull_request:
types: [opened, reopened, edited, synchronize]

permissions:
issues: write
pull-requests: write

jobs:
pull-request-title-validation:
runs-on: ubuntu-latest

steps:
- name: Validate Pull Request Title
id: check_title
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const titleRegex = /^(Revert \")?(feat|fix|docs|style|refactor|perf|test|update|build|ci|chore)(\([\w\/-]+\))?:\s.+$/g;
const title = context.payload.pull_request.title;
const isValid = titleRegex.test(title);
if (!isValid) {
if ((context.payload.action === 'opened') || (context.payload.action === 'reopened')) {
const prNumber = context.payload.pull_request.number;
const author = context.payload.pull_request.user.login;
const message = `@${author} your pull request title "${context.payload.pull_request.title}" does not conform to our [naming conventions](https://www.conventionalcommits.org/en/v1.0.0/).\n\nPlease update the title to match the pattern: "feat|build|chore|style|fix|update|ci(\\<area\\>): \\<description\\>\n\nYou can check your title at this [regex101 link](https://regex101.com/r/jOZ6kU/1)."`;
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
body: message
});
}
core.setFailed(`PR title "${title}" doesn't match the required format.`)
}
4 changes: 2 additions & 2 deletions docs/Bazarr/Setup-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Click on `Enabled`

1. Click the `Test` button after filling in all the fields. Make sure the test is successful before you proceed.

### Options
### Options (Sonarr)

![!Sonarr - Options](images/qs-sonarr-options.png)

Expand All @@ -66,7 +66,7 @@ Click on `Enabled`

1. Automatic downloading of subtitles will only happen for monitored shows/episodes in Sonarr.

### Path Mappings
### Path Mappings (Sonarr)

!!! note

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,6 @@ You can choose one of the following 3 options (select a tab) to install `qbittor

### Script

!!! warning ""

Depending on whether you use the unRaid `Mover Tuning` app, You might need to change **line 94**:

- If you do not use `Mover Tuning`, change **line 94** from `os.system('/usr/local/sbin/mover.old start')` to `os.system('/usr/local/sbin/mover start')`
- If you use `Mover Tuning` but **don't** want to use it for the script, do not change **line 94**
- If you use `Mover Tuning` and **do** want to use it for the script, change **line 94** from `os.system('/usr/local/sbin/mover.old start')` to `os.system('/usr/local/sbin/mover start')`. For this option, inside the `Mover Tuner` options you will also need to set `Move Now button follows plugin filters` to `Yes` and `Disable Mover running on a schedule` to `No`.

#### Copy the script to your preferred location

Place the script you just edited somewhere easy to access/remember.
Expand Down Expand Up @@ -178,13 +170,16 @@ Click on the cogwheel of the new script in the list.
![!Select user script](images/Unraid-settings-user-scripts-list-select-qbit-mover.png)

Choose your method (select a tab) and copy/paste the script in the new window that opens, then click `SAVE CHANGES`.

!!! info "replace `ip` with your unraid server ip, replace `port` with your webgui port you use to access the webgui"

=== "Python (Native)"

``` bash
#!/bin/bash
/usr/local/emhttp/plugins/dynamix/scripts/notify -s "qBittorrent Mover" -d "qBittorrent Mover starting @ `date +%H:%M:%S`."
echo "executing script to pause torrents and run mover."
python3 /mnt/user/data/scripts/mover.py --host "localhost:8080" --user "your_user" --password "your_password" --days_from 0 --days_to 2
python3 /mnt/user/data/scripts/mover.py --host "ip:port" --user "your_user" --password "your_password" --days_from 0 --days_to 2
echo "qbittorrent-mover completed and resumed all paused torrents."
/usr/local/emhttp/plugins/dynamix/scripts/notify -s "qBittorrent Mover" -d "qBittorrent Mover completed @ `date +%H:%M:%S`."
```
Expand All @@ -196,7 +191,7 @@ Choose your method (select a tab) and copy/paste the script in the new window th

/usr/local/emhttp/plugins/dynamix/scripts/notify -s "qBittorrent Mover" -d "qBittorrent Mover starting @ `date +%H:%M:%S`."
echo "executing script to pause torrents and run mover."
/mnt/user/data/scripts/.venv/bin/python3 /mnt/user/data/scripts/mover.py --host "localhost:8080" --user "your_user" --password "your_password" --days_from 0 --days_to 2
/mnt/user/data/scripts/.venv/bin/python3 /mnt/user/data/scripts/mover.py --host ip:port" --user "your_user" --password "your_password" --days_from 0 --days_to 2
echo "qbittorrent-mover completed and resumed all paused torrents."
/usr/local/emhttp/plugins/dynamix/scripts/notify -s "qBittorrent Mover" -d "qBittorrent Mover completed @ `date +%H:%M:%S`."
```
Expand All @@ -211,7 +206,7 @@ Choose your method (select a tab) and copy/paste the script in the new window th
- `user` => Your used qBittorrent `User Name` if you have authentication enabled.
- `password` => Your used qBittorrent `Password` if you have authentication enabled.

![!Bash script](images/Unraid-settings-user-scripts-qbit-mover.png)
<!--- ![!Bash script](images/Unraid-settings-user-scripts-qbit-mover.png)-->

Click the schedule dropdown to choose when the script should run. We want to select `Custom`.

Expand Down
Loading

0 comments on commit 45f93ba

Please sign in to comment.