-
Notifications
You must be signed in to change notification settings - Fork 2
Attribute PR-comment clicks to the Action #129
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
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 |
|---|---|---|
|
|
@@ -8,7 +8,13 @@ fi | |
| RUN_URL="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" | ||
| # Stable PR route: the webview resolves the repo/PR's latest artifact itself, | ||
| # so the link stays valid across runs instead of pinning one run id. | ||
| WEBVIEW_URL="https://app.codeboarding.org/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" | ||
| # Standard utm_* rather than a bespoke ?src=: PostHog lifts utm_* into person and | ||
| # session properties by itself, so this is attributable the day the action ships, | ||
| # with no matching change in the web app. Without it the only evidence a visit | ||
| # came from here is a github.com referrer, which most clients strip and a link | ||
| # pasted into chat never had. Constant across runs on purpose: a run id here | ||
| # would scatter one pull request's clicks across a new value per re-run. | ||
| WEBVIEW_URL="https://app.codeboarding.org/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}?utm_source=github&utm_medium=pr_comment&utm_campaign=gh_action" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a reader follows this link from the Actions job summary, the visit is still labeled Useful? React with 👍 / 👎. |
||
| BODY="${RUNNER_TEMP}/review-comment.md" | ||
| printf '### CodeBoarding review\n\n**Status:** %s changed %s\n' "$N_CHANGED" "$COMPONENT_NOUN" > "$BODY" | ||
| printf '\nSee the full change in [CodeBoarding](%s).\n' "$WEBVIEW_URL" >> "$BODY" | ||
|
|
||
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 reviewed commit's subject,
Attribute PR-comment clicks to the Action, lacks afeat:orfix:prefix. Because this URL change only reaches Action consumers through a release and release-please ignores unparseable commits when deciding whether to propose one, the attribution functionality can remain unshipped indefinitely; use a release-triggering Conventional Commit subject.AGENTS.md reference: AGENTS.md:L90-L93
Useful? React with 👍 / 👎.