-
Notifications
You must be signed in to change notification settings - Fork 296
fix: update-pull-request honors footer: false #17525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
efe1415
04dbcf3
3023bf3
c35bb81
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -458,7 +458,7 @@ describe("update_pr_description_helpers.cjs", () => { | |
| workflowId: "test-workflow", | ||
| includeFooter: false, | ||
| }); | ||
| expect(result).toBe("Replacement"); | ||
| expect(result).toBe("Replacement\n\n<!-- gh-aw-workflow-id: test-workflow -->"); | ||
|
||
| expect(result).not.toContain("Generated by"); | ||
| }); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow ID marker should be added unconditionally (when workflowId is present), not just when includeFooter is false. This creates an inconsistency with create_issue and create_pull_request, which always add the workflow-id marker for searchability.
In create_issue.cjs (line 446-448) and create_pull_request.cjs (line 489-491), the workflow-id marker is added unconditionally with the comment "Always add XML markers even when footer is disabled". The same pattern should be followed here.
Change line 92 from:
to:
This ensures the workflow-id marker is always present for searchability, regardless of footer settings.