feat(gitea): add issue forms and a pull request template #289

Merged
Defame1297 merged 1 commits from feat/gitea-issue-pr-templates into main 2026-11-22 08:07:39 +00:00
Owner

What and why

Closes #191

Issue forms and a pull request template, as #191 specifies (spec: #103, section 6, as amended):

  • .gitea/ISSUE_TEMPLATE/config.yml: blank issues disabled; one contact link to SECURITY.md for vulnerabilities.
  • .gitea/ISSUE_TEMPLATE/bug.yml: role (required input), release tag (vX.Y.Z regex), ansible-core version (regex), Platform dropdown (Ubuntu 24.04, Ubuntu 26.04, Debian 13, other), minimal playbook (render: yaml), expected and actual behaviour (required).
  • .gitea/ISSUE_TEMPLATE/feature.yml: problem (required), proposal, acceptance criteria (required).
  • .gitea/PULL_REQUEST_TEMPLATE.md: What and why, Verified, Not verified, and the one third-party-material statement. No other checkboxes, no HTML comments.
  • Both template paths are on the Molecule selector's IGNORED list with a test (agreed with the maintainer on the issue's plan): no scenario reads them, so a template-only change runs no scenarios. This PR itself still runs every scenario, because the selector runs from main's copy.

Notes:

  • Guidance sits only in markdown fields and field descriptions, which Gitea shows on the form and does not save. The feature form's descriptions ask for what is out of scope and for the command or check that proves each acceptance criterion, instead of adding fields.
  • The spec says the role list lives in the README; the README has no role table yet, so the Role field points at the role's directory under roles/.
  • The ansible-core regex accepts X.Y and X.Y.Z and rejects pre-releases.
  • REUSE.toml's ** default already covers the new files, .gitea is in build_ignore, so there is no changelog fragment.

Verified

  • yamllint -s .gitea/ISSUE_TEMPLATE/ passes.
  • A local throwaway script parsed each form with yaml.safe_load and checked: blank_issues_enabled: false, contact link fields, element types, labels, unique ids and dropdown options, regexes compile; the tag regex accepts v1.9.0 and rejects 1.9.0, v1.9, v1.9.0-rc1; the ansible-core regex accepts 2.22, 2.22.0 and rejects 2.22.0rc1, core 2.22.
  • python -m unittest tests.scripts.test_select_molecule_scenarios: 29 tests pass; the new test failed before the IGNORED entries were added.
  • All pre-commit hooks on commit; ansible-test sanity on push.
  • Two-axis code review (standards, spec); the checkbox placement, empty-heading prompts, stale placeholders and a duplicated vulnerability line it found are fixed.
  • CI runs: not yet linked; see this PR's checks.

Not verified

  • How Gitea renders the forms, whether it enforces the regexes (including on an empty optional field), hides blank issues and pre-fills this template. Gitea reads templates from the default branch only, so this is the maintainer's after-merge check on #191.
  • This PR body was filed through the API, which bypasses the template; it follows the template's headings by hand.

  • I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.

🤖 Generated with Claude Code

## What and why Closes #191 Issue forms and a pull request template, as #191 specifies (spec: #103, section 6, as amended): - `.gitea/ISSUE_TEMPLATE/config.yml`: blank issues disabled; one contact link to `SECURITY.md` for vulnerabilities. - `.gitea/ISSUE_TEMPLATE/bug.yml`: role (required input), release tag (`vX.Y.Z` regex), ansible-core version (regex), Platform dropdown (Ubuntu 24.04, Ubuntu 26.04, Debian 13, other), minimal playbook (`render: yaml`), expected and actual behaviour (required). - `.gitea/ISSUE_TEMPLATE/feature.yml`: problem (required), proposal, acceptance criteria (required). - `.gitea/PULL_REQUEST_TEMPLATE.md`: What and why, Verified, Not verified, and the one third-party-material statement. No other checkboxes, no HTML comments. - Both template paths are on the Molecule selector's `IGNORED` list with a test (agreed with the maintainer on the issue's plan): no scenario reads them, so a template-only change runs no scenarios. This PR itself still runs every scenario, because the selector runs from `main`'s copy. Notes: - Guidance sits only in `markdown` fields and field descriptions, which Gitea shows on the form and does not save. The feature form's descriptions ask for what is out of scope and for the command or check that proves each acceptance criterion, instead of adding fields. - The spec says the role list lives in the README; the README has no role table yet, so the Role field points at the role's directory under `roles/`. - The ansible-core regex accepts `X.Y` and `X.Y.Z` and rejects pre-releases. - `REUSE.toml`'s `**` default already covers the new files, `.gitea` is in `build_ignore`, so there is no changelog fragment. ## Verified - `yamllint -s .gitea/ISSUE_TEMPLATE/` passes. - A local throwaway script parsed each form with `yaml.safe_load` and checked: `blank_issues_enabled: false`, contact link fields, element types, labels, unique ids and dropdown options, regexes compile; the tag regex accepts `v1.9.0` and rejects `1.9.0`, `v1.9`, `v1.9.0-rc1`; the ansible-core regex accepts `2.22`, `2.22.0` and rejects `2.22.0rc1`, `core 2.22`. - `python -m unittest tests.scripts.test_select_molecule_scenarios`: 29 tests pass; the new test failed before the `IGNORED` entries were added. - All pre-commit hooks on commit; `ansible-test sanity` on push. - Two-axis code review (standards, spec); the checkbox placement, empty-heading prompts, stale placeholders and a duplicated vulnerability line it found are fixed. - CI runs: not yet linked; see this PR's checks. ## Not verified - How Gitea renders the forms, whether it enforces the regexes (including on an empty optional field), hides blank issues and pre-fills this template. Gitea reads templates from the default branch only, so this is the maintainer's after-merge check on #191. - This PR body was filed through the API, which bypasses the template; it follows the template's headings by hand. --- - [ ] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added this to the Open to contributors milestone 2026-11-22 07:46:02 +00:00
Defame1297 was assigned by Claude 2026-11-22 07:46:02 +00:00
Claude added 1 commit 2026-11-22 07:46:02 +00:00
feat(gitea): add issue forms and a pull request template
Build / build (pull_request) Successful in 14s
Lint / lint (pull_request) Successful in 52s
Molecule / molecule (pull_request) Successful in 19m20s
f67f200c43
Bug and feature-request YAML forms with blank issues disabled and a
contact link to SECURITY.md, and a pull request template with What and
why, Verified and Not verified plus the third-party-material statement.

The templates are on the Molecule selector's IGNORED list: no scenario
reads them, so a template-only change runs no scenarios.

Closes #191

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
CODEOWNERS rules requested review from Defame1297 2026-11-22 07:46:02 +00:00
Defame1297 approved these changes 2026-11-22 07:49:59 +00:00
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-11-22 07:50:03 +00:00
Defame1297 merged commit 10a3f88fbe into main 2026-11-22 08:07:39 +00:00
Defame1297 deleted branch feat/gitea-issue-pr-templates 2026-11-22 08:07:41 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#289