Closes a pull request without merging.
Request
- Base URL: https://securesourcemanager.googleapis.com
- URL: https://securesourcemanager.googleapis.com/v1/{+name}:close
- Auth: one of:
- OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)
- OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/securesourcemanager.read-write) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/securesourcemanager.read-write)
Path parameters
Required. The pull request to close. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}
Request body
ClosePullRequestRequest is the request to close a pull request.
Response
Successful response
Changes
- breaking
removed the request body
- breaking
removed the media type
*/*for the response with the status - info
api operation id
securesourcemanager.projects.locations.repositories.issues.closeremoved and replaced withsecuresourcemanager.projects.locations.repositories.pullRequests.close - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/securesourcemanager.read-writewas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/securesourcemanager.read-writewas removed from the endpoint's security schemeOauth2c
- breaking
- info
api operation id
securesourcemanager.projects.locations.repositories.pullRequests.closeremoved and replaced withsecuresourcemanager.projects.locations.repositories.issues.close - info
added the new optional request property
- info