From b829cef97a99e5900d2030f2b0b79e3cb7e003f4 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" <215916821+open-swe[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 15:32:30 -0700 Subject: [PATCH] feat: add release note section to PR body template (#1202) * feat: add release note section to PR body template The langchainplus repo PR template includes a ## Release Note section, but the agent hardcoded PR body template only had ## Description and ## Test Plan. This caused the release note section to be dropped from agent-created PRs. * docs: align PR body argument docs --------- Co-authored-by: open-swe[bot] Co-authored-by: Johannes du Plessis --- agent/prompt.py | 3 +++ agent/tools/commit_and_open_pr.py | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/agent/prompt.py b/agent/prompt.py index 70194104..cfde646a 100644 --- a/agent/prompt.py +++ b/agent/prompt.py @@ -294,6 +294,9 @@ When you have completed your implementation, follow these steps in order: <1-3 sentences on WHY and the approach. NO "Changes:" section — file changes are already in the commit history.> + ## Release Note + + ## Test Plan - [ ] ``` diff --git a/agent/tools/commit_and_open_pr.py b/agent/tools/commit_and_open_pr.py index c893d16c..aa74895f 100644 --- a/agent/tools/commit_and_open_pr.py +++ b/agent/tools/commit_and_open_pr.py @@ -89,6 +89,11 @@ def commit_and_open_pr( DO NOT list files changed or enumerate code changes — that information is already in the commit history.> + ## Release Note + + ## Test Plan - [ ] @@ -107,6 +112,9 @@ def commit_and_open_pr( Resolves AA-123 + ## Release Note + Fixed authentication failure for users without profiles. + ## Test Plan - [ ] Verify login works for users without profiles @@ -118,7 +126,8 @@ def commit_and_open_pr( Args: title: PR title following the format above (e.g. "fix: resolve auth bug [closes AA-123]") - body: PR description following the template above with ## Description and ## Test Plan + body: PR description following the template above with ## Description, + ## Release Note, and ## Test Plan commit_message: Optional git commit message. If not provided, the PR title is used. Returns: