diff --git a/birdnet-pi/Dockerfile b/birdnet-pi/Dockerfile index 28eaf4278..a1801a232 100644 --- a/birdnet-pi/Dockerfile +++ b/birdnet-pi/Dockerfile @@ -98,6 +98,14 @@ RUN \ \ # Execute installer /./newinstaller.sh && \ + # Apply all open PRs + cd "$HOME/BirdNET-Pi" && \ + git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" && \ + git pull && \ + for pr in $(curl -s "https://api.github.com/repos/alexbelgium/BirdNET-Pi/pulls?state=open" | jq -r '.[].number'); do \ + git merge --no-ff --no-edit "refs/remotes/origin/pr/$pr" || echo "Failed to merge PR $pr"; \ + done && \ + cd - && \ \ # Install dateparser and resampy, upgrade numpy $PYTHON_VIRTUAL_ENV /usr/bin/pip3 install dateparser resampy && \