fix: auto-fix linting issues

This commit is contained in:
alexbelgium
2025-08-24 00:33:36 +00:00
committed by github-actions[bot]
parent b8ad99cc82
commit 769d9bf0a6
13 changed files with 78 additions and 78 deletions

View File

@@ -19,30 +19,30 @@ if [[ "$update" = "yes" ]]; then
# --- helper: list open PRs via GitHub API (unauthenticated) ----------------
list_open_prs() {
# prints PR numbers, one per line; returns non-zero if none or curl missing
command -v curl >/dev/null 2>&1 || return 1
command -v curl > /dev/null 2>&1 || return 1
local page=1 per_page=100 out
local -a all=() chunk=()
while :; do
out="$(curl -fsSL "https://api.github.com/repos/${owner}/${reponame}/pulls?state=open&per_page=${per_page}&page=${page}")" || break
[[ -z "$out" || "$out" == "[]" ]] && break
if command -v jq >/dev/null 2>&1; then
if command -v jq > /dev/null 2>&1; then
mapfile -t chunk < <(printf '%s' "$out" | jq -r '.[] | select(.draft == false) | .number')
else
# Fallback JSON scraping if jq is unavailable
mapfile -t chunk < <(printf '%s' "$out" | grep -o '"number":[[:space:]]*[0-9]\+' | grep -o '[0-9]\+')
fi
((${#chunk[@]}==0)) && break
((${#chunk[@]} == 0)) && break
all+=("${chunk[@]}")
((${#chunk[@]} < per_page)) && break
((page++))
done
((${#all[@]}==0)) && return 1
((${#all[@]} == 0)) && return 1
printf '%s\n' "${all[@]}"
}
# --- clone base ------------------------------------------------------------
git clone --quiet --branch "$branch" "$repo" "$temp_dir"
pushd "$temp_dir" >/dev/null
pushd "$temp_dir" > /dev/null
git fetch --quiet origin
git config user.name "Local PR Aggregator"
git config user.email "local@example.invalid"
@@ -52,7 +52,8 @@ if [[ "$update" = "yes" ]]; then
mapfile -t prs < <(list_open_prs || true)
if ((${#prs[@]})); then
# Sort numerically (oldest first)
IFS=$'\n' prs=($(sort -n <<<"${prs[*]}")); unset IFS
IFS=$'\n' prs=($(sort -n <<< "${prs[*]}"))
unset IFS
echo "Open PR(s): ${prs[*]}"
for pr in "${prs[@]}"; do
@@ -75,7 +76,7 @@ if [[ "$update" = "yes" ]]; then
echo "No open PRs detected (API unavailable or none open)."
fi
popd >/dev/null
popd > /dev/null
rm -rf "$target_dir"
mv "$temp_dir" "$target_dir"
fi

View File

@@ -94,13 +94,13 @@
"panel_admin": false,
"panel_icon": "mdi:book-multiple",
"ports": {
"8181/tcp": 8181,
"8081/tcp": 8081,
"8181/tcp": 8181,
"9090/tcp": 9090
},
"ports_description": {
"8181/tcp": "Calibre desktop gui (https)",
"8081/tcp": "Calibre webserver gui, to be enabled within the desktop gui",
"8181/tcp": "Calibre desktop gui (https)",
"9090/tcp": "Calibre wireless connection, to be enabled within the desktop gui"
},
"privileged": [

0
emby_beta/rootfs/etc/services.d/nginx/run Normal file → Executable file
View File

0
nzbget/rootfs/etc/services.d/nginx/run Normal file → Executable file
View File

0
portainer/rootfs/etc/services.d/nginx/run Normal file → Executable file
View File

0
portainer/rootfs/etc/services.d/portainer/run Normal file → Executable file
View File

View File

@@ -1,4 +1,3 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e

View File

0
qbittorrent/rootfs/etc/services.d/nginx/run Normal file → Executable file
View File

0
qbittorrent/rootfs/etc/services.d/timer/run Normal file → Executable file
View File

0
ubooquity/rootfs/etc/services.d/nginx/run Normal file → Executable file
View File