From 1a65f06e107ee85bf7c92139bb30f3f0ffd7d8b8 Mon Sep 17 00:00:00 2001 From: przemyslawbialon Date: Fri, 24 Apr 2026 18:10:56 +0200 Subject: [PATCH] docs: Add bilingual issue templates and PR template (#47) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Six Markdown issue templates (3 types × PL/EN) let reporters pick their preferred language from GitHub's "New issue" dropdown. The flag emoji in each template's `name:` makes the choice visually obvious. One shared `config.yml` disables blank issues and points tax-rule Q&A toward Discussions (opened in #48). Templates mirror each other across languages and include sections tailored to pit-38's domain: - bug_report_{en,pl}.md — environment, sanitized CSV snippet (with PII warning), expected vs actual output with encouragement to cite the ustawa article - feature_request_{en,pl}.md — user story in "Polish investor" form, motivation, scope/out-of-scope - broker_support_{en,pl}.md — broker name/region, asset class, sanitized sample, operation types observed, "known quirks" (BOM, locale, sign position) directly informed by #33's lessons config.yml: - blank_issues_enabled: false → force template selection - three contact links: Q&A in EN + PL, Broker support discussion PULL_REQUEST_TEMPLATE.md (English, with a note inviting PL comments because contributors are increasingly international): - Summary + Closes # - Tax-correctness impact (bespoke — pit-38's most important review gate) - Testing checklist - Documentation checklist (TAX_RULES.md, CHANGELOG, TAX_LAW_AUDIT) Also adds the `broker-support` label so broker-request issues are auto-tagged. Closes #47. --- .github/ISSUE_TEMPLATE/broker_support_en.md | 62 ++++++++++++++++++++ .github/ISSUE_TEMPLATE/broker_support_pl.md | 62 ++++++++++++++++++++ .github/ISSUE_TEMPLATE/bug_report_en.md | 54 +++++++++++++++++ .github/ISSUE_TEMPLATE/bug_report_pl.md | 55 +++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 11 ++++ .github/ISSUE_TEMPLATE/feature_request_en.md | 37 ++++++++++++ .github/ISSUE_TEMPLATE/feature_request_pl.md | 37 ++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 48 +++++++++++++++ 8 files changed, 366 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/broker_support_en.md create mode 100644 .github/ISSUE_TEMPLATE/broker_support_pl.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report_en.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report_pl.md create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request_en.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request_pl.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE/broker_support_en.md b/.github/ISSUE_TEMPLATE/broker_support_en.md new file mode 100644 index 0000000..26ac764 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/broker_support_en.md @@ -0,0 +1,62 @@ +--- +name: "\U0001F1EC\U0001F1E7 Broker support request" +about: Request support for a new broker, or report a broker's CSV format change +title: "[BROKER] " +labels: ["broker-support", "help wanted"] +--- + + + +## Broker + +- **Name**: +- **Region** (US / EU / PL / other): +- **Asset class** (stocks / crypto / both): +- **Website** (helpful for sample format docs): + +## Sanitized export sample + + + +```csv +paste sanitized CSV here +``` + +## Typical columns + + + +## Operation types observed + + + +## Known quirks + + + +## Tax year coverage + + + +## Can you help implement? + +- [ ] I'd like to contribute the plugin myself (plugin dev docs coming — see #49, #50) +- [ ] I can provide test data but not code +- [ ] Just a request + +## Additional context + + diff --git a/.github/ISSUE_TEMPLATE/broker_support_pl.md b/.github/ISSUE_TEMPLATE/broker_support_pl.md new file mode 100644 index 0000000..a112f24 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/broker_support_pl.md @@ -0,0 +1,62 @@ +--- +name: "\U0001F1F5\U0001F1F1 Prośba o obsługę brokera" +about: Poproś o wsparcie nowego brokera lub zgłoś zmianę formatu CSV +title: "[BROKER] " +labels: ["broker-support", "help wanted"] +--- + + + +## Broker + +- **Nazwa**: +- **Region** (US / EU / PL / inny): +- **Klasa aktywów** (akcje / krypto / oba): +- **Strona** (pomocna dla znalezienia dokumentacji formatu): + +## Zanonimizowany sample eksportu + + + +```csv +wklej tutaj zanonimizowany CSV +``` + +## Typowe kolumny + + + +## Zaobserwowane typy operacji + + + +## Znane kwirki + + + +## Zakres lat podatkowych + + + +## Czy możesz pomóc w implementacji? + +- [ ] Chcę napisać plugin samodzielnie (dokumentacja pluginu nadchodzi — patrz #49, #50) +- [ ] Mogę dostarczyć dane testowe, ale nie kod +- [ ] Tylko prośba + +## Dodatkowy kontekst + + diff --git a/.github/ISSUE_TEMPLATE/bug_report_en.md b/.github/ISSUE_TEMPLATE/bug_report_en.md new file mode 100644 index 0000000..b1c187f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report_en.md @@ -0,0 +1,54 @@ +--- +name: "\U0001F1EC\U0001F1E7 Bug report" +about: Report incorrect tax calculations or tool crashes +title: "[BUG] " +labels: ["bug"] +--- + + + +## Environment + +- **pit-38 version** (run `pip show pit-38 | grep Version`): +- **Python version**: +- **Operating system**: +- **Broker(s) involved**: +- **Tax year being calculated**: + +## What happened + + + +## Minimal CSV to reproduce + + + +```csv +paste sanitized CSV here +``` + +## Expected tax output + + + +## Actual tax output or error + + + +``` +paste output here +``` + +## Additional context + + diff --git a/.github/ISSUE_TEMPLATE/bug_report_pl.md b/.github/ISSUE_TEMPLATE/bug_report_pl.md new file mode 100644 index 0000000..f03945a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report_pl.md @@ -0,0 +1,55 @@ +--- +name: "\U0001F1F5\U0001F1F1 Zgłoszenie błędu" +about: Zgłoś nieprawidłowe obliczenia podatku lub awarię narzędzia +title: "[BŁĄD] " +labels: ["bug"] +--- + + + +## Środowisko + +- **Wersja pit-38** (uruchom `pip show pit-38 | grep Version`): +- **Wersja Pythona**: +- **System operacyjny**: +- **Broker(zy)**: +- **Rok podatkowy**: + +## Co się stało + + + +## Minimalny plik CSV do odtworzenia + + + +```csv +wklej tutaj zanonimizowany CSV +``` + +## Oczekiwany wynik podatku + + + +## Faktyczny wynik lub błąd + + + +``` +wklej output tutaj +``` + +## Dodatkowe informacje + + diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..6e1df5a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,11 @@ +blank_issues_enabled: false +contact_links: + - name: 💬 Tax-rule Q&A (use Discussions) + url: https://github.com/pbialon/pit-38/discussions/categories/q-a + about: Questions about interpretation of Polish tax law belong in Discussions, not Issues. Use this if you're not reporting a code bug. + - name: 💬 Pytania o zasady podatkowe (Discussions) + url: https://github.com/pbialon/pit-38/discussions/categories/q-a + about: Pytania o interpretację polskiego prawa podatkowego — Discussions, nie Issues. Użyj jeśli nie zgłaszasz błędu w kodzie. + - name: 🏦 Broker support discussion + url: https://github.com/pbialon/pit-38/discussions/categories/broker-support + about: Informal discussion about a broker before opening a formal support request. Share sanitized CSV samples, compare workflows. diff --git a/.github/ISSUE_TEMPLATE/feature_request_en.md b/.github/ISSUE_TEMPLATE/feature_request_en.md new file mode 100644 index 0000000..2e40b49 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request_en.md @@ -0,0 +1,37 @@ +--- +name: "\U0001F1EC\U0001F1E7 Feature request" +about: Suggest an improvement or new capability +title: "[FEATURE] " +labels: ["enhancement"] +--- + + + +## User story + + + +## Motivation + + + +## Proposed scope + + + +## Out of scope + + + +## Alternatives considered + + + +## Additional context + + diff --git a/.github/ISSUE_TEMPLATE/feature_request_pl.md b/.github/ISSUE_TEMPLATE/feature_request_pl.md new file mode 100644 index 0000000..ff94e6c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request_pl.md @@ -0,0 +1,37 @@ +--- +name: "\U0001F1F5\U0001F1F1 Propozycja funkcji" +about: Zasugeruj ulepszenie lub nową funkcję +title: "[FUNKCJA] " +labels: ["enhancement"] +--- + + + +## User story + + + +## Motywacja + + + +## Proponowany zakres + + + +## Poza zakresem + + + +## Rozważone alternatywy + + + +## Dodatkowy kontekst + + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..f9259e7 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,48 @@ + + +## Summary + + + +Closes # + +## Changes + + + +- + +## Tax-correctness impact + + + +- [ ] **No impact** — purely refactor, docs, tests, CI +- [ ] **Yes, tax output changes** — explain what and why, and whether + existing test expectations were updated + + + +## Testing + +- [ ] `pytest tests/` passes locally +- [ ] Added tests for new behaviour (or explained why not applicable) +- [ ] Tested on a real CSV if tax-calc change + + + +## Documentation + +- [ ] Updated `TAX_RULES.md` / `TAX_RULES.pl.md` if tax rules clarified or corrected +- [ ] Updated `CHANGELOG.md` with an entry +- [ ] Updated relevant README / plugin docs +- [ ] Updated `TAX_LAW_AUDIT.md` if this closes an audit issue + +## Reviewer notes + +