linkchecker: use merged branch in PRs
@@ -192,6 +192,16 @@ linux_task:
container:
dockerfile: scripts/docker/cirrus/Dockerfile
+ clone_script: |
+ if [ -z "$CIRRUS_PR" ]; then
+ git clone --branch=$CIRRUS_BRANCH https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
+ git reset --hard $CIRRUS_CHANGE_IN_REPO
+ else
+ git clone https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
+ git fetch origin pull/$CIRRUS_PR/head:pull/$CIRRUS_PR
+ git merge --no-ff $CIRRUS_CHANGE_IN_REPO
+ fi
+
script:
- mkdir build && cd build
- >
