Skip to content

feat(code): add commit trailers for attribution#1431

Merged
adboio merged 1 commit intomainfrom
04-01-feat_code_add_commit_trailers_for_attribution
Apr 3, 2026
Merged

feat(code): add commit trailers for attribution#1431
adboio merged 1 commit intomainfrom
04-01-feat_code_add_commit_trailers_for_attribution

Conversation

@adboio
Copy link
Copy Markdown
Contributor

@adboio adboio commented Apr 1, 2026

Problem

we don't (yet) do a great job of attributing work done by posthog code back to posthog code.

one small step in that direction is adding commit trailers to all commits made in our UI

Changes

adds commit trailers to all commits from the UI, with a reference to posthog code and the task ID

How did you test this?

tested manually, sample git log:

commit 2c95d4396cc3fed3f138b4f0e63e8f771632c007 (HEAD -> posthog-code/test-change)
Author: Adam Bowker <adam.b@posthog.com>
Date:   Wed Apr 1 14:19:10 2026 -0700

    fix(actions): remove test comment from ActionsModelProps interface

    Generated-By: PostHog Code
    Task-Id: e6f79d08-9b9d-42fe-8648-14fe1aad8bcb

@adboio adboio requested a review from a team April 1, 2026 21:22
@adboio adboio marked this pull request as ready for review April 1, 2026 21:22
@adboio adboio force-pushed the posthog-code/improve-code-review-workflow-and-diff-viewer branch 2 times, most recently from d365a2d to 6254681 Compare April 2, 2026 14:59
@adboio adboio force-pushed the 04-01-feat_code_add_commit_trailers_for_attribution branch from eda1ca1 to 28fc5ee Compare April 2, 2026 14:59
@adboio adboio force-pushed the 04-01-feat_code_add_commit_trailers_for_attribution branch from 28fc5ee to 4bbd9d3 Compare April 3, 2026 00:15
@adboio adboio force-pushed the posthog-code/improve-code-review-workflow-and-diff-viewer branch from 6254681 to 9df7fb1 Compare April 3, 2026 00:15
@adboio adboio changed the base branch from posthog-code/improve-code-review-workflow-and-diff-viewer to graphite-base/1431 April 3, 2026 00:23
@adboio adboio force-pushed the 04-01-feat_code_add_commit_trailers_for_attribution branch from 4bbd9d3 to 3dd25b5 Compare April 3, 2026 00:24
@adboio adboio force-pushed the graphite-base/1431 branch from 9df7fb1 to 5857e2f Compare April 3, 2026 00:24
@graphite-app graphite-app bot changed the base branch from graphite-base/1431 to main April 3, 2026 00:24
@adboio adboio force-pushed the 04-01-feat_code_add_commit_trailers_for_attribution branch from 3dd25b5 to ccbbd0c Compare April 3, 2026 00:24
@adboio adboio merged commit 0b92782 into main Apr 3, 2026
16 checks passed
Copy link
Copy Markdown
Contributor Author

adboio commented Apr 3, 2026

Merge activity

@adboio adboio deleted the 04-01-feat_code_add_commit_trailers_for_attribution branch April 3, 2026 00:31
adboio added a commit that referenced this pull request Apr 3, 2026
## Problem

we explicitly instruct the (cloud) agent to not include any attribution lines -- presumably to avoid the default claude code stuff

however, this means there's also no attribution back to posthog code

<!-- Who is this for and what problem does it solve? -->

<!-- Closes #ISSUE_ID -->

## Changes

- cloud: replaces the "no attribution" prompting with instructions to add commit trailers (see #1431 ) and PR body footers
- local: adds new commit+PR attribution instructions, which hopefully will override whatever is injected by claude code

<!-- What did you change and why? -->

<!-- If there are frontend changes, include screenshots. -->

## How did you test this?

i haven't yet 🙈

<!-- Describe what you tested -- manual steps, automated tests, or both. -->

<!-- If you're an agent, only list tests you actually ran. -->
adboio added a commit that referenced this pull request Apr 3, 2026
## Problem

#1431 adds commit trailers when committing via UI, #1432 adds trailers + PR body instructions for agent

now we need to add PR body footer when creating a PR via UI

<!-- Who is this for and what problem does it solve? -->

<!-- Closes #ISSUE_ID -->

## Changes

appends "created by posthog code" to PR body when creating from UI

<!-- What did you change and why? -->

<!-- If there are frontend changes, include screenshots. -->

## How did you test this?

<!-- Describe what you tested -- manual steps, automated tests, or both. -->

<!-- If you're an agent, only list tests you actually ran. -->

PostHog/posthog#53123
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.

2 participants