chore: CodeView bootstrap scaffold (policy, templates, CI)
This commit is contained in:
parent
083435e095
commit
45c95836ef
4 changed files with 96 additions and 0 deletions
21
.forgejo/ISSUE_TEMPLATE/bug_report.md
Normal file
21
.forgejo/ISSUE_TEMPLATE/bug_report.md
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
name: Bug Report
|
||||||
|
about: Defect tracked through PR workflow
|
||||||
|
title: "[Bug] "
|
||||||
|
labels: ["bug"]
|
||||||
|
---
|
||||||
|
|
||||||
|
## Fehlerbeschreibung
|
||||||
|
|
||||||
|
## Reproduktionsschritte
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
|
||||||
|
## Erwartetes Verhalten
|
||||||
|
|
||||||
|
## Tatsächliches Verhalten
|
||||||
|
|
||||||
|
## Umgebung
|
||||||
|
- Repo:
|
||||||
|
- Branch:
|
||||||
|
- Commit:
|
||||||
24
.forgejo/ISSUE_TEMPLATE/feature_request.md
Normal file
24
.forgejo/ISSUE_TEMPLATE/feature_request.md
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
name: Feature Request
|
||||||
|
about: Controlled feature work via issue → branch → PR
|
||||||
|
title: "[Feature] "
|
||||||
|
labels: ["feature"]
|
||||||
|
---
|
||||||
|
|
||||||
|
## Ziel
|
||||||
|
<!-- Was soll erreicht werden? -->
|
||||||
|
|
||||||
|
## Motivation
|
||||||
|
<!-- Warum ist das nötig? -->
|
||||||
|
|
||||||
|
## Akzeptanzkriterien
|
||||||
|
- [ ]
|
||||||
|
- [ ]
|
||||||
|
|
||||||
|
## Nicht verändern
|
||||||
|
<!-- Bereiche/Dateien die tabu sind -->
|
||||||
|
|
||||||
|
## Testanforderungen
|
||||||
|
- [ ] lint
|
||||||
|
- [ ] tests
|
||||||
|
- [ ] docker-build
|
||||||
17
.forgejo/ISSUE_TEMPLATE/refactoring.md
Normal file
17
.forgejo/ISSUE_TEMPLATE/refactoring.md
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
name: Refactoring
|
||||||
|
about: Structural change with explicit risk notes
|
||||||
|
title: "[Refactor] "
|
||||||
|
labels: ["refactor"]
|
||||||
|
---
|
||||||
|
|
||||||
|
## Bereich
|
||||||
|
|
||||||
|
## Ziel
|
||||||
|
|
||||||
|
## Risiken
|
||||||
|
|
||||||
|
## Teststrategie
|
||||||
|
- [ ] lint
|
||||||
|
- [ ] tests
|
||||||
|
- [ ] docker-build
|
||||||
34
.forgejo/workflows/ci.yml
Normal file
34
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: CodeView CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Lint
|
||||||
|
run: |
|
||||||
|
if [ -f package.json ]; then npm ci && npm run lint; else echo "no lint configured"; fi
|
||||||
|
|
||||||
|
tests:
|
||||||
|
runs-on: docker
|
||||||
|
needs: lint
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Unit tests
|
||||||
|
run: |
|
||||||
|
if [ -f package.json ]; then npm test; elif [ -f pyproject.toml ]; then pip install -e . && pytest; else echo "no tests configured"; fi
|
||||||
|
|
||||||
|
docker-build:
|
||||||
|
runs-on: docker
|
||||||
|
needs: tests
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Docker build
|
||||||
|
run: |
|
||||||
|
if [ -f Dockerfile ]; then docker build -t app:ci .; elif [ -f docker-compose.yml ]; then docker compose build; else echo "no docker build configured"; fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue