:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(ci): pass --repo to gh pr diff in docs check (#65888)
Anna Garciaf5fb051af5a9
diff --git a/.github/workflows/ci-docs-check.yml b/.github/workflows/ci-docs-check.ymlindex abce771bc177..bc2d826495ba 100644--- a/.github/workflows/ci-docs-check.yml+++ b/.github/workflows/ci-docs-check.yml@@ -47,7 +47,9 @@ jobs:run: |# Regenerate when the data file OR any additional source (e.g. the generator) changes,# so a generator-only edit can't pass without validating the committed output.- changed_files=$(gh pr diff "$PR_NUMBER" --name-only)+ # --repo is required because this step runs before checkout, so gh has no+ # local git remote to infer the repo from (otherwise: "not a git repository").+ changed_files=$(gh pr diff "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --name-only)if printf '%s\n' "$changed_files" \| grep -qFf <(printf '%s\n' "$SOURCE_FILE" "$ADDITIONAL_SOURCE_FILES" | grep -v '^$'); thenecho "changed=true" >> $GITHUB_OUTPUT