stamphog

Per-repo stamphog settings — enable/disable review, GitHub App installation, policy overrides.

put/api/projects/{project_id}/stamphog/repo_configs/{id}/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/stamphog/repo_configs/{id}/
  • Auth: HTTP bearer

Path parameters

idstring required
project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

providerstring

SCM provider this config talks to. Defaults to 'github'.

repositorystring required

Repository full name, e.g. 'PostHog/posthog'.

enabledboolean

Whether stamphog actively reviews pull requests for this repo.

digest_enabledboolean

Whether merged PRs on this repo are captured for the daily Slack digest.

review_mode'all' | 'label'
  • all - All pull requests
  • label - Labeled pull requests
trigger_labelstring

Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'.

Response

idstring uuid required
providerstring

SCM provider this config talks to. Defaults to 'github'.

repositorystring required

Repository full name, e.g. 'PostHog/posthog'.

enabledboolean required

Whether stamphog actively reviews pull requests for this repo.

installation_idstring required

Provider app installation ID that authorizes API calls for this repo. Set only by the verified sync_installation flow; ignored on direct writes.

digest_enabledboolean

Whether merged PRs on this repo are captured for the daily Slack digest. Requires 'enabled', since the digest reports what stamphog approved.

review_mode'all' | 'label' required
  • all - All pull requests
  • label - Labeled pull requests
trigger_labelstring

Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'.

user_access_levelstring nullable required

The caller's access level on the stamphog resource, resolved for the team that owns this row. 'editor' can turn reviews on. 'manager' is required to turn them off or to change review_mode or trigger_label.

created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.