Actions50
- Branch Actions
- Commit Actions
- Issue Actions
- Project Actions
- Pull Request Actions
- Repository Actions
- Tag Actions
- File Actions
- User Actions
- Webhook Actions
Overview
This node integrates with the Bitbucket Data Center API to manage pull requests and other related resources. Specifically, the "Remove Reviewer" operation under the "Pull Request" resource allows users to remove a specified reviewer from an existing pull request in a repository hosted on Bitbucket Data Center.
Common scenarios where this node is beneficial include automating code review workflows, managing team collaboration by dynamically adjusting reviewers on pull requests, or integrating Bitbucket pull request management into broader CI/CD pipelines.
For example, if a reviewer is no longer relevant for a pull request or has completed their review, this node can programmatically remove them, ensuring that only active reviewers remain assigned.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication to use: "Personal Access Token" or "Basic Auth". |
| Project | The key of the project containing the repository. |
| Pull Request ID | The numeric ID of the pull request from which to remove the reviewer. |
| Username | The username of the reviewer to be removed from the pull request. |
Output
The output JSON contains the result of the API call to remove the reviewer. On success, it returns an object indicating success, typically:
{
"success": true
}
If the operation fails, an error message will be returned instead.
No binary data is output by this operation.
Dependencies
- Requires access to a Bitbucket Data Center instance.
- Requires credentials for authentication, either a personal access token or basic authentication credentials.
- The node expects the Bitbucket server URL to be configured within the credentials.
- The user must have appropriate permissions to modify pull requests and their participants in the target repository.
Troubleshooting
Common Issues:
- Invalid or missing credentials: Ensure the API token or basic auth credentials are correctly configured.
- Insufficient permissions: The authenticated user must have rights to modify pull request participants.
- Incorrect project key, repository slug, pull request ID, or username: Verify these inputs correspond exactly to existing entities in Bitbucket.
- Network connectivity issues to the Bitbucket server.
Error Messages:
"Bitbucket Data Center API request failed: ..."indicates an issue with the API call, possibly due to authentication failure, invalid parameters, or server errors."The operation "removeReviewer" is not supported for resource "pullRequest"would indicate a misconfiguration or unsupported operation (unlikely here since it's implemented)."Unknown error"may occur if the API response is unexpected; check server logs and network status.
To resolve errors, verify all input parameters, ensure credentials are valid, and confirm the Bitbucket server is reachable.
Links and References
- Bitbucket Data Center REST API Documentation
- Bitbucket Pull Requests API
- n8n documentation on creating custom nodes