Deploy React Site / build-and-deploy (push) Successful in 11s
- Events: render each year as a horizontal band of media at native ratio with a chapter card, lightbox (keyboard nav + close), and a progress bar. - Add a route transition overlay that preloads the destination hero image and shows a typed "Unis par le cœur" loading bar; hide the header while active and sync page entrance animations until the transition ends. - Add proper favicon set (favicon.ico, Apple touch icon, Android/PWA icon) and web manifest; fix the icon MIME type. - Mobile menu: replace hover-only feedback with an :active tap state (color + scale), remove sticky hover. - Privacy policy: document server-side relay of Meta content, add hosting/logs and GDPR rights sections. --------- Co-authored-by: xEsiah <[email protected]> Reviewed-on: #1 Reviewed-by: Esiah <[email protected]> Co-authored-by: Gitea Actions <-[email protected]>
53 lines
1.7 KiB
YAML
53 lines
1.7 KiB
YAML
name: PR — Ouverture automatique
|
|
|
|
on:
|
|
push:
|
|
branches-ignore: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
create-pr:
|
|
runs-on: coeur-ua-pam
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Ouvrir (ou vérifier) la pull request
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
API: ${{ github.server_url }}/api/v1
|
|
REPO: ${{ github.repository }}
|
|
BRANCH: ${{ github.ref_name }}
|
|
run: |
|
|
set -eu
|
|
if [ "$BRANCH" = "main" ]; then
|
|
echo "main est la base : aucune PR à ouvrir."
|
|
exit 0
|
|
fi
|
|
title=$(git log -1 --pretty=%s)
|
|
body=$(git log -1 --pretty=%b)
|
|
[ -n "$body" ] || body="PR automatique de $BRANCH vers main."
|
|
|
|
open=$(curl -fsS -H "Authorization: token $GITEA_TOKEN" \
|
|
"$API/repos/$REPO/pulls?state=open&limit=50" \
|
|
| python3 -c 'import json,os,sys; b=os.environ["BRANCH"]; print(sum(1 for p in json.load(sys.stdin) if p.get("head", {}).get("ref") == b))')
|
|
if [ "$open" -gt 0 ]; then
|
|
echo "Une PR est déjà ouverte pour $BRANCH."
|
|
exit 0
|
|
fi
|
|
|
|
python3 - "$BRANCH" "$title" "$body" <<'PY' | curl -fsS -X POST \
|
|
-H "Authorization: token $GITEA_TOKEN" \
|
|
-H "Content-Type: application/json" \
|
|
--data-binary @- \
|
|
"$API/repos/$REPO/pulls"
|
|
import json, sys
|
|
branch, title, body = sys.argv[1], sys.argv[2], sys.argv[3]
|
|
print(json.dumps({"base": "main", "head": branch, "title": title, "body": body}))
|
|
PY
|
|
echo "PR créée."
|