feat(gitea): add issue forms and a pull request template
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
This commit is contained in:
1 parent
d45ef1ff02
commit
f67f200c43
6 files changed
+120
No files matched your search
@@ -146,6 +146,17 @@ class SelectTest(unittest.TestCase):
|
||||
chosen, _reason = sel.select(ALL, ["roles/AGENTS.md"])
|
||||
self.assertEqual(chosen, [])
|
||||
|
||||
def test_issue_and_pull_request_templates_select_nothing(self):
|
||||
# Gitea reads them for its web forms; no scenario does, and they are not shipped.
|
||||
chosen, _reason = self.select(
|
||||
[
|
||||
".gitea/ISSUE_TEMPLATE/config.yml",
|
||||
".gitea/ISSUE_TEMPLATE/bug.yml",
|
||||
".gitea/PULL_REQUEST_TEMPLATE.md",
|
||||
],
|
||||
)
|
||||
self.assertEqual(chosen, [])
|
||||
|
||||
def test_ignored_does_not_mask_a_role(self):
|
||||
chosen, _reason = self.select(["docs/x.md", "roles/docker/tasks/main.yml"])
|
||||
self.assertEqual(chosen, ["roles/docker/molecule/default"])
|
||||
|
||||
Reference in new issue
Block a user