From 2d08dfe0d1f206496c5080fe7c819026cd56811c Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Wed, 14 Oct 2026 22:03:24 +0300 Subject: [PATCH] ci: recheck PR title on edited without the full pipeline (WealthLedger/frontend#64) --- .gitea/workflows/verify.yml | 11 ++++++----- README.md | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/verify.yml b/.gitea/workflows/verify.yml index cd42d19..334b735 100644 --- a/.gitea/workflows/verify.yml +++ b/.gitea/workflows/verify.yml @@ -4,13 +4,14 @@ on: push: branches: [develop, main] pull_request: - types: [opened, synchronize, reopened] + types: [opened, synchronize, reopened, edited] schedule: - cron: '17 5 * * *' -# Gitea >= 1.26. A new revision supersedes only the same PR/branch/event. +# Gitea >= 1.26. A new revision supersedes only the same PR/branch/event; +# metadata-only `edited` runs use their own group so they never cancel a full run. concurrency: - group: frontend-verify-${{ gitea.event_name }}-${{ gitea.event.pull_request.number || gitea.ref }} + group: frontend-verify-${{ gitea.event_name }}-${{ gitea.event.action == 'edited' && 'meta-' || '' }}${{ gitea.event.pull_request.number || gitea.ref }} cancel-in-progress: true jobs: @@ -39,7 +40,7 @@ jobs: security: needs: commits if: >- - !cancelled() && + !cancelled() && gitea.event.action != 'edited' && (needs.commits.result == 'success' || needs.commits.result == 'skipped') timeout-minutes: 15 runs-on: ubuntu-latest @@ -68,7 +69,7 @@ jobs: needs: [commits, security] if: >- !cancelled() && needs.security.result == 'success' && - gitea.event_name != 'schedule' + gitea.event_name != 'schedule' && gitea.event.action != 'edited' timeout-minutes: 45 runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index d65a396..46035e9 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,8 @@ Chromium при ширинах 375 и 1280 px. Browser project не исполь Единый `.gitea/workflows/verify.yml` запускает `commits → security → verify` последовательно на PR; на push в `develop`/`main` — `security → verify`. Рабочие ветки проверяются после открытия PR, без дублирующего push-запуска. -Изменение заголовка PR тоже повторяет проверки Conventional Commits. +Изменение заголовка PR (`edited`) запускает только `commits`; `security` и `verify` +пропускаются и не отменяют полный запуск того же PR (отдельная concurrency-группа). Новый запуск отменяет устаревший для того же PR/ветки и типа события (требуется Gitea 1.26+). Ежедневно в 05:17 UTC выполняется только `security`. Job `security` проверяет полную доступную историю Gitleaks 8.30.1 и выполняет