Skip to content

Commit

Permalink
chore: add more info when reporting pr age (#14149)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored Feb 8, 2023
1 parent adb00ea commit b68bfcf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/report-pr-age.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,15 @@ jobs:
with:
posthog-token: ${{secrets.POSTHOG_API_TOKEN}}
event: 'posthog-ci-pr-stats'
properties: '{"prAgeInSeconds": ${{ env.pr_age }}, "isRevert": ${{env.is_revert}} }'
properties: '{"prAgeInSeconds": ${{ env.pr_age }}, "isRevert": ${{env.is_revert}}, "prTitle": "${{ github.event.pull_request.title}}", "prNumber": "${{ github.event.pull_request.number}}" }'
report-pr-as-annotation:
name: Report PR to PostHog
runs-on: ubuntu-20.04
if: github.repository == 'PostHog/posthog' && github.event.pull_request.merged == true
steps:
- name: Report PR to PostHog
uses: PostHog/[email protected]
with:
posthog-token: ${{secrets.POSTHOG_CLOUD_ACCESS_TOKEN}}
posthog-project-id: ${{secrets.POSTHOG_PROJECT_ID}}
annotation-message: 'Merged PR #${{github.event.pull_request.number}} ${{github.event.pull_request.title}}'

0 comments on commit b68bfcf

Please sign in to comment.