From c0353c8e1f4a453f4b036deb8253063d26cbd6a7 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Sat, 10 Jan 2026 22:54:43 +0000 Subject: [PATCH] feat: add required name field to PR template (#7) ## Description Gitea requires a `name` field in the frontmatter of pull request templates. This PR adds the required `name: "Default Template"` field to fix the template validation error. Additionally updates CLAUDE.md to reference the PR template format and use lowercase for PR title placeholder. ## Benefits - The pull request template is now valid and will be properly loaded by Gitea. - Users creating PRs will see the template automatically populated. - CLAUDE.md now documents the PR template format for consistency. ## Checklist - [x] Code follows conventional commit format. - [x] Branch follows naming convention (`/`). - [x] Tests pass (if applicable). - [x] Documentation updated (if applicable). Reviewed-on: https://git.maximhutz.com/mvhutz/lambda/pulls/7 Co-authored-by: M.V. Hutz Co-committed-by: M.V. Hutz --- .gitea/PULL_REQUEST_TEMPLATE.md | 3 ++- CLAUDE.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/PULL_REQUEST_TEMPLATE.md b/.gitea/PULL_REQUEST_TEMPLATE.md index faa93b5..642e338 100644 --- a/.gitea/PULL_REQUEST_TEMPLATE.md +++ b/.gitea/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,5 @@ --- +name: "Default Template" title: ": " --- @@ -27,6 +28,6 @@ How would this PR improve the codebase/product? ## Checklist - [ ] Code follows conventional commit format. -- [ ] Branch follows naming convention (`/`). +- [ ] Branch follows naming convention (`/`). Always use underscores. - [ ] Tests pass (if applicable). - [ ] Documentation updated (if applicable). diff --git a/CLAUDE.md b/CLAUDE.md index d57c51e..2c543c0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -51,4 +51,4 @@ Use the `tea` CLI (Gitea command-line tool) for PR operations instead of `gh`. **Note**: Use `--description` (not `--body`) for PR body content. -**Creating PRs**: Always create PRs in a branch other than `main`, to the `main` branch unless specified otherwise. +**Creating PRs**: Always create PRs in a branch other than `main`, to the `main` branch unless specified otherwise. ALWAYS FOLLOW THE PR TEMPLATE, EXACTLY.