Skip to content

Add PR template instruction to AGENTS.md - #4

Closed
johanzander wants to merge 1648 commits into
devfrom
docs/add-pr-template-instruction
Closed

Add PR template instruction to AGENTS.md#4
johanzander wants to merge 1648 commits into
devfrom
docs/add-pr-template-instruction

Conversation

@johanzander

Copy link
Copy Markdown
Owner

Breaking change

Proposed change

Adds an instruction to AGENTS.md (which CLAUDE.md symlinks to) telling AI agents to always use the repo's .github/PULL_REQUEST_TEMPLATE.md when creating pull requests, rather than generating a custom format.

Type of change

  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue:
  • This PR is related to issue:
  • Link to documentation pull request:
  • Link to developer documentation pull request:
  • Link to frontend pull request:

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

epenet and others added 30 commits March 16, 2026 11:52
Co-authored-by: Stefan Agner <stefan@agner.ch>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…t#155981)

Co-authored-by: Joostlek <joostlek@outlook.com>
Co-authored-by: emontnemery <erik@montnemery.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…65379)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…5515)

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
synesthesiam and others added 29 commits March 19, 2026 17:38
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Tao Jiang <tao.jiang@linkplay.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Joostlek <joostlek@outlook.com>
…on (home-assistant#165009)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…165996)

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ssistant#165927)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Norbert Rittel <norbert@rittel.de>
HA renamed "services" to "actions" in the UI. Update the remaining
exception message in strings.json that still used the old term.

Fixes review comment by @NoRi2909 on home-assistant#165927.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…able labels in exception messages

Use proper English in translated exception messages instead of internal
Python parameter names. Charge power, discharge power, SOC limits and
time-format errors now show user-friendly labels (e.g. "Charge power",
"Period 1 start") rather than snake_case identifiers. Update tests to
match the new field_name values.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…#165959)

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
…ld wording

- Use third-person singular for all action descriptions (Reads/Writes/Updates)
- Fix write_ac_charge_times and write_ac_discharge_times device_id field
  description from "to read from" to "to write to"

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Improves readability and provides a hint to translators that these are
field names, not generic text. Dynamic placeholders are left unquoted
as ICU message format does not allow placeholders inside single quotes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rge_times

The name field "Device" is shared with read actions so it can be
referenced rather than duplicated as a literal string. Both write
actions point directly to read_ac_charge_times for the name to avoid
chained references (Lokalise only supports one level of indirection).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
All four SPH actions (read/write AC charge/discharge times) now reference
the neutral "The Growatt device to perform the action on." from
read_time_segments instead of action-specific "to read from"/"to write to"
wording. All references point directly to read_time_segments to avoid
chained references (Lokalise only supports one level of indirection).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…t errors

Replaces the single invalid_time_format key (which embedded a hardcoded
English field name as a placeholder) with four separate translatable keys:
invalid_time_format_start_time, invalid_time_format_end_time,
invalid_time_format_period_start, invalid_time_format_period_end.

This ensures non-English translations do not have English words embedded
in otherwise-translated error messages. Period keys use a {period}
numeric placeholder which requires no translation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Norbert Rittel <norbert@rittel.de>
The GitHub UI suggestion added quoted period field names without removing
the originals or closing their braces, resulting in duplicate keys and
invalid JSON. Keep only the quoted versions: 'Period {period} end' and
'Period {period} start', consistent with other field name messages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…dd end time test

- Fix _parse_time_str to actually parse seconds when HH:MM:SS format is
  provided, instead of silently discarding them
- Add test for invalid period end time (invalid_time_format_period_end)
  to complement the existing period start time test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Instruct AI agents to always use the repo's PULL_REQUEST_TEMPLATE.md
when creating pull requests, rather than inventing a custom format.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Be explicit that all HTML comments and metadata must be kept intact,
not just the section structure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.