Set the scopes for a pull request
Set the scopes for a pull request.
This addresses the scopes by pull request number alone, so the report cannot say which revision it was computed for, and the last one to arrive wins whatever head that was. Prefer PUT /repos/{owner}/{repository}/commits/{sha}/scopes, which names the revision.
A scope name may hold anything except a NUL byte or an unpaired UTF-16 surrogate, neither of which Postgres can store, and is limited to 1024 characters; a report carries at most 10000 of them. A report that breaks any of these is refused in full with a 422 and nothing is stored, so the pull request keeps whatever was reported for it last.
Path parameters
The pull request number
The pull request number
The owner of the repository
The owner of the repository
The name of the repository
The name of the repository
Request body
Response
Successful Response