From 24019918702b1b34d65166b17f91188bbbece0b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ty=C5=84ski?= Date: Sun, 4 Oct 2026 00:48:53 +0200 Subject: [PATCH] chore(repo): add PR/issue templates and editorconfig rules Add pull request and issue templates and extend .editorconfig with json/yml rules. Templates are force-added because the user's global gitignore excludes .github directories. --- .editorconfig | 3 ++ .github/ISSUE_TEMPLATE/bug_report.yml | 50 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 5 +++ .github/ISSUE_TEMPLATE/feature_request.yml | 40 +++++++++++++++++ .github/pull_request_template.md | 36 ++++++++++++++++ 5 files changed, 134 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml create mode 100644 .github/pull_request_template.md diff --git a/.editorconfig b/.editorconfig index cb71143..5d2a29c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,5 +14,8 @@ indent_size = 4 [*.{csproj,props,targets,slnx}] indent_size = 2 +[*.{json,yml,yaml}] +indent_size = 2 + [*.md] trim_trailing_whitespace = false diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..4caa5de --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,50 @@ +name: Błąd +description: Zgłoszenie błędu w TarninaHub +title: "[Bug]: " +labels: ["type:fix"] +body: + - type: textarea + id: description + attributes: + label: Opis + description: Na czym polega błąd? + validations: + required: true + - type: textarea + id: steps + attributes: + label: Kroki reprodukcji + description: Krok po kroku, jak odtworzyć błąd. + placeholder: | + 1. Wejdź na ... + 2. Kliknij ... + 3. Błąd ... + validations: + required: true + - type: textarea + id: expected + attributes: + label: Oczekiwane zachowanie + validations: + required: true + - type: textarea + id: actual + attributes: + label: Rzeczywiste zachowanie + validations: + required: true + - type: input + id: environment + attributes: + label: Środowisko + description: Przeglądarka/system, wersja, motyw (jasny/ciemny). + - type: dropdown + id: priority + attributes: + label: Priorytet + options: + - priority:high + - priority:medium + - priority:low + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3d820d5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Dokumentacja projektu + url: https://example.invalid/tarninahub + about: Plan kroków i wymagania (uzupełnić właściwym adresem). diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..5c07e55 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,40 @@ +name: Funkcjonalność +description: Propozycja nowej funkcjonalności lub usprawnienia +title: "[Feature]: " +labels: ["type:feat"] +body: + - type: textarea + id: problem + attributes: + label: Problem / cel + description: Jaki problem rozwiązujemy i dla kogo? + validations: + required: true + - type: textarea + id: solution + attributes: + label: Proponowane rozwiązanie + validations: + required: true + - type: textarea + id: acceptance + attributes: + label: Kryteria akceptacji + description: Lista warunków (Given/When/Then), po których uznamy zadanie za gotowe. + validations: + required: true + - type: dropdown + id: module + attributes: + label: Moduł + options: + - F-1 Matchmaking + - F-3 Zasobnik wiedzy + - F-4 Kreator pomysłów + - F-5 Tester innowacji + - F-6 Platforma komunikacji + - F-7 Panel administratora + - F-8 Middleman Innowacji + - inne / przekrojowe + validations: + required: true diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..6169dc5 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,36 @@ +## Opis + + + +## Typ zmiany + +- [ ] feat +- [ ] fix +- [ ] docs +- [ ] refactor +- [ ] chore +- [ ] test +- [ ] ci / build + +## Powiązanie + + + +## Zakres + +- [ ] backend +- [ ] frontend +- [ ] infra +- [ ] dokumentacja + +## Testowanie + + + +## Checklist + +- [ ] Build przechodzi (`dotnet build backend`, `npm --prefix client run build`) +- [ ] Testy przechodzą (`dotnet test`) +- [ ] Brak sekretów i danych osobowych/wrażliwych +- [ ] Dostępność WCAG 2.1 AA sprawdzona (jeśli dotyczy UI) +- [ ] Zaktualizowana dokumentacja (jeśli dotyczy)