Median

POST /integrations/commit-repos

Updated Oct 1, 20261 minute read

Watch a repository's commits

Reads a repository's commits for fixes, so a commit that names a signal shows up on it. Sending a repository already watched changes its branch or its switch rather than adding it twice.

Part of Integrations.

Request body

application/json, required.

FieldTypeRequiredDescription
repostringYesowner/repo.
branchstringNoOnly this branch. Every branch if left out.
closeFromCommitsbooleanNoClose the signal when the fix lands.

Responses

StatusDescription
200The repository being read.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
repostringNo

Example request

curl -X POST https://api.median.sh/v1/integrations/commit-repos \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc