Skip to content

Commit b634fac

Browse files
committed
feat(code): add attribution to PR body from UI
1 parent 2326d8b commit b634fac

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/code/src/main/services/git/service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,10 +767,13 @@ export class GitService extends TypedEventEmitter<GitServiceEvents> {
767767
body?: string,
768768
draft?: boolean,
769769
): Promise<{ success: boolean; message: string; prUrl: string | null }> {
770+
const prFooter =
771+
"\n\n---\n*Created with [PostHog Code](https://posthog.com/code?ref=pr)*";
772+
770773
const args = ["pr", "create"];
771774
if (title) {
772775
args.push("--title", title);
773-
args.push("--body", body || "");
776+
args.push("--body", (body || "") + prFooter);
774777
} else {
775778
args.push("--fill");
776779
}

0 commit comments

Comments
 (0)