From fc89568b37c289b5b37dc219415ed951facba4a8 Mon Sep 17 00:00:00 2001 From: Gato Date: Mon, 25 May 2026 18:03:02 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20probl=C3=A8me=20404=20en=20prod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/sync-develop.yml | 13 ++++++++----- src/main/resources/application.yml | 2 ++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/sync-develop.yml b/.gitea/workflows/sync-develop.yml index 3eceed7..8e17da7 100644 --- a/.gitea/workflows/sync-develop.yml +++ b/.gitea/workflows/sync-develop.yml @@ -21,17 +21,20 @@ jobs: - name: Install curl run: apk add --no-cache curl - - name: Create PR release → develop + - name: Create PR main → develop run: | RELEASE_BRANCH="${{ github.event.pull_request.head.ref }}" - - curl --fail-with-body -X POST \ + + STATUS=$(curl -s -o /tmp/pr_response.json -w "%{http_code}" -X POST \ -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ -H "Content-Type: application/json" \ -d "{ \"title\": \"chore: sync ${RELEASE_BRANCH} into develop\", - \"head\": \"${RELEASE_BRANCH}\", + \"head\": \"main\", \"base\": \"develop\", \"body\": \"Synchronisation automatique après merge de ${RELEASE_BRANCH} dans main.\" }" \ - "${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/pulls" \ No newline at end of file + "https://git.goutailler-olivier.com/api/v1/repos/${{ gitea.repository }}/pulls") + echo "POST /pulls → HTTP $STATUS" + cat /tmp/pr_response.json + [ "$STATUS" = "201" ] || exit 1 \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 6654e40..2b20991 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,5 +1,7 @@ server: port: 8080 + servlet: + context-path: /api spring: datasource: