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.
| Field | Type | Required | Description |
|---|---|---|---|
repo | string | Yes | owner/repo. |
branch | string | No | Only this branch. Every branch if left out. |
closeFromCommits | boolean | No | Close the signal when the fix lands. |
Responses
| Status | Description |
|---|---|
200 | The repository being read. |
400 | The request is malformed, and the message names the field. |
401 | The bearer token is missing, revoked, or expired. |
429 | Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits. |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
repo | string | No |
Example request
curl -X POST https://api.median.sh/v1/integrations/commit-repos \
-H "Authorization: Bearer $BEARER_AUTH"