ci: recheck PR title on edited without the full pipeline (WealthLedger/frontend#64) #84

Merged
codex-bot merged 2 commits from fix/64-pr-title-edited into develop 2026-10-14 22:46:51 +03:00
2 changed files with 8 additions and 6 deletions
Showing only changes of commit 2d08dfe0d1 - Show all commits
+6 -5
View File
@@ -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:
+2 -1
View File
@@ -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 и выполняет