From 3bb5ba4b0267e984a0a214dbae79645ed99c93dc Mon Sep 17 00:00:00 2001 From: moilanik Date: Mon, 8 Jun 2026 11:28:14 +0300 Subject: [PATCH] docs(readme): fix Helm chart values and add main branch protection guide --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index b3f44ee..2eacf57 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,27 @@ Reusable workflow -kirjasto Gitea Actionsille. Lisätietoja: [docs/](docs/) +## Main-haaran suojaus + +Jokaisessa tätä kirjastoa käyttävässä repossa `main`-haara suojataan — koodi päätyy sinne vain PR:n kautta: + +``` +Repository → Settings → Branches → Branch Protection → Add Rule +``` + +| Osio | Asetus | Arvo | +|------|--------|------| +| **Patterns** | Protected Branch Name Pattern | `main` | +| **Push** | Disable Push | ✓ | +| **Force Push** | Disable Force Push | ✓ | +| **Pull Request Approvals** | Required approvals | `1` | +| | Dismiss stale approvals | ✓ | +| | Ignore stale approvals | ✓ | +| | Enable Status Check | ✓ (kun CI on olemassa) | +| **Pull Request Merge** | Block merge on rejected reviews | ✓ | +| | Block merge on official review requests | ✓ | +| | Block merge if pull request is outdated | ✓ + ## Gitea Actions runner (K8s / Helm) Act runner suorittaa Gitea Actions workflowt. Asennus Kubernetes-klusteriin Helm chartilla: