Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
{
"extends": [
"next/core-web-vitals",
"next/typescript",
"prettier"
],
"plugins": [
"prettier"
],
"rules": {
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"prettier/prettier": "error"
}
}
{
"extends": ["next/core-web-vitals", "next/typescript", "prettier"],
"plugins": ["prettier"],
"rules": {
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"prettier/prettier": "error"
}
}
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/quality-gates.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "PR Quality Gates / Governance"
description: "Work related to CI, branch protection, PR process, governance"
title: "[Governance] <short description>"
labels: ["frontend", "devops", "ci", "governance", "priority-high"]
name: 'PR Quality Gates / Governance'
description: 'Work related to CI, branch protection, PR process, governance'
title: '[Governance] <short description>'
labels: ['frontend', 'devops', 'ci', 'governance', 'priority-high']
body:
- type: markdown
attributes:
Expand Down
10 changes: 10 additions & 0 deletions .github/branch-protection.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,31 @@ These are **GitHub repository settings** (not enforced by code). Configure them
**Settings → Branches → Branch protection rules**.

## Protected branches

Create rules for:

- `main`
- `develop`

## Required settings

Enable the following options:

### блок direct pushes

- ✅ **Restrict who can push to matching branches** (recommended)
- ✅ **Do not allow force pushes**
- ✅ **Do not allow deletions**

### Require PRs

- ✅ **Require a pull request before merging**
- ✅ **Require approvals**: at least **1** (or **2** if desired)
- ✅ **Dismiss stale approvals when new commits are pushed**
- ✅ **Require conversation resolution before merging**

### Require checks

- ✅ **Require status checks to pass before merging**
- ✅ Select required checks from `Frontend CI`:
- `type-check`
Expand All @@ -31,19 +37,23 @@ Enable the following options:
- `test`

### Keep branch up to date

- ✅ **Require branches to be up to date before merging**

## PR must reference an issue

GitHub does not have a single built-in "require issue link" toggle for all repos.
Recommended options:

1. **Process enforcement (lightweight)**

- Use `.github/pull_request_template.md` and require `Closes #<issue>` in the PR.

2. **Stronger enforcement (recommended)**
- Add a dedicated GitHub Action that fails if the PR body does not contain `Closes #<number>`.
- If you want this, we can add a small workflow using `actions/github-script`.

## Notes

- Repository admins can optionally be included or excluded from these requirements.
- Configure the same rule set for both `main` and `develop` to avoid bypass paths.
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
## Summary

<!-- What does this PR change and why? -->

## Related Issue

<!-- REQUIRED: link the issue this PR addresses -->

Closes #

## Type of change

- [ ] Feature
- [ ] Bug fix
- [ ] Chore / Refactor
- [ ] Docs

## Screenshots / Recording (if UI)

<!-- Optional -->

## Testing

<!-- REQUIRED: describe how you tested this change -->

- [ ] `npm run type-check`
- [ ] `npm run lint`
- [ ] `npm run test`
- [ ] `npm run build`

## Quality gate checklist

- [ ] CI checks pass (Frontend CI)
- [ ] At least 1–2 approvals (per branch protection rules)
- [ ] Branch is up-to-date with the base branch
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci
Expand All @@ -32,8 +32,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci
Expand All @@ -49,8 +49,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci
Expand All @@ -70,8 +70,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci
Expand Down Expand Up @@ -99,8 +99,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci
Expand Down
Loading
Loading